Cassandra with uneven hardware, how to configure?

喜夏-厌秋 提交于 2019-12-19 21:48:51

问题


We are building a Cassandra (2.1.5) cluster for storing large amount of timeseries data, and we are planning to utilize existing hardware, problem is the hardware available is really different.

2 machines with: 4 core, 8 GB, SSD
2 machines with: 8 core, 16 GB, SSD
2 machines with: 32 core, 64 GB, HDD

Obviously, the 32 core machine can handle much larger load than the 4 core machines, how should we configure Cassandra to handle this. We are using RF 3 and the latest datastax java driver.

Any suggestions?


回答1:


When you configure a Cassandra node you tell it the number of vnodes to use for that node. The load on a node is roughly proprtional to its number of vnodes. Hence by choosing different numbers of vnodes for your computers you can distribute the load unevenly among them.



来源:https://stackoverflow.com/questions/30648981/cassandra-with-uneven-hardware-how-to-configure

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