Nodes knowledge (.NET)
Thu, 12/13/2012 - 02:22
I'm playing with the .net client library, and I see that the client needs to know about all existent nodes in the cluster, give for example in the config file:
<couchbase>
<servers bucket="default" bucketPassword="">
<add uri="http://192.168.0.2:8091/pools"/>
<add uri="http://192.168.0.3:8091/pools"/>
</servers>
</couchbase>Is this the case? So if I add new nodes to my cluster I have to update the config for all client applications?
\Joe
Hi Joe, its exactly the opposite:
You should pass a few nodes in here, but they are only used during the bootstrap phase. This means that if the first server is not reachable it will try the second and so on. After that, it fetches the topology from your cluster automatically and stays "on top" of changes. You never need to update the config here when you change your cluster setup.
Does this make sense to you?