我需要elasticsearch创建一次索引分片,并且不会从节点重新定位现有分片,直到它收到手动命令为止。是否可以在不禁用整个集群的分片分配的情况下做到这一点?
最佳答案
是的,它被称为index.routing.allocation.enable
并且可以运行for a single index and it's dynamically updateable :
PUT /my_index/_settings
{
"index" : {
"routing.allocation.enable" : "none"
}
}
关于java - 如何禁用一个索引的节点之间的分片重定位?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31512015/