-
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.
With this commit we avoid the soon to be deprecated track property `cluster-settings` in the `pmc` track and instead implement a fallback using the update cluster settings API. Newer versions of Rally will expose this API via a runner but for older versions we need to implement it in the track. Relates #93
- Loading branch information
1 parent
93c7da7
commit fb4b596
Showing
2 changed files
with
20 additions
and
3 deletions.
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
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,10 @@ | ||
def put_settings(es, params): | ||
es.cluster.put_settings(body=params["body"]) | ||
|
||
|
||
def register(registry): | ||
# register a fallback for older Rally versions | ||
try: | ||
from esrally.driver.runner import PutSettings | ||
except ImportError: | ||
registry.register_runner("put-settings", put_settings) |