Skip to content

Multiple wokers in a server #251

Answered by sergystepanov
hwwxj asked this question in Q&A
Discussion options

You must be logged in to vote

Of course, you can, that was one of the benefits of such master/slave architecture where a number of workers controlled through a coordinator app could fully utilize available server resources / run multiple games on one server.
Essentially, just run an instance of the coordinator app, multiple instances of workers, and point them to the coordinator app.
As a dumb example for the native run (better use a proper Bash script):

./bin/coordinator --v=5 &
./bin/worker --coordinatorhost localhost:8000 &
./bin/worker --coordinatorhost localhost:8000 &
./bin/worker --coordinatorhost localhost:8000 &
...

With the current docker-compose run it can be similar in here:

command: >
      bash -c "Xvfb…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hwwxj
Comment options

Answer selected by hwwxj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants