Skip to content

Instantly share code, notes, and snippets.

@catap
Created December 14, 2018 11:57
Show Gist options
  • Save catap/e133275e3c65331b4848de43eea4581f to your computer and use it in GitHub Desktop.
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
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