From 502a56942cc0608ba9ac759e5db0d64f17ee2d5c Mon Sep 17 00:00:00 2001 From: Grzegorz Banasiak Date: Fri, 23 Feb 2024 12:25:56 +0100 Subject: [PATCH] Adjust update-custom-package-templates --- elastic/logs/tasks/index-setup.json | 2 ++ elastic/logs/track.json | 1 + 2 files changed, 3 insertions(+) diff --git a/elastic/logs/tasks/index-setup.json b/elastic/logs/tasks/index-setup.json index 3e505938..202d4e8c 100644 --- a/elastic/logs/tasks/index-setup.json +++ b/elastic/logs/tasks/index-setup.json @@ -77,8 +77,10 @@ "settings": { "index" : { {# non-serverless-index-settings-marker-start #}{%- if build_flavor != "serverless" or serverless_operator == true -%} + {% if p_include_non_serverless_index_settings %} "number_of_replicas" : "{{ number_of_replicas | default('1')}}", "number_of_shards" : "{{ number_of_shards | default('1')}}" + {% endif %} {%- endif -%}{# non-serverless-index-settings-marker-end #} } }, diff --git a/elastic/logs/track.json b/elastic/logs/track.json index 028a900d..6b3ff0be 100644 --- a/elastic/logs/track.json +++ b/elastic/logs/track.json @@ -20,6 +20,7 @@ {% set p_query_warmup_time_period = (query_warmup_time_period | default(120)) %} {% set p_query_time_period = (query_time_period | default(900)) %} {% set p_query_request_params = (query_request_params | default({}))%} +{% set p_include_non_serverless_index_settings = (include_non_serverless_index_settings | default(build_flavor != "serverless")) %} {% set p_include_esql_queries = (include_esql_queries | default(build_flavor != "serverless")) %} {% set p_throttle_indexing = (throttle_indexing | default(false)) %}