diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2019-11-24 17:18:36 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2019-11-24 17:43:52 +0100 |
| commit | 1f74c443405b2827217275bbdc428bd9320bb99a (patch) | |
| tree | d97b3c35280ab24fdffd9b099fca0f318239986b /content/tech/scaling-elasticsearch.md | |
| parent | f752530692e7a3db2d75bc2c77b80839da64d5f3 (diff) | |
| download | blog-1f74c443405b2827217275bbdc428bd9320bb99a.tar.gz blog-1f74c443405b2827217275bbdc428bd9320bb99a.zip | |
Rework index page layout to include projects
Diffstat (limited to 'content/tech/scaling-elasticsearch.md')
| -rw-r--r-- | content/tech/scaling-elasticsearch.md | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/content/tech/scaling-elasticsearch.md b/content/tech/scaling-elasticsearch.md index 88ab1e6..fc4b9b0 100644 --- a/content/tech/scaling-elasticsearch.md +++ b/content/tech/scaling-elasticsearch.md @@ -1,6 +1,4 @@ --- -categories: -- software date: 2017-08-26 title: Scaling down an Elasticsearch cluster --- @@ -13,8 +11,8 @@ Taking nodes out of the cluster is more challenging. First, make sure that the c ```bash curl -XPUT 'localhost:9200/_cluster/settings' -d '{ - "transient" : { - "cluster.routing.allocation.enable" : "none" + "transient" : { + "cluster.routing.allocation.enable" : "none" } }' ``` @@ -34,7 +32,7 @@ Finally, force the reallocation: ```bash curl -XPOST 'localhost:9200/_cluster/reroute' -d '{ "commands": - [{ "move" : + [{ "move" : { "index" : "yourindex", "shard" : 1, "from_node": "anothernode", "to_node": "laptop" } }] }' @@ -44,8 +42,8 @@ Take the node down as soon as the cluster status is green again and reactivate b ```bash curl -XPUT 'localhost:9200/_cluster/settings' -d '{ - "transient" : { - "cluster.routing.allocation.enable" : "all" + "transient" : { + "cluster.routing.allocation.enable" : "all" } }' ``` |
