##// END OF EJS Templates
chore(version): version bump to 5.6.0
chore(version): version bump to 5.6.0

File last commit:

r278:987f2881
r368:bdec5497
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