From 673d94af2f784e6eed6fcd912e1f78f29bee8d84 Mon Sep 17 00:00:00 2001 From: Subhobrata Dey Date: Mon, 21 Oct 2024 07:55:40 +0000 Subject: [PATCH 1/2] update min number of replicas to 0 and enable dedicated query indices to true Signed-off-by: Subhobrata Dey --- .../securityanalytics/settings/SecurityAnalyticsSettings.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/opensearch/securityanalytics/settings/SecurityAnalyticsSettings.java b/src/main/java/org/opensearch/securityanalytics/settings/SecurityAnalyticsSettings.java index 53a341234..cc11fe36d 100644 --- a/src/main/java/org/opensearch/securityanalytics/settings/SecurityAnalyticsSettings.java +++ b/src/main/java/org/opensearch/securityanalytics/settings/SecurityAnalyticsSettings.java @@ -12,7 +12,7 @@ public class SecurityAnalyticsSettings { public static final String CORRELATION_INDEX = "index.correlation"; - public static final int minSystemIndexReplicas = 1; + public static final int minSystemIndexReplicas = 0; public static final int maxSystemIndexReplicas = 20; public static Setting INDEX_TIMEOUT = Setting.positiveTimeSetting("plugins.security_analytics.index_timeout", @@ -251,7 +251,7 @@ public static final List> settings() { public static final Setting ENABLE_DETECTORS_WITH_DEDICATED_QUERY_INDICES = Setting.boolSetting( "plugins.security_analytics.enable_detectors_with_dedicated_query_indices", - false, + true, Setting.Property.NodeScope, Setting.Property.Dynamic ); From b1005f9aa57e32be31861f8ff2db5beb3c045280 Mon Sep 17 00:00:00 2001 From: Subhobrata Dey Date: Mon, 21 Oct 2024 08:03:48 +0000 Subject: [PATCH 2/2] revert dedicated query indices setting to false Signed-off-by: Subhobrata Dey --- .../securityanalytics/settings/SecurityAnalyticsSettings.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/opensearch/securityanalytics/settings/SecurityAnalyticsSettings.java b/src/main/java/org/opensearch/securityanalytics/settings/SecurityAnalyticsSettings.java index cc11fe36d..337a23bdd 100644 --- a/src/main/java/org/opensearch/securityanalytics/settings/SecurityAnalyticsSettings.java +++ b/src/main/java/org/opensearch/securityanalytics/settings/SecurityAnalyticsSettings.java @@ -251,7 +251,7 @@ public static final List> settings() { public static final Setting ENABLE_DETECTORS_WITH_DEDICATED_QUERY_INDICES = Setting.boolSetting( "plugins.security_analytics.enable_detectors_with_dedicated_query_indices", - true, + false, Setting.Property.NodeScope, Setting.Property.Dynamic );