Hello, I want my Thrift client(s) (using hector 1.1-3) to randomly connect to any node in the Cassandra (1.2.4) cluster.
1- One way is that I pass in a comma separated list of hosts and ports to the CassandraHostConfguration object. 2- The other option is that I configure the auto discovery of hosts (through setAutoDiscoverHost and related methods) on CassandraHostConfguration object while passing only one pair of host/port. Is one way better than another or both have their pros and cons according to the usecase. In case of 1, it can become unwieldy if the cluster grows. In number 2, would I have to be extra careful while adding/removing nodes (will it conflict with bootstrapping) or is it business as usual? I don't expect to have a multi-DC setup for near future but I believe that would be one consideration. Is there any other method that I am missing? Is it dependent or varies with the client API that I am using? Thanks a lot. Regards, Shahab