Java SDK Configuration for cluster


#1

Hi, i’m creating a new cluster of couchbase and i am new to this technology. My question is if I have the servers in the connection settings of my Java Client and I want to add new servers to the cluster, do I need to change the configuration in all servers? Or they automatically detect that there is a new server to the cluster and stores key correctly?
I’m asking this because we have more than 30 servers for this app, and making deployment in all of them can be expensive.
Thanks!


#2

The Java client will automatically know about servers you add or remove since each server is aware of all of the other servers in the cluster. Since you cluster is 30 nodes I would recommend having at least 3 of the servers in your client config so that if the server you connect to for cluster topology changes goes down it can just ask one of the other servers you specified in the config.