##// END OF EJS Templates
cleanup: kill unused beaker cache regions
Mads Kiilerich -
r5399:4610a39d default
parent child Browse files
Show More
@@ -336,11 +336,7 b' celery.always.eager = false'
336 beaker.cache.data_dir = %(here)s/data/cache/data
336 beaker.cache.data_dir = %(here)s/data/cache/data
337 beaker.cache.lock_dir = %(here)s/data/cache/lock
337 beaker.cache.lock_dir = %(here)s/data/cache/lock
338
338
339 beaker.cache.regions = super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
339 beaker.cache.regions = short_term,long_term,sql_cache_short
340
341 beaker.cache.super_short_term.type = memory
342 beaker.cache.super_short_term.expire = 10
343 beaker.cache.super_short_term.key_length = 256
344
340
345 beaker.cache.short_term.type = memory
341 beaker.cache.short_term.type = memory
346 beaker.cache.short_term.expire = 60
342 beaker.cache.short_term.expire = 60
@@ -354,14 +350,6 b' beaker.cache.sql_cache_short.type = memo'
354 beaker.cache.sql_cache_short.expire = 10
350 beaker.cache.sql_cache_short.expire = 10
355 beaker.cache.sql_cache_short.key_length = 256
351 beaker.cache.sql_cache_short.key_length = 256
356
352
357 beaker.cache.sql_cache_med.type = memory
358 beaker.cache.sql_cache_med.expire = 360
359 beaker.cache.sql_cache_med.key_length = 256
360
361 beaker.cache.sql_cache_long.type = file
362 beaker.cache.sql_cache_long.expire = 3600
363 beaker.cache.sql_cache_long.key_length = 256
364
365 ####################################
353 ####################################
366 ### BEAKER SESSION ####
354 ### BEAKER SESSION ####
367 ####################################
355 ####################################
@@ -22,17 +22,8 b' Follow these few steps to improve perfor'
22
22
23 1. Increase cache
23 1. Increase cache
24
24
25 In the .ini file::
25 Tweak beaker cache settings in the ini file. That actual effect of that
26
26 is questionable.
27 beaker.cache.sql_cache_long.expire=3600 <-- set this to higher number
28
29 This option affects the cache expiration time for the main
30 page. Having several hundreds of repositories on main page can
31 sometimes make the system behave slowly when the cache expires for
32 all of them. Increasing the ``expire`` option to a day (86400) or a
33 week (604800) will improve general response times for the main
34 page. Kallithea has an intelligent cache expiration system and it
35 will expire the cache for repositories that have been changed.
36
27
37 2. Switch from sqlite to postgres or mysql
28 2. Switch from sqlite to postgres or mysql
38
29
@@ -334,11 +334,7 b' celery.always.eager = false'
334 beaker.cache.data_dir = ${here}/data/cache/data
334 beaker.cache.data_dir = ${here}/data/cache/data
335 beaker.cache.lock_dir = ${here}/data/cache/lock
335 beaker.cache.lock_dir = ${here}/data/cache/lock
336
336
337 beaker.cache.regions = super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
337 beaker.cache.regions = short_term,long_term,sql_cache_short
338
339 beaker.cache.super_short_term.type = memory
340 beaker.cache.super_short_term.expire = 10
341 beaker.cache.super_short_term.key_length = 256
342
338
343 beaker.cache.short_term.type = memory
339 beaker.cache.short_term.type = memory
344 beaker.cache.short_term.expire = 60
340 beaker.cache.short_term.expire = 60
@@ -352,14 +348,6 b' beaker.cache.sql_cache_short.type = memo'
352 beaker.cache.sql_cache_short.expire = 10
348 beaker.cache.sql_cache_short.expire = 10
353 beaker.cache.sql_cache_short.key_length = 256
349 beaker.cache.sql_cache_short.key_length = 256
354
350
355 beaker.cache.sql_cache_med.type = memory
356 beaker.cache.sql_cache_med.expire = 360
357 beaker.cache.sql_cache_med.key_length = 256
358
359 beaker.cache.sql_cache_long.type = file
360 beaker.cache.sql_cache_long.expire = 3600
361 beaker.cache.sql_cache_long.key_length = 256
362
363 <%text>####################################</%text>
351 <%text>####################################</%text>
364 <%text>### BEAKER SESSION ####</%text>
352 <%text>### BEAKER SESSION ####</%text>
365 <%text>####################################</%text>
353 <%text>####################################</%text>
@@ -330,11 +330,7 b' celery.always.eager = false'
330 beaker.cache.data_dir = %(here)s/data/cache/data
330 beaker.cache.data_dir = %(here)s/data/cache/data
331 beaker.cache.lock_dir = %(here)s/data/cache/lock
331 beaker.cache.lock_dir = %(here)s/data/cache/lock
332
332
333 beaker.cache.regions = super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
333 beaker.cache.regions = short_term,long_term,sql_cache_short
334
335 beaker.cache.super_short_term.type = memory
336 beaker.cache.super_short_term.expire = 10
337 beaker.cache.super_short_term.key_length = 256
338
334
339 beaker.cache.short_term.type = memory
335 beaker.cache.short_term.type = memory
340 beaker.cache.short_term.expire = 60
336 beaker.cache.short_term.expire = 60
@@ -348,14 +344,6 b' beaker.cache.sql_cache_short.type = memo'
348 beaker.cache.sql_cache_short.expire = 10
344 beaker.cache.sql_cache_short.expire = 10
349 beaker.cache.sql_cache_short.key_length = 256
345 beaker.cache.sql_cache_short.key_length = 256
350
346
351 beaker.cache.sql_cache_med.type = memory
352 beaker.cache.sql_cache_med.expire = 360
353 beaker.cache.sql_cache_med.key_length = 256
354
355 beaker.cache.sql_cache_long.type = file
356 beaker.cache.sql_cache_long.expire = 3600
357 beaker.cache.sql_cache_long.key_length = 256
358
359 ####################################
347 ####################################
360 ### BEAKER SESSION ####
348 ### BEAKER SESSION ####
361 ####################################
349 ####################################
@@ -336,11 +336,7 b' celery.always.eager = false'
336 beaker.cache.data_dir = %(here)s/data/cache/data
336 beaker.cache.data_dir = %(here)s/data/cache/data
337 beaker.cache.lock_dir = %(here)s/data/cache/lock
337 beaker.cache.lock_dir = %(here)s/data/cache/lock
338
338
339 beaker.cache.regions = super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
339 beaker.cache.regions = short_term,long_term,sql_cache_short
340
341 beaker.cache.super_short_term.type = memory
342 beaker.cache.super_short_term.expire = 10
343 beaker.cache.super_short_term.key_length = 256
344
340
345 beaker.cache.short_term.type = memory
341 beaker.cache.short_term.type = memory
346 beaker.cache.short_term.expire = 60
342 beaker.cache.short_term.expire = 60
@@ -354,14 +350,6 b' beaker.cache.sql_cache_short.type = memo'
354 beaker.cache.sql_cache_short.expire = 1
350 beaker.cache.sql_cache_short.expire = 1
355 beaker.cache.sql_cache_short.key_length = 256
351 beaker.cache.sql_cache_short.key_length = 256
356
352
357 beaker.cache.sql_cache_med.type = memory
358 beaker.cache.sql_cache_med.expire = 360
359 beaker.cache.sql_cache_med.key_length = 256
360
361 beaker.cache.sql_cache_long.type = file
362 beaker.cache.sql_cache_long.expire = 3600
363 beaker.cache.sql_cache_long.key_length = 256
364
365 ####################################
353 ####################################
366 ### BEAKER SESSION ####
354 ### BEAKER SESSION ####
367 ####################################
355 ####################################
General Comments 0
You need to be logged in to leave comments. Login now