# DSL 控制台执行后,会返回 504 Timeout,但配置始终未被更新
# Shell 如下
curl -X PUT http://127.0.0.1:9200/_cluster/settings -d '{"transient":{"cluster.routing.allocation.total_shards_per_node":null}}'
{
"error" : {
"root_cause" : [
{
"type" : "process_cluster_event_timeout_exception",
"reason" : "failed to process cluster event (cluster_update_settings) within 30s"
}
],
"type" : "process_cluster_event_timeout_exception",
"reason" : "failed to process cluster event (cluster_update_settings) within 30s"
},
"status" : 503
}
原因可能比较复杂:
比如 索引太多、分片太多、集群正在处理的任务较多、内部连接因为 xxx 原因都在等待导致阻塞等。
情况紧急的的话,可以通过临时指定较长的超时时间来操作。
Ref: https://www.elastic.co/guide/...