Mercurial > kallithea
comparison 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 |
comparison
equal
deleted
inserted
replaced
3901:6cc17e42fa49 | 3902:056827d78073 |
---|---|
27 #smtp_use_ssl = true | 27 #smtp_use_ssl = true |
28 ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) | 28 ## Specify available auth parameters here (e.g. LOGIN PLAIN CRAM-MD5, etc.) |
29 #smtp_auth = | 29 #smtp_auth = |
30 | 30 |
31 [server:main] | 31 [server:main] |
32 ## PASTE | 32 ## PASTE ## |
33 ## nr of threads to spawn | 33 #use = egg:Paste#http |
34 ## nr of worker threads to spawn | |
34 #threadpool_workers = 5 | 35 #threadpool_workers = 5 |
35 | |
36 ## max request before thread respawn | 36 ## max request before thread respawn |
37 #threadpool_max_requests = 10 | 37 #threadpool_max_requests = 10 |
38 | |
39 ## option to use threads of process | 38 ## option to use threads of process |
40 #use_threadpool = true | 39 #use_threadpool = true |
41 | 40 |
42 #use = egg:Paste#http | 41 ## WAITRESS ## |
43 | 42 use = egg:waitress#main |
44 ## WAITRESS | 43 ## number of worker threads |
45 threads = 5 | 44 threads = 5 |
46 ## 100GB | 45 ## MAX BODY SIZE 100GB |
47 max_request_body_size = 107374182400 | 46 max_request_body_size = 107374182400 |
48 use = egg:waitress#main | 47 ## use poll instead of select, fixes fd limits, may not work on old |
49 | 48 ## windows systems. |
49 asyncore_use_poll = True | |
50 | |
51 ## GUNICORN ## | |
52 #use = egg:gunicorn#main | |
53 ## number of process workers. Don't change that to more than 1 | |
54 #workers = 1 | |
55 ## process name | |
56 #proc_name = rhodecode | |
57 ## type of worker class, one of sync, eventlet, gevent, tornado | |
58 ## recommended for bigger setup is using of of other than sync one | |
59 #worker-class = sync | |
60 #max-requests = 5 | |
61 | |
62 ## COMMON ## | |
50 host = 127.0.0.1 | 63 host = 127.0.0.1 |
51 port = 8001 | 64 port = 5000 |
52 | 65 |
53 ## prefix middleware for rc | 66 ## prefix middleware for rc |
54 #[filter:proxy-prefix] | 67 #[filter:proxy-prefix] |
55 #use = egg:PasteDeploy#prefix | 68 #use = egg:PasteDeploy#prefix |
56 #prefix = /<your-prefix> | 69 #prefix = /<your-prefix> |