-
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 index_sorting, synthetic_source_mode and force_merge_max_num_segments track parameters to elastic/logs track #522
Add index_sorting, synthetic_source_mode and force_merge_max_num_segments track parameters to elastic/logs track #522
Conversation
This allows to enable indexing sorting, that either sorts by hostname and timestamp or timestamp and hostname. When index sorting is enabled than synthetic source is also enabled.
} | ||
}, | ||
"mappings": { | ||
{% if index_sorting %} |
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.
Nit: it's a bit awkward that index sorting enables synthetic source, is there any downside with configuring it with another parameter?
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.
There is no downside. But I did this with the index.mode=logs in mind. I think this would both enable index sorting and synthetic source. But I can add a synthetic source parameter for now, which would give us more benchmarking flexibility.
@@ -1785,6 +1785,9 @@ | |||
"message": { | |||
"norms": false, | |||
"type": "text" | |||
{% if index_sorting %}, | |||
"store": true | |||
{% endif %} |
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.
Hopefully one day this will work automagically when synthetic source is enabled.
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.
Yes, we should just fix this. For the match_only_text
this is working as expected. If synthetic source is enabled then store defaults to true.
|
That field is also covered by this: https://github.com/elastic/rally-tracks/pull/522/files#diff-6da3dab0371882c35be61a7d2fffa07d9b9c39351ebda2987e953459eb104104R161 |
OK, cool. I was surprised that we only had to set |
Yes, most text fields are defined as sub fields. So no need to store these text fields. |
@pmpailis why was this pr closed? I intend to merge this in after I have completed my investigation. |
Hey @martijnvg ! No idea how this happened to be honest. Just merged my PR and at the same time a number of other open PRs were closed :/ Please reopen this one and apologies for the trouble. (I think that it'll close instantly again if I do it) |
@elasticmachine update branch |
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.
LGTM. as I understand it the default run mode isnt being changed. Do you have any plans to update existing nightly benchmark with these new parameters, or are they going to be kept as is? (thus keeping currently nightlies comparable)
No, for now we plan to keep the existing nightly benchmark as is. The changes added are initially be used for one of benchmark runs for specific research around storage optimisations for logs. In the future we may make changes that will also affect the nightly benchmark, however for now this isn't the case. |
This allows to enable indexing sorting, that either sorts by hostname and timestamp or
timestamp and hostname.
Additionally this change adds force_merge_max_num_segments and synthetic_source parameters.
The former controls the number of segments after indexing and the latter whether synthetic source is enabled.
All newly added track params are unset by default, meaning index sorting, synthetic source and force merging to N segments are not enabled.