Time frame for fleet instance to be freed after termination

0

I am wondering how long I should expect to wait for a game session allocation to become available after I terminate another.

For testing purposes, I allowed my fleet 1 instance, once I terminate an active instance how long should I expect to wait for the allocation to become available again? In many cases, I am experiencing a wait of close to 5 minutes.

I hope this provides enough context, just getting started here. Thank you! Chantz

질문됨 3년 전162회 조회
2개 답변
0

Yes, 5-10 minutes is usually the expectation.

When you terminate your only instance in the fleet, but the "desired" scaling size is 1, EC2 Autoscaling will allocate a new instance to the fleet. This will take some time depending on the fleet type (spot or on demand), instance type and region. Once the instance is allocated, it'll take some time to start up the instance with your build loaded, and once that's done, it'll need to start the game server process.

Are you terminating your instance to kill your game session during development? If so, there are a few tricks to do that without terminating the instance:

  • SSH to the fleet instance using getInstanceAccess (https://docs.aws.amazon.com/cli/latest/reference/gamelift/get-instance-access.html), do a "ps -ef" on the instance to look for your game server's launch path, find the PID and kill it.
  • Spin up multiple processes, each listening to a different port
  • Create a timer in the game server process, and automatically call ProcessEnding() and exit the process when the timer expires
답변함 3년 전
0

Thank you @REDACTEDUSER

Yes, we are terminating to kill the game session. This use case was simply to test shutdown behavior as we wanted to make sure our game server was shutting down correctly. I will certainly look to implement one of these tricks. I appreciate the response.

답변함 3년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠