Cassandra Datastax Optimal PoolingOptions

ぃ、小莉子 提交于 2019-12-11 04:44:59

问题


I'm Working on a spring/java webapp using cassandra as backend; the app would be used by potentially hundreds of customers simultaneously.

I see that default Cluster PoolingOptions connection pool settings (With protocol v3) are:

LOCAL hosts: core = max = 1
REMOTE hosts: core = max = 1

And default maxRequestsPerConnection setting (With protocol v3) is:

1024 for LOCAL hosts, and 256 for REMOTE hosts. 

Will these default settings be sufficient to fulfill our usage requirements?

If not, What poolingoptions can I start with?


回答1:


I would recommend using the default PoolingOptions. It should not really be touched unless you have a good reason.

Note that the configuration is per host, not for the entire cluster.

Also, by default cassandra only processes 128 native transport requests at a time (native_transport_max_threads), so configuring PoolingOptions to handle more than 1024 requests per connection has low utility.

Finally, during benchmarking and high throughput scenarios with a small number of nodes, increasing the number of connections per host to something like 8 can show some improvement in throughput, but as you add more C* hosts that improvement becomes marginal.



来源:https://stackoverflow.com/questions/42148056/cassandra-datastax-optimal-poolingoptions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!