Translog: Reduce the number of translog ops to flush after from 20000 to 5000, closes #820.
This commit is contained in:
parent
14d98a7319
commit
74838fe1aa
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in New Issue