Re: Question for datastax java Driver

2015-11-05 Thread Eric Stevens
In short: Yes, but it's not a good idea. To do it, you want to look into WhiteListPolicy for your loadbalancer policy, if your WhiteListPolicy contains only the same host(s) that you added as contact points, then the client will only connect to those hosts. However it's probably not a good idea f

Question for datastax java Driver

2015-11-04 Thread Dikang Gu
Hi there, Right now, it seems if I add a contact point like this: cluster = Cluster.builder().addContactPoint().build(); When client is connected to the cluster, client will fetch the addresses for all the nodes in the cluster, and try to connect to them. I'm wondering can I disable the behavio