diff production.ini @ 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 7a4df261a375
children fe053a42c4ce
line wrap: on
line diff
--- 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]