interesting stuff¶
GET _cat/recovery?v&s=stage&active_only=true
GET _tasks?pretty&human&detailed=true&actions=indices:data/read/search
POST _cluster/reroute?metric=none
{
"commands": [
{
"move": {
"index": "NAME",
"shard": 0,
"from_node": "node1",
"to_node": "node2"
}
},
{
"allocate_replica": {
"index": "NAME",
"shard": 1,
"node": "node3"
}
}
]
}
PUT INDEX_NAME/_settings
{
"index": {
"number_of_replicas": 0
}
}
GET _cat/indices?h=index,status,store.size,docs.count,creation.date.string&s=index,creation.date&format=json&bytes=b
get status of relocating shards¶
Covers relocating and recovering shards.
GET _cat/recovery?v&active_only=true&h=index,shard,source_node,target_node,bytes_percent,bytes_total,time