Auto scaling from zero capacity?

0

I've been trying to figure out how to scale from zero capacity without a master server, is this even possible?

Since you can't make game sessions and player sessions if there's no capacity, this means only full-admin credentials can add capacity? or is there something im missing here?

Thanks!

질문됨 8년 전706회 조회
8개 답변
0
수락된 답변

Hey @REDACTEDUSER

The core problem is that there's no metrics being emitted if there's no capacity and no game sessions, hence there's no data to autoscale on. I'd be interested in hearing more about how you're thinking about this use case.

If you really do want to autoscale down to zero, the current workaround to get back above zero is to have a separate system like an AWS Lambda function, or maybe your matchmaking system have the credentials to scale up from zero when needed, then the GameLift autoscaling rules would kick back in again since they'll have metrics data to scale on again.

답변함 8년 전
0

Thanks for the heads up on AWS Lambda, im not very familiar with it but sounds awesome, i was about to start coding my node.js master server but this should do it!

Im also more familiar with GameLift after i messed around with it for a month, i think a combination of a Lambda and a T2 fleet as a bare minimum while C3 fleets adds capacity would work in my use case (low player base with huge bursts)

답변함 7년 전
0

Hello @REDACTEDUSER

Is it still the case that Gamelift cannot autoscale from 0 instances? I have been trying to work with the QueueDepth metric thinking that the queue would be holding that information but it does not seem to be spinning up a new instance.

답변함 5년 전
0

Sorry to necro, but I think this is important. At least one active instance incurs costs (got caught by this recently), so it would be nice if we could scale up from zero without an AWS lambda instance or something.

As for the QueueDepth metric, what I noticed is that there is two versions of it: one for the overall queue and one for the fleet. The rule-based metric goes off the fleet one, which for some reason remains at zero. This is what I mean: (dark blue is Queue depth and cyan is fleet Queue depth)

REMOVEDUPLOAD

This is the configuration that I would like:

REMOVEDUPLOAD

Ideally the process would be client calls StartGameSessionPlacement -> policy scale goes into effect -> add 1 new instance

Then, when active sessions drop to zero, we scale down until eventually zero instances (and no costs :slight_smile:)

답변함 4년 전
0

@REDACTEDUSER

답변함 4년 전
0

Hi @REDACTEDUSER

With regards to your issue with QueueDepth metric: The queue depth metric for the fleet that is positioned first in the queue should match that of the queue itself. (see screenshot below).

REMOVEDUPLOAD

If this is not the case, then please share your QueueArn / FleetArn and we can investigate what is going on.

답변함 4년 전
0

Hi, sorry for the late response. I'm not sure I understand - what you have pictured looks like the queue depth of two different fleets to me.

This is what I see:

REMOVEDUPLOAD

REMOVEDUPLOAD

The queue depth metric for the fleet looks like it is above the queue depth of the queue itself

답변함 4년 전
-1

Hello @REDACTEDUSER

I don't think I follow what you mean. If you have auto-scaling policies set up, GameLift would automatically scale up/down based on the rules that you have set up.

I hope that answers your question. Let us know if you need more information on how to set up auto-scaling policies.

Thanks!

답변함 8년 전

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

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

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