嘿~ 今天天气不错嘛

es删除索引超时

Elasticsearch | 作者 redhat | 发布于2017年10月24日 | 阅读数:9452

{"error":{"root_cause":[{"type":"process_cluster_event_timeout_exception","reason":"fail to process cluster event (delete-index[]) within 30s"}]}} 可以设置时间长点吗?
已邀请:

kennywu76 - Wood

赞同来自: laoyang360 medcl fanmo3yuan

这是因为集群有太多的status update任务在等待处理, GET /_cat/pending_tasks 看一下是哪些任务。 
 
造成这个问题的原因可能有多种,包括:
  • 集群的索引数量非常多
  • 索引包含的字段数量非常多
  • 并发创建大量索引
  • 大量并发的动态添加字段操作或者删除操作
  • 集群故障,在recovery过程中

ELKer

赞同来自:

rest请求加master_timeout,比如DELETE _watcher/watch/my-watch?master_timeout=30s
 

要回复问题请先登录注册