question

Daniel Madera avatar image
Daniel Madera asked

Is there anty chance to set standby server up by listening matchmaking tickets

I wonder if it is possible to have servers in standby state only when a matchmaking ticket is matched. At that moment we would execute an 'automation rule' that fires a cloudscript and set a new game server to standby. In the meantime, the matchmaking tickets would be 'waiting for server' until the server state turns to standby and then active because of the matchmaking system.

CloudScriptmultiplayerMatchmaking
10 |1200

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

Xiao Zha avatar image
Xiao Zha answered

We usually recommend keeping an appropriate number of standby servers. This way, players can immediately obtain and connect to the standby server after the match is completed without waiting. If the standby server is turned on after players are matched, since the server initialization takes a long time, players have to wait for the server to initialize, which will have a negative impact on the player's gaming experience. May I know the reason why you want to do this? if you want to reduce the cost of game server hosting, PlayFab has scaling capabilities, you could refer to Scaling Standby - PlayFab | Microsoft Learn (https://learn.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/scaling-standby) to have more information.

10 |1200

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

Daniel Madera avatar image
Daniel Madera answered

Xiao Zha, thank you for your response!

The main reason is that we are currently in a development state, so we rarely use the Cloud Service. However, occasionally, a developer might need to test the game and will have to ask the PlayFab team to set one server to standby for that purpose.

Therefore, we are looking to take advantage of Cloud Script to capture the matchmaking ticket when it is in the "Waiting for Server" state, set a build, and change the standby value to 1.

Additionally, we hope to gain a deeper understanding of how to use Automation Rules to get the most out of them.

Is there any chance to intercept any matchmaking ticket in the "WaitingForServer" state?

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.

Xiao Zha avatar image Xiao Zha commented ·

If you check the "Enable server allocation" option in the queue, a server will be automatically assigned to the match after the tickets are matched, and if there is no available server, it will wait until the tickets expire. And when the tickets are matched and enter the "waiting for server" state, no events will be generated. Therefore, it is not possible to use events to trigger the action of the Rule to execute CloudScript to set up the build and change the standby value to 1.

0 Likes 0 ·

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.