How to do game session migration to handle spot interruption?

0

Hi, anyone tried spot fleets? How are you doing game session migration on spot interruption? And it is mentioned in the this link that game server should be prepared to handle unexpected interruptions. How do we do that? What's the better way to handle these ?

已提問 6 年前檢視次數 303 次
2 個答案
0
已接受的答案

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.
已回答 6 年前
profile picture
專家
已審閱 1 個月前
0

Okay , thankyou @REDACTEDUSER

已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南