Consider the settings below in the elasticsearch.yml file
gateway.recover_after_data_nodes: 3 gateway.recover_after_time: 5m gateway.expected_data_nodes: 3
Current setup: Let's say I have 3 data nodes. Now, if I decide to restart the node data (due to a slight change in the settings), the recovery will begin immediately after the node is restarted in accordance with the expected_data_nodes parameter. There will be many unassigned fragments that will be distributed slowly depending on the data it contains.
To avoid this, is there a way to highlight all unassigned shards for a specific node? (node ββis restarted in my case), and as soon as this is done, ES should take over the rebalancing.
Basically I want to avoid the heavy timeline of the cluster state from yellow to green (this is in hours in my case)
Can I use api cluster redirection for this purpose?
or is there any other api for transferring all unassigned shards to a specific node at a time?
elasticsearch
Vamsi krishna
source share