diff --git a/geonames/test_procedures/default.json b/geonames/test_procedures/default.json index 77a93996..8257aa01 100644 --- a/geonames/test_procedures/default.json +++ b/geonames/test_procedures/default.json @@ -60,353 +60,178 @@ { "operation": "index-stats", "warmup-iterations": 500, - "iterations": 1000 - {%- if not target_throughput %} - ,"target-throughput": 90 - {%- 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": 1000, + "target-throughput": {{ index_stats_target_throughput or target_throughput | default(90) | tojson }}, + "clients": {{ index_stats_search_clients or search_clients | default(1) }} }, { "operation": "node-stats", "warmup-iterations": 100, - "iterations": 1000 - {%- if not target_throughput %} - ,"target-throughput": 90 - {%- 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": 1000, + "target-throughput": {{ node_stats_target_throughput or target_throughput | default(90) | tojson }}, + "clients": {{ node_stats_search_clients or search_clients | default(1) }} }, { "operation": "default", "warmup-iterations": 500, - "iterations": 1000 - {%- 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": 1000, + "target-throughput": {{ default_target_throughput or target_throughput | default(50) | tojson }}, + "clients": {{ default_search_clients or search_clients | default(1) }} }, { "operation": "term", "warmup-iterations": 500, - "iterations": 1000 - {%- if not target_throughput %} - ,"target-throughput": 100 - {%- 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": 1000, + "target-throughput": {{ term_target_throughput or target_throughput | default(100) | tojson }}, + "clients": {{ term_search_clients or search_clients | default(1) }} }, { "operation": "phrase", "warmup-iterations": 500, - "iterations": 1000 - {%- if not target_throughput %} - ,"target-throughput": 110 - {%- 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": 1000, + "target-throughput": {{ phrase_target_throughput or target_throughput | default(110) | tojson }}, + "clients": {{ phrase_search_clients or search_clients | default(1) }} }, { "operation": "country_agg_uncached", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 3 - {%- 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": {{ country_agg_uncached_target_throughput or target_throughput | default(3) | tojson }}, + "clients": {{ country_agg_uncached_search_clients or search_clients | default(1) }} }, { "operation": "country_agg_cached", "warmup-iterations": 1000, - "iterations": 1000 - {%- if not target_throughput %} - ,"target-throughput": 100 - {%- 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": 1000, + "target-throughput": {{ country_agg_cached_target_throughput or target_throughput | default(100) | tojson }}, + "clients": {{ country_agg_cached_search_clients or search_clients | default(1) }} }, { "operation": "scroll", "warmup-iterations": 200, "iterations": 100, - "#COMMENT": "Throughput is considered per request. So we issue one scroll request per second which will retrieve 25 pages" - {%- if not target_throughput %} - ,"target-throughput": 0.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 %} + "#COMMENT": "Throughput is considered per request. So we issue one scroll request per second which will retrieve 25 pages", + "target-throughput": {{ scroll_target_throughput or target_throughput | default(0.8) | tojson }}, + "clients": {{ scroll_search_clients or search_clients | default(1) }} }, { "operation": "expression", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.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": {{ expression_target_throughput or target_throughput | default(1.5) | tojson }}, + "clients": {{ expression_search_clients or search_clients | default(1) }} }, { "operation": "painless_static", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.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": {{ painless_static_target_throughput or target_throughput | default(1.5) | tojson }}, + "clients": {{ painless_static_search_clients or search_clients | default(1) }} }, { "operation": "painless_dynamic", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.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": {{ painless_dynamic_target_throughput or target_throughput | default(1.5) | tojson }}, + "clients": {{ painless_dynamic_search_clients or search_clients | default(1) }} }, { "operation": "decay_geo_gauss_function_score", "warmup-iterations": 200, - "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": {{ decay_geo_gauss_function_score_target_throughput or target_throughput | default(1) | tojson }}, + "clients": {{ decay_geo_gauss_function_score_search_clients or search_clients | default(1) }} }, { "operation": "decay_geo_gauss_script_score", "warmup-iterations": 200, - "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": {{ decay_geo_gauss_script_score_target_throughput or target_throughput | default(1) | tojson }}, + "clients": {{ decay_geo_gauss_script_score_search_clients or search_clients | default(1) }} }, { "operation": "field_value_function_score", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.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": {{ field_value_function_score_target_throughput or target_throughput | default(1.5) | tojson }}, + "clients": {{ field_value_function_score_search_clients or search_clients | default(1) }} }, { "operation": "field_value_script_score", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.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": {{ field_value_script_score_target_throughput or target_throughput | default(1.5) | tojson }}, + "clients": {{ field_value_script_score_search_clients or search_clients | default(1) }} }, { "operation": "large_terms", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.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": {{ large_terms_target_throughput or target_throughput | default(1.1) | tojson }}, + "clients": {{ large_terms_search_clients or search_clients | default(1) }} }, { "operation": "large_filtered_terms", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.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": {{ large_filtered_terms_target_throughput or target_throughput | default(1.1) | tojson }}, + "clients": {{ large_filtered_terms_search_clients or search_clients | default(1) }} }, { "operation": "large_prohibited_terms", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.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": {{ large_prohibited_terms_target_throughput or target_throughput | default(1.1) | tojson }}, + "clients": {{ large_prohibited_terms_search_clients or search_clients | default(1) }} }, { "operation": "desc_sort_population", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.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_population_target_throughput or target_throughput | default(1.5) | tojson }}, + "clients": {{ desc_sort_population_search_clients or search_clients | default(1) }} }, { "operation": "asc_sort_population", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.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_population_target_throughput or target_throughput | default(1.5) | tojson }}, + "clients": {{ asc_sort_population_search_clients or search_clients | default(1) }} }, { "operation": "asc_sort_with_after_population", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 1.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_population_target_throughput or target_throughput | default(1.5) | tojson }}, + "clients": {{ asc_sort_with_after_population_search_clients or search_clients | default(1) }} }, { "operation": "desc_sort_geonameid", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 6 - {%- 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_geonameid_target_throughput or target_throughput | default(6) | tojson }}, + "clients": {{ desc_sort_geonameid_search_clients or search_clients | default(1) }} }, { "operation": "desc_sort_with_after_geonameid", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 6 - {%- 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_geonameid_target_throughput or target_throughput | default(6) | tojson }}, + "clients": {{ desc_sort_with_after_geonameid_search_clients or search_clients | default(1) }} }, { "operation": "asc_sort_geonameid", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 6 - {%- 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_geonameid_target_throughput or target_throughput | default(6) | tojson }}, + "clients": {{ asc_sort_geonameid_search_clients or search_clients | default(1) }} }, { "operation": "asc_sort_with_after_geonameid", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 6 - {%- 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_geonameid_target_throughput or target_throughput | default(6) | tojson }}, + "clients": {{ asc_sort_with_after_geonameid_search_clients or search_clients | default(1) }} } ] }, diff --git a/geopoint/test_procedures/default.json b/geopoint/test_procedures/default.json index 37dff374..62c16d1a 100644 --- a/geopoint/test_procedures/default.json +++ b/geopoint/test_procedures/default.json @@ -62,58 +62,30 @@ { "operation": "polygon", "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": {{ polygon_target_throughput or target_throughput | default(2) | tojson }}, + "clients": {{ polygon_search_clients or search_clients | default(1) }} }, { "operation": "bbox", "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": {{ bbox_target_throughput or target_throughput | default(2) | tojson }}, + "clients": {{ bbox_search_clients or search_clients | default(1) }} }, { "operation": "distance", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 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": {{ distance_target_throughput or target_throughput | default(5) | tojson }}, + "clients": {{ distance_search_clients or search_clients | default(1) }} }, { "operation": "distanceRange", "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": {{ distanceRange_target_throughput or target_throughput | default(0.5) | tojson }}, + "clients": {{ distanceRange_search_clients or search_clients | default(1) }} } ] }, diff --git a/geopointshape/test_procedures/default.json b/geopointshape/test_procedures/default.json index e5181397..dcf81b33 100644 --- a/geopointshape/test_procedures/default.json +++ b/geopointshape/test_procedures/default.json @@ -60,30 +60,16 @@ { "operation": "polygon", "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": {{ polygon_target_throughput or target_throughput | default(2) | tojson }}, + "clients": {{ polygon_search_clients or search_clients | default(1) }} }, { "operation": "bbox", "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": {{ bbox_target_throughput or target_throughput | default(2) | tojson }}, + "clients": {{ bbox_search_clients or search_clients | default(1) }} } ] }, diff --git a/geoshape/test_procedures/default.json b/geoshape/test_procedures/default.json index 06e4e5bd..798eea25 100644 --- a/geoshape/test_procedures/default.json +++ b/geoshape/test_procedures/default.json @@ -127,30 +127,16 @@ { "operation": "polygon", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.3 - {%- 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": {{ polygon_target_throughput or target_throughput | default(0.3) | tojson }}, + "clients": {{ polygon_search_clients or search_clients | default(1) }} }, { "operation": "bbox", "warmup-iterations": 200, - "iterations": 100 - {%- if not target_throughput %} - ,"target-throughput": 0.25 - {%- 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": {{ bbox_target_throughput or target_throughput | default(0.25) | tojson }}, + "clients": {{ bbox_search_clients or search_clients | default(1) }} } ] } diff --git a/http_logs/test_procedures/default.json b/http_logs/test_procedures/default.json index cb89bb2c..2196d1f0 100644 --- a/http_logs/test_procedures/default.json +++ b/http_logs/test_procedures/default.json @@ -59,101 +59,52 @@ { "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 %} - }, - { - "operation": "200s-in-range", + "iterations": 100, + "target-throughput": {{ range_target_throughput or target_throughput | default(1) | tojson }}, + "clients": {{ range_search_clients or search_clients | default(1) }} + }, + { + "operation": "status-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 %} - }, - { - "operation": "400s-in-range", + "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) }} + }, + { + "operation": "status-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 +116,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 +184,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 +274,45 @@ { "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 %} - }, - { - "operation": "200s-in-range", + "iterations": 100, + "target-throughput": {{ range_target_throughput or target_throughput | default(1) | tojson }}, + "clients": {{ range_search_clients or search_clients | default(1) }} + }, + { + "operation": "status-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 %} - }, - { - "operation": "400s-in-range", + "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) }} + }, + { + "operation": "status-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 +324,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 +392,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 +828,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 +839,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 +850,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 +861,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 +872,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 +883,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 +894,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 +905,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 +924,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 +943,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) }} } ] }