要不要也来分享分享一下啊

es relocate shards问题

Elasticsearch | 作者 huazi | 发布于2018年10月15日 | 阅读数:3434

graylog 收集日志,定义保存30天index,es集群会有删除过期index,这时候就会出现relocate shards问题,这个能通过什么设置,可以不让老的index 在relocate吗?
已邀请:

rochy - rochy_he

赞同来自:

下面的配置可动态设置允许仅为新索引进行分配,你可以可以设置为 none,这样就不运行全部动态分配了
PUT /my_index/_settings
{
"index" : {
"routing.allocation.enable" : "new_primaries"
}
}

huazi

赞同来自:

ok.

要回复问题请先登录注册