gpt4 book ai didi

cassandra-3.0 - 读取超时 : Error from server: code=1200 [Coordinator node timed out waiting for replica nodes

转载 作者:行者123 更新时间:2023-12-04 12:43:39 30 4
gpt4 key购买 nike

我遇到以下错误,

ReadTimeout: Error from server: code=1200 [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': 'ONE'}

版本详情,[cqlsh 5.0.1 | Cassandra 3.11.4 | CQL 规范 3.4.4 | native 协议(protocol) v4]
cqlsh:infinito> select count(id) from list_subscriber;

该表仅包含 10 条缺失记录,主键位于仅具有 int 类型的“Id”列上。

我正在尝试增加一些超时参数 (request_timeout_in_ms:)但没有运气

任何帮助表示赞赏。

最佳答案

我最终做了以下选项,将低于选项值增加了 10 倍。

编辑/etc/cassandra/cassandra.yaml 文件

sudo nano /etc/cassandra/cassandra.yaml

# How long the coordinator should wait for read operations to complete
read_request_timeout_in_ms: 50000
# How long the coordinator should wait for seq or index scans to complete
range_request_timeout_in_ms: 100000
# How long the coordinator should wait for writes to complete
write_request_timeout_in_ms: 20000
# How long the coordinator should wait for counter writes to complete
counter_write_request_timeout_in_ms: 50000
# How long a coordinator should continue to retry a CAS operation
# that contends with other proposals for the same row
cas_contention_timeout_in_ms: 10000
# How long the coordinator should wait for truncates to complete
# (This can be much longer, because unless auto_snapshot is disabled
# we need to flush first so we can snapshot before removing the data.)
truncate_request_timeout_in_ms: 600000
# The default timeout for other, miscellaneous operations
request_timeout_in_ms: 100000

# How long before a node logs slow queries. Select queries that take longer than
# this timeout to execute, will generate an aggregated log message, so that slow queries
# can be identified. Set this value to zero to disable slow query logging.
slow_query_log_timeout_in_ms: 5000

然后打开终端并执行以下命令
cqlsh --request-timeout=6000

一切看起来都不错。

关于cassandra-3.0 - 读取超时 : Error from server: code=1200 [Coordinator node timed out waiting for replica nodes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54787579/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com