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

Added experimental script to kill old marathon deployments #249

Merged
merged 1 commit into from
Feb 11, 2016

Conversation

solarkennedy
Copy link
Contributor

I don't know "why" this has started happening, and I don't consider this to be a normal condition, but somehow we get these marathon deployments that are left behind for a long period of time, and they seem to harm bounces.

This seems like a good start at remediation, just killing deployments that have been around for a long time?

Almost all the time what is left behind are the remnants of the "kill and scale" procedures we do, so I "think" this is safe? I'll start by manually running this in a few clusters to kick them, and then maybe automate this.



def datetime_seconds_ago(seconds):
now = datetime.datetime.now(tz.tzutc())
Copy link
Contributor

Choose a reason for hiding this comment

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

Use your now() function

@nhandler
Copy link
Contributor

Fix and Ship It!
Fix and Ship It!

solarkennedy added a commit that referenced this pull request Feb 11, 2016
Added experimental script to kill old marathon deployments
@solarkennedy solarkennedy merged commit 485e5d2 into master Feb 11, 2016
@solarkennedy solarkennedy deleted the kill_old_deployments branch February 11, 2016 01:55
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