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

Cleanup old decommissioned agents #2253

Merged
merged 3 commits into from
Jan 19, 2022
Merged

Cleanup old decommissioned agents #2253

merged 3 commits into from
Jan 19, 2022

Conversation

WH77
Copy link
Contributor

@WH77 WH77 commented Dec 22, 2021

Assuming that if an agent is decommissioned (not stuck decommissioning) on startup and there aren't resources associated with it in the mesos master, it should be safe to clean it up the same way as dead/missing agents.

cc - @ssalinas

@ssalinas
Copy link
Member

ssalinas commented Jan 3, 2022

I don't know that this is actually safe. I think we also need the condition that we have not received offers from it in that amount of time as well. Currently, if an agent is still active with the mesos master, but decommissioned for us, we are continually receiving offers. So, if we were to delete it from our agents list -> get a new offer, we will actually end up adding it back as active. There is a maintenance mode in mesos master (old issue #948) that we could integrate with to stop offers coming in when decomissioned

@ssalinas
Copy link
Member

🚢

@WH77 WH77 merged commit c025e0b into master Jan 19, 2022
@WH77 WH77 deleted the decommissioned branch January 19, 2022 16:09
@ssalinas ssalinas added this to the 1.5.0 milestone May 4, 2022
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