scaling-rhodecode.rst
32 lines
| 952 B
| text/x-rst
|
RstLexer
r276 | .. _scaling-rhodecode: | |||
============================== | ||||
r278 | Scaling to handle more traffic | |||
r276 | ============================== | |||
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` | ||||
.. code-block:: yaml | ||||
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 | ||||
.. code-block:: bash | ||||
./rcstack stack rhodecode up --detach --no-recreate --scale rhodecode=4 --scale vcsserver=4 | ||||