I have a question about ElasticSearch's behaviour.
Here's the scenario:
- I have a cluster of ElasticSearch servers setup to use discovery:
initial_hosts: 192.0.0.1,192.0.0.2, 192.0.0.2
- I create a new index connecting to one of the three boxes in the
curl -XPUT 'http://192.0.0.2:9700/foobar/' -d '
number_of_shards : 1
number_of_replicas : 2
Will any effort be made during creation to load-balance the indexes
across the three servers specified in the discovery stanza? Or, is the
index created on whatever server the PUT is performed on?
Why I ask:
I'm using ElasticSearch for a domain that requires many indexes, as
oppose to a single monolithic index. I therefore do not require
sharding as much as I require an even distribution of indexes across a
set of boxes, along with replication.
What would my best course of action be to achieve this goal, i.e:
- An even distribution of indexes across a cluster of servers (with
minimal pain during the creation process).
- Sane replication.
- High availability. Ideally, I can connect to any node in the cluster
and retrieve a document, regardless of the server that the index