Show More
@@ -4,6 +4,10 b'' | |||||
4 | Scaling to handle more traffic |
|
4 | Scaling to handle more traffic | |
5 | ============================== |
|
5 | ============================== | |
6 |
|
6 | |||
|
7 | ||||
|
8 | scaling http traffic | |||
|
9 | ++++++++++++++++++++ | |||
|
10 | ||||
7 | In case for bigger setups docker-compose can scale more rhodecode/vcsserver workers: |
|
11 | In case for bigger setups docker-compose can scale more rhodecode/vcsserver workers: | |
8 | Adjust the .custom/docker-compose-apps.override.yaml file and change `replicas: NUM` |
|
12 | Adjust the .custom/docker-compose-apps.override.yaml file and change `replicas: NUM` | |
9 |
|
13 | |||
@@ -30,3 +34,41 b' Then scale docker replicas without any downtime using this command' | |||||
30 | .. code-block:: bash |
|
34 | .. code-block:: bash | |
31 |
|
|
35 | ||
32 | ./rcstack stack rhodecode up --detach --no-recreate --scale rhodecode=4 --scale vcsserver=4 |
|
36 | ./rcstack stack rhodecode up --detach --no-recreate --scale rhodecode=4 --scale vcsserver=4 | |
|
37 | ||||
|
38 | ||||
|
39 | ||||
|
40 | scaling ssh traffic | |||
|
41 | +++++++++++++++++++ | |||
|
42 | ||||
|
43 | ssh workers can scale independently from the http traffic handled by rhodecode/vcsserver. To scale for more ssh | |||
|
44 | traffic, increase replicas for sshd service | |||
|
45 | ||||
|
46 | .. code-block:: yaml | |||
|
47 | ||||
|
48 | services: | |||
|
49 | sshd: | |||
|
50 | deploy: | |||
|
51 | # set number of instances of services to be spawned on stack start | |||
|
52 | replicas: 4 | |||
|
53 | ||||
|
54 | ||||
|
55 | scaling celery workers | |||
|
56 | ++++++++++++++++++++++ | |||
|
57 | ||||
|
58 | celery workers can scale independently from the http traffic handled by rhodecode/vcsserver. To scale for more celery | |||
|
59 | task processing capabilities, increase replicas for celery service. | |||
|
60 | ||||
|
61 | .. code-block:: yaml | |||
|
62 | ||||
|
63 | celery: | |||
|
64 | sshd: | |||
|
65 | deploy: | |||
|
66 | # set number of instances of services to be spawned on stack start | |||
|
67 | replicas: 4 | |||
|
68 | ||||
|
69 | ||||
|
70 | .. note:: | |||
|
71 | ||||
|
72 | Celery already has an autoscaler defined by the command argument called `"--autoscale=20,2".` | |||
|
73 | This means that there are min of 2 processes per worker that can scale upto 20 if there are more tasks to process. | |||
|
74 | Scaling replicas means the maximum task processing capacity would be defined by replicas * maximum autoscale number. |
General Comments 0
You need to be logged in to leave comments.
Login now