-
Notifications
You must be signed in to change notification settings - Fork 819
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
simple-game-server: Adds a graceful termination delay #3436
simple-game-server: Adds a graceful termination delay #3436
Conversation
Build Succeeded 👏 Build Id: c999224b-e8d3-4a38-8b3b-a55c2fe9edb8 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
* Adds `gracefulTerminationDelaySec` to imitate a gameserver delaying after SIGTERM (eviction). * Adds test/eviction/evictpod.go, which I used to test the above. This should allow easier testing in autoscaling scenarios (including eventually possibly e2e tests with eviction: safe: Always).
91281e5
to
f9b064a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a few nits. I also verified that passing a negative time to sleep is ok and doesn't need any additional error checking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once this merges and we push the new image version, we need to update all of the references across the code base. Can you do that in a follow up PR?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: roberthbailey, zmerlynn The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Yup, that was the plan! |
New changes are detected. LGTM label has been removed. |
Build Succeeded 👏 Build Id: 181b4c0a-213d-4b6e-845c-ccfe6c2bcc16 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version:
|
I pushed simple-game-server:0.19 after googleforgames#3436 was merged, update all references to verify it still works with everything.
I pushed simple-game-server:0.19 after #3436 was merged, update all references to verify it still works with everything.
Adds
gracefulTerminationDelaySec
to imitate a gameserver delaying after SIGTERM (eviction).Adds test/eviction/evictpod.go, which I used to test the above.
This should allow easier testing in autoscaling scenarios (including eventually possibly e2e tests with eviction: safe: Always).