让stress.py与Cassandra合作的问题

时间:2011-06-01 15:56:10

标签: python cassandra

我正在尝试运行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:

有什么想法?感谢

1 个答案:

答案 0 :(得分:2)

UnavailableException意味着有太多节点关闭。使用“nodetool ring”找出哪个。

另外:除非你自定义stress.py,否则java压力工具要快得多。 (使用python,你需要大约1:1的客户端机器才能使cassandra机器完全饱和;使用java时,它更像是1:5。)