Created
April 24, 2014 14:57
-
-
Save Toady00/11257788 to your computer and use it in GitHub Desktop.
I've got 3 es nodes on ec2. I added ebs volume to each (1 at a time), stopped es, copied data/log to the new volume, edited config file to point to new location, and restarted es. Each time the cluster went green within a few seconds. I forgot to change the config file on the second one, so I edited it, and restarted es again. After that, the cl…
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
# Before data migration | |
curl -XGET 'http://127.0.0.1:9200/_cluster/health?pretty=true' | |
# { | |
# "cluster_name" : "abc_cluster", | |
# "status" : "green", | |
# "timed_out" : false, | |
# "number_of_nodes" : 3, | |
# "number_of_data_nodes" : 3, | |
# "active_primary_shards" : 20, | |
# "active_shards" : 40, | |
# "relocating_shards" : 2, | |
# "initializing_shards" : 0, | |
# "unassigned_shards" : 0 | |
# } | |
# After data migration | |
curl -XGET 'http://127.0.0.1:9200/_cluster/health?pretty=true' | |
# { | |
# "cluster_name" : "abc_cluster", | |
# "status" : "yellow", | |
# "timed_out" : false, | |
# "number_of_nodes" : 5, | |
# "number_of_data_nodes" : 5, | |
# "active_primary_shards" : 20, | |
# "active_shards" : 33, | |
# "relocating_shards" : 0, | |
# "initializing_shards" : 4, | |
# "unassigned_shards" : 3 | |
# } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment