Skip to content

Commit a2bcd49

Browse files
committed
Core: change default xlog size from 200 MB to 512 MB
Closes #9341
1 parent f8e5c22 commit a2bcd49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/reference/index-modules/translog.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ After how many operations to flush. Defaults to `unlimited`.
1313

1414
`index.translog.flush_threshold_size`::
1515

16-
Once the translog hits this size, a flush will happen. Defaults to `200mb`.
16+
Once the translog hits this size, a flush will happen. Defaults to `512mb`.
1717

1818
`index.translog.flush_threshold_period`::
1919

src/main/java/org/elasticsearch/index/translog/TranslogService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public TranslogService(ShardId shardId, @IndexSettings Settings indexSettings, I
8181
this.indexShard = indexShard;
8282
this.translog = translog;
8383
this.flushThresholdOperations = componentSettings.getAsInt(FLUSH_THRESHOLD_OPS_KEY, componentSettings.getAsInt("flush_threshold", Integer.MAX_VALUE));
84-
this.flushThresholdSize = componentSettings.getAsBytesSize(FLUSH_THRESHOLD_SIZE_KEY, new ByteSizeValue(200, ByteSizeUnit.MB));
84+
this.flushThresholdSize = componentSettings.getAsBytesSize(FLUSH_THRESHOLD_SIZE_KEY, new ByteSizeValue(512, ByteSizeUnit.MB));
8585
this.flushThresholdPeriod = componentSettings.getAsTime(FLUSH_THRESHOLD_PERIOD_KEY, TimeValue.timeValueMinutes(30));
8686
this.interval = componentSettings.getAsTime(FLUSH_THRESHOLD_INTERVAL_KEY, timeValueMillis(5000));
8787
this.disableFlush = componentSettings.getAsBoolean(FLUSH_THRESHOLD_DISABLE_FLUSH_KEY, false);

0 commit comments

Comments
 (0)