Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 1] add configurable throughput + client params to geopoint, geopointshape, geopoint workloads #432

Merged
merged 1 commit into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 12 additions & 40 deletions geopoint/test_procedures/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
}
]
},
Expand Down
26 changes: 6 additions & 20 deletions geopointshape/test_procedures/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
}
]
},
Expand Down
26 changes: 6 additions & 20 deletions geoshape/test_procedures/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
}
]
}