Translog: Reduce the number of translog ops to flush after from 20000 to 5000, closes #820.

This commit is contained in:
kimchy 2011-03-31 01:09:03 +02:00
parent 14d98a7319
commit 74838fe1aa
1 changed files with 2 additions and 2 deletions

View File

@ -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));