question

Taras Lazoriv avatar image
Taras Lazoriv asked

Playfab matchmaking - doesn't look through active servers

Hello
I have an issue and I'm not sure if it's a bug.

Playfab matchmaking seems to always look for an appropriate server among the servers with "Standing by..." status. If all available servers are in the "Active" status, matchmaking cannot find the appropriate server to start the game session. Connection timeout simply expires.

My project may have hundreds game sessions happening simultaneosly.

Could someone please give an advice on how to make the matchmaking look through the "Active" servers first and only if the load is relatively high - expand the search to "Standing by..." servers?

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.

Citrus Yan avatar image
Citrus Yan answered

Hi Taras,

Just as Brandon said, “Active” means that a game session currently in progress, while “Standing By” means that a server is waiting for players to connect. When players need to start a game session, first, they will need to request one to be allocated from a build’s standing-by pool, then PlayFab will fulfill a server request within 1 second if standing-by servers are available. Once the server has been put into the active state, clients connect to the server and play.

You are saying that your project may have hundreds of game sessions happening simultaneously, which means that you’ll need to maintain a high standing-by level: https://docs.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/quickstart-for-multiplayer-servers-game-manager#configure-regions PlayFab will maintain a set of standing-by servers to ensure that servers are immediately available. As this standing-by pool is consumed by new allocations, PlayFab initializes new standing-by sessions. The amount of standing-by sessions required is dependent on how fast new sessions are requested during peak utilization, and how quickly they can be created and initialized. You may need to determine your game’s standing-by level based on your own situation, some performance tests may be needed.

By the way, here is the Multiplayer Servers Overview doc that talks about some key concepts and steps to help you better understand the service.

10 |1200

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

brandon@uprootstudios.com avatar image
brandon@uprootstudios.com answered

I think you have it backwards:


"Active" means that a server is currently hosting connected players / a game is in progress

"StandBy" means that a server is waiting for players to connect

1 comment
10 |1200

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

Taras Lazoriv avatar image Taras Lazoriv commented ·

So , i can't use matchmaking to connect to active servers?

0 Likes 0 ·
Taras Lazoriv avatar image
Taras Lazoriv answered

Hi Citrus,

I think I put it wrong.

Each my server instance is capable of playing many sessions in parallel. For example, on server 1, 10 game sessions can take place simultaneously. But matchmaking doesn't let me do this. He has 1 server - 1 game session (mb - since he searches only in the pool "Standing by"). The question was: is it possible to configure matchmaking from the playfab so that matchmaking can point to servers that users are already playing on?

8 comments
10 |1200

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

Citrus Yan avatar image Citrus Yan commented ·

You may need to use server backfill tickets to fulfill your requirement.

1 Like 1 ·
Stanislav Felinskyi avatar image Stanislav Felinskyi Citrus Yan commented ·

Hi @Citrus Yan !

Thanks for the link!

I'm trying to find the method Create Server Backfill Ticket inside PlayFab Unity SDK but without any success. Looks like this method is missing or replaced, or I'm looking in a wrong place. Do you know anything regarding this?

Thanks in advance!

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan Stanislav Felinskyi commented ·

@Stanislav Felinskyi @Zhi Kang ShaoHi, APIs associated with Using server backfill tickets

are currenty in Beta, which means that you cannot access it in public released SDKs. If you are a Pro or Enterprise Tier, you can contact us to apply for it. And, making POST requests directly should also work.

1 Like 1 ·
Show more comments

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.