question

Dave Invierno avatar image
Dave Invierno asked

How to force down a server for maintenance

Hi, is there a way to down a server for x amount of time?

I have a title under our studio, let's call it T, we would like to close the servers for T so that no player can access it so we can update our game. We are not using custom servers, everything will be on PlayFab even our CDN.

We would like to know if there is a way in PlayFab to manually close and open a server for maintenance reasons. If there is none, how do you suggest we do this? One way we're thinking is to set a flag on title data to know if the server is up or down, then do something depending on its value. Is that workaround safe?

10 |1200

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

Seth Du avatar image
Seth Du answered

You are able to "close" the server for the title, but you may need to manually do it via Game Manager. Navigate to [T’s Game Manager] ->[Settings] ->[API Features] -> [DISABLE], and there is an option that can “Disable all API request access”. Check it if you want the title down for a routine maintenance.

After enabled, all the request will return with an error “APIRequestsDisabledForTitle” and you can pop up some information about maintenance in your application.

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.

Dave Invierno avatar image Dave Invierno commented ·

Thank you, this is what we're looking for. We'll try this.

0 Likes 0 ·
brandon@uprootstudios.com avatar image
brandon@uprootstudios.com answered

You can shutdown a server using ShutdownMultiplayerServer in the Multiplayer API. If that doesn't work for you, you could maybe just remove the server builds? Or possibly even disable the PF API completely (but then your clients wouldn't even be able to login)

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.

Dave Invierno avatar image Dave Invierno commented ·

Hi, thank you for your suggestions. We might just disable the PF API, we don't want our users to be able to login while we're updating the game.

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.