Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit 74840e2

Browse files
author
Chris Wiechmann
committed
Limit for max_primary_shard_size should be 1GB instead of 5GB
1 parent 926e9b4 commit 74840e2

File tree

1 file changed

+2
-2
lines changed
  • apibuilder4elastic/custom_flow_nodes/api-builder-plugin-elk-solution-utils/src

1 file changed

+2
-2
lines changed

apibuilder4elastic/custom_flow_nodes/api-builder-plugin-elk-solution-utils/src/actions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,8 @@ async function setupILMRententionPeriod(params, options) {
296296
if(isNaN(maxPrimaryShardSize)) {
297297
throw new Error(`The given max_primary_shard_size: ${periodConfig.rollover.max_primary_shard_size} for index: ${indexName} is not a valid number.`);
298298
}
299-
if(maxPrimaryShardSize<5) {
300-
throw new Error(`The given max_primary_shard_size: ${maxPrimaryShardSize} for index: ${indexName} is too small. Please configure at least 5GB.`);
299+
if(maxPrimaryShardSize<1) {
300+
throw new Error(`The given max_primary_shard_size: ${maxPrimaryShardSize} for index: ${indexName} is too small. Please configure at least 1GB.`);
301301
}
302302
ilmConfig.policy.phases.hot.actions.rollover.max_primary_shard_size = `${maxPrimaryShardSize}gb`;
303303
}

0 commit comments

Comments
 (0)