[SOLVED] Please explain Pools & Windows start.bat

Python 3 Server Controller for Trackmania and Shootmania for script-only modes.

Moderators: TheM, toffe, NADEO

Locked
User avatar
BestNoob
Posts: 223
Joined: 08 Mar 2013, 12:04
Contact:

[SOLVED] Please explain Pools & Windows start.bat

Post by BestNoob » 14 Nov 2019, 21:08

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:
To join my TM Servers, search for: bestnoob :thumbsup:

User avatar
toffe
Posts: 740
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: Please explain Pools & Windows start.bat

Post by toffe » 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#

User avatar
Harest
Posts: 130
Joined: 26 Mar 2018, 04:21
Contact:

Re: Please explain Pools & Windows start.bat

Post by Harest » 15 Nov 2019, 15:08

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.

User avatar
toffe
Posts: 740
Joined: 15 Jun 2013, 10:57
Location: The Netherlands
Contact:

Re: Please explain Pools & Windows start.bat

Post by toffe » 15 Nov 2019, 15:21

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).

Locked

Return to “PyPlanet”

Who is online

Users browsing this forum: No registered users and 1 guest