fix(configs): optimize configs for 5.0.0 release defaults
- switch by default form gevent to gthread
This commit is contained in:
parent
d4070f83d4
commit
0f1af561b6
3 changed files with 22 additions and 15 deletions
|
|
@ -1,5 +1,4 @@
|
||||||
|
|
||||||
|
|
||||||
; #########################################
|
; #########################################
|
||||||
; RHODECODE COMMUNITY EDITION CONFIGURATION
|
; RHODECODE COMMUNITY EDITION CONFIGURATION
|
||||||
; #########################################
|
; #########################################
|
||||||
|
|
@ -329,7 +328,10 @@ use_celery = false
|
||||||
#celerybeat-schedule.path =
|
#celerybeat-schedule.path =
|
||||||
|
|
||||||
; connection url to the message broker (default redis)
|
; connection url to the message broker (default redis)
|
||||||
celery.broker_url = redis://localhost:6379/8
|
celery.broker_url = redis://redis:6379/8
|
||||||
|
|
||||||
|
; results backend to get results for (default redis)
|
||||||
|
celery.result_backend = redis://redis:6379/8
|
||||||
|
|
||||||
; rabbitmq example
|
; rabbitmq example
|
||||||
#celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
|
#celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
|
||||||
|
|
|
||||||
|
|
@ -48,16 +48,6 @@ tmp_upload_dir = None
|
||||||
access_log_format = (
|
access_log_format = (
|
||||||
'time="%(t)s" pid=%(p)s level="INFO" type="[GNCRN]" ip="%(h)-15s" rqt="%(L)s" response_code="%(s)s" response_bytes="%(b)-6s" uri="%(m)s:%(U)s %(q)s" user=":%(u)s" user_agent="%(a)s"')
|
'time="%(t)s" pid=%(p)s level="INFO" type="[GNCRN]" ip="%(h)-15s" rqt="%(L)s" response_code="%(s)s" response_bytes="%(b)-6s" uri="%(m)s:%(U)s %(q)s" user=":%(u)s" user_agent="%(a)s"')
|
||||||
|
|
||||||
|
|
||||||
# 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 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.
|
|
||||||
workers = 4
|
|
||||||
|
|
||||||
# self adjust workers based on CPU count, to use maximum of CPU and not overquota the resources
|
# self adjust workers based on CPU count, to use maximum of CPU and not overquota the resources
|
||||||
# workers = get_workers()
|
# workers = get_workers()
|
||||||
|
|
||||||
|
|
@ -72,10 +62,22 @@ proc_name = 'rhodecode_enterprise'
|
||||||
# gevent:
|
# gevent:
|
||||||
# In this case, the maximum number of concurrent requests is (N workers * X worker_connections)
|
# 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
|
# e.g. workers =3 worker_connections=10 = 3*10, 30 concurrent requests can be handled
|
||||||
# gtrhead:
|
# gthread:
|
||||||
# In this case, the maximum number of concurrent requests is (N workers * X threads)
|
# 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
|
# e.g. workers = 3 threads=3 = 3*3, 9 concurrent requests can be handled
|
||||||
worker_class = 'gevent'
|
worker_class = 'gthread'
|
||||||
|
|
||||||
|
# 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 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.
|
||||||
|
workers = 2
|
||||||
|
|
||||||
|
# Threads numbers for worker class gthread
|
||||||
|
threads = 1
|
||||||
|
|
||||||
# The maximum number of simultaneous clients. Valid only for 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)
|
# In this case, the maximum number of concurrent requests is (N workers * X worker_connections)
|
||||||
|
|
|
||||||
|
|
@ -279,7 +279,10 @@ use_celery = false
|
||||||
#celerybeat-schedule.path =
|
#celerybeat-schedule.path =
|
||||||
|
|
||||||
; connection url to the message broker (default redis)
|
; connection url to the message broker (default redis)
|
||||||
celery.broker_url = redis://localhost:6379/8
|
celery.broker_url = redis://redis:6379/8
|
||||||
|
|
||||||
|
; results backend to get results for (default redis)
|
||||||
|
celery.result_backend = redis://redis:6379/8
|
||||||
|
|
||||||
; rabbitmq example
|
; rabbitmq example
|
||||||
#celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
|
#celery.broker_url = amqp://rabbitmq:qweqwe@localhost:5672/rabbitmqhost
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue