I am doing load testing on Cassandra By using JMeter.
After systematically increasing the load, I can see that more than 58000 Active connection has been established by the driver with different node of cassandra.
I have started with 500 and added up 500 more after 10 iteration. like this i reached upto 2500 request. where it is failing. And Throwing NoHOSTAvailableExecption.
I thought that may be cassandra is down. But when i have tried to send request to cassnadra by using DataStax driver . Running in a different System it is working fine. So now My question is that
When I am increasing the load on DataStax java driver it is Opening more connection instead of using existing connection. Why it is not using the existing connection?
– soumyadeep sarkar Jul 24 '14 at 04:59
``public void connect(String node) { cluster = Cluster.builder() .addContactPoint(node) .build(); Metadata metadata = cluster.getMetadata(); System.out.printf("Connected to cluster: %s\n", metadata.getClusterName()); for ( Host host : metadata.getAllHosts() ) { System.out.printf("Datacenter: %s; Host: %s; Rack: %s\n", host.getDatacenter(), host.getAddress(), host.getRack()); } }`` – soumyadeep sarkar Jul 24 '14 at 05:00