-
|
I'm having some problems trying to build the cluster. Some of the nodes in this cluster are deployed in Docker and they don't have a public IP that they can bind to, I looked at the documentation and used garnet/libs/host/Configuration/Options.cs Lines 719 to 725 in 297d0a3 All configuration here is passed through the CLI. Since Garnet is not compatible with all configurations in I'd like to ask if there's any way to go about building such a cluster. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
The endpoint the server listens to is defined using --bind and --port. You can use multiple addresses but only a single port. The only improvement that I can see is make it so that --cluster-announce-ip and --cluster-announce-port creates an additional socket to which the server will be listening too. --bind="ipAddress" --port="port" --cluster-announce-ip="ipAddress" --cluster-announce-port="port" This creates a socket using the endpoint (ipAddress,port) and tells the cluster to listen to that endpoint. Alternatively, for docker you can leave the --bind and --cluster-announce options empty and the server listens to all ips available and the cluster should be able to figure out the ipAddress to advertise. |
Beta Was this translation helpful? Give feedback.

Note that the link you shared refers to sentinel which is currently not supported.
Also, in you example you are binding both nodes to the same port. Maybe another solution could be to specify different port for every instance.
That being said, it might be as simple as adding a parameter in Garnet such as --cluster-endpoint-skip-validate.
This will offload endpoint validation to the operator of the cluster.
We don't have a plan for this but if you want to contribute to it, it will be great.