首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

The Cassandra Way——装配、配置

2013-04-02 
The Cassandra Way——安装、配置?P.S. 其它机器只需要修改listen_address为本机IP就可以了。如果服务器配置好

The Cassandra Way——安装、配置

?

P.S. 其它机器只需要修改listen_address为本机IP就可以了。如果服务器配置好的hostname和ip映射(/etc/hosts),则listen_address字段可以不配置。

3. 启动集群

用ssh工具,或者到每台机器上执行./bin/cassandra

4. 验证配置

./bin/nodetool status

The Cassandra Way——装配、配置
?

四、压力测试
./tools/bin/cassandra-stress -d x.x.x.1,x.x.x.2 -t 100 -n 500?-d 测试节点列表,逗号分隔,默认为localhost-t 测试客户端线程数,默认为50-n 插入key数量,默认为100万 ?

下面是我单机(8core CPU,32GB内存)未优化后测试的结果:

./cassandra-stress

total,interval_op_rate,interval_key_rate,latency/95th/99th,elapsed_time

168475,16847,16847,0.4,5.1,26.9,10

399369,23089,23089,0.3,1.5,171.9,20

664259,26489,26489,0.3,1.2,115.8,30

903298,23903,23903,0.3,1.0,43.8,40

1000000,9670,9670,0.3,1.0,43.8,45

?

--end

热点排行