elasticsearch

how to trun off index replicas in elasticsearch

If you’re playing with elasticsearch on a single host you may notice your cluster health is always yellow. This is probably because your indexes are set to have one replica but there’s no other node to replicate it to.

To confirm if this is the case or not you can look in elasticsearch-head. In the Overview tab you should see a bunch of index shards marked as “Unassigned”. If your cluster health is 50% of the total then you probably have the setup of 1 shard and 1 replica per index. To make the status green change replicas to zero…

Please note this will affect all indexes. Do not execute this on a production cluster and be sure to back up any data you don’t want to lose.

Read more: youdidwhatwithtsql.com » Blog Archive » Elasticsearch: Turn off index replicas http://www.youdidwhatwithtsql.com/elasticsearch-turn-index-replicas/2058/#ixzz4T6Kk2C6u

© 2016, 深夜的蚊子. 版权所有. 如转载,请注明:转载自 蚊子空间站[http://www.wenzizone.com]

Leave a Reply

Your email address will not be published. Required fields are marked *