I have been trying to find a solution to this here on this group and many
Google searches.
I set up ES with 5 shards per index, 0 replicas. I create a new index by
day and hour and have loaded content. After loading 750M records, I end up
with 1425 shards across 285 indices. Everything is working fine.
Now I want to add a replica, so I use the curl command:
Which also worked fine - I can query ES and see that each index is marked
as having 1 replica. The shards however that would be the replica shards
are marked as Unassigned.
How do I go about forcing ES to actually replicate the indexes now into
these replica shards?
I have been trying to find a solution to this here on this group and many Google searches.
I set up ES with 5 shards per index, 0 replicas. I create a new index by day and hour and have loaded content. After loading 750M records, I end up with 1425 shards across 285 indices. Everything is working fine.
Now I want to add a replica, so I use the curl command:
Which also worked fine - I can query ES and see that each index is marked as having 1 replica. The shards however that would be the replica shards are marked as Unassigned.
How do I go about forcing ES to actually replicate the indexes now into these replica shards?
ES will intentionally avoid replicating shards on the same node so the
cluster is always redundant. You'd need to add another node for it to
automatically replicate.
-Andreas
On Tuesday, November 19, 2013 2:13:24 PM UTC-8, Jerry Russell wrote:
One node. Will replicas not be created if there is only one node?
I understand it doesn't make sense to replicate with one node. But I am
seeing a weird problem with searching that I was hoping was related to not
having a replica (always getting different number of search results for
same search with static data). This problem I am running into did not occur
on same data set when using two nodes with replicas, so I needed to confirm
in the current environment if replicas were the real cause or not.
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.