Mercurial > kallithea
changeset 3902:056827d78073 beta
Added use_poll option for latest waitress release.
If fixes issues with 1024 fd limit.
- added example of gunicorn config. It includes
a note about not using multiworker setup.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 28 May 2013 16:15:40 +0200 |
parents | 6cc17e42fa49 |
children | ddd05df2aced |
files | development.ini production.ini rhodecode/config/deployment.ini_tmpl |
diffstat | 3 files changed, 67 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/development.ini Tue May 28 15:52:24 2013 +0200 +++ b/development.ini Tue May 28 16:15:40 2013 +0200 @@ -29,24 +29,37 @@ #smtp_auth = [server:main] -## PASTE -## nr of threads to spawn +## PASTE ## +#use = egg:Paste#http +## nr of worker threads to spawn #threadpool_workers = 5 - ## max request before thread respawn #threadpool_max_requests = 10 - ## option to use threads of process #use_threadpool = true -#use = egg:Paste#http - -## WAITRESS +## WAITRESS ## +use = egg:waitress#main +## number of worker threads threads = 5 -## 100GB +## MAX BODY SIZE 100GB max_request_body_size = 107374182400 -use = egg:waitress#main +## use poll instead of select, fixes fd limits, may not work on old +## windows systems. +asyncore_use_poll = True +## GUNICORN ## +#use = egg:gunicorn#main +## number of process workers. Don't change that to more than 1 +#workers = 1 +## process name +#proc_name = rhodecode +## type of worker class, one of sync, eventlet, gevent, tornado +## recommended for bigger setup is using of of other than sync one +#worker-class = sync +#max-requests = 5 + +## COMMON ## host = 0.0.0.0 port = 5000
--- a/production.ini Tue May 28 15:52:24 2013 +0200 +++ b/production.ini Tue May 28 16:15:40 2013 +0200 @@ -29,26 +29,39 @@ #smtp_auth = [server:main] -## PASTE -## nr of threads to spawn +## PASTE ## +#use = egg:Paste#http +## nr of worker threads to spawn #threadpool_workers = 5 - ## max request before thread respawn #threadpool_max_requests = 10 - ## option to use threads of process #use_threadpool = true -#use = egg:Paste#http - -## WAITRESS +## WAITRESS ## +use = egg:waitress#main +## number of worker threads threads = 5 -## 100GB +## MAX BODY SIZE 100GB max_request_body_size = 107374182400 -use = egg:waitress#main +## use poll instead of select, fixes fd limits, may not work on old +## windows systems. +asyncore_use_poll = True +## GUNICORN ## +#use = egg:gunicorn#main +## number of process workers. Don't change that to more than 1 +#workers = 1 +## process name +#proc_name = rhodecode +## type of worker class, one of sync, eventlet, gevent, tornado +## recommended for bigger setup is using of of other than sync one +#worker-class = sync +#max-requests = 5 + +## COMMON ## host = 127.0.0.1 -port = 8001 +port = 5000 ## prefix middleware for rc #[filter:proxy-prefix]
--- a/rhodecode/config/deployment.ini_tmpl Tue May 28 15:52:24 2013 +0200 +++ b/rhodecode/config/deployment.ini_tmpl Tue May 28 16:15:40 2013 +0200 @@ -29,24 +29,37 @@ #smtp_auth = [server:main] -## PASTE -## nr of threads to spawn +## PASTE ## +#use = egg:Paste#http +## nr of worker threads to spawn #threadpool_workers = 5 - ## max request before thread respawn #threadpool_max_requests = 10 - ## option to use threads of process #use_threadpool = true -#use = egg:Paste#http - -## WAITRESS +## WAITRESS ## +use = egg:waitress#main +## number of worker threads threads = 5 -## 100GB +## MAX BODY SIZE 100GB max_request_body_size = 107374182400 -use = egg:waitress#main +## use poll instead of select, fixes fd limits, may not work on old +## windows systems. +asyncore_use_poll = True +## GUNICORN ## +#use = egg:gunicorn#main +## number of process workers. Don't change that to more than 1 +#workers = 1 +## process name +#proc_name = rhodecode +## type of worker class, one of sync, eventlet, gevent, tornado +## recommended for bigger setup is using of of other than sync one +#worker-class = sync +#max-requests = 5 + +## COMMON ## host = 127.0.0.1 port = 5000