##// END OF EJS Templates
config: update gunicorn config examples
super-admin -
r5272:ab333ff0 default
parent child Browse files
Show More
@@ -51,8 +51,8 b' access_log_format = ('
51
51
52 # Sets the number of process workers. More workers means more concurrent connections
52 # Sets the number of process workers. More workers means more concurrent connections
53 # RhodeCode can handle at the same time. Each additional worker also it increases
53 # RhodeCode can handle at the same time. Each additional worker also it increases
54 # memory usage as each has it's own set of caches.
54 # memory usage as each has its own set of caches.
55 # Recommended value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers, but no more
55 # The Recommended value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers, but no more
56 # than 8-10 unless for huge deployments .e.g 700-1000 users.
56 # than 8-10 unless for huge deployments .e.g 700-1000 users.
57 # `instance_id = *` must be set in the [app:main] section below (which is the default)
57 # `instance_id = *` must be set in the [app:main] section below (which is the default)
58 # when using more than 1 worker.
58 # when using more than 1 worker.
@@ -67,11 +67,19 b" loglevel = 'info'"
67 # Process name visible in a process list
67 # Process name visible in a process list
68 proc_name = 'rhodecode_enterprise'
68 proc_name = 'rhodecode_enterprise'
69
69
70 # Type of worker class, one of `sync`, `gevent`
70 # Type of worker class, one of `sync`, `gevent` or `gthread`
71 # currently `sync` is the only option allowed.
71 # currently `sync` is the only option allowed for vcsserver and for rhodecode all of 3 are allowed
72 # gevent:
73 # In this case, the maximum number of concurrent requests is (N workers * X worker_connections)
74 # e.g. workers =3 worker_connections=10 = 3*10, 30 concurrent requests can be handled
75 # gtrhead:
76 # In this case, the maximum number of concurrent requests is (N workers * X threads)
77 # e.g. workers = 3 threads=3 = 3*3, 9 concurrent requests can be handled
72 worker_class = 'gevent'
78 worker_class = 'gevent'
73
79
74 # The maximum number of simultaneous clients. Valid only for gevent
80 # The maximum number of simultaneous clients. Valid only for gevent
81 # In this case, the maximum number of concurrent requests is (N workers * X worker_connections)
82 # e.g workers =3 worker_connections=10 = 3*10, 30 concurrent requests can be handled
75 worker_connections = 10
83 worker_connections = 10
76
84
77 # Max number of requests that worker will handle before being gracefully restarted.
85 # Max number of requests that worker will handle before being gracefully restarted.
General Comments 0
You need to be logged in to leave comments. Login now