You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Spot instance termination is very frequently checked via a cron job running on the host, and if a termination notice is seen, the server is gracefully stopped and a backup produced to S3 (see utilities/shutdown.sh).
This doesn't happen if the ASG is scaled in. Instead, we could register a lifecycle hook with a consumer listening to an SQS topic. Because our ASGs only operate with a singleton, having a topic per ASG and a consumer on the box, ready to call the shutdown script, seems reasonable.
This feature sets the stage for setting up things like user-count-based health checks, where the ASG could autoscale down to 0 if no players have been present for a certain amount of time.
The text was updated successfully, but these errors were encountered:
gerhalt
changed the title
Graceful shutdown on ASC scale-in
Graceful shutdown on ASG scale-in
May 15, 2020
Spot instance termination is very frequently checked via a cron job running on the host, and if a termination notice is seen, the server is gracefully stopped and a backup produced to S3 (see
utilities/shutdown.sh
).This doesn't happen if the ASG is scaled in. Instead, we could register a lifecycle hook with a consumer listening to an SQS topic. Because our ASGs only operate with a singleton, having a topic per ASG and a consumer on the box, ready to call the shutdown script, seems reasonable.
This feature sets the stage for setting up things like user-count-based health checks, where the ASG could autoscale down to 0 if no players have been present for a certain amount of time.
The text was updated successfully, but these errors were encountered: