5 ms·
ES can indeed rebalance shards to new nodes as they join the cluster. More here: https://www.elastic.co/guide/en/elasticsearch/reference/current/disk-allocator.
by jhgg 10y ago
ES can indeed rebalance shards to new nodes as they join the cluster. More here: https://www.elastic.co/guide/en/elasticsearch/reference/current/disk-allocator.html https://www.elastic.co/guide/en/elasticsearch/reference/curr...
- jdc0589 10y agohuh, the more you know. not sure how I've missed this. I'll definitely look for some discussions/use cases of how this actually plays out.
- jazoom 10y agoI suspect you were thinking of changing the number of shards, which can be an important part of rebalancing an index. Unfortunately, Elasticsearch can't do that.
- jonaf 10y agoThere is a convenient reindex API available in more recent versions, although in most cases where you can rebuild your index anyway, it's faster to do that.
- jazoom 10y agoAhh. I was wondering when they were going to get around to implementing that. I might have to upgrade to 5.x soon.
- wsgolfer 10y agoFYI, the reindex API was added as experimental in 2.3, so it's been there for about a year [1]. Even as experimental it worked great. [1] https://www.elastic.co/guide/en/elasticsearch/reference/2.3/docs-reindex.html https://www.elastic.co/guide/en/elasticsearch/reference/2.3/...
- jazoom 10y agoHa. I just came here to edit my comment. I remember seeing it before and just checked the docs again. In 5.2 it's STILL considered experiential. Craziness. It took me about an hour to build The basic functionality myself.
- jasontedor 10y agoThank you for noticing this, it is not considered experimental anymore. I integrated a change[1] to update the docs; it should percolate through to the site within thirty minutes. [1]: https://github.com/elastic/elasticsearch/pull/23621 https://github.com/elastic/elasticsearch/pull/23621