Temporarily 'pausing' a fleet
I'm still quite new to gamelift services and spending considerable time testing and learning at my own pace. I'd like to use my free tier hours for this learning stage but if I leave a fleet running for hours during which I'm not tinkering around, it would basically be eating away at those free hours... is there a way to avoid this without having to wait for a fleet to activate every time I want to do some actual online testing (not using gamelift local)? So far I tried to create a fleet of type spot and manually set the instances to 0, however I could still log into game sessions from the client. I think it had to do with having protection set to "full" but I wanted to get some solid direction on here before I get to trying this again.
If anyone can point me in the right direction I would appreciate it, perhaps there is an easier way through CLI commands as well?
Hi @REDACTEDUSER
Setting the instance count to 0 using the console or UpdateFleetCapacity API, is the correct approach for this.
You’re correct that this will not scale-down the fleet if it has an ACTIVE GameSession on it and protectionPolicy is set to FullProtection
. You can remove protection from a particular GameSession by calling the UpdateGameSession API or remove protection from all new GameSessions created on a fleet by using the UpdateFleetAttribute API
These APIs can be called via the AWS CLI - https://docs.aws.amazon.com/cli/latest/reference/gamelift/update-game-session.html
One more thing to note, since you mentioned free-tier usage is that GameLift free-tier is only eligible for On-Demand instance usage. So make sure you’re not using SPOT if you wish to use those hours https://aws.amazon.com/gamelift/faq/#Q._How_do_I_get_started_with_Amazon_GameLift_for_free.3F
Hi @REDACTEDUSER
Thanks for the detailed explanation and all the helpful links! I was under the impression that I wouldn't have any control over instance count for On-Demand instance usage.
Hey @REDACTEDUSER
You are able to control instance counts for on-demand usage the same as spot usage (primarily by the defined fleet capacity).
The main difference between the two is that SPOT instances are cheaper, but are subject to the possibility of being interrupted (and shut-down) when AWS needs the capacity back. You can read more about the differences here - https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-ec2-instances.html#gamelift-ec2-instances-spot
Relevant questions
AWS Gamelift Fleet Instance Capacity not updating on terminated fleet
asked 5 months agoMemory and CPU allocation for EC2 on Free Tier.
asked 4 months agoDoes Amplify outbound bandwidth fall under the new 1TB/month Free Tier Data Transfer Expansion announced for CloudFront?
asked 6 months agoStarting with Amazon GameLift
Accepted Answerasked 8 months agoLocal Gamelift testing
asked 3 years agoTemporarily 'pausing' a fleet
asked 6 months agoGameLift isn't showing up on the "Top AWS Free Tier Services" table
asked 2 years agoCannot delete activating fleet..
asked 5 years agoFleet Stuck at "Downloading", what's going on?
asked 2 years agoKMS cost in my AWS Free Tier
asked 2 years ago