From 0e2c255519e03d6615c1097e66e5a9a68a823a04 Mon Sep 17 00:00:00 2001 From: I330716 Date: Tue, 7 Aug 2018 11:05:56 +0300 Subject: [PATCH] increase disk.watermark.high and disk.watermark.flood_stage --- elasticsearch-oss/config/elasticsearch.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/elasticsearch-oss/config/elasticsearch.yml b/elasticsearch-oss/config/elasticsearch.yml index 4800c593..8c60b3aa 100644 --- a/elasticsearch-oss/config/elasticsearch.yml +++ b/elasticsearch-oss/config/elasticsearch.yml @@ -13,3 +13,16 @@ network.host: 0.0.0.0 indices.memory.index_buffer_size: 30% +#make the bulk query 50% larger +thread_pool.index.queue_size: 300 + +# disable disk allocation +cluster.routing.allocation.disk.threshold_enabled: false +# this is the threshold to move shard to other node(which we don't have) +cluster.routing.allocation.disk.watermark.high : 100% +#threshold for read only +cluster.routing.allocation.disk.watermark.flood_stage: 100% +#allow only primary shard. We don't need replica +cluster.routing.allocation.enable: primaries +#check to prevent allocation of multiple instances of the same shard on a single host +cluster.routing.allocation.same_shard.host: true