AlexProgrammerDE / balena-minecraft-server

Build a Minecraft Server using a Raspberry Pi 4! Supports common Servers, SCP, RCON and Wifi Connect.
Apache License 2.0
200 stars 66 forks source link

Question #93

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hi i have my server set up and it great! no lags etc. But i have a question can you use do multiple pi's?

ghost commented 3 years ago

And if you can how do you do it?

AlexProgrammerDE commented 3 years ago

can you use do multiple pi's?

You can. Just add more Pis into your balena fleet and the software should automatically deploy to those too.

PeakMars commented 3 years ago

Will the Pi's all run the one server? Or different servers?

AlexProgrammerDE commented 3 years ago

Will the Pi's all run the one server? Or different servers?

One server per pi!

PeakMars commented 3 years ago

Ok, is there a way to make portals from one server to another (one Pi to another) so I can host certain worlds on one pi and the rest on the other? Also, I have alot of plugins on my server. Is there a downside to having may plugins?

ghost commented 3 years ago

I want to like use multiple pi's to make one server. Is that possible?

AlexProgrammerDE commented 3 years ago

one server to another (one Pi to another)

That requires a proxy such as bungeecord or waterfall. You connect to the proxy instead, and it will then connect to a server and send you there. If trying to switch a server it fakes you connecting to the other server and moves your packets and data over.

AlexProgrammerDE commented 3 years ago

I want to like use multiple pi's to make one server.

minecraft is firstly not multithreaded. That means it only uses one cpu core. It wouldn't work because you normally can't share a cpu core.

AlexProgrammerDE commented 3 years ago

Is there a downside to having may plugins?

If those plugins are heavy or calculate a lot of stuff it may impact performance as I said above minecaft is single threaded, but if those plugins are properly written they could distribute the calculations over multiple cores and therefore have a less heavy impact on the server.