[Solved] Seeking Help for Efficient Server Restart in My Game

Hey everyone,

I’m looking for help to create an effective way to restart servers in my game. I’m considering teleporting players to a new server once a time limit is reached. Can anyone suggest how famous games handle this? Your insights are much appreciated!

1 Like

theres the “migrate to new servers” button. i think thats the most efficient way to restart all servers. guaranteed too.

what other games do (maybe? this kinda sounds like an ancient system) is teleport all players to a reserved server and then teleport them back to the main server after 10ish seconds. make sure to have a custom loading screen setup so ppl can know its a game being updated.

realistically tho, just migrate to new servers. it kicks all players and says “hey developer updated the experience.” if people dont wanna rejoin then they wont rejoin. theyll just get frustrated that they were teleported and forced to rejoin.

4 Likes

I’ve considered the option of creating a reserved server and sending players back, but I’m also looking for an efficient way to reset all servers simultaneously. One idea I’m exploring is using HTTPService to retrieve a specific time zone and reset all servers at 00:00 in that time zone. However, I’m not sure if this is the best approach.

Roblox just released a new functionality for “Shut down all servers”. Instead of shutting them down and forcing the client to reconnect, it automatically reconnects them all to a new server. I’ve used it a few times and it’s super convenient.

You can use Open Cloud API to restart all servers too.

1 Like

Have you considered using MessagingService to tell every server to reset at the same time? What about the “Migrate to latest version” button?

I think it’s Migrate that has the auto-reconnect thing, for Shutdown I’m pretty sure it just gives a disconnect saying “The experience developer has shutdown this server” with a manual Reconnect option.

EDIT: It seems like the button is “Restart servers for updates”:

Shut down all servers has the same functionality (when I do it from the game page, not dashboard), which kind of throws me off a bit but oh well.

Yeah, but what I’m really aiming for is an efficient way to auto restart the servers at a specific time, like I mentioned earlier. Depending on the number of active servers in the game, MessagingService might not be the most efficient solution, right?

If you don’t want to do anything complicated, I’d recommend just warning players in-game when updates are going to happen (timer, scheduled updates, etc.) Then you can just use the basic shut down all servers thing, and everyone will know that it was going to happen.

Again, why not use the officially-provided tools?

A 1-minute time for updating all servers for the vast majority of games sounds plenty effective to me.

wait did it make u rejoin or do u have code that forces them to rejoin?

No, it auto-rejoined. There is no migration code in that game. It’s as the announcement said:

1 Like

sickk, did not know this.

thanks brosquito.

2 Likes

Ok, I thought of a solution to my problem. The best approach would be to set a time limit on the server as soon as it starts. Once the time limit is reached, I’ll use Messaging Service to find a server with a life time less than 3 hours, for example, and send the players to that server. Resetting all servers at the same time automatically would be very inefficient due to various issues.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.