-
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
Add auto follow pattern challenge #734
Merged
martijnvg
merged 17 commits into
elastic:master
from
martijnvg:elastic_logs_synthetic_source_recovery_more_improvement
Feb 4, 2025
Merged
Changes from 15 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a0f2791
Improve elastic/logs synthetic-source-recovery challenge.
martijnvg a360f53
whoops
martijnvg 0f46d48
update defaults
martijnvg e9a8e95
iter
martijnvg 1775eef
iter
martijnvg 7628788
add auto follow pattern challenge
martijnvg 4855d72
add index.codec param
martijnvg e2cb3e1
remove hard codec index.codec seting in template
martijnvg ac25d01
change default
martijnvg f01a2df
ter
martijnvg 2a8bab4
cleanup
martijnvg a3cd676
cleanup
martijnvg 14537ab
cleanup
martijnvg 4759497
fix linter
martijnvg fe52ef3
more new lines
martijnvg 9f619a0
iter
martijnvg 2d2dc7e
rename
martijnvg 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,47 @@ | ||
{% import "rally.helpers" as rally %} | ||
{% set p_follow_index_pattern = "copy-{{leader_index}}" %} | ||
{ | ||
"name": "auto-follow-pattern", | ||
"description": "", | ||
"default": false, | ||
"schedule": [ | ||
{# non-serverless-index-statistics-marker-start #}{%- if build_flavor != "serverless" or serverless_operator == true -%} | ||
{ | ||
"name": "setup-remote-for-local", | ||
"operation": { | ||
"operation-type": "setup-local-remote" | ||
} | ||
}, | ||
{ | ||
"name": "put_auto_follow_pattern", | ||
"operation": { | ||
"operation-type": "raw-request", | ||
"path": "/_ccr/auto_follow/my_pattern", | ||
"method": "PUT", | ||
"body": { | ||
"remote_cluster": "local", | ||
"leader_index_patterns": ["logs-*"], | ||
"follow_index_pattern": "{{ p_follow_index_pattern }}" | ||
} | ||
} | ||
}, | ||
{% include "tasks/index-setup.json" %}, | ||
{%- endif -%}{# non-serverless-index-statistics-marker-end #} | ||
{ | ||
"name": "bulk-index", | ||
"operation": { | ||
"operation-type": "raw-bulk", | ||
"param-source": "processed-source", | ||
"time-format": "milliseconds", | ||
"profile": "fixed_interval", | ||
"bulk-size": {{ p_bulk_size }}, | ||
"detailed-results": true | ||
}, | ||
"clients": {{ p_bulk_indexing_clients }}{% if p_throttle_indexing %}, | ||
"ignore-response-error-level": "{{error_level | default('non-fatal')}}", | ||
"schedule": "timestamp-throttler", | ||
"max-delay-secs": 1 | ||
{% 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
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
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
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.
Maybe we can use a better name for the challenge...something that reminds what this does? Something like "ccr-shard-recovery". I guess this track is not only useful for synthetic source... but probably it would provide useful info in Serverless too where we probably retrieve data from S3?
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.
+1 - I will add ccr replication to the name and add a description.
IIRC CCR currently only works in stateful. To keep the follower indices up to date it relies on operation based replication, which doesn't exist in serverless.