Skip to content

Commit

Permalink
Translog: Reduce the number of translog ops to flush after from 20000…
Browse files Browse the repository at this point in the history
… to 5000, closes #820.
  • Loading branch information
kimchy committed Mar 30, 2011
1 parent 14d98a7 commit 74838fe
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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));

Expand Down

0 comments on commit 74838fe

Please sign in to comment.