From 74838fe1aaff86d156def5e4572f0f6b6f91379d Mon Sep 17 00:00:00 2001 From: kimchy Date: Thu, 31 Mar 2011 01:09:03 +0200 Subject: [PATCH] Translog: Reduce the number of translog ops to flush after from 20000 to 5000, closes #820. --- .../org/elasticsearch/index/translog/TranslogService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/translog/TranslogService.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/translog/TranslogService.java index 5828abe1dcb..5751a282045 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/translog/TranslogService.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/translog/TranslogService.java @@ -71,8 +71,8 @@ public class TranslogService extends AbstractIndexShardComponent { this.indexShard = indexShard; this.translog = translog; - this.flushThresholdOperations = componentSettings.getAsInt("flush_threshold_ops", componentSettings.getAsInt("flush_threshold", 20000)); - this.flushThresholdSize = componentSettings.getAsBytesSize("flush_threshold_size", new ByteSizeValue(500, ByteSizeUnit.MB)); + this.flushThresholdOperations = componentSettings.getAsInt("flush_threshold_ops", componentSettings.getAsInt("flush_threshold", 5000)); + this.flushThresholdSize = componentSettings.getAsBytesSize("flush_threshold_size", new ByteSizeValue(200, ByteSizeUnit.MB)); this.flushThresholdPeriod = componentSettings.getAsTime("flush_threshold_period", TimeValue.timeValueMinutes(60)); this.interval = componentSettings.getAsTime("interval", timeValueMillis(5000));