Skip to content

Commit

Permalink
Add configurable parameters to geonames operations (opensearch-projec…
Browse files Browse the repository at this point in the history
…t#498)

* add configurable params to leftover operations in geonames

Signed-off-by: Michael Oviedo <[email protected]>

* remove client operations

Signed-off-by: Michael Oviedo <[email protected]>

---------

Signed-off-by: Michael Oviedo <[email protected]>
  • Loading branch information
OVI3D0 committed Nov 14, 2024
1 parent 26c8da7 commit b6ecb1d
Showing 1 changed file with 17 additions and 45 deletions.
62 changes: 17 additions & 45 deletions geonames/test_procedures/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -449,59 +449,31 @@
},
{
"operation": "significant_text_selective",
"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 %}
},
"warmup-iterations": {{ significant_text_selective_warmup_iterations or warmup_iterations | default(200) | tojson }},
"iterations": {{ significant_text_selective_iterations or iterations | default(100) | tojson }},
"target-throughput": {{ significant_text_selective_target_throughput or target_throughput | default(2) | tojson }},
"clients": {{ significant_text_selective_search_clients or search_clients | tojson}}
},
{
"operation": "significant_text_sampled_selective",
"warmup-iterations": 200,
"iterations": 100
{%- if not target_throughput %}
,"target-throughput": 20
{%- 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 %}
"warmup-iterations": {{ significant_text_sampled_selective_warmup_iterations or warmup_iterations | default(200) | tojson }},
"iterations": {{ significant_text_sampled_selective_iterations or iterations | default(100) | tojson }},
"target-throughput": {{ significant_text_sampled_selective_target_throughput or target_throughput | default(20) | tojson }},
"clients": {{ significant_text_sampled_selective_search_clients or search_clients | tojson}}
},
{
"operation": "significant_text_unselective",
"warmup-iterations": 50,
"iterations": 20
{%- if not target_throughput %}
,"target-throughput": 0.04
{%- 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 %}
"warmup-iterations": {{ significant_text_unselective_warmup_iterations or warmup_iterations | default(50) | tojson }},
"iterations": {{ significant_text_unselective_iterations or iterations | default(20) | tojson }},
"target-throughput": {{ significant_text_unselective_target_throughput or target_throughput | default(0.04) | tojson }},
"clients": {{ significant_text_unselective_search_clients or search_clients | tojson}}
},
{
"operation": "significant_text_sampled_unselective",
"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 %}
"warmup-iterations": {{ significant_text_sampled_unselective_warmup_iterations or warmup_iterations | default(200) | tojson }},
"iterations": {{ significant_text_sampled_unselective_iterations or iterations | default(100) | tojson }},
"target-throughput": {{ significant_text_sampled_unselective_target_throughput or target_throughput | default(6) | tojson }},
"clients": {{ significant_text_sampled_unselective_search_clients or search_clients | tojson}}
}
]
}

0 comments on commit b6ecb1d

Please sign in to comment.