Cassandra 硬件参差不齐,如何配置? [英] Cassandra with uneven hardware, how to configure?

查看:14
本文介绍了Cassandra 硬件参差不齐,如何配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在构建一个用于存储大量时间序列数据的 Cassandra (2.1.5) 集群,我们计划利用现有的硬件,问题是可用的硬件确实不同.

2 台机器:4 核、8 GB、SSD
2 台机器:8 核、16 GB、SSD
2 台机器:32 核、64 GB、硬盘

显然,32 核机器可以处理比 4 核机器更大的负载,我们应该如何配置 Cassandra 来处理这个问题.我们正在使用 RF 3 和最新的 datastax java 驱动程序.

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.

有什么建议吗?

推荐答案

当你配置一个 Cassandra 节点时,你告诉它用于该节点的 vnodes 的数量.节点上的负载与其 vnode 的数量大致成正比.因此,通过为您的计算机选择不同数量的 vnode,您可以在它们之间不均匀地分配负载.

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.

这篇关于Cassandra 硬件参差不齐,如何配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆