Skip to content
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 shrink index runner #569

Merged
merged 1 commit into from
Sep 10, 2018

Conversation

danielmitterdorfer
Copy link
Member

With this commit we add a new runner to Rally that executes the shrink
index API and all other relevant API calls in order to shrink an index.

With this commit we add a new runner to Rally that executes the shrink
index API and all other relevant API calls in order to shrink an index.
@danielmitterdorfer danielmitterdorfer added enhancement Improves the status quo :Load Driver Changes that affect the core of the load driver such as scheduling, the measurement approach etc. labels Sep 6, 2018
@danielmitterdorfer danielmitterdorfer added this to the 1.0.1 milestone Sep 6, 2018
@danielmitterdorfer
Copy link
Member Author

If you want to try this at home: I've used a modified version of the geonames track for my tests.

Copy link
Contributor

@dliappis dliappis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work as usual! LGTM.

I also tried executing it manually using the mentioned custom shrink-geonames track, which worked fine.

source_index = mandatory(params, "source-index", self)
target_index = mandatory(params, "target-index", self)
# we need to inject additional settings so we better copy the body
target_body = deepcopy(mandatory(params, "target-body", self))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for deepcopy!

@danielmitterdorfer
Copy link
Member Author

Thanks for the review!

@danielmitterdorfer danielmitterdorfer merged commit 6c6cdf8 into elastic:master Sep 10, 2018
@danielmitterdorfer danielmitterdorfer deleted the shrink-api branch September 10, 2018 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves the status quo :Load Driver Changes that affect the core of the load driver such as scheduling, the measurement approach etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants