diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/store/memory/ByteBufferStore.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/store/memory/ByteBufferStore.java index eecb510212e..c279801ad1e 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/store/memory/ByteBufferStore.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/store/memory/ByteBufferStore.java @@ -45,7 +45,7 @@ public class ByteBufferStore extends AbstractStore { @Inject public ByteBufferStore(ShardId shardId, @IndexSettings Settings indexSettings) { super(shardId, indexSettings); - this.bufferSize = componentSettings.getAsSize("bufferSize", new SizeValue(1, SizeUnit.KB)); + this.bufferSize = componentSettings.getAsSize("bufferSize", new SizeValue(100, SizeUnit.KB)); this.cacheSize = componentSettings.getAsSize("cacheSize", new SizeValue(20, SizeUnit.MB)); this.direct = componentSettings.getAsBoolean("direct", true); this.warmCache = componentSettings.getAsBoolean("warmCache", true); diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/store/memory/HeapStore.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/store/memory/HeapStore.java index 21c9a16da55..6e223373f65 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/store/memory/HeapStore.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/store/memory/HeapStore.java @@ -43,7 +43,7 @@ public class HeapStore extends AbstractStore { @Inject public HeapStore(ShardId shardId, @IndexSettings Settings indexSettings) { super(shardId, indexSettings); - this.bufferSize = componentSettings.getAsSize("bufferSize", new SizeValue(1, SizeUnit.KB)); + this.bufferSize = componentSettings.getAsSize("bufferSize", new SizeValue(100, SizeUnit.KB)); this.cacheSize = componentSettings.getAsSize("cacheSize", new SizeValue(20, SizeUnit.MB)); this.warmCache = componentSettings.getAsBoolean("warmCache", true);