Index-level shard allocation filtering | Elasticsearch Guide [master] | Elastic
index.routing.allocation.include.{attribute}
Assign the index to a node whose {attribute}
has at least one of the comma-separated values.
index.routing.allocation.require.{attribute}
Assign the index to a node whose {attribute}
has all of the comma-separated values.
index.routing.allocation.exclude.{attribute}
Assign the index to a node whose {attribute}
has none of the comma-separated values.
The index allocation settings support the following built-in attributes:
|
Match nodes by node name |
|
Match nodes by host IP address (IP associated with hostname) |
|
Match nodes by publish IP address |
|
Match either |
|
Match nodes by hostname |
|
Match nodes by node id |
|
Match nodes by the node’s data tier role. For more details see data tier allocation filtering文章来源地址https://www.toymoban.com/news/detail-491060.html |
PUT test/_settings
{
"index.routing.allocation.include.size": "big,medium"
}
PUT test/_settings
{
"index.routing.allocation.exclude._ip": "192.168.2.*,192.168.3.*"
}
PUT test/_settings
{
"index.routing.allocation.require.size": "big",
"index.routing.allocation.require.rack": "rack1"
}
到了这里,关于es索引分片重新分配cluster.routing.allocation的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!