Is it possible to configure the ES so that a single node will always get
the replica shards assigned? When I was in a single-node configuration I
just upped the number of replicas for every index to 1 and brought a
data-only node to the cluster and of course the replicas all got created on
that single node.
But since the indexes rotate every night today I discovered that the next
index has it's primary shards on this second server which is not exactly
what I'd like to see...
Is it possible to configure the ES so that a single node will always get
the replica shards assigned? When I was in a single-node configuration I
just upped the number of replicas for every index to 1 and brought a
data-only node to the cluster and of course the replicas all got created on
that single node.
But since the indexes rotate every night today I discovered that the next
index has it's primary shards on this second server which is not exactly
what I'd like to see...
We're having this same problem, and it looks like the
index-modules-allocation doesn't actually provide any mechanism to
accomplish this request.
The primary use-case on our end is that we have a two-tiered cluster with a
set of indexers and a set of search nodes. We'd like to zone primaries to
the indexing zone and use asynchronous replication to the search zone.
Sadly, the shard allocation filtering doesn't seem to provide any
mechanism to directly enforce this constraint.
The best we've been able to come up with so far, is to use a forced
awareness attribute and initially zone a new time bin to the indexing zone.
This causes ES to allocate primaries in the indexing zone with no initial
replicas. After creation, if we then go back and include the search zone
for the index (after the primaries are allocated) - replicas are created
there and everything works as expected.
This strikes me as both a very useful feature to provide fine-grained
hardware control for different operations, and also an extremely hacky
work-around the present limitations.
On Thursday, June 12, 2014 12:58:07 AM UTC-4, Mark Walkom wrote:
On 12 June 2014 14:50, Tommi Lätti <s...@blosphere.net <javascript:>>
wrote:
Hi,
Is it possible to configure the ES so that a single node will always get
the replica shards assigned? When I was in a single-node configuration I
just upped the number of replicas for every index to 1 and brought a
data-only node to the cluster and of course the replicas all got created on
that single node.
But since the indexes rotate every night today I discovered that the next
index has it's primary shards on this second server which is not exactly
what I'd like to see...
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.