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

Add new concurrent querying challenge #538

Merged
merged 4 commits into from
Jan 17, 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
73 changes: 73 additions & 0 deletions elastic/logs/challenges/logging-querying-concurrent-stress.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
{% import "rally.helpers" as rally %}
{
"name": "logging-querying-concurrent-stress",
"description": "Applies a query workload with emphasis on many concurrent clients. Ensures data streams exist so queries can be run, but does not remove existing data.",
"parameters": {
"generate-data": {{ true | tojson if bulk_start_date and bulk_end_date else false | tojson }}
},
"schedule": [
{% include "tasks/index-setup.json" %},
{
"name": "concurrency-settings",
"operation": {
"operation-type": "raw-request",
"method": "PUT",
"path": "/_cluster/settings",
"body": {
"transient": {
"search.worker_threads_enabled": {{ p_worker_threads_enabled | tojson }}
}
}
}
},
{% if bulk_start_date and bulk_end_date %}
{
"name": "bulk-index",
"operation": {
"operation-type": "raw-bulk",
"param-source": "processed-source",
"time-format": "milliseconds",
"profile": "fixed_interval",
"init-load": true,
"bulk-size": {{ p_bulk_size }},
"detailed-results": true
},
"clients": {{ p_bulk_indexing_clients }},
"ignore-response-error-level": "{{error_level | default('non-fatal')}}"
},
{% endif %}
{
"operation": "disable_query_cache",
"tags": ["settings"]
},
{
"name": "logging-queries",
"parallel": {
"time-period": {{ p_query_time_period }},
"warmup-time-period": {{ p_query_warmup_time_period }},
"tasks": [
{% for workflow in p_query_workflows %}
{
"name": {{workflow | tojson }},
"operation": {
"operation-type": "composite",
"param-source": "workflow-selector",
"workflow": {{workflow | tojson }},
"task-offset": {{ loop.index }},
"request-params": {{ p_query_request_params | tojson(indent=2) }}
},
"think-time-interval": {{ p_user_think_time }},
"workflow-interval": {{ p_user_workflow_time }},
"clients": {{ p_search_clients }},
"schedule": "workflow-scheduler"
}{{ ", " if not loop.last else "" }}
{% endfor %}
]
}
},
{
"operation": "enable_query_cache",
"tags": ["settings"]
}
]
}
2 changes: 2 additions & 0 deletions elastic/logs/track.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
{% set p_snapshot_metadata = (snapshot_metadata | default({}))%}
{% set p_snapshot_rename_suffix = (snapshot_rename_suffix | default("") ) %}

{% set p_worker_threads_enabled = (worker_threads_enabled | default(true)) %}

{% set es_version = "7.13.2" %}

{% set p_integration_ratios = (integration_ratios | default({
Expand Down