Show More
@@ -1,93 +1,79 b'' | |||||
1 | ################################################################################ |
|
1 | ################################################################################ | |
2 | # RhodeCode VCSServer - configuration # |
|
2 | # RhodeCode VCSServer - configuration # | |
3 | # # |
|
3 | # # | |
4 | ################################################################################ |
|
4 | ################################################################################ | |
5 |
|
5 | |||
6 | [DEFAULT] |
|
6 | [DEFAULT] | |
7 | host = 127.0.0.1 |
|
7 | host = 127.0.0.1 | |
8 | port = 9900 |
|
8 | port = 9900 | |
9 | locale = en_US.UTF-8 |
|
9 | locale = en_US.UTF-8 | |
10 | # number of worker threads, this should be set based on a formula threadpool=N*6 |
|
10 | # number of worker threads, this should be set based on a formula threadpool=N*6 | |
11 | # where N is number of RhodeCode Enterprise workers, eg. running 2 instances |
|
11 | # where N is number of RhodeCode Enterprise workers, eg. running 2 instances | |
12 | # 8 gunicorn workers each would be 2 * 8 * 6 = 96, threadpool_size = 96 |
|
12 | # 8 gunicorn workers each would be 2 * 8 * 6 = 96, threadpool_size = 96 | |
13 | threadpool_size = 96 |
|
13 | threadpool_size = 96 | |
14 | timeout = 0 |
|
14 | timeout = 0 | |
15 |
|
15 | |||
16 | # cache regions, please don't change |
|
16 | # cache regions, please don't change | |
17 | beaker.cache.regions = repo_object |
|
17 | beaker.cache.regions = repo_object | |
18 | beaker.cache.repo_object.type = memorylru |
|
18 | beaker.cache.repo_object.type = memorylru | |
19 | beaker.cache.repo_object.max_items = 100 |
|
19 | beaker.cache.repo_object.max_items = 100 | |
20 | # cache auto-expires after N seconds |
|
20 | # cache auto-expires after N seconds | |
21 | beaker.cache.repo_object.expire = 300 |
|
21 | beaker.cache.repo_object.expire = 300 | |
22 | beaker.cache.repo_object.enabled = true |
|
22 | beaker.cache.repo_object.enabled = true | |
23 |
|
23 | |||
24 |
|
24 | |||
25 | ################################ |
|
25 | ################################ | |
26 | ### LOGGING CONFIGURATION #### |
|
26 | ### LOGGING CONFIGURATION #### | |
27 | ################################ |
|
27 | ################################ | |
28 | [loggers] |
|
28 | [loggers] | |
29 | keys = root, vcsserver, pyro4, beaker |
|
29 | keys = root, vcsserver, pyro4, beaker | |
30 |
|
30 | |||
31 | [handlers] |
|
31 | [handlers] | |
32 | keys = console |
|
32 | keys = console | |
33 |
|
33 | |||
34 | [formatters] |
|
34 | [formatters] | |
35 | keys = generic |
|
35 | keys = generic | |
36 |
|
36 | |||
37 | ############# |
|
37 | ############# | |
38 | ## LOGGERS ## |
|
38 | ## LOGGERS ## | |
39 | ############# |
|
39 | ############# | |
40 | [logger_root] |
|
40 | [logger_root] | |
41 | level = NOTSET |
|
41 | level = NOTSET | |
42 | handlers = console |
|
42 | handlers = console | |
43 |
|
43 | |||
44 | [logger_vcsserver] |
|
44 | [logger_vcsserver] | |
45 | level = DEBUG |
|
45 | level = DEBUG | |
46 | handlers = |
|
46 | handlers = | |
47 | qualname = vcsserver |
|
47 | qualname = vcsserver | |
48 | propagate = 1 |
|
48 | propagate = 1 | |
49 |
|
49 | |||
50 | [logger_beaker] |
|
50 | [logger_beaker] | |
51 | level = DEBUG |
|
51 | level = DEBUG | |
52 | handlers = |
|
52 | handlers = | |
53 | qualname = beaker |
|
53 | qualname = beaker | |
54 | propagate = 1 |
|
54 | propagate = 1 | |
55 |
|
55 | |||
56 | [logger_pyro4] |
|
56 | [logger_pyro4] | |
57 | level = DEBUG |
|
57 | level = DEBUG | |
58 | handlers = |
|
58 | handlers = | |
59 | qualname = Pyro4 |
|
59 | qualname = Pyro4 | |
60 | propagate = 1 |
|
60 | propagate = 1 | |
61 |
|
61 | |||
62 |
|
62 | |||
63 | ############## |
|
63 | ############## | |
64 | ## HANDLERS ## |
|
64 | ## HANDLERS ## | |
65 | ############## |
|
65 | ############## | |
66 |
|
66 | |||
67 | [handler_console] |
|
67 | [handler_console] | |
68 | class = StreamHandler |
|
68 | class = StreamHandler | |
69 | args = (sys.stderr,) |
|
69 | args = (sys.stderr,) | |
70 | level = DEBUG |
|
70 | level = DEBUG | |
71 | formatter = generic |
|
71 | formatter = generic | |
72 |
|
72 | |||
73 | [handler_file] |
|
|||
74 | class = FileHandler |
|
|||
75 | args = ('vcsserver.log', 'a',) |
|
|||
76 | level = DEBUG |
|
|||
77 | formatter = generic |
|
|||
78 |
|
||||
79 | [handler_file_rotating] |
|
|||
80 | class = logging.handlers.TimedRotatingFileHandler |
|
|||
81 | # 'D', 5 - rotate every 5days |
|
|||
82 | # you can set 'h', 'midnight' |
|
|||
83 | args = ('vcsserver.log', 'D', 5, 10,) |
|
|||
84 | level = DEBUG |
|
|||
85 | formatter = generic |
|
|||
86 |
|
||||
87 | ################ |
|
73 | ################ | |
88 | ## FORMATTERS ## |
|
74 | ## FORMATTERS ## | |
89 | ################ |
|
75 | ################ | |
90 |
|
76 | |||
91 | [formatter_generic] |
|
77 | [formatter_generic] | |
92 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
78 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
93 | datefmt = %Y-%m-%d %H:%M:%S |
|
79 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -1,70 +1,82 b'' | |||||
|
1 | ################################################################################ | |||
|
2 | # RhodeCode VCSServer - configuration # | |||
|
3 | # # | |||
|
4 | ################################################################################ | |||
|
5 | ||||
1 | [app:main] |
|
6 | [app:main] | |
2 | use = egg:rhodecode-vcsserver |
|
7 | use = egg:rhodecode-vcsserver | |
3 | pyramid.reload_templates = true |
|
8 | ||
4 | pyramid.default_locale_name = en |
|
9 | pyramid.default_locale_name = en | |
5 | pyramid.includes = |
|
10 | pyramid.includes = | |
|
11 | ||||
|
12 | locale = en_US.UTF-8 | |||
|
13 | ||||
6 | # cache regions, please don't change |
|
14 | # cache regions, please don't change | |
7 | beaker.cache.regions = repo_object |
|
15 | beaker.cache.regions = repo_object | |
8 | beaker.cache.repo_object.type = memorylru |
|
16 | beaker.cache.repo_object.type = memorylru | |
9 | beaker.cache.repo_object.max_items = 100 |
|
17 | beaker.cache.repo_object.max_items = 100 | |
10 | # cache auto-expires after N seconds |
|
18 | # cache auto-expires after N seconds | |
11 | beaker.cache.repo_object.expire = 300 |
|
19 | beaker.cache.repo_object.expire = 300 | |
12 | beaker.cache.repo_object.enabled = true |
|
20 | beaker.cache.repo_object.enabled = true | |
13 | locale = en_US.UTF-8 |
|
|||
14 |
|
||||
15 |
|
21 | |||
16 | [server:main] |
|
22 | [server:main] | |
17 | use = egg:waitress#main |
|
23 | use = egg:waitress#main | |
18 | host = 0.0.0.0 |
|
24 | host = 0.0.0.0 | |
19 | port = %(http_port)s |
|
25 | port = %(http_port)s | |
20 |
|
26 | |||
21 |
|
27 | |||
22 | ################################ |
|
28 | ################################ | |
23 | ### LOGGING CONFIGURATION #### |
|
29 | ### LOGGING CONFIGURATION #### | |
24 | ################################ |
|
30 | ################################ | |
25 | [loggers] |
|
31 | [loggers] | |
26 | keys = root, vcsserver, beaker |
|
32 | keys = root, vcsserver, pyro4, beaker | |
27 |
|
33 | |||
28 | [handlers] |
|
34 | [handlers] | |
29 | keys = console |
|
35 | keys = console | |
30 |
|
36 | |||
31 | [formatters] |
|
37 | [formatters] | |
32 | keys = generic |
|
38 | keys = generic | |
33 |
|
39 | |||
34 | ############# |
|
40 | ############# | |
35 | ## LOGGERS ## |
|
41 | ## LOGGERS ## | |
36 | ############# |
|
42 | ############# | |
37 | [logger_root] |
|
43 | [logger_root] | |
38 | level = NOTSET |
|
44 | level = NOTSET | |
39 | handlers = console |
|
45 | handlers = console | |
40 |
|
46 | |||
41 | [logger_vcsserver] |
|
47 | [logger_vcsserver] | |
42 | level = DEBUG |
|
48 | level = DEBUG | |
43 | handlers = |
|
49 | handlers = | |
44 | qualname = vcsserver |
|
50 | qualname = vcsserver | |
45 | propagate = 1 |
|
51 | propagate = 1 | |
46 |
|
52 | |||
47 | [logger_beaker] |
|
53 | [logger_beaker] | |
48 | level = DEBUG |
|
54 | level = DEBUG | |
49 | handlers = |
|
55 | handlers = | |
50 | qualname = beaker |
|
56 | qualname = beaker | |
51 | propagate = 1 |
|
57 | propagate = 1 | |
52 |
|
58 | |||
|
59 | [logger_pyro4] | |||
|
60 | level = DEBUG | |||
|
61 | handlers = | |||
|
62 | qualname = Pyro4 | |||
|
63 | propagate = 1 | |||
|
64 | ||||
53 |
|
65 | |||
54 | ############## |
|
66 | ############## | |
55 | ## HANDLERS ## |
|
67 | ## HANDLERS ## | |
56 | ############## |
|
68 | ############## | |
57 |
|
69 | |||
58 | [handler_console] |
|
70 | [handler_console] | |
59 | class = StreamHandler |
|
71 | class = StreamHandler | |
60 | args = (sys.stderr,) |
|
72 | args = (sys.stderr,) | |
61 | level = DEBUG |
|
73 | level = DEBUG | |
62 | formatter = generic |
|
74 | formatter = generic | |
63 |
|
75 | |||
64 | ################ |
|
76 | ################ | |
65 | ## FORMATTERS ## |
|
77 | ## FORMATTERS ## | |
66 | ################ |
|
78 | ################ | |
67 |
|
79 | |||
68 | [formatter_generic] |
|
80 | [formatter_generic] | |
69 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
81 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
70 | datefmt = %Y-%m-%d %H:%M:%S |
|
82 | datefmt = %Y-%m-%d %H:%M:%S |
@@ -1,93 +1,79 b'' | |||||
1 | ################################################################################ |
|
1 | ################################################################################ | |
2 | # RhodeCode VCSServer - configuration # |
|
2 | # RhodeCode VCSServer - configuration # | |
3 | # # |
|
3 | # # | |
4 | ################################################################################ |
|
4 | ################################################################################ | |
5 |
|
5 | |||
6 | [DEFAULT] |
|
6 | [DEFAULT] | |
7 | host = 127.0.0.1 |
|
7 | host = 127.0.0.1 | |
8 | port = 9900 |
|
8 | port = 9900 | |
9 | locale = en_US.UTF-8 |
|
9 | locale = en_US.UTF-8 | |
10 | # number of worker threads, this should be set based on a formula threadpool=N*6 |
|
10 | # number of worker threads, this should be set based on a formula threadpool=N*6 | |
11 | # where N is number of RhodeCode Enterprise workers, eg. running 2 instances |
|
11 | # where N is number of RhodeCode Enterprise workers, eg. running 2 instances | |
12 | # 8 gunicorn workers each would be 2 * 8 * 6 = 96, threadpool_size = 96 |
|
12 | # 8 gunicorn workers each would be 2 * 8 * 6 = 96, threadpool_size = 96 | |
13 | threadpool_size = 96 |
|
13 | threadpool_size = 96 | |
14 | timeout = 0 |
|
14 | timeout = 0 | |
15 |
|
15 | |||
16 | # cache regions, please don't change |
|
16 | # cache regions, please don't change | |
17 | beaker.cache.regions = repo_object |
|
17 | beaker.cache.regions = repo_object | |
18 | beaker.cache.repo_object.type = memorylru |
|
18 | beaker.cache.repo_object.type = memorylru | |
19 | beaker.cache.repo_object.max_items = 100 |
|
19 | beaker.cache.repo_object.max_items = 100 | |
20 | # cache auto-expires after N seconds |
|
20 | # cache auto-expires after N seconds | |
21 | beaker.cache.repo_object.expire = 300 |
|
21 | beaker.cache.repo_object.expire = 300 | |
22 | beaker.cache.repo_object.enabled = true |
|
22 | beaker.cache.repo_object.enabled = true | |
23 |
|
23 | |||
24 |
|
24 | |||
25 | ################################ |
|
25 | ################################ | |
26 | ### LOGGING CONFIGURATION #### |
|
26 | ### LOGGING CONFIGURATION #### | |
27 | ################################ |
|
27 | ################################ | |
28 | [loggers] |
|
28 | [loggers] | |
29 | keys = root, vcsserver, pyro4, beaker |
|
29 | keys = root, vcsserver, pyro4, beaker | |
30 |
|
30 | |||
31 | [handlers] |
|
31 | [handlers] | |
32 | keys = console |
|
32 | keys = console | |
33 |
|
33 | |||
34 | [formatters] |
|
34 | [formatters] | |
35 | keys = generic |
|
35 | keys = generic | |
36 |
|
36 | |||
37 | ############# |
|
37 | ############# | |
38 | ## LOGGERS ## |
|
38 | ## LOGGERS ## | |
39 | ############# |
|
39 | ############# | |
40 | [logger_root] |
|
40 | [logger_root] | |
41 | level = NOTSET |
|
41 | level = NOTSET | |
42 | handlers = console |
|
42 | handlers = console | |
43 |
|
43 | |||
44 | [logger_vcsserver] |
|
44 | [logger_vcsserver] | |
45 | level = DEBUG |
|
45 | level = DEBUG | |
46 | handlers = |
|
46 | handlers = | |
47 | qualname = vcsserver |
|
47 | qualname = vcsserver | |
48 | propagate = 1 |
|
48 | propagate = 1 | |
49 |
|
49 | |||
50 | [logger_beaker] |
|
50 | [logger_beaker] | |
51 | level = DEBUG |
|
51 | level = DEBUG | |
52 | handlers = |
|
52 | handlers = | |
53 | qualname = beaker |
|
53 | qualname = beaker | |
54 | propagate = 1 |
|
54 | propagate = 1 | |
55 |
|
55 | |||
56 | [logger_pyro4] |
|
56 | [logger_pyro4] | |
57 | level = DEBUG |
|
57 | level = DEBUG | |
58 | handlers = |
|
58 | handlers = | |
59 | qualname = Pyro4 |
|
59 | qualname = Pyro4 | |
60 | propagate = 1 |
|
60 | propagate = 1 | |
61 |
|
61 | |||
62 |
|
62 | |||
63 | ############## |
|
63 | ############## | |
64 | ## HANDLERS ## |
|
64 | ## HANDLERS ## | |
65 | ############## |
|
65 | ############## | |
66 |
|
66 | |||
67 | [handler_console] |
|
67 | [handler_console] | |
68 | class = StreamHandler |
|
68 | class = StreamHandler | |
69 | args = (sys.stderr,) |
|
69 | args = (sys.stderr,) | |
70 | level = DEBUG |
|
70 | level = DEBUG | |
71 | formatter = generic |
|
71 | formatter = generic | |
72 |
|
72 | |||
73 | [handler_file] |
|
|||
74 | class = FileHandler |
|
|||
75 | args = ('vcsserver.log', 'a',) |
|
|||
76 | level = DEBUG |
|
|||
77 | formatter = generic |
|
|||
78 |
|
||||
79 | [handler_file_rotating] |
|
|||
80 | class = logging.handlers.TimedRotatingFileHandler |
|
|||
81 | # 'D', 5 - rotate every 5days |
|
|||
82 | # you can set 'h', 'midnight' |
|
|||
83 | args = ('vcsserver.log', 'D', 5, 10,) |
|
|||
84 | level = DEBUG |
|
|||
85 | formatter = generic |
|
|||
86 |
|
||||
87 | ################ |
|
73 | ################ | |
88 | ## FORMATTERS ## |
|
74 | ## FORMATTERS ## | |
89 | ################ |
|
75 | ################ | |
90 |
|
76 | |||
91 | [formatter_generic] |
|
77 | [formatter_generic] | |
92 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
|
78 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s | |
93 | datefmt = %Y-%m-%d %H:%M:%S |
|
79 | datefmt = %Y-%m-%d %H:%M:%S |
General Comments 0
You need to be logged in to leave comments.
Login now