We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32e87fc commit 7e3ee6dCopy full SHA for 7e3ee6d
server/src/main/java/org/opensearch/indices/recovery/RecoverySettings.java
@@ -177,9 +177,11 @@ public class RecoverySettings {
177
);
178
179
// choose 512KB-16B to ensure that the resulting byte[] is not a humongous allocation in G1.
180
+ public static final ByteSizeValue DEFAULT_CHUNK_SIZE = new ByteSizeValue(512 * 1024 - 16, ByteSizeUnit.BYTES);
181
+
182
public static final Setting<ByteSizeValue> INDICES_RECOVERY_CHUNK_SIZE_SETTING = Setting.byteSizeSetting(
183
"indices.recovery.chunk_size",
- new ByteSizeValue(512 * 1024 - 16, ByteSizeUnit.BYTES),
184
+ DEFAULT_CHUNK_SIZE,
185
new ByteSizeValue(1, ByteSizeUnit.BYTES),
186
new ByteSizeValue(100, ByteSizeUnit.MB),
187
Property.Dynamic,
0 commit comments