Page 1 of 1

[SOLVED] Please explain Pools & Windows start.bat

Posted: 14 Nov 2019, 21:08
by BestNoob
How can i start the server via batfile or autostart in windows ?

And please explain pyplanet multi instances, when i want for every server different settings:

\Maniaplanet\PyPlanet\bestnoobstadiumLoL
\Maniaplanet\PyPlanet\bestnoobstcanyon

Do i need to start each instance separately ?

virtualenv env
env\Scripts\activate.bat
python manage.py start

for each server ?? :shock:

Re: Please explain Pools & Windows start.bat

Posted: 15 Nov 2019, 10:27
by toffe
With the pools you can configure and start multiple servers with just one single pyplanet process and installation. This is really easy if you have a few match servers you have to start and stop at the same time.

More information: http://pypla.net/en/stable/intro/configuration.html#

Re: Please explain Pools & Windows start.bat

Posted: 15 Nov 2019, 15:08
by Harest
toffe wrote: 15 Nov 2019, 10:27 With the pools you can configure and start multiple servers with just one single pyplanet process and installation. This is really easy if you have a few match servers you have to start and stop at the same time.

More information: http://pypla.net/en/stable/intro/configuration.html#
Resource-wise how does it compare vs several processes (one by server)? For my 7 servers currently running i'm using one process for each one atm instead of using one generic folder for a single process and configuring 1 pool / server.

And in case one of the servers has crashed, how is it handled? Can i restart a specific pool only?
Edit : For this 2nd question i found the answer on GitHub in one of your response (in an issue i opened :oops:) :
The thing that PyPlanet is currently missing is the way to control the god (main process) and how to restart, stop or start an individual pool.
So that's a no.

Re: Please explain Pools & Windows start.bat

Posted: 15 Nov 2019, 15:21
by toffe
The thing is that it's using multiple processes, so it doesn't affect any performance with one of the two methods.
The server gets automatically restarted in case, but in case you want more control you have to go separate. The issue isn't so easy to handle as there are no methods of controlling a god process once its started (in background).