Created
October 18, 2011 18:15
-
-
Save kimchy/1296201 to your computer and use it in GitHub Desktop.
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
# Start two nodes (run bin/elasticsearch -f twice) and run: | |
curl -XPOST localhost:9200/test -d '{ | |
"settings" : { | |
"number_of_shards" : 3 | |
} | |
}' | |
# Run cluster state, under routing_nodes element, you will see the shards allocated on each node | |
curl localhost:9200/_cluster/state?pretty=1 | |
# Start another node (another bin/elasticsearch -f) | |
# Run cluster state, under routing_nodes element, you will see the shards allocated on each node | |
curl localhost:9200/_cluster/state?pretty=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment