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 percentage functionality #34

Closed
wants to merge 2 commits into from

Conversation

klautcomputing
Copy link
Contributor

This is my idea for: #20

Changes:

  • chaoskube now supports the --percentage flag
  • --percentage takes an integer as option
  • when using e.g. --percentage 10 ten percent of the current pods will be killed. chaoskube checks after every pod termination how many candidates there are and then calculates how long it will have to wait until it has to terminate another pod so that it reaches x percent per hour. This will handle more services getting deploy or old ones removed without having to restart chaoskube
  • chaoskube needs to be invoked with either --interval or --percentage, there is no default anymore

Let me know what you think.

I removed log.Debugf("Sleeping for %s...", interval) because we are technically not sleeping anymore. And I only inform about interval updates. Feel free to ask me to bring that functionality back if you want it to stay.

@klautcomputing
Copy link
Contributor Author

Oh yeah, I didn't write tests... yet. Let me know if you want this to be merged into master and I will write tests for it.

@linki
Copy link
Owner

linki commented Jul 6, 2017

@klautcomputing Thanks for your work. I would be happy to merge this to master once you add the tests.

@klautcomputing
Copy link
Contributor Author

You are welcome. I will do so either today or tomorrow.

@klautcomputing
Copy link
Contributor Author

this is not needed anymore see #47 for a better approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants