-
Notifications
You must be signed in to change notification settings - Fork 313
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
Configure persistent datastore index settings #1310
Conversation
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.
This looks good and works fine in tests. Left a few comments.
I made the changes - but given that it shouldn't be possible for an instance of |
Additional settings like |
Right - I guess I want to ensure that if any changes are made to the |
I don't think this will ever happen. @danielmitterdorfer do you feel we need a unit test for this unlikely scenario? |
No, that will not happen. The index template provider is designed to be used only with an |
Thanks @danielmitterdorfer, @dliappis. I had the misconception that 'In-memory' == local metrics store - so it's obvious now that we'd never implement a template provider 🤦 . I removed the unit test for the |
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
…faults (#1312) This commit changes the defaults for the number of shards and replicas used in the Elasticsearch datastore first introduced in #1310: instead of hardcoding them -- when unset -- to `1p/0r`, we rely on ES defaults[1] and only attempt to override these index settings if they've been explicitly specified in the `ini` file. Additionally, we also remove the hardcoded `refresh_interval: 5s` setting, to allow us to take advantage of Elasticsearch's default refresh behavior ([2], [3]). \[1\]: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#_static_index_settings \[2\]: https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-refresh.html#refresh-api-desc \[3\]: https://www.elastic.co/guide/en/elasticsearch/reference/current/index-modules.html#dynamic-index-settings
With this commit we add the ability for users to specify the number of
primary and replica shard counts for
rally-*
indices when using apersistent metrics store through the configuration of
reporting
settingsin
rally.ini
.Closes #1309