成都创新互联网站制作重庆分公司

Elasticsearch重启前禁止分片移动的方法

重启集群前,先设置集群停止分片移动:

济阳网站制作公司哪家好,找创新互联建站!从网页设计、网站建设、微信开发、APP开发、成都响应式网站建设公司等网站项目制作,到程序开发,运营维护。创新互联建站自2013年创立以来到现在10年的时间,我们拥有了丰富的建站经验和运维经验,来保证我们的工作的顺利进行。专注于网站建设就选创新互联建站

curl -XPUT http://localhost:9200/_cluster/settings -d '{
"transient" : {
"cluster.routing.allocation.enable" : "none"
}
}'

重启之后,恢复分片自动分配:

curl -XPUT http://localhost:9200/_cluster/settings -d '{
"transient" : {
"cluster.routing.allocation.enable" : "all"
}
}'

参考:
https://blog.csdn.net/an74520/article/details/42871023
https://www.elastic.co/guide/en/elasticsearch/reference/current/shards-allocation.html#_shard_allocation_settings
https://blog.csdn.net/YxSimple/article/details/50725978


网站题目:Elasticsearch重启前禁止分片移动的方法
标题路径:http://cxhlcq.com/article/gcdohe.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部