From cdea0e4de8473ce04022c7d281a0da785347d792 Mon Sep 17 00:00:00 2001 From: Milton Hultgren Date: Thu, 12 Dec 2024 14:43:45 +0100 Subject: [PATCH] [EEM] Add auto expand replicas setting (#204011) To allow single node clusters to still reach a green state. --- .../server/lib/v2/definitions/setup_entity_definitions_index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts index 4c43d68a4e116..05d7b2de7cb97 100644 --- a/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts +++ b/x-pack/platform/plugins/shared/entity_manager/server/lib/v2/definitions/setup_entity_definitions_index.ts @@ -22,6 +22,8 @@ const definitionsIndexTemplate = { template: { settings: { hidden: true, + number_of_shards: 1, + auto_expand_replicas: '0-1', }, aliases: { [DEFINITIONS_ALIAS]: {