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