0

I am looking to build a large server. So the requirements are that I will have a server you spawn in that will then have ways to teleport you to other servers for there own spawns like Sky Block, SMP, Factions, etc. My research comes to a conclusion to use the Bungee Cord plugin.

But each of those server will run more servers for each specific game. The way I want it to run is if a game is full it starts a new server, and if there is a game already started then it starts a new server. Then, once the game ends it closes that server so it could have 1 server open or it could have 20+ open. I don't want to have 10 servers open at all times due to hardware usage but two because it won't solve the problem if you people won't get on.

I know it is possible as other servers run their server like that but I have no idea how to set it up. Is there any way to do this

1 Answer 1

1

Most servers use BungeeCord to achieve this. BungeeCord is basically a proxy server.credit: apex hosting

This image can explain what BungeeCord does in a nutshell.

This site can help you with BungeeCord's configuration. https://www.spigotmc.org/wiki/bungeecord-configuration-guide/

This site can help you with the installation of BungeeCord. https://www.spigotmc.org/wiki/bungeecord-installation/

You need to have atleast 3 servers for BungeeCord to be usable, but you should have 4 or more. 1 Server is BungeeCord, the server your players connect to. That server redirects to the hub, and the rest are gamemodes. The reason why you should have 4 or more is because it wouldn't make sense to have only 1 gamemode.

There are a ton of YouTube tutorials on how to operate BungeeCord. It's a bit daunting at first, but you'll get used to it. If you don't want to go through the process of setting it up, some server hosts will offer to set it up for you for some money in return.

For the whole "spin up" thing, I've never actually done something like this, but I could give you some idea on how you would go about it.

Essentially:

Players try to join skywars, but there are no skywars servers. Send signal to a script, or whatever you use to manage your servers (like docker), etc, that a skywars server is needed. Script/server managing software runs the java command to start the new server. New server finishes starting, and New server tells other servers that there is a skywars server available. Send players that queued for skywars to new skywars server. When game starts/is full, whitelist skywars server (or tell other servers that you cant join it from the hub or something). When game ends, send players to hub, stop server.

I don't really know how you would send the signals to the other servers/signal to start the servers. That's kind of in your own hands, since there are a lot of ways you could do that.

2
  • 1
    OP is asking how to make auto spin up servers, which is something that you havent addressed Commented Apr 23, 2021 at 20:39
  • 1
    Anyone know how to make these auto spin up servers
    – andy
    Commented Apr 24, 2021 at 15:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .