agones icon indicating copy to clipboard operation
agones copied to clipboard

Possibility to toggle SDKGracefulTermination

Open clrxbl opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe. I set my gameserver terminationGracePeriodSeconds value to something quite high so my gameserver has time to finish any games and other custom logic. With SDKGracefulTermination not existing in older Agones version, this isn't an issue, but after 1.33.0, this causes a behaviour issue where the gameserver container could cease existing while the Agones SDK sidecar will continue to always run until the terminationGracePeriod ends.

Describe the solution you'd like I would like the ability to be able to turn SDKGracefulTermination off.

Describe alternatives you've considered N/A

Additional context N/A

clrxbl avatar Sep 28 '23 18:09 clrxbl

Any reason your game server binary can't call SDK.Shutdown() at termination time, so everything will terminate appropriately?

markmandel avatar Sep 28 '23 18:09 markmandel

Any reason your game server binary can't call SDK.Shutdown() at termination time, so everything will terminate appropriately?

You're quick to respond! I was mid-edit on the initial issue. This is something that I could do but I realize that this is not always an option in the event that the gameserver crashes/deadlocks before it hits this logic.

clrxbl avatar Sep 28 '23 18:09 clrxbl

If it crashes / goes Unhealthy, then it ends up in Shutdown state (after a transition through Unhealthy) - so it should end up not hanging.

So my recommendation - handle termination correctly with SDK.Shutdown() and you should be good to go.

markmandel avatar Sep 28 '23 19:09 markmandel

'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions '

github-actions[bot] avatar Aug 15 '24 10:08 github-actions[bot]