实战-Cassandra之压测
Posted yuxiaohao
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了实战-Cassandra之压测相关的知识,希望对你有一定的参考价值。
执行前
[root@node1 bin]# /data/cass/bin/nodetool status Datacenter: datacenter1 ======================= Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns (effective) Host ID Rack UN 192.168.56.10 172.45 KiB 1 33.3% 8da208d9-7ddb-48c1-95f4-2a041dd51239 rack1 UN 192.168.56.12 220.89 KiB 1 33.3% 3f290c85-704e-4201-b708-d0e0a024ce50 rack1 UN 192.168.56.13 176.04 KiB 1 33.3% 8b43630e-5a8d-4ba8-8806-d2ad5f951161 rack1
压测:/data/cass/tools/bin/cassandra-stress write n=1000000 -rate threads=50 -node 192.168.56.10
执行后
[root@localhost ~]# /data/cass/bin/nodetool status Datacenter: datacenter1 ======================= Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- Address Load Tokens Owns (effective) Host ID Rack UN 192.168.56.10 79.46 MiB 1 33.3% 8da208d9-7ddb-48c1-95f4-2a041dd51239 rack1 UN 192.168.56.12 68.26 MiB 1 33.3% 3f290c85-704e-4201-b708-d0e0a024ce50 rack1 UN 192.168.56.13 79.6 MiB 1 33.3% 8b43630e-5a8d-4ba8-8806-d2ad5f951161 rack1
以上是关于实战-Cassandra之压测的主要内容,如果未能解决你的问题,请参考以下文章
实战经验 | Cassandra Java堆外内存排查经历全记录