1 Answer
- Newest
- Most votes
- Most comments
1
Hi,
This is an expected error. You may not update a game server's utilization status from UTILIZED to AVAILABLE.
This doc has a basic guideline on when to update your game server utilization status, down in "Update game server status": https://docs.aws.amazon.com/gamelift/latest/fleetiqguide/gsg-integrate-gameserver.html
In short, your game client will attempt to acquire a game server by calling ClaimGameServer. From there, either the Game Server Group will look for an AVAILABLE Game Server OR the given Game Server must be in AVAILABLE status. If an AVAIlABLE Game Server is found, in 60 seconds either the game client or game server needs to call UpdateGameServer to set that Game Server to UTILIZED.
answered 2 years ago
Relevant content
- asked 2 months ago
- asked 7 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 2 years ago
Yes. Basically, when a game session ends we have to deregister that server and register a new server in its place to maintain capacity and utilize the EC2 instance.
For example, out of 100 total capacity of EC2, 50 are being utilized and 5 are getting deregistered, so the servers available to be claimed are 45. To fully optimize resource usage, we need to register 5 new server in that particular EC2 instance.
Also need to check the server is not in draining state/getting terminated before creating new servers.