Closed D3m1urg3 closed 3 years ago
So autoscalers only change Fleet sizes - they don't touch what is shutdown or not.
If you take a Fleet, reserve a few GameServers and then scale it down to 0 - do those Reserved instances stay, or do they get removed?
Indeed the problem seems to be on our end. Thanks for the help.
No worries, just glad you got it sorted!
What happened: Our gameservers require registering into our backend. Therefore, we are implementing the corresponding gs lifecycle logic as descibed in agones documentation.
The gameserver state in agones when the server starts follows:
Here is the fleetautoscaler.yaml used:
and here is the fleet.yaml:
Regardless of what the comment says the autoscaler Shutdowns the Reserved server and starts a new one who then proceeds to shutdown in a never ending cycle.
What you expected to happen: The autoscaller does not touch a reserved gs.
How to reproduce it (as minimally and precisely as possible): Launch a gameserver with the registering logic implemented and watch the autoscaller shutdown the reserved servers.
Anything else we need to know?: The gameserver launch by itself work fine completing the logic correctly.
Environment:
kubectl version
): 1.18.19