ELK elastic search update version
Update verzie elasticsearch:
Krok1:
curl -X PUT "localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d'
{
"persistent": {
"cluster.routing.allocation.enable": "primaries"
}
}
'
Krok2:
curl -X POST "localhost:9200/_flush/synced?pretty"
Krok3:
curl -X POST "localhost:9200/_ml/set_upgrade_mode?enabled=true&pretty"
Krok4:
systemctl stop elasticsearch.service
apt upgrade -y
Krok5:
curl -X GET "localhost:9200/_cat/nodes?pretty"
Krok6:
curl -X PUT "localhost:9200/_cluster/settings?pretty" -H 'Content-Type: application/json' -d'
{
"persistent": {
"cluster.routing.allocation.enable": null
}
}
'
Krok7:
curl -X GET "localhost:9200/_cat/health?v&pretty"
Krok8:
curl -X POST "localhost:9200/_ml/set_upgrade_mode?enabled=false&pretty"
DOC:
https://www.elastic.co/guide/en/elasticsearch/reference/current/rolling-upgrades.html