# HG changeset patch # User RhodeCode Admin # Date 2024-01-29 08:46:28 # Node ID ab333ff0b69cada8e1efa05fe103af4a6907e3ef # Parent d39e74ef0e47aacfd69bd939622f3bdc5fb49864 config: update gunicorn config examples diff --git a/configs/gunicorn_config.py b/configs/gunicorn_config.py --- a/configs/gunicorn_config.py +++ b/configs/gunicorn_config.py @@ -51,8 +51,8 @@ access_log_format = ( # Sets the number of process workers. More workers means more concurrent connections # RhodeCode can handle at the same time. Each additional worker also it increases -# memory usage as each has it's own set of caches. -# Recommended value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers, but no more +# memory usage as each has its own set of caches. +# The Recommended value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers, but no more # than 8-10 unless for huge deployments .e.g 700-1000 users. # `instance_id = *` must be set in the [app:main] section below (which is the default) # when using more than 1 worker. @@ -67,11 +67,19 @@ loglevel = 'info' # Process name visible in a process list proc_name = 'rhodecode_enterprise' -# Type of worker class, one of `sync`, `gevent` -# currently `sync` is the only option allowed. +# Type of worker class, one of `sync`, `gevent` or `gthread` +# currently `sync` is the only option allowed for vcsserver and for rhodecode all of 3 are allowed +# gevent: +# In this case, the maximum number of concurrent requests is (N workers * X worker_connections) +# e.g. workers =3 worker_connections=10 = 3*10, 30 concurrent requests can be handled +# gtrhead: +# In this case, the maximum number of concurrent requests is (N workers * X threads) +# e.g. workers = 3 threads=3 = 3*3, 9 concurrent requests can be handled worker_class = 'gevent' # The maximum number of simultaneous clients. Valid only for gevent +# In this case, the maximum number of concurrent requests is (N workers * X worker_connections) +# e.g workers =3 worker_connections=10 = 3*10, 30 concurrent requests can be handled worker_connections = 10 # Max number of requests that worker will handle before being gracefully restarted.