##// END OF EJS Templates
docs: deprecate beaker.cache in docs
marcink -
r3023:d926e857 stable
parent child Browse files
Show More
@@ -1,118 +1,112 b''
1 .. _debug-mode:
1 .. _debug-mode:
2
2
3 Enabling Debug Mode
3 Enabling Debug Mode
4 -------------------
4 -------------------
5
5
6 To enable debug mode on a |RCE| instance you need to set the debug property
6 To enable debug mode on a |RCE| instance you need to set the debug property
7 in the :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` file. To
7 in the :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` file. To
8 do this, use the following steps
8 do this, use the following steps
9
9
10 1. Open the file and set the ``debug`` line to ``true``
10 1. Open the file and set the ``debug`` line to ``true``
11 2. Restart you instance using the ``rccontrol restart`` command,
11 2. Restart you instance using the ``rccontrol restart`` command,
12 see the following example:
12 see the following example:
13
13
14 You can also set the log level, the follow are the valid options;
14 You can also set the log level, the follow are the valid options;
15 ``debug``, ``info``, ``warning``, or ``fatal``.
15 ``debug``, ``info``, ``warning``, or ``fatal``.
16
16
17 .. code-block:: ini
17 .. code-block:: ini
18
18
19 [DEFAULT]
19 [DEFAULT]
20 debug = true
20 debug = true
21 pdebug = false
21 pdebug = false
22
22
23 .. code-block:: bash
23 .. code-block:: bash
24
24
25 # Restart your instance
25 # Restart your instance
26 $ rccontrol restart enterprise-1
26 $ rccontrol restart enterprise-1
27 Instance "enterprise-1" successfully stopped.
27 Instance "enterprise-1" successfully stopped.
28 Instance "enterprise-1" successfully started.
28 Instance "enterprise-1" successfully started.
29
29
30 Debug and Logging Configuration
30 Debug and Logging Configuration
31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
31 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32
32
33 Further debugging and logging settings can also be set in the
33 Further debugging and logging settings can also be set in the
34 :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` file.
34 :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` file.
35
35
36 In the logging section, the various packages that run with |RCE| can have
36 In the logging section, the various packages that run with |RCE| can have
37 different debug levels set. If you want to increase the logging level change
37 different debug levels set. If you want to increase the logging level change
38 ``level = DEBUG`` line to one of the valid options.
38 ``level = DEBUG`` line to one of the valid options.
39
39
40 You also need to change the log level for handlers. See the example
40 You also need to change the log level for handlers. See the example
41 ``##handler`` section below. The ``handler`` level takes the same options as
41 ``##handler`` section below. The ``handler`` level takes the same options as
42 the ``debug`` level.
42 the ``debug`` level.
43
43
44 .. code-block:: ini
44 .. code-block:: ini
45
45
46 ################################
46 ################################
47 ### LOGGING CONFIGURATION ####
47 ### LOGGING CONFIGURATION ####
48 ################################
48 ################################
49 [loggers]
49 [loggers]
50 keys = root, sqlalchemy, beaker, rhodecode, ssh_wrapper
50 keys = root, sqlalchemy, rhodecode, ssh_wrapper
51
51
52 [handlers]
52 [handlers]
53 keys = console, console_sql, file, file_rotating
53 keys = console, console_sql, file, file_rotating
54
54
55 [formatters]
55 [formatters]
56 keys = generic, color_formatter, color_formatter_sql
56 keys = generic, color_formatter, color_formatter_sql
57
57
58 #############
58 #############
59 ## LOGGERS ##
59 ## LOGGERS ##
60 #############
60 #############
61 [logger_root]
61 [logger_root]
62 level = NOTSET
62 level = NOTSET
63 handlers = console
63 handlers = console
64
64
65 [logger_routes]
65 [logger_routes]
66 level = DEBUG
66 level = DEBUG
67 handlers =
67 handlers =
68 qualname = routes.middleware
68 qualname = routes.middleware
69 ## "level = DEBUG" logs the route matched and routing variables.
69 ## "level = DEBUG" logs the route matched and routing variables.
70 propagate = 1
70 propagate = 1
71
71
72 [logger_beaker]
73 level = DEBUG
74 handlers =
75 qualname = beaker.container
76 propagate = 1
77
78 [logger_rhodecode]
72 [logger_rhodecode]
79 level = DEBUG
73 level = DEBUG
80 handlers =
74 handlers =
81 qualname = rhodecode
75 qualname = rhodecode
82 propagate = 1
76 propagate = 1
83
77
84 [logger_sqlalchemy]
78 [logger_sqlalchemy]
85 level = INFO
79 level = INFO
86 handlers = console_sql
80 handlers = console_sql
87 qualname = sqlalchemy.engine
81 qualname = sqlalchemy.engine
88 propagate = 0
82 propagate = 0
89
83
90 ##############
84 ##############
91 ## HANDLERS ##
85 ## HANDLERS ##
92 ##############
86 ##############
93
87
94 [handler_console]
88 [handler_console]
95 class = StreamHandler
89 class = StreamHandler
96 args = (sys.stderr,)
90 args = (sys.stderr,)
97 level = INFO
91 level = INFO
98 formatter = generic
92 formatter = generic
99
93
100 [handler_console_sql]
94 [handler_console_sql]
101 class = StreamHandler
95 class = StreamHandler
102 args = (sys.stderr,)
96 args = (sys.stderr,)
103 level = WARN
97 level = WARN
104 formatter = generic
98 formatter = generic
105
99
106 [handler_file]
100 [handler_file]
107 class = FileHandler
101 class = FileHandler
108 args = ('rhodecode.log', 'a',)
102 args = ('rhodecode.log', 'a',)
109 level = INFO
103 level = INFO
110 formatter = generic
104 formatter = generic
111
105
112 [handler_file_rotating]
106 [handler_file_rotating]
113 class = logging.handlers.TimedRotatingFileHandler
107 class = logging.handlers.TimedRotatingFileHandler
114 # 'D', 5 - rotate every 5days
108 # 'D', 5 - rotate every 5days
115 # you can set 'h', 'midnight'
109 # you can set 'h', 'midnight'
116 args = ('rhodecode.log', 'D', 5, 10,)
110 args = ('rhodecode.log', 'D', 5, 10,)
117 level = INFO
111 level = INFO
118 formatter = generic
112 formatter = generic
@@ -1,324 +1,324 b''
1 .. _vcs-server:
1 .. _vcs-server:
2
2
3 VCS Server Management
3 VCS Server Management
4 ---------------------
4 ---------------------
5
5
6 The VCS Server handles |RCM| backend functionality. You need to configure
6 The VCS Server handles |RCM| backend functionality. You need to configure
7 a VCS Server to run with a |RCM| instance. If you do not, you will be missing
7 a VCS Server to run with a |RCM| instance. If you do not, you will be missing
8 the connection between |RCM| and its |repos|. This will cause error messages
8 the connection between |RCM| and its |repos|. This will cause error messages
9 on the web interface. You can run your setup in the following configurations,
9 on the web interface. You can run your setup in the following configurations,
10 currently the best performance is one of following:
10 currently the best performance is one of following:
11
11
12 * One VCS Server per |RCM| instance.
12 * One VCS Server per |RCM| instance.
13 * One VCS Server handling multiple instances.
13 * One VCS Server handling multiple instances.
14
14
15 .. important::
15 .. important::
16
16
17 If your server locale settings are not correctly configured,
17 If your server locale settings are not correctly configured,
18 |RCE| and the VCS Server can run into issues. See this `Ask Ubuntu`_ post
18 |RCE| and the VCS Server can run into issues. See this `Ask Ubuntu`_ post
19 which explains the problem and gives a solution.
19 which explains the problem and gives a solution.
20
20
21 For more information, see the following sections:
21 For more information, see the following sections:
22
22
23 * :ref:`install-vcs`
23 * :ref:`install-vcs`
24 * :ref:`config-vcs`
24 * :ref:`config-vcs`
25 * :ref:`vcs-server-options`
25 * :ref:`vcs-server-options`
26 * :ref:`vcs-server-versions`
26 * :ref:`vcs-server-versions`
27 * :ref:`vcs-server-maintain`
27 * :ref:`vcs-server-maintain`
28 * :ref:`vcs-server-config-file`
28 * :ref:`vcs-server-config-file`
29 * :ref:`svn-http`
29 * :ref:`svn-http`
30
30
31 .. _install-vcs:
31 .. _install-vcs:
32
32
33 VCS Server Installation
33 VCS Server Installation
34 ^^^^^^^^^^^^^^^^^^^^^^^
34 ^^^^^^^^^^^^^^^^^^^^^^^
35
35
36 To install a VCS Server, see
36 To install a VCS Server, see
37 :ref:`Installing a VCS server <control:install-vcsserver>`.
37 :ref:`Installing a VCS server <control:install-vcsserver>`.
38
38
39 .. _config-vcs:
39 .. _config-vcs:
40
40
41 Hooking |RCE| to its VCS Server
41 Hooking |RCE| to its VCS Server
42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
42 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43
43
44 To configure a |RCE| instance to use a VCS server, see
44 To configure a |RCE| instance to use a VCS server, see
45 :ref:`Configuring the VCS Server connection <control:manually-vcsserver-ini>`.
45 :ref:`Configuring the VCS Server connection <control:manually-vcsserver-ini>`.
46
46
47 .. _vcs-server-options:
47 .. _vcs-server-options:
48
48
49 |RCE| VCS Server Options
49 |RCE| VCS Server Options
50 ^^^^^^^^^^^^^^^^^^^^^^^^
50 ^^^^^^^^^^^^^^^^^^^^^^^^
51
51
52 The following list shows the available options on the |RCM| side of the
52 The following list shows the available options on the |RCM| side of the
53 connection to the VCS Server. The settings are configured per
53 connection to the VCS Server. The settings are configured per
54 instance in the
54 instance in the
55 :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` file.
55 :file:`/home/{user}/.rccontrol/{instance-id}/rhodecode.ini` file.
56
56
57 .. rst-class:: dl-horizontal
57 .. rst-class:: dl-horizontal
58
58
59 \vcs.backends <available-vcs-systems>
59 \vcs.backends <available-vcs-systems>
60 Set a comma-separated list of the |repo| options available from the
60 Set a comma-separated list of the |repo| options available from the
61 web interface. The default is ``hg, git, svn``,
61 web interface. The default is ``hg, git, svn``,
62 which is all |repo| types available. The order of backends is also the
62 which is all |repo| types available. The order of backends is also the
63 order backend will try to detect requests type.
63 order backend will try to detect requests type.
64
64
65 \vcs.connection_timeout <seconds>
65 \vcs.connection_timeout <seconds>
66 Set the length of time in seconds that the VCS Server waits for
66 Set the length of time in seconds that the VCS Server waits for
67 requests to process. After the timeout expires,
67 requests to process. After the timeout expires,
68 the request is closed. The default is ``3600``. Set to a higher
68 the request is closed. The default is ``3600``. Set to a higher
69 number if you experience network latency, or timeout issues with very
69 number if you experience network latency, or timeout issues with very
70 large push/pull requests.
70 large push/pull requests.
71
71
72 \vcs.server.enable <boolean>
72 \vcs.server.enable <boolean>
73 Enable or disable the VCS Server. The available options are ``true`` or
73 Enable or disable the VCS Server. The available options are ``true`` or
74 ``false``. The default is ``true``.
74 ``false``. The default is ``true``.
75
75
76 \vcs.server <host:port>
76 \vcs.server <host:port>
77 Set the host, either hostname or IP Address, and port of the VCS server
77 Set the host, either hostname or IP Address, and port of the VCS server
78 you wish to run with your |RCM| instance.
78 you wish to run with your |RCM| instance.
79
79
80 .. code-block:: ini
80 .. code-block:: ini
81
81
82 ##################
82 ##################
83 ### VCS CONFIG ###
83 ### VCS CONFIG ###
84 ##################
84 ##################
85 # set this line to match your VCS Server
85 # set this line to match your VCS Server
86 vcs.server = 127.0.0.1:10004
86 vcs.server = 127.0.0.1:10004
87 # Set to False to disable the VCS Server
87 # Set to False to disable the VCS Server
88 vcs.server.enable = True
88 vcs.server.enable = True
89 vcs.backends = hg, git, svn
89 vcs.backends = hg, git, svn
90 vcs.connection_timeout = 3600
90 vcs.connection_timeout = 3600
91
91
92
92
93 .. _vcs-server-versions:
93 .. _vcs-server-versions:
94
94
95 VCS Server Versions
95 VCS Server Versions
96 ^^^^^^^^^^^^^^^^^^^
96 ^^^^^^^^^^^^^^^^^^^
97
97
98 An updated version of the VCS Server is released with each |RCE| version. Use
98 An updated version of the VCS Server is released with each |RCE| version. Use
99 the VCS Server number that matches with the |RCE| version to pair the
99 the VCS Server number that matches with the |RCE| version to pair the
100 appropriate ones together. For |RCE| versions pre 3.3.0,
100 appropriate ones together. For |RCE| versions pre 3.3.0,
101 VCS Server 1.X.Y works with |RCE| 3.X.Y, for example:
101 VCS Server 1.X.Y works with |RCE| 3.X.Y, for example:
102
102
103 * VCS Server 1.0.0 works with |RCE| 3.0.0
103 * VCS Server 1.0.0 works with |RCE| 3.0.0
104 * VCS Server 1.2.2 works with |RCE| 3.2.2
104 * VCS Server 1.2.2 works with |RCE| 3.2.2
105
105
106 For |RCE| versions post 3.3.0, the VCS Server and |RCE| version numbers
106 For |RCE| versions post 3.3.0, the VCS Server and |RCE| version numbers
107 match, for example:
107 match, for example:
108
108
109 * VCS Server |release| works with |RCE| |release|
109 * VCS Server |release| works with |RCE| |release|
110
110
111 .. _vcs-server-maintain:
111 .. _vcs-server-maintain:
112
112
113 VCS Server Memory Optimization
113 VCS Server Memory Optimization
114 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
114 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
115
115
116 To configure the VCS server to manage the cache efficiently, you need to
116 To optimize the VCS server to manage the cache and memory usage efficiently, you need to
117 configure the following options in the
117 configure the following options in the
118 :file:`/home/{user}/.rccontrol/{vcsserver-id}/vcsserver.ini` file. Once
118 :file:`/home/{user}/.rccontrol/{vcsserver-id}/vcsserver.ini` file. Once
119 configured, restart the VCS Server.
119 configured, restart the VCS Server. By default we use an optimal settings, but in certain
120 conditions tunning expiration_time and max_size can affect memory usage and performance
120
121
121 .. rst-class:: dl-horizontal
122 .. code-block:: ini
122
123
123 \beaker.cache.repo_object.type = memorylru
124 ## cache region for storing repo_objects cache
124 Configures the cache to discard the least recently used items.
125 rc_cache.repo_object.backend = dogpile.cache.rc.memory_lru
125 This setting takes the following valid options:
126
127 ## cache auto-expires after N seconds, setting this to 0 disabled cache
128 rc_cache.repo_object.expiration_time = 300
126
129
127 * ``memorylru``: The default setting, which removes the least recently
130 ## max size of LRU, old values will be discarded if the size of cache reaches max_size
128 used items from the cache.
131 ## Sets the maximum number of items stored in the cache, before the cache
129 * ``memory``: Runs the VCS Server without clearing the cache.
132 ## starts to be cleared.
130 * ``nocache``: Runs the VCS Server without a cache. This will
131 dramatically reduce the VCS Server performance.
132
133
133 \beaker.cache.repo_object.max_items = 100
134 ## As a general rule of thumb, running this value at 120 resulted in a
134 Sets the maximum number of items stored in the cache, before the cache
135 ## 5GB cache. Running it at 240 resulted in a 9GB cache. Your results
135 starts to be cleared.
136 ## will differ based on usage patterns and |repo| sizes.
136
137
137 As a general rule of thumb, running this value at 120 resulted in a
138 ## Tweaking this value to run at a fairly constant memory load on your
138 5GB cache. Running it at 240 resulted in a 9GB cache. Your results
139 ## server will help performance.
139 will differ based on usage patterns and |repo| sizes.
140
140
141 Tweaking this value to run at a fairly constant memory load on your
141 rc_cache.repo_object.max_size = 120
142 server will help performance.
142
143
143
144 To clear the cache completely, you can restart the VCS Server.
144 To clear the cache completely, you can restart the VCS Server.
145
145
146 .. important::
146 .. important::
147
147
148 While the VCS Server handles a restart gracefully on the web interface,
148 While the VCS Server handles a restart gracefully on the web interface,
149 it will drop connections during push/pull requests. So it is recommended
149 it will drop connections during push/pull requests. So it is recommended
150 you only perform this when there is very little traffic on the instance.
150 you only perform this when there is very little traffic on the instance.
151
151
152 Use the following example to restart your VCS Server,
152 Use the following example to restart your VCS Server,
153 for full details see the :ref:`RhodeCode Control CLI <control:rcc-cli>`.
153 for full details see the :ref:`RhodeCode Control CLI <control:rcc-cli>`.
154
154
155 .. code-block:: bash
155 .. code-block:: bash
156
156
157 $ rccontrol status
157 $ rccontrol status
158
158
159 .. code-block:: vim
159 .. code-block:: vim
160
160
161 - NAME: vcsserver-1
161 - NAME: vcsserver-1
162 - STATUS: RUNNING
162 - STATUS: RUNNING
163 logs:/home/ubuntu/.rccontrol/vcsserver-1/vcsserver.log
163 logs:/home/ubuntu/.rccontrol/vcsserver-1/vcsserver.log
164 - VERSION: 4.7.2 VCSServer
164 - VERSION: 4.7.2 VCSServer
165 - URL: http://127.0.0.1:10008
165 - URL: http://127.0.0.1:10008
166 - CONFIG: /home/ubuntu/.rccontrol/vcsserver-1/vcsserver.ini
166 - CONFIG: /home/ubuntu/.rccontrol/vcsserver-1/vcsserver.ini
167
167
168 $ rccontrol restart vcsserver-1
168 $ rccontrol restart vcsserver-1
169 Instance "vcsserver-1" successfully stopped.
169 Instance "vcsserver-1" successfully stopped.
170 Instance "vcsserver-1" successfully started.
170 Instance "vcsserver-1" successfully started.
171
171
172 .. _vcs-server-config-file:
172 .. _vcs-server-config-file:
173
173
174 VCS Server Configuration
174 VCS Server Configuration
175 ^^^^^^^^^^^^^^^^^^^^^^^^
175 ^^^^^^^^^^^^^^^^^^^^^^^^
176
176
177 You can configure settings for multiple VCS Servers on your
177 You can configure settings for multiple VCS Servers on your
178 system using their individual configuration files. Use the following
178 system using their individual configuration files. Use the following
179 properties inside the configuration file to set up your system. The default
179 properties inside the configuration file to set up your system. The default
180 location is :file:`home/{user}/.rccontrol/{vcsserver-id}/vcsserver.ini`.
180 location is :file:`home/{user}/.rccontrol/{vcsserver-id}/vcsserver.ini`.
181 For a more detailed explanation of the logger levers, see :ref:`debug-mode`.
181 For a more detailed explanation of the logger levers, see :ref:`debug-mode`.
182
182
183 .. rst-class:: dl-horizontal
183 .. rst-class:: dl-horizontal
184
184
185 \host <ip-address>
185 \host <ip-address>
186 Set the host on which the VCS Server will run. VCSServer is not
186 Set the host on which the VCS Server will run. VCSServer is not
187 protected by any authentication, so we *highly* recommend running it
187 protected by any authentication, so we *highly* recommend running it
188 under localhost ip that is `127.0.0.1`
188 under localhost ip that is `127.0.0.1`
189
189
190 \port <int>
190 \port <int>
191 Set the port number on which the VCS Server will be available.
191 Set the port number on which the VCS Server will be available.
192
192
193 \locale <locale_utf>
193 \locale <locale_utf>
194 Set the locale the VCS Server expects.
194 Set the locale the VCS Server expects.
195
195
196 \workers <int>
196 \workers <int>
197 Set the number of process workers.Recommended
197 Set the number of process workers.Recommended
198 value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers
198 value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers
199
199
200 \max_requests <int>
200 \max_requests <int>
201 The maximum number of requests a worker will process before restarting.
201 The maximum number of requests a worker will process before restarting.
202 Any value greater than zero will limit the number of requests a work
202 Any value greater than zero will limit the number of requests a work
203 will process before automatically restarting. This is a simple method
203 will process before automatically restarting. This is a simple method
204 to help limit the damage of memory leaks.
204 to help limit the damage of memory leaks.
205
205
206 \max_requests_jitter <int>
206 \max_requests_jitter <int>
207 The maximum jitter to add to the max_requests setting.
207 The maximum jitter to add to the max_requests setting.
208 The jitter causes the restart per worker to be randomized by
208 The jitter causes the restart per worker to be randomized by
209 randint(0, max_requests_jitter). This is intended to stagger worker
209 randint(0, max_requests_jitter). This is intended to stagger worker
210 restarts to avoid all workers restarting at the same time.
210 restarts to avoid all workers restarting at the same time.
211
211
212
212
213 .. note::
213 .. note::
214
214
215 After making changes, you need to restart your VCS Server to pick them up.
215 After making changes, you need to restart your VCS Server to pick them up.
216
216
217 .. code-block:: ini
217 .. code-block:: ini
218
218
219 ################################################################################
219 ################################################################################
220 # RhodeCode VCSServer with HTTP Backend - configuration #
220 # RhodeCode VCSServer with HTTP Backend - configuration #
221 # #
221 # #
222 ################################################################################
222 ################################################################################
223
223
224
224
225 [server:main]
225 [server:main]
226 ## COMMON ##
226 ## COMMON ##
227 host = 127.0.0.1
227 host = 127.0.0.1
228 port = 10002
228 port = 10002
229
229
230 ##########################
230 ##########################
231 ## GUNICORN WSGI SERVER ##
231 ## GUNICORN WSGI SERVER ##
232 ##########################
232 ##########################
233 ## run with gunicorn --log-config vcsserver.ini --paste vcsserver.ini
233 ## run with gunicorn --log-config vcsserver.ini --paste vcsserver.ini
234 use = egg:gunicorn#main
234 use = egg:gunicorn#main
235 ## Sets the number of process workers. Recommended
235 ## Sets the number of process workers. Recommended
236 ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers
236 ## value is (2 * NUMBER_OF_CPUS + 1), eg 2CPU = 5 workers
237 workers = 3
237 workers = 3
238 ## process name
238 ## process name
239 proc_name = rhodecode_vcsserver
239 proc_name = rhodecode_vcsserver
240 ## type of worker class, one of sync, gevent
240 ## type of worker class, one of sync, gevent
241 ## recommended for bigger setup is using of of other than sync one
241 ## recommended for bigger setup is using of of other than sync one
242 worker_class = sync
242 worker_class = sync
243 ## The maximum number of simultaneous clients. Valid only for Gevent
243 ## The maximum number of simultaneous clients. Valid only for Gevent
244 #worker_connections = 10
244 #worker_connections = 10
245 ## max number of requests that worker will handle before being gracefully
245 ## max number of requests that worker will handle before being gracefully
246 ## restarted, could prevent memory leaks
246 ## restarted, could prevent memory leaks
247 max_requests = 1000
247 max_requests = 1000
248 max_requests_jitter = 30
248 max_requests_jitter = 30
249 ## amount of time a worker can spend with handling a request before it
249 ## amount of time a worker can spend with handling a request before it
250 ## gets killed and restarted. Set to 6hrs
250 ## gets killed and restarted. Set to 6hrs
251 timeout = 21600
251 timeout = 21600
252
252
253 [app:main]
253 [app:main]
254 use = egg:rhodecode-vcsserver
254 use = egg:rhodecode-vcsserver
255
255
256 pyramid.default_locale_name = en
256 pyramid.default_locale_name = en
257 pyramid.includes =
257 pyramid.includes =
258
258
259 ## default locale used by VCS systems
259 ## default locale used by VCS systems
260 locale = en_US.UTF-8
260 locale = en_US.UTF-8
261
261
262 # cache regions, please don't change
262 # cache regions, please don't change
263 beaker.cache.regions = repo_object
263 beaker.cache.regions = repo_object
264 beaker.cache.repo_object.type = memorylru
264 beaker.cache.repo_object.type = memorylru
265 beaker.cache.repo_object.max_items = 100
265 beaker.cache.repo_object.max_items = 100
266 # cache auto-expires after N seconds
266 # cache auto-expires after N seconds
267 beaker.cache.repo_object.expire = 300
267 beaker.cache.repo_object.expire = 300
268 beaker.cache.repo_object.enabled = true
268 beaker.cache.repo_object.enabled = true
269
269
270
270
271 ################################
271 ################################
272 ### LOGGING CONFIGURATION ####
272 ### LOGGING CONFIGURATION ####
273 ################################
273 ################################
274 [loggers]
274 [loggers]
275 keys = root, vcsserver, beaker
275 keys = root, vcsserver, beaker
276
276
277 [handlers]
277 [handlers]
278 keys = console
278 keys = console
279
279
280 [formatters]
280 [formatters]
281 keys = generic
281 keys = generic
282
282
283 #############
283 #############
284 ## LOGGERS ##
284 ## LOGGERS ##
285 #############
285 #############
286 [logger_root]
286 [logger_root]
287 level = NOTSET
287 level = NOTSET
288 handlers = console
288 handlers = console
289
289
290 [logger_vcsserver]
290 [logger_vcsserver]
291 level = DEBUG
291 level = DEBUG
292 handlers =
292 handlers =
293 qualname = vcsserver
293 qualname = vcsserver
294 propagate = 1
294 propagate = 1
295
295
296 [logger_beaker]
296 [logger_beaker]
297 level = DEBUG
297 level = DEBUG
298 handlers =
298 handlers =
299 qualname = beaker
299 qualname = beaker
300 propagate = 1
300 propagate = 1
301
301
302
302
303 ##############
303 ##############
304 ## HANDLERS ##
304 ## HANDLERS ##
305 ##############
305 ##############
306
306
307 [handler_console]
307 [handler_console]
308 class = StreamHandler
308 class = StreamHandler
309 args = (sys.stderr,)
309 args = (sys.stderr,)
310 level = DEBUG
310 level = DEBUG
311 formatter = generic
311 formatter = generic
312
312
313 ################
313 ################
314 ## FORMATTERS ##
314 ## FORMATTERS ##
315 ################
315 ################
316
316
317 [formatter_generic]
317 [formatter_generic]
318 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
318 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
319 datefmt = %Y-%m-%d %H:%M:%S
319 datefmt = %Y-%m-%d %H:%M:%S
320
320
321
321
322 .. _Subversion Red Book: http://svnbook.red-bean.com/en/1.7/svn-book.html#svn.ref.svn
322 .. _Subversion Red Book: http://svnbook.red-bean.com/en/1.7/svn-book.html#svn.ref.svn
323
323
324 .. _Ask Ubuntu: http://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue
324 .. _Ask Ubuntu: http://askubuntu.com/questions/162391/how-do-i-fix-my-locale-issue
General Comments 0
You need to be logged in to leave comments. Login now