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