question

panagiotistitonis avatar image
panagiotistitonis asked

Unity Game Server no Exit events while on standby

Unity game server recieves no exit events ex. OnApplicationQuit, OnApplicationPause, PlayFabMultiplayerAgentAPI.OnShutDownCallback while on StandBy state.

Is there a way to know if server is about to be terminated while OnStandby? Specifically when server is terminated when Standby/ Max region counts are reduced.

All those are called normally when server is terminated internally on Active state but not when terminated externally while on standby.

Reason need this, is because server has to do some clean up before shutting down.

Thanks in advance!

unity3dCustom Game Servers
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

·
Neils Shi avatar image
Neils Shi answered

Could you tell us why you need to terminate the standby server via reducing the region counts? If you want to dynamically adjust the standby server to meet actual player demand, then PlayFab Multiplayer Server has provided the functionality “Dynamic Standby” which can automatically scale enhancement that monitors standby server threshold levels and dynamically activates increased provisioning of game servers to meet demand at scale. It can help developers efficiently keep game server hosting costs low while maintaining enough capacity to quickly add new players to join multiplayer games with minimal to no waiting. For more information, you can refer to https://learn.microsoft.com/en-us/gaming/playfab/features/multiplayer/servers/dynamic-standby.

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.