2 Answers
0
Accepted Answer
Hopefully others will answer with their experiences. How to handle interruptions is strongly influenced by your game design.
But somethings to consider:
- FleetIQ will isolate you a lot from Spot interruptions. At the very worst combinations, if you use combinations of Spot and OnDemand fleets, you may pay OnDemand prices for a small period.
- Typically, developers see Spot interruption rates lower than their background server crash/failure rate. Obviously your mileage may vary depending on game session length, instance types and regions in use.
- You can see the GameSession interruption metrics on your dashboard or you can instrument your own to verify your experience.
- When you get a OnProcessTerminate notice you can request the termination time (see GetTerminationTime)
- The time returned is best effort, but is typically 1-2 minutes before the process will be force terminated
- You can make a decision about what to do then, but the strong recommendation is to terminate your process gracefully, but you could:
- Let the game finish if time allows
- Use game session backfill features to move players to existing game sessions
- Trigger a game event that makes sense in your game context and terminate.
- Migrate players to a new game session with suitable messaging.
- Message the players and reward them with ingame items/boost in the next game
- etc.
answered 4 years ago
Relevant questions
How to send custom Launch paramater for a game session when request to create game session?
Accepted Answerasked a year agoGame Lift - When does the timeout for game session activation trigger?
asked a month agoSpot Instance interruption while CodeDeploy is running a deployment to an Auto Scaling group
Accepted AnswerHibernating Spot Instances upon interruption in Amazon EKS
Accepted Answerasked 2 years agoCreate Spot Fleet Request / Charges
asked 3 months agoSpot Fleet Instance could not be stopped
asked 2 months agoHow to do game session migration to handle spot interruption?
Accepted Answerasked 4 years agoQueue priorities with Spot fleets
Accepted Answerasked 9 months agoAsking about how to terminate game session
asked 3 years agoSpot persistent request
asked 2 months ago