Show More
@@ -1,111 +1,109 b'' | |||||
1 | ################################################################################ |
|
1 | ################################################################################ | |
2 | # RhodeCode VCSServer with HTTP Backend - configuration # |
|
2 | # RhodeCode VCSServer with HTTP Backend - configuration # | |
3 | # # |
|
3 | # # | |
4 | ################################################################################ |
|
4 | ################################################################################ | |
5 |
|
5 | |||
6 |
|
6 | |||
7 | [server:main] |
|
7 | [server:main] | |
8 | ## COMMON ## |
|
8 | ## COMMON ## | |
9 | host = 127.0.0.1 |
|
9 | host = 127.0.0.1 | |
10 | port = 9900 |
|
10 | port = 9900 | |
11 |
|
11 | |||
12 |
|
12 | |||
13 | ########################## |
|
13 | ########################## | |
14 | ## GUNICORN WSGI SERVER ## |
|
14 | ## GUNICORN WSGI SERVER ## | |
15 | ########################## |
|
15 | ########################## | |
16 | ## run with gunicorn --log-config vcsserver.ini --paste vcsserver.ini |
|
16 | ## run with gunicorn --log-config vcsserver.ini --paste vcsserver.ini | |
17 | use = egg:gunicorn#main |
|
17 | use = egg:gunicorn#main | |
18 |
## Sets the number of process workers. |
|
18 | ## Sets the number of process workers. Recommended | |
19 | ## when this option is set to more than one worker, recommended |
|
|||
20 | ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers |
|
19 | ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers | |
21 | ## The `instance_id = *` must be set in the [app:main] section below |
|
|||
22 | workers = 2 |
|
20 | workers = 2 | |
23 | ## process name |
|
21 | ## process name | |
24 | proc_name = rhodecode_vcsserver |
|
22 | proc_name = rhodecode_vcsserver | |
25 | ## type of worker class, one of sync, gevent |
|
23 | ## type of worker class, one of sync, gevent | |
26 | ## recommended for bigger setup is using of of other than sync one |
|
24 | ## recommended for bigger setup is using of of other than sync one | |
27 | worker_class = sync |
|
25 | worker_class = sync | |
28 | ## The maximum number of simultaneous clients. Valid only for Gevent |
|
26 | ## The maximum number of simultaneous clients. Valid only for Gevent | |
29 | #worker_connections = 10 |
|
27 | #worker_connections = 10 | |
30 | ## max number of requests that worker will handle before being gracefully |
|
28 | ## max number of requests that worker will handle before being gracefully | |
31 | ## restarted, could prevent memory leaks |
|
29 | ## restarted, could prevent memory leaks | |
32 | max_requests = 1000 |
|
30 | max_requests = 1000 | |
33 | max_requests_jitter = 30 |
|
31 | max_requests_jitter = 30 | |
34 | ## amount of time a worker can spend with handling a request before it |
|
32 | ## amount of time a worker can spend with handling a request before it | |
35 | ## gets killed and restarted. Set to 6hrs |
|
33 | ## gets killed and restarted. Set to 6hrs | |
36 | timeout = 21600 |
|
34 | timeout = 21600 | |
37 |
|
35 | |||
38 |
|
36 | |||
39 | [app:main] |
|
37 | [app:main] | |
40 | use = egg:rhodecode-vcsserver |
|
38 | use = egg:rhodecode-vcsserver | |
41 |
|
39 | |||
42 | pyramid.default_locale_name = en |
|
40 | pyramid.default_locale_name = en | |
43 | pyramid.includes = |
|
41 | pyramid.includes = | |
44 |
|
42 | |||
45 | ## default locale used by VCS systems |
|
43 | ## default locale used by VCS systems | |
46 | locale = en_US.UTF-8 |
|
44 | locale = en_US.UTF-8 | |
47 |
|
45 | |||
48 | # cache regions, please don't change |
|
46 | # cache regions, please don't change | |
49 | beaker.cache.regions = repo_object |
|
47 | beaker.cache.regions = repo_object | |
50 | beaker.cache.repo_object.type = memorylru |
|
48 | beaker.cache.repo_object.type = memorylru | |
51 | beaker.cache.repo_object.max_items = 100 |
|
49 | beaker.cache.repo_object.max_items = 100 | |
52 | # cache auto-expires after N seconds |
|
50 | # cache auto-expires after N seconds | |
53 | beaker.cache.repo_object.expire = 300 |
|
51 | beaker.cache.repo_object.expire = 300 | |
54 | beaker.cache.repo_object.enabled = true |
|
52 | beaker.cache.repo_object.enabled = true | |
55 |
|
53 | |||
56 |
|
54 | |||
57 | ################################ |
|
55 | ################################ | |
58 | ### LOGGING CONFIGURATION #### |
|
56 | ### LOGGING CONFIGURATION #### | |
59 | ################################ |
|
57 | ################################ | |
60 | [loggers] |
|
58 | [loggers] | |
61 | keys = root, vcsserver, pyro4, beaker |
|
59 | keys = root, vcsserver, pyro4, beaker | |
62 |
|
60 | |||
63 | [handlers] |
|
61 | [handlers] | |
64 | keys = console |
|
62 | keys = console | |
65 |
|
63 | |||
66 | [formatters] |
|
64 | [formatters] | |
67 | keys = generic |
|
65 | keys = generic | |
68 |
|
66 | |||
69 | ############# |
|
67 | ############# | |
70 | ## LOGGERS ## |
|
68 | ## LOGGERS ## | |
71 | ############# |
|
69 | ############# | |
72 | [logger_root] |
|
70 | [logger_root] | |
73 | level = NOTSET |
|
71 | level = NOTSET | |
74 | handlers = console |
|
72 | handlers = console | |
75 |
|
73 | |||
76 | [logger_vcsserver] |
|
74 | [logger_vcsserver] | |
77 | level = DEBUG |
|
75 | level = DEBUG | |
78 | handlers = |
|
76 | handlers = | |
79 | qualname = vcsserver |
|
77 | qualname = vcsserver | |
80 | propagate = 1 |
|
78 | propagate = 1 | |
81 |
|
79 | |||
82 | [logger_beaker] |
|
80 | [logger_beaker] | |
83 | level = DEBUG |
|
81 | level = DEBUG | |
84 | handlers = |
|
82 | handlers = | |
85 | qualname = beaker |
|
83 | qualname = beaker | |
86 | propagate = 1 |
|
84 | propagate = 1 | |
87 |
|
85 | |||
88 | [logger_pyro4] |
|
86 | [logger_pyro4] | |
89 | level = DEBUG |
|
87 | level = DEBUG | |
90 | handlers = |
|
88 | handlers = | |
91 | qualname = Pyro4 |
|
89 | qualname = Pyro4 | |
92 | propagate = 1 |
|
90 | propagate = 1 | |
93 |
|
91 | |||
94 |
|
92 | |||
95 | ############## |
|
93 | ############## | |
96 | ## HANDLERS ## |
|
94 | ## HANDLERS ## | |
97 | ############## |
|
95 | ############## | |
98 |
|
96 | |||
99 | [handler_console] |
|
97 | [handler_console] | |
100 | class = StreamHandler |
|
98 | class = StreamHandler | |
101 | args = (sys.stderr,) |
|
99 | args = (sys.stderr,) | |
102 | level = DEBUG |
|
100 | level = DEBUG | |
103 | formatter = generic |
|
101 | formatter = generic | |
104 |
|
102 | |||
105 | ################ |
|
103 | ################ | |
106 | ## FORMATTERS ## |
|
104 | ## FORMATTERS ## | |
107 | ################ |
|
105 | ################ | |
108 |
|
106 | |||
109 | [formatter_generic] |
|
107 | [formatter_generic] | |
110 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
108 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
111 | datefmt = %Y-%m-%d %H:%M:%S No newline at end of file |
|
109 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now