Last active
November 30, 2019 09:44
-
-
Save vietvudanh/45b0af7f141a7c6f926c8ddc3c95c556 to your computer and use it in GitHub Desktop.
Elasticsearch Commands
This file contains hidden or 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
# metadata | |
GET _cat/indices? | |
# m, d,i | |
GET _cat/nodes?V&s=ip:asc | |
GET _cat/master?v | |
GET _cat/shards?v | |
GET _cat/allocations?v | |
GET _cluster/heatlh | |
GET _nodes/stats | |
# find tasks | |
GET _tasks?actions=*reindex* | |
# reindex | |
# set refresh_interval to -1 first | |
# remember to put back to "1s" | |
POST /index/_settings | |
{ | |
"refresh_interval": -1 | |
} | |
POST _reindex | |
{ | |
"source": { | |
"index": "A" | |
}, | |
"dest": { | |
"index": "B" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment