Hi,
Could you please write me what is the safe procedure for temporarily shutting down one OpenSearch node in the cluster because of maintenance works ( like updating java etc.) - lest assume example 30 minutes break.
1. Disable shard allocation (before shutting down data nodes).
PUT _cluster/settings
{
"persistent": {
"cluster.routing.allocation.enable": "primaries"
}
}
2. Stop non-essential indexing and perform a flush (optional).
POST /_flush
3. Disable a single node.
• If Elasticsearch is running with systemd (currently in the lab):
sudo systemctl stop opensearch
4. Make any necessary changes.
5. Restart the modified node.
sudo systemctl start opensearch
GET _cat/nodes
6. Re-enable shard allocation.
PUT _cluster/settings
{
"persistent": {
"cluster.routing.allocation.enable": null
}
}