Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

The method of prohibiting fragment movement before Elasticsearch restart

Shulou Source: shulou.com Published: 2022-06-03 06:40:27 11月23日 Update

Before restarting the cluster, set the cluster to stop sharding movement:

Curl-XPUT http://localhost:9200/_cluster/settings-d'{

"transient": {

"cluster.routing.allocation.enable": "none"

}

}'

After restarting, restore the automatic allocation of shards:

Curl-XPUT http://localhost:9200/_cluster/settings-d'{

"transient": {

"cluster.routing.allocation.enable": "all"

}

}'

Reference:

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

Tags: Clustering Mobility allocation reference method Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi MariaDB OPPO Reno Huawei Docker