Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

thinkwind avatar image
thinkwind asked Erick Ramirez answered

hinted handoff频繁出现,导致写请求超时

我的DC有4个节点,查看节点status都是正常的,每小时会有1000多同时数据写入,经常性的出现 hinted handoff,节点之间转移数据,导致客户端请求写入Request timed out,写入策略是one,请问是什么原因呢?

hinted handoff
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

Hinted handoff不是写超时的原因。 这只是集群中节点无响应的征兆,因此hints最可能由coordinator存储,因为节点无法跟上write requests的速度。

写入的consistency level为ONE也不重要。所有的变异都由coordinator发送给所有replicas。

The hinted handoff is not the cause of the write timeouts. It is just a symptom of nodes in your cluster becoming unresponsive so hints are stored by the coordinator most likely because the nodes cannot keep up with the write requests.

It also does not matter that writes have a consistency level of ONE. All mutations are sent by the coordinator to all replicas. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.