我正在尝试运行Cassandra附带的stress.py压力测试。当我尝试跑步时/stress.py我得到以下输出:
Traceback (most recent call last):
File "/usr/lib/python2.6/multiprocessing/process.py", line 232, in _bootstrap
self.run()
File "./stress.py", line 238, in run
self.cclient.batch_mutate(cfmap, consistency)
File "/opt/cassandra/apache-cassandra-0.7.6-2-src/contrib/py_stress/cassandra/Cassandra.py", line 784, in batch_mutate
self.recv_batch_mutate()
File "/opt/cassandra/apache-cassandra-0.7.6-2-src/contrib/py_stress/cassandra/Cassandra.py", line 808, in recv_batch_mutate
raise result.ue
UnavailableException: UnavailableException()
Process Inserter-49:
有什么想法吗?感谢
Unavailable Exception表示有太多节点关闭。使用"nodetool ring"查找哪个。
此外:除非您正在自定义stress.py,否则java stress工具的速度要快得多。(对于python,您需要大约1:1的客户端机器与cassandra机器才能完全饱和;对于java,它更像是1:5。)