##// END OF EJS Templates
docs: updated few instructions
docs: updated few instructions

File last commit:

r278:987f2881
r280:bae06fe2
Show More
scaling-rhodecode.rst
32 lines | 952 B | text/x-rst | RstLexer

Scaling to handle more traffic

In case for bigger setups docker-compose can scale more rhodecode/vcsserver workers: Adjust the .custom/docker-compose-apps.override.yaml file and change replicas: NUM

services:
  rhodecode:
    deploy:
      # set number of instances of services to be spawned on stack start
      replicas: 4

  vcsserver:
    deploy:
      # set number of instances of services to be spawned on stack start
      replicas: 4

Generally replicas of vcsserver and rhodecode should be equal, but each replica should have workers=N directive set to workers=2 for rhodecode workers=3 for vcsserver.

Then scale docker replicas without any downtime using this command

./rcstack stack rhodecode up --detach --no-recreate --scale rhodecode=4 --scale vcsserver=4