为什么我的到期时间作业队列中出现超时错误?

时间:2016-05-16 07:52:27

标签: cassandra apache-kafka datastax

我有一个类似队列的列系列,每隔一小时就会更新一次。几个小时或一天后,cassandra有很多读取时间。 我使用Cassandra收到此错误消息:

code=1100 [Coordinator node timed out waiting for replica nodes' 
responses] message="Operation timed out - received only 0 responses." 
info={'received_responses': 0, 'required_responses': 1, 'consistency': 'LOCAL_ONE'}

也许我不应该像队列一样使用Cassandra而是使用Kafka或RabbitQM。我应该使用哪些其他解决方案的建议?如果我使用Kafka等,恐怕会出现同样的问题。

由于

1 个答案:

答案 0 :(得分:1)

我并不完全清楚每小时经常更新一次""意思是,但是既然你提到了队列模式,人们可能会猜到它会超时读取逻辑删除的单元格。在Cassandra中创建队列工作负载存在足够的陷阱,它已经成为一个记录在案的反模式。 Here is a good article解释了这个问题。

如果您必须使用Cassandra作为队列,请考虑使用或研究旨在缓解已知陷阱的项目。 CassieQ就是一个例子。