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

Cron Job to restart the game server in-place #3907

Open
stevefan1999-personal opened this issue Jul 16, 2024 · 2 comments
Open

Cron Job to restart the game server in-place #3907

stevefan1999-personal opened this issue Jul 16, 2024 · 2 comments
Labels
kind/feature New features for Agones stale Pending closure unless there is a strong objection.

Comments

@stevefan1999-personal
Copy link

stevefan1999-personal commented Jul 16, 2024

This is an extension of #2781, because some game servers apparently have memory leak or game state lost (because game industry loved spaghetti code that worked quick'n'dirty with cowboy programmers because it is a hyper-active industry) when they are running long enough, so we need a periodic time restart (say like during 4AM in midnight) to not let the game server die. Of course, I could always delete the game server externally, but that would also mean a lot of "pod-churning" to the scheduler.

We also need to handle extra cases such as whether the game is still progressing, whether it still have players or not, because obviously it will impact ongoing players' experience. So, the cron is more like a soft-deadline, if either of the above two cases mentioned are true, of course we are not going to restart, but we will restart as soon as the game state is done. We can also introduce an optional hard deadline, say like even if the soft-deadline is triggered and awaiting a chance to restart, but if the soft-deadline is procrastinated long enough say like 2 days, then we will have to force kill it, since something might be wrong with the game server itself.

Relevant ideas: https://furiko.io/docs/execution/jobconfig/scheduling

@stevefan1999-personal stevefan1999-personal added the kind/feature New features for Agones label Jul 16, 2024
Copy link

'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 github-actions bot added the stale Pending closure unless there is a strong objection. label Nov 15, 2024
@stevefan1999-personal
Copy link
Author

no-stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature New features for Agones stale Pending closure unless there is a strong objection.
Projects
None yet
Development

No branches or pull requests

1 participant