That works ok if you are inserting but updates and deletes become more complex. Scoring can get a bit funky too because your shards don't have roughly equal frequencies. All and I'll I'd argue the adding more indecies behind and alias is only sometimes a solution to the problem.
Nik On Fri, Dec 5, 2014 at 12:17 PM, David Pilato <da...@pilato.fr> wrote: > Let say you start with a 3 nodes cluster with one index A1, 3 shards, 1 > replica. > Then you feel like 3 shards is not enough. You want to add 2 new nodes and > have 5 shards for your data. > Create an index A2 with 2 shards and 1 replica. > > Use an alias A on top of A1, A2. You will then search into 5 shards > instead of 3 initially. > > Would this work for you? > > -- > *David Pilato* | *Technical Advocate* | *Elasticsearch.com > <http://Elasticsearch.com>* > @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr > <https://twitter.com/elasticsearchfr> | @scrutmydocs > <https://twitter.com/scrutmydocs> > > > > Le 5 déc. 2014 à 18:11, Kevin Burton <burtona...@gmail.com> a écrit : > > Because too few shards is not optimal and neither is too many. > > The zen is the right number of shards per node which is why shard > splitting is important. > > You want the index to fit the hardware / cluster properly. > > On Thursday, December 4, 2014 10:08:53 PM UTC-8, David Pilato wrote: >> >> Why not using aliases and add more index/shards when you need to? >> What is wrong with this design? >> >> > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/f024f914-6e0b-4fea-9566-f3e308351a8c%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/f024f914-6e0b-4fea-9566-f3e308351a8c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/C7231EF1-4B1F-4562-80FA-E08292AD5253%40pilato.fr > <https://groups.google.com/d/msgid/elasticsearch/C7231EF1-4B1F-4562-80FA-E08292AD5253%40pilato.fr?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAPmjWd2%3DnsHViV%2Bm1ZMcfFwr9GfFuU312GJxjJM3pUTMEceXgQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.