-
Notifications
You must be signed in to change notification settings - Fork 189
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
New large-logs-dataset
challenge in elastic/logs
#632
Open
salvatore-campagna
wants to merge
6
commits into
elastic:master
Choose a base branch
from
salvatore-campagna:feature/new-large-logs-dataset-challenge
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+357
−1
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
033876c
feature; new large-logs-datset challenge in elastic/logs
salvatore-campagna d94ed9c
fix: include missing comma in for loop
salvatore-campagna 5b18d94
fix: always have a comma after for loop
salvatore-campagna 3b6edb5
fix: wait for completion
salvatore-campagna c5b68e4
fix: add missing comma before for loop
salvatore-campagna 5fb0a42
fix: commas and parenthesis are driving me crazy
salvatore-campagna File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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,353 @@ | ||
{% import "rally.helpers" as rally %} | ||
{ | ||
"name": "large-logs-dataset", | ||
"description": "Applies a query workload after replicating data to increase the datset size. 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": [ | ||
{ | ||
"name": "tune-recovery-settings", | ||
"operation": { | ||
"operation-type": "raw-request", | ||
"method": "PUT", | ||
"path": "/_cluster/settings", | ||
"body": { | ||
"transient": { | ||
"indices.recovery.max_bytes_per_sec": {{ p_recovery_max_bytes_per_sec | tojson}}, | ||
"cluster.routing.allocation.node_concurrent_recoveries": {{ p_node_concurrent_recoveries | tojson }} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "register-snapshot-repository", | ||
"operation": { | ||
"operation-type": "create-snapshot-repository", | ||
"repository": "{{ p_snapshot_repo_name }}", | ||
"body": { | ||
"type": {{ p_snapshot_repo_type | tojson }}, | ||
"settings": {{ p_snapshot_repo_settings | tojson(indent=2)}} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "mount-searchable-snapshot", | ||
"operation": { | ||
"operation-type": "mount-searchable-snapshot", | ||
"repository": "{{ p_snapshot_repo_name }}", | ||
"snapshot": "{{ p_snapshot_name }}", | ||
"index_pattern": ".ds-logs-*", | ||
"rename_pattern": "^.ds-", | ||
"rename_replacement": "", | ||
"storage": "shared_cache", | ||
"ignore_index_settings": ["index.hidden"] | ||
} | ||
}, | ||
{% include "tasks/index-setup.json" %}, | ||
{% 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')}}" | ||
} | ||
{%- if force_merge_max_num_segments is defined %}, | ||
{ | ||
"name": "refresh-after-index", | ||
"index": "logs-*", | ||
"operation": "refresh" | ||
}, | ||
{ | ||
"name": "wait-until-index-merges-fininshes", | ||
"operation": { | ||
"operation-type": "index-stats", | ||
"index": "logs-*", | ||
"condition": { | ||
"path": "_all.total.merges.current", | ||
"expected-value": 0 | ||
}, | ||
"retry-until-success": true, | ||
"include-in-reporting": false | ||
} | ||
}, | ||
{ | ||
"operation": { | ||
"operation-type": "force-merge", | ||
"index": "logs-*", | ||
"request-timeout": 36000, | ||
"max-num-segments": {{ force_merge_max_num_segments | tojson }} | ||
} | ||
}, | ||
{ | ||
"name": "wait-until-merges-finish", | ||
"operation": { | ||
"operation-type": "index-stats", | ||
"index": "logs-*", | ||
"condition": { | ||
"path": "_all.total.merges.current", | ||
"expected-value": 0 | ||
}, | ||
"retry-until-success": true, | ||
"include-in-reporting": false | ||
} | ||
}, | ||
{ | ||
"name": "refresh-after-force-merge", | ||
"index": "logs-*", | ||
"operation": "refresh" | ||
} | ||
{%- endif %} | ||
{# non-serverless-index-statistics-marker-start #}{%- if build_flavor != "serverless" or serverless_operator == true -%}, | ||
{ | ||
"name": "compression-stats", | ||
"operation": { | ||
"operation-type": "compression-statistics", | ||
"param-source": "create-datastream-source" | ||
} | ||
} | ||
{%- endif -%}{# non-serverless-index-statistics-marker-end #} | ||
, | ||
{% endif %} | ||
{% for snapshot_restore_iter in range(p_snapshot_restore_counts) %} | ||
{ | ||
"name": "recover-snapshot-{{ p_snapshot_name }}-{{ snapshot_restore_iter }}", | ||
"operation": { | ||
"operation-type": "restore-snapshot", | ||
"repository": {{ p_snapshot_repo_name | tojson }}, | ||
"snapshot": {{ p_snapshot_name | tojson }}, | ||
"wait-for-completion": true, | ||
"body": { | ||
"indices": {{ p_restore_data_streams | tojson }}, | ||
"ignore_unavailable": true, | ||
"include_global_state": false, | ||
"rename_pattern": "(.+)", | ||
"rename_replacement": "$1{{ p_snapshot_rename_suffix }}-{{ snapshot_restore_iter }}" | ||
} | ||
} | ||
}, | ||
{% endfor %} | ||
{ | ||
"name": "reset-recovery-settings-to-defaults", | ||
"operation": { | ||
"operation-type": "raw-request", | ||
"method": "PUT", | ||
"path": "/_cluster/settings", | ||
"body": { | ||
"transient": { | ||
"indices.recovery.max_bytes_per_sec": null, | ||
"cluster.routing.allocation.node_concurrent_recoveries": null | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"operation": "discovery-search-request-size-100", | ||
"clients": 1, | ||
"warmup-iterations": 0, | ||
"iterations": 50 | ||
}, | ||
{ | ||
"operation": "discovery-search-request-size-500", | ||
"clients": 1, | ||
"warmup-iterations": 0, | ||
"iterations": 50 | ||
}, | ||
|
||
{ | ||
"operation": "discovery-search-request-size-1000", | ||
"clients": 1, | ||
"warmup-iterations": 0, | ||
"iterations": 50 | ||
}, | ||
{ | ||
"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 %} | ||
] | ||
} | ||
}{%- if p_include_esql_queries %}, | ||
{ | ||
"operation": "esql_basic_count_group_0_limit_0", | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50, | ||
"tags": ["esql", "limit0"] | ||
}, | ||
{ | ||
"operation": "esql_basic_count_group_1_limit_0", | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50, | ||
"tags": ["esql", "limit0"] | ||
}, | ||
{ | ||
"operation": "esql_basic_count_group_2_limit_0", | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50, | ||
"tags": ["esql", "limit0"] | ||
}, | ||
{ | ||
"operation": "esql_basic_count_group_3_limit_0", | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50, | ||
"tags": ["esql", "limit0"] | ||
}, | ||
{ | ||
"operation": "esql_basic_count_group_4_limit_0", | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50, | ||
"tags": ["esql", "limit0"] | ||
}, | ||
{ | ||
"operation": "esql_time_range_and_date_histogram_two_groups_pre_filter_limit_0", | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50, | ||
"tags": ["esql", "limit0"] | ||
}, | ||
{ | ||
"operation": "esql_time_range_and_date_histogram_two_groups_post_filter_limit_0", | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50, | ||
"tags": ["esql", "limit0"] | ||
}, | ||
{ | ||
"operation": "esql_dissect_duration_and_stats_limit_0", | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50, | ||
"tags": ["esql", "limit0"] | ||
}, | ||
{ | ||
"operation": "esql_basic_count_group_0", | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50, | ||
"tags": ["esql", "count"] | ||
}, | ||
{ | ||
"operation": "esql_basic_count_group_1", | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50, | ||
"tags": ["esql", "count"] | ||
}, | ||
{ | ||
"operation": "esql_basic_count_group_2", | ||
"clients": 1, | ||
"warmup-iterations": 5, | ||
"iterations": 20, | ||
"tags": ["esql", "count"] | ||
}, | ||
{ | ||
"operation": "esql_basic_count_group_3", | ||
"clients": 1, | ||
"warmup-iterations": 5, | ||
"iterations": 10, | ||
"tags": ["esql", "count"] | ||
}, | ||
{ | ||
"operation": "esql_basic_count_group_4", | ||
"clients": 1, | ||
"warmup-iterations": 5, | ||
"iterations": 10, | ||
"tags": ["esql", "count"] | ||
}, | ||
{ | ||
"operation": "esql_time_range_and_date_histogram_two_groups_pre_filter", | ||
"clients": 1, | ||
"warmup-iterations": 5, | ||
"iterations": 20, | ||
"tags": ["esql", "date_histogram"] | ||
}, | ||
{ | ||
"operation": "esql_time_range_and_date_histogram_two_groups_post_filter", | ||
"clients": 1, | ||
"warmup-iterations": 5, | ||
"iterations": 20, | ||
"tags": ["esql", "date_histogram"] | ||
}, | ||
{ | ||
"operation": "esql_dissect_duration_and_stats", | ||
"clients": 1, | ||
"warmup-iterations": 5, | ||
"iterations": 20, | ||
"tags": ["esql", "dissect"] | ||
}{%- if build_flavor != "serverless" or serverless_operator == true %}, | ||
{ | ||
"operation": "disable_query_cache", | ||
"tags": ["esql", "settings"] | ||
}, | ||
{ | ||
"operation": "search_basic_count_group_0", | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50, | ||
"tags": ["esql", "count", "search"] | ||
}, | ||
{ | ||
"operation": "search_basic_count_group_1", | ||
"clients": 1, | ||
"warmup-iterations": 10, | ||
"iterations": 50, | ||
"tags": ["esql", "count", "search"] | ||
}, | ||
{ | ||
"operation": "search_basic_count_group_2", | ||
"clients": 1, | ||
"warmup-iterations": 2, | ||
"iterations": 5, | ||
"tags": ["esql", "count", "search"] | ||
}, | ||
{ | ||
"operation": "search_basic_count_group_3", | ||
"clients": 1, | ||
"warmup-iterations": 1, | ||
"iterations": 3, | ||
"tags": ["esql", "count", "search"] | ||
}, | ||
{ | ||
"operation": "search_basic_count_group_4", | ||
"clients": 1, | ||
"warmup-iterations": 1, | ||
"iterations": 3, | ||
"tags": ["esql", "count", "search"] | ||
}, | ||
{ | ||
"operation": "enable_query_cache", | ||
"tags": ["esql", "settings"] | ||
}{%- endif %} | ||
{%- endif %} | ||
] | ||
} |
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 |
---|---|---|
|
@@ -42,9 +42,10 @@ | |
{% set p_restore_data_streams = (restore_data_streams | default("logs-*")) %} | ||
{% set p_snapshot_metadata = (snapshot_metadata | default({}))%} | ||
{% set p_snapshot_rename_suffix = (snapshot_rename_suffix | default("") ) %} | ||
{% set p_snapshot_restore_counts = (snapshot_restore_counts | default(100) ) %} | ||
{% set p_dsl_poll_interval = (dsl_poll_interval | default(false) ) %} | ||
{% set p_dsl_default_rollover = (dsl_default_rollover | default(false) ) %} | ||
|
||
{% set p_skip_fleet_globals = (skip_fleet_globals | default(false) ) %} | ||
{% set p_worker_threads_enabled = (worker_threads_enabled | default(true)) %} | ||
|
||
{% set es_version = "7.13.2" %} | ||
|
@@ -200,11 +201,13 @@ | |
"template-path": "component_template" | ||
|
||
}, | ||
{% if p_skip_fleet_globals == false %} | ||
{ | ||
"name": ".fleet_globals-1", | ||
"template": "./templates/component/.fleet_globals-1.json", | ||
"template-path": "component_template" | ||
}, | ||
{% endif %} | ||
{ | ||
"name": "logs-apache.access@package", | ||
"template": "./templates/component/[email protected]", | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just copied this from another PR. Will eventually remove after the other PR is merged.
This is necessary to avoid an error which happens when deleting component templates.