##// END OF EJS Templates
ini: updated production ini with latest changes
marcink -
r216:b7a258b9 default
parent child Browse files
Show More
@@ -1,103 +1,102 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. Recommended
18 ## Sets the number of process workers. Recommended
19 ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers
19 ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers
20 workers = 2
20 workers = 2
21 ## process name
21 ## process name
22 proc_name = rhodecode_vcsserver
22 proc_name = rhodecode_vcsserver
23 ## type of worker class, one of sync, gevent
23 ## type of worker class, currently `sync` is the only option allowed.
24 ## recommended for bigger setup is using of of other than sync one
25 worker_class = sync
24 worker_class = sync
26 ## The maximum number of simultaneous clients. Valid only for Gevent
25 ## The maximum number of simultaneous clients. Valid only for Gevent
27 #worker_connections = 10
26 #worker_connections = 10
28 ## max number of requests that worker will handle before being gracefully
27 ## max number of requests that worker will handle before being gracefully
29 ## restarted, could prevent memory leaks
28 ## restarted, could prevent memory leaks
30 max_requests = 1000
29 max_requests = 1000
31 max_requests_jitter = 30
30 max_requests_jitter = 30
32 ## amount of time a worker can spend with handling a request before it
31 ## amount of time a worker can spend with handling a request before it
33 ## gets killed and restarted. Set to 6hrs
32 ## gets killed and restarted. Set to 6hrs
34 timeout = 21600
33 timeout = 21600
35
34
36
35
37 [app:main]
36 [app:main]
38 use = egg:rhodecode-vcsserver
37 use = egg:rhodecode-vcsserver
39
38
40 pyramid.default_locale_name = en
39 pyramid.default_locale_name = en
41 pyramid.includes =
40 pyramid.includes =
42
41
43 ## default locale used by VCS systems
42 ## default locale used by VCS systems
44 locale = en_US.UTF-8
43 locale = en_US.UTF-8
45
44
46 # cache regions, please don't change
45 # cache regions, please don't change
47 beaker.cache.regions = repo_object
46 beaker.cache.regions = repo_object
48 beaker.cache.repo_object.type = memorylru
47 beaker.cache.repo_object.type = memorylru
49 beaker.cache.repo_object.max_items = 100
48 beaker.cache.repo_object.max_items = 100
50 # cache auto-expires after N seconds
49 # cache auto-expires after N seconds
51 beaker.cache.repo_object.expire = 300
50 beaker.cache.repo_object.expire = 300
52 beaker.cache.repo_object.enabled = true
51 beaker.cache.repo_object.enabled = true
53
52
54
53
55 ################################
54 ################################
56 ### LOGGING CONFIGURATION ####
55 ### LOGGING CONFIGURATION ####
57 ################################
56 ################################
58 [loggers]
57 [loggers]
59 keys = root, vcsserver, beaker
58 keys = root, vcsserver, beaker
60
59
61 [handlers]
60 [handlers]
62 keys = console
61 keys = console
63
62
64 [formatters]
63 [formatters]
65 keys = generic
64 keys = generic
66
65
67 #############
66 #############
68 ## LOGGERS ##
67 ## LOGGERS ##
69 #############
68 #############
70 [logger_root]
69 [logger_root]
71 level = NOTSET
70 level = NOTSET
72 handlers = console
71 handlers = console
73
72
74 [logger_vcsserver]
73 [logger_vcsserver]
75 level = DEBUG
74 level = DEBUG
76 handlers =
75 handlers =
77 qualname = vcsserver
76 qualname = vcsserver
78 propagate = 1
77 propagate = 1
79
78
80 [logger_beaker]
79 [logger_beaker]
81 level = DEBUG
80 level = DEBUG
82 handlers =
81 handlers =
83 qualname = beaker
82 qualname = beaker
84 propagate = 1
83 propagate = 1
85
84
86
85
87 ##############
86 ##############
88 ## HANDLERS ##
87 ## HANDLERS ##
89 ##############
88 ##############
90
89
91 [handler_console]
90 [handler_console]
92 class = StreamHandler
91 class = StreamHandler
93 args = (sys.stderr,)
92 args = (sys.stderr,)
94 level = DEBUG
93 level = DEBUG
95 formatter = generic
94 formatter = generic
96
95
97 ################
96 ################
98 ## FORMATTERS ##
97 ## FORMATTERS ##
99 ################
98 ################
100
99
101 [formatter_generic]
100 [formatter_generic]
102 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
101 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
103 datefmt = %Y-%m-%d %H:%M:%S No newline at end of file
102 datefmt = %Y-%m-%d %H:%M:%S
General Comments 0
You need to be logged in to leave comments. Login now