Easysearch、Elasticsearch 还是 Opensearch,是个问题

index.routing.allocation.require.box_type必须索引创建的时候就加上么?

Elasticsearch | 作者 famoss | 发布于2016年12月19日 | 阅读数:6761

现在准备做hot/warm的tag结构,之前有较多索引,没有配置 index.routing.allocation.require.box_type这个参数。

请问有办法动态加上么?
已邀请:

sterne vencel - 90

赞同来自:

我们是节点重启添加的,不知道你们后来怎么做了?

rochy - rochy_he

赞同来自:

应该可以动态修改
PUT /logs_2016-12-26/_settings 
{
"settings": {
"index.routing.allocation.require.box_type": "warm"
}
}

请参考下面文章:https://blog.csdn.net/gongpuli ... 25112

zqc0512 - andy zhou

赞同来自:

楼上是对的,直接修改索引 不过这种架构好像不怎么推荐了。
 

chenfh5

赞同来自:

是index级别的dynamic setting,常用于冷热索引迁移。
https://github.com/elastic/cur ... on.py

要回复问题请先登录注册