Elasticsearch - 删除索引时超时

hel*_*y77 4 elasticsearch

我的集群处于红色状态,堆大小几乎已满...我需要删除一些索引,但出现超时错误

{"error":{"root_cause":[{"type":"process_cluster_event_timeout_exception","reason":"failed to process cluster event (delete-index [my.index-2016.08.01]) within 30s"}],"type":"process_cluster_event_timeout_exception","reason":"failed to process cluster event (delete-index [my.index-2016.08.01]) within 30s"},"status":503}
Run Code Online (Sandbox Code Playgroud)

我可以删除红色状态的索引吗?

Kul*_*gar 6

如果您尝试master_timeout在请求本身中增加您的价值会怎样?

curl -XDELETE yourhost:9200/index?master_timeout=60s

这些线程可以帮助您:

  • `但是,说实话,一个删除操作的时间甚至超过 3 秒就表明集群过载了。` 这是否意味着“整理您的过载集群而不是仅仅增加超时(您建议的 10 倍)”? (2认同)
  • 我已经尝试过超时,但遇到了同样的问题。集群超载只是因为索引太多而必须删除它们...... (2认同)

hel*_*y77 2

我解决了禁用分片分配的问题,我可以删除索引,刚刚完成,我重新激活了分配