-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new concurrent querying challenge (#538)
- Loading branch information
Showing
2 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
73 changes: 73 additions & 0 deletions
73
elastic/logs/challenges/logging-querying-concurrent-stress.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters