question

amazdeh avatar image
amazdeh asked

How much is MatchMaker timeout value when it assigns a server to a set of plaeyrs

We have a custom match maker and also use PlayFab's match maker as well. The PlayFab matchmaker is not in our control so I wanted to know if a user requests a match from Playfab and nobody never connects to it, what will happen?

When will playfab assume that the previous match got issues so it reassigns server to a new match? Does it ever?

In our own match maker we can do this ourselves if needed.

My worry is that some attacker requests with multiple users multiple matches to use all of our server resources and doesn't allow any player to play matches in a kinda DDOS attack..

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

What the PlayFab matchmaker does is to find the first available slot in a game session that matches the parameters passed in, reserve that slot for the player, and return the info on it. If you're also specifying a statistic, the available matching slots will be ordered by that stat, and the closest match returned. And finally, if you're also using the "start new if none found" flag, it'll start a new game instance if there aren't any slots available that match.

The main point though, is that it's not a queued matchmaker - it immediately grabs a slot and returns it. If that server doesn't use RedeemMatchmakerTicket to say "this user just joined my session" within two minutes, that slot will be freed up. To enable what you describe, you would need to have either client code logic that says "if I join a game that doesn't have other players within X amount of time, leave that server and try to matchmake again", or else server logic that kicks the player out if no one joins.

But realistically, if you have a non-trivial number of players, you should really only run into this if you have bucketized your players too much. The case of someone attacking your title is technically possible, but it would only work if that person logged into many unique PlayFab accounts, all from different IP Addresses, and used them to matchmake. Since most titles using dedicated servers are able to support thousands of players at a time, that would take an extraordinary amount of effort.

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.