Question regarding Shard Distribution while adding a replica to cluster


(Rahul Sharma) #1

Hi,

My ES Version -- 0.90.2

  1. I used to have a 3 node ES cluster where I had 5 shard indices. I used
    to have around 1000 shards (all primary as it was running with 0 replica).
  2. Then I change the replica to 1 and add 3 additional nodes hoping the
    shards will get evenly balanced with a replica.

However what I found is that all new indices are getting created with
replica (So in total 10 shards per index) but the old indices stayed as is.
They did not get replicated.

So my new nodes are fairly empty whereas the old nodes shards are growing
as new indices are getting created.

How can I re-balance the cluster so that I my shards are evenly balanced
and the old indices also gets replicated?

Now I am facing another problem, while I index new data the cluster
suddenly drops few shards to unassigned and goes to Red, however it pick up
and reassigns on its own. But this keeps happening pretty often. Not sure
what could be the cause. Would appreciate your guidence here.

Thanks
Rahul

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CA%2BsZA0VH_YOaVa64LRuZSV563p2nikiUUNc7-vjzGBZe8pnVdQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2