question

nlebedenco avatar image
nlebedenco asked

Could you expand a bit on the cases behind each MatchmakeStatus ?

It would be nice if there was at least more details about the cases when a call to Client.Matchmake is going to result in MatchmakeStatus.Waiting versus MatchmakeStatus.Complete. At first I thought Waiting was only used when there was a request for a specific LobbyId but that server had no more slots available. But then there is MatchmakeStatus.NoSlotsAvailable. And the example in the documentation for Client.Matchmake shows a valid result with ip address, ticket and all but with a status of Waiting rather Complete. What does it mean?

Matchmaking
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

So in general, you're only going to get the Waiting result if you've run out of servers. The purpose of the min free slots system is for you to tell us how many free instance slots should be available at any time, so that at peak usage you have enough server hosts running to have instances available for everyone who might want to join a game. The issue is that it takes several minutes for a new server host to be provisioned - we have to request it from EC2, then image it with the AMI, then copy over your build zip from S3, then unpack it in place. All of that takes time. So if you've run out of instances, you're either going to get NoSlotsAvailable or Waiting, based on what the current state is of starting a new server host.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.