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