Created
December 14, 2018 11:57
-
-
Save catap/e133275e3c65331b4848de43eea4581f to your computer and use it in GitHub Desktop.
Example how you can recovery your elastic from red status to green but lose your data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST _cluster/reroute?retry_failed | |
{ | |
"commands" : [ | |
{ | |
"allocate_empty_primary": { | |
"index" : "Index-YYYY-MM-DD-HH", | |
"shard" : 66, | |
"node": "some-node", | |
"accept_data_loss": true | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment