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

(DIO-608) vmpooler SUT handed out multiple times #374

Merged
merged 1 commit into from
Apr 24, 2020
Merged

(DIO-608) vmpooler SUT handed out multiple times #374

merged 1 commit into from
Apr 24, 2020

Conversation

sbeaulie
Copy link
Contributor

Before this change if the smove returned false, we would continue handing out the VM
which presumably could still be in the 'ready' state. Upon 'delete' that ready VM would not be
picked up and return a 404 which is consistent with the behavior seen. Adding a metric to keep
track of the smove failures since this is not expected. I think some API logging would be good
to add in the future.

@sbeaulie sbeaulie requested a review from a team as a code owner April 23, 2020 21:08
Before this change if the smove returned false, we would continue handing out the VM
which presumably could still be in the 'ready' state. Upon 'delete' that ready VM would not be
picked up and return a 404 which is consistent with the behavior seen. Adding a metric to keep
track of the smove failures since this is not expected. I think some API logging would be good
to add in the future.
Copy link
Contributor

@highb highb left a comment

Choose a reason for hiding this comment

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

👍 vmpooler seems to run fine with this change. Maybe it will help us catch when it happens. I agree that better/more structured logging might be more helpful but this will help for now.

@highb highb merged commit 9b41a54 into master Apr 24, 2020
@sbeaulie
Copy link
Contributor Author

If this is the root cause of the isue it will also be fixed since it won't hand over VMs that it couldnt smove in redis.
There is currently no logger in the API, and we always look at the manager logs, but I think the API could use some logging library too, not sure if we have a pattern for sinatra apps.

@rooneyshuman rooneyshuman deleted the DIO-608 branch June 5, 2020 18:51
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