From 256d5fec73ae6d43bf0e760b17ae15cb360e49a2 Mon Sep 17 00:00:00 2001 From: Michael Oviedo Date: Wed, 2 Oct 2024 14:29:10 -0700 Subject: [PATCH] add configurable throughput + client params to http logs (#422) Signed-off-by: Michael Oviedo --- http_logs/test_procedures/default.json | 589 ++++++------------------- 1 file changed, 139 insertions(+), 450 deletions(-) diff --git a/http_logs/test_procedures/default.json b/http_logs/test_procedures/default.json index cb89bb2c..0c22dc56 100644 --- a/http_logs/test_procedures/default.json +++ b/http_logs/test_procedures/default.json @@ -59,101 +59,54 @@ { "operation": "default", "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 8 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ default_target_throughput or target_throughput | default(8) | tojson }}, + "clients": {{ default_search_clients or search_clients | default(1) }} }, { "name": "term", "operation": "term", "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 50 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ term_target_throughput or target_throughput | default(50) | tojson }}, + "clients": {{ term_search_clients or search_clients | default(1) }} }, { "operation": "range", "warmup-iterations": 100, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ range_target_throughput or target_throughput | default(1) | tojson }}, + "clients": {{ range_search_clients or search_clients | default(1) }} }, { + "name": "status-200s-in-range", "operation": "200s-in-range", "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 33 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ status_200s_in_range_target_throughput or target_throughput | default(33) | tojson }}, + "clients": {{ status_200s_in_range_search_clients or search_clients | default(1) }} }, { + "name": "status-400s-in-range", "operation": "400s-in-range", "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 50 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ status_400s_in_range_target_throughput or target_throughput | default(50) | tojson }}, + "clients": {{ status_400s_in_range_search_clients or search_clients | default(1) }} }, { "operation": "hourly_agg", "warmup-iterations": 50, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.2 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ hourly_agg_target_throughput or target_throughput | default(0.2) | tojson }}, + "clients": {{ hourly_agg_search_clients or search_clients | default(1) }} }, { "operation": "multi_term_agg", "warmup-iterations": 50, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.2 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ multi_term_agg_target_throughput or target_throughput | default(0.2) | tojson }}, + "clients": {{ multi_term_agg_search_clients or search_clients | default(1) }} }, { "operation": "scroll", @@ -165,86 +118,44 @@ { "operation": "desc_sort_size", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ desc_sort_size_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ desc_sort_size_search_clients or search_clients | default(1) }} }, { "operation": "asc_sort_size", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ asc_sort_size_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ asc_sort_size_search_clients or search_clients | default(1) }} }, { "operation": "desc_sort_timestamp", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ desc_sort_timestamp_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ desc_sort_timestamp_search_clients or search_clients | default(1) }} }, { "operation": "asc_sort_timestamp", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ asc_sort_timestamp_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ asc_sort_timestamp_search_clients or search_clients | default(1) }} }, { "operation": "desc_sort_with_after_timestamp", "warmup-iterations": 10, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ desc_sort_with_after_timestamp_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ desc_sort_with_after_timestamp_search_clients or search_clients | default(1) }} }, { "operation": "asc_sort_with_after_timestamp", "warmup-iterations": 10, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ asc_sort_with_after_timestamp_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ asc_sort_with_after_timestamp_search_clients or search_clients | default(1) }} }, { "name": "force-merge-1-seg", @@ -275,61 +186,33 @@ "name": "desc-sort-timestamp-after-force-merge-1-seg", "operation": "desc_sort_timestamp", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 2 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ desc_sort_timestamp_target_throughput or target_throughput | default(2) | tojson }}, + "clients": {{ desc_sort_timestamp_search_clients or search_clients | default(1) }} }, { "name": "asc-sort-timestamp-after-force-merge-1-seg", "operation": "asc_sort_timestamp", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 2 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ asc_sort_timestamp_target_throughput or target_throughput | default(2) | tojson }}, + "clients": {{ asc_sort_timestamp_search_clients or search_clients | default(1) }} }, { "name": "desc-sort-with-after-timestamp-after-force-merge-1-seg", "operation": "desc_sort_with_after_timestamp", "warmup-iterations": 10, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ desc_sort_with_after_timestamp_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ desc_sort_with_after_timestamp_search_clients or search_clients | default(1) }} }, { "name": "asc-sort-with-after-timestamp-after-force-merge-1-seg", "operation": "asc_sort_with_after_timestamp", "warmup-iterations": 10, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ asc_sort_with_after_timestamp_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ asc_sort_with_after_timestamp_search_clients or search_clients | default(1) }} } ] }, @@ -393,87 +276,47 @@ { "operation": "default", "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 8 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ default_target_throughput or target_throughput | default(8) | tojson }}, + "clients": {{ default_search_clients or search_clients | default(1) }} }, { "name": "term", "operation": "term", "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 50 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ term_target_throughput or target_throughput | default(50) | tojson }}, + "clients": {{ term_search_clients or search_clients | default(1) }} }, { "operation": "range", "warmup-iterations": 100, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ range_target_throughput or target_throughput | default(1) | tojson }}, + "clients": {{ range_search_clients or search_clients | default(1) }} }, { + "name": "status-200s-in-range", "operation": "200s-in-range", "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 33 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ status_200s_in_range_target_throughput or target_throughput | default(33) | tojson }}, + "clients": {{ status_200s_in_range_search_clients or search_clients | default(1) }} }, { + "name": "status-400s-in-range", "operation": "400s-in-range", "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 50 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ status_400s_in_range_target_throughput or target_throughput | default(50) | tojson }}, + "clients": {{ status_400s_in_range_search_clients or search_clients | default(1) }} }, { "operation": "hourly_agg", "warmup-iterations": 50, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.2 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ hourly_agg_target_throughput or target_throughput | default(0.2) | tojson }}, + "clients": {{ hourly_agg_search_clients or search_clients | default(1) }} }, { "operation": "scroll", @@ -485,86 +328,44 @@ { "operation": "desc_sort_size", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ desc_sort_size_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ desc_sort_size_search_clients or search_clients | default(1) }} }, { "operation": "asc_sort_size", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ asc_sort_size_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ asc_sort_size_search_clients or search_clients | default(1) }} }, { "operation": "desc_sort_timestamp", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ desc_sort_timestamp_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ desc_sort_timestamp_search_clients or search_clients | default(1) }} }, { "operation": "asc_sort_timestamp", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ asc_sort_timestamp_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ asc_sort_timestamp_search_clients or search_clients | default(1) }} }, { "operation": "desc_sort_with_after_timestamp", "warmup-iterations": 10, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ desc_sort_with_after_timestamp_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ desc_sort_with_after_timestamp_search_clients or search_clients | default(1) }} }, { "operation": "asc_sort_with_after_timestamp", "warmup-iterations": 10, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ asc_sort_with_after_timestamp_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ asc_sort_with_after_timestamp_search_clients or search_clients | default(1) }} }, { "name": "force-merge-1-seg", @@ -595,61 +396,33 @@ "name": "desc-sort-timestamp-after-force-merge-1-seg", "operation": "desc_sort_timestamp", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 2 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ desc_sort_timestamp_target_throughput or target_throughput | default(2) | tojson }}, + "clients": {{ desc_sort_timestamp_search_clients or search_clients | default(1) }} }, { "name": "asc-sort-timestamp-after-force-merge-1-seg", "operation": "asc_sort_timestamp", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 2 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ asc_sort_timestamp_target_throughput or target_throughput | default(2) | tojson }}, + "clients": {{ asc_sort_timestamp_search_clients or search_clients | default(1) }} }, { "name": "desc-sort-with-after-timestamp-after-force-merge-1-seg", "operation": "desc_sort_with_after_timestamp", "warmup-iterations": 10, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ desc_sort_with_after_timestamp_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ desc_sort_with_after_timestamp_search_clients or search_clients | default(1) }} }, { "name": "asc-sort-with-after-timestamp-after-force-merge-1-seg", "operation": "asc_sort_with_after_timestamp", "warmup-iterations": 10, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.5 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ asc_sort_with_after_timestamp_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ asc_sort_with_after_timestamp_search_clients or search_clients | default(1) }} } ] }, @@ -1059,16 +832,9 @@ "name": "match-all", "operation": "default", "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 8 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ default_target_throughput or target_throughput | default(8) | tojson }}, + "clients": {{ default_search_clients or search_clients | default(1) }} }, { "name": "match-all-baseline-search-pipeline", @@ -1077,16 +843,9 @@ "search-pipeline": "http-log-baseline-search-pipeline" }, "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 8 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ default_target_throughput or target_throughput | default(8) | tojson }}, + "clients": {{ default_search_clients or search_clients | default(1) }} }, { "name": "match-all-status-filter-search-pipeline", @@ -1095,16 +854,9 @@ "search-pipeline": "http-log-status-filter-search-pipeline" }, "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 8 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ default_target_throughput or target_throughput | default(8) | tojson }}, + "clients": {{ default_search_clients or search_clients | default(1) }} }, { "name": "match-all-rename-field-search-pipeline", @@ -1113,16 +865,9 @@ "search-pipeline": "http-log-rename-field-search-pipeline" }, "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 8 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ default_target_throughput or target_throughput | default(8) | tojson }}, + "clients": {{ default_search_clients or search_clients | default(1) }} }, { "name": "match-all-rename-100-field-search-pipeline", @@ -1131,16 +876,9 @@ "search-pipeline": "http-log-rename-100-field-search-pipeline" }, "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 8 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ default_target_throughput or target_throughput | default(8) | tojson }}, + "clients": {{ default_search_clients or search_clients | default(1) }} }, { "name": "match-all-dummy-scripting-search-pipeline", @@ -1149,16 +887,9 @@ "search-pipeline": "http-log-dummy-scripting-search-pipeline" }, "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 8 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ default_target_throughput or target_throughput | default(8) | tojson }}, + "clients": {{ default_search_clients or search_clients | default(1) }} }, { "name": "match-all-100-dummy-scripting-search-pipeline", @@ -1167,16 +898,9 @@ "search-pipeline": "http-log-100-dummy-scripting-search-pipeline" }, "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 8 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ default_target_throughput or target_throughput | default(8) | tojson }}, + "clients": {{ default_search_clients or search_clients | default(1) }} }, { "name": "match-all-all-processors-search-pipeline", @@ -1185,31 +909,17 @@ "search-pipeline": "http-log-all-processors-search-pipeline" }, "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 8 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ default_target_throughput or target_throughput | default(8) | tojson }}, + "clients": {{ default_search_clients or search_clients | default(1) }} }, { "name": "multi-term-filter", "operation": "multi-term-filter", "warmup-iterations": 500, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 50 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ multi_term_filter_target_throughput or target_throughput | default(50) | tojson }}, + "clients": {{ multi_term_filter_search_clients or search_clients | default(1) }} }, { "name": "term-status-filter-search-pipeline", @@ -1218,31 +928,17 @@ "request-params": { "search-pipeline": "http-log-status-filter-search-pipeline" }, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 50 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ term_target_throughput or target_throughput | default(50) | tojson }}, + "clients": {{ term_search_clients or search_clients | default(1) }} }, { "name": "range", "operation": "range", "warmup-iterations": 100, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ range_target_throughput or target_throughput | default(1) | tojson }}, + "clients": {{ range_search_clients or search_clients | default(1) }} }, { "name": "range-all-processors-search-pipeline", @@ -1251,16 +947,9 @@ "search-pipeline": "http-log-all-processors-search-pipeline" }, "warmup-iterations": 100, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1 - {%- elif target_throughput is string and target_throughput.lower() == 'none' %} - {%- else %} - ,"target-throughput": {{ target_throughput | tojson }} - {%- endif %} - {%-if search_clients is defined and search_clients %} - ,"clients": {{ search_clients | tojson}} - {%- endif %} + "iterations": 100, + "target-throughput": {{ range_target_throughput or target_throughput | default(1) | tojson }}, + "clients": {{ range_search_clients or search_clients | default(1) }} } ] }