Elasticsearch version migration
1. Prepare files and packages and plugins
2. Extract elasticsearch and install plugin
sudo bin/elasticsearch-plugin install file:///path/to/plugin.zip
3. Compress the elasticsearch after installing plugins
4. Move the compressed elasticsearch to the remote servers
5. Extract the compressed elasticsearch on the remote servers
6. Update concurrent recovery for the current cluster
7. Disable shard allocation
8. Node flush
curl -X POST "localhost:9200/_flush/synced?pretty"
GET /_cluster/health?pretty
9. Shutdown
10. Startup and tail logs
11. health_check node
GET /_cluster/health?pretty
12. enable shard allocation
host=$1
port=$2
curl -XPUT "http://YY.XX.ZZZ.YXZ:9200/_cluster/settings" -H 'Content-Type: application/json' -d '{
"transient" : {
"cluster.routing.allocation.enable" : null
}
}'
curl -XPUT "http://YY.XX.ZZZ.YXZ:9200/_cluster/settings" -H 'Content-Type: application/json' -d '{
"persistent" : {
"cluster.routing.allocation.enable" : null
}
}'
Comments
Post a Comment