You should be able to set the number of replicas for all previous indexes to 0. You cannot reduce the shard count once an index is created, or increase for that matter. You could reindex your shards.
http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html curl -XPUT 'localhost:9200/my_index/_settings' -d ' { "index" : { "number_of_replicas" : 0 } }' On Thursday, March 12, 2015 at 11:35:12 AM UTC-6, Taylor Wood wrote: > > I didn't get any help on this but as an FYI for those that may have this > issue and are just starting: > > Digging deeper it appears our system was created with 5 shards and 1 > replica. Granted we are only using 1 node so every day elasticsearch > would create an indice of 10 shards, 5 for the primary node and 5 for the > secondary node (which doesn't exist on our system but would for > redundancy). We made it so all future indices created have 0 replicas in > the future. I can't find a way to clean up all the unallocated shards > from previous indices without deleting the data. > > If the active shards is almost = to unassigned shards you are using > replication and need to have a second node running. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0b36108c-3e90-4865-85e3-d6a74b53ee97%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
