Changeset - 056827d78073
[Not reviewed]
beta
0 3 0
Marcin Kuzminski - 12 years ago 2013-05-28 16:15:40
marcin@python-works.com
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.
3 files changed with 67 insertions and 28 deletions:
0 comments (0 inline, 0 general)
development.ini
Show inline comments
 
@@ -29,24 +29,37 @@ pdebug = false
 
#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
 

	
production.ini
Show inline comments
 
@@ -29,26 +29,39 @@ pdebug = false
 
#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]
rhodecode/config/deployment.ini_tmpl
Show inline comments
 
@@ -29,24 +29,37 @@ pdebug = false
 
#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
 

	
0 comments (0 inline, 0 general)