Mastering Elasticsearch - Second Edition by Rafał Kuć & Marek Rogoziński

Mastering Elasticsearch - Second Edition by Rafał Kuć & Marek Rogoziński

Author:Rafał Kuć & Marek Rogoziński [Kuć, Rafał]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2015-02-26T22:00:00+00:00


One of the properties that can be useful when having multiple nodes on a single physical server is cluster.routing.allocation.same_shard.host. When set to true, it prevents Elasticsearch from placing a primary shard and its replica (or replicas) on the same physical host. We really advise that you set this property to true if you have very powerful servers and that you go for multiple Elasticsearch nodes per physical server.

Inclusion

Now, let's use our example cluster to see how the allocation inclusion works. Let's start by deleting and recreating the mastering index by using the following commands:

curl -XDELETE 'localhost:9200/mastering' curl -XPOST 'localhost:9200/mastering' -d '{ "settings" : { "index" : { "number_of_shards" : 2, "number_of_replicas" : 0 } } }'



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.