Mastering Elasticsearch Second Edition by 2015

Mastering Elasticsearch Second Edition by 2015

Author:2015
Language: eng
Format: epub
Publisher: Packt Publishing


Requirement

Now, let's reuse our example cluster and try running the following command:

curl -XPUT 'localhost:9200/mastering/_settings' -d '{ "index.routing.allocation.require.tag": "node1", "index.routing.allocation.require.group": "groupA" }'

If we visualize the response of the index status command, we would see that the cluster looks like this:

As you can see, the view is different than the one when using include. This is because we tell Elasticsearch to allocate shards of the mastering index only to the nodes that match both the require parameters, and in our case, the only node that matches both is the first node.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.