From 2341aaa1e86a5791afeebc437106512a8df4eb0c Mon Sep 17 00:00:00 2001 From: Zhongnan Su Date: Wed, 26 May 2021 09:42:11 -0700 Subject: [PATCH] configure index settings to have default 1 replica and auto-expand upperbound 2 (#62) Signed-off-by: Zhongnan Su --- .../src/main/resources/report-definitions-settings.yml | 5 ++--- .../src/main/resources/report-instances-settings.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/reports-scheduler/src/main/resources/report-definitions-settings.yml b/reports-scheduler/src/main/resources/report-definitions-settings.yml index cef9a28a..dcc3cfb4 100644 --- a/reports-scheduler/src/main/resources/report-definitions-settings.yml +++ b/reports-scheduler/src/main/resources/report-definitions-settings.yml @@ -28,6 +28,5 @@ # Settings file for the report definitions index index: - number_of_shards: "1" - auto_expand_replicas: "0-1" - number_of_replicas: "0" + number_of_shards: "1" # The data size is not expected to be big so keeping it 1 shard + auto_expand_replicas: "0-2" diff --git a/reports-scheduler/src/main/resources/report-instances-settings.yml b/reports-scheduler/src/main/resources/report-instances-settings.yml index f50fa804..6159d067 100644 --- a/reports-scheduler/src/main/resources/report-instances-settings.yml +++ b/reports-scheduler/src/main/resources/report-instances-settings.yml @@ -28,6 +28,5 @@ # Settings file for the report instances index index: - number_of_shards: "1" - auto_expand_replicas: "0-1" - number_of_replicas: "0" + number_of_shards: "1" # The data size is not expected to be big so keeping it 1 shard + auto_expand_replicas: "0-2"