##// END OF EJS Templates
config: updated .ini files with cache settings
marcink -
r2957:1c1640bb default
parent child Browse files
Show More
@@ -312,43 +312,53 b' celery.task_always_eager = false'
312 312 ### DOGPILE CACHE ####
313 313 #####################################
314 314 ## Default cache dir for caches. Putting this into a ramdisk
315 ## can boost performance, eg. /tmpfs/data_ramdisk, however this might require lots
316 ## of space
315 ## can boost performance, eg. /tmpfs/data_ramdisk, however this directory might require
316 ## large ammount of space
317 317 cache_dir = /tmp/rcdev/data
318 318
319 ## cache settings for permission tree, auth TTL.
319 ## `cache_perms` cache settings for permission tree, auth TTL.
320 320 rc_cache.cache_perms.backend = dogpile.cache.rc.file_namespace
321 321 rc_cache.cache_perms.expiration_time = 300
322 rc_cache.cache_perms.arguments.filename = /tmp/rc_cache_1
323 322
324 ## redis backend with distributed locks
323 ## alternative `cache_perms` redis backend with distributed lock
325 324 #rc_cache.cache_perms.backend = dogpile.cache.rc.redis
326 325 #rc_cache.cache_perms.expiration_time = 300
326 ## redis_expiration_time needs to be greater then expiration_time
327 #rc_cache.cache_perms.arguments.redis_expiration_time = 7200
328 #rc_cache.cache_perms.arguments.socket_timeout = 30
327 329 #rc_cache.cache_perms.arguments.host = localhost
328 330 #rc_cache.cache_perms.arguments.port = 6379
329 331 #rc_cache.cache_perms.arguments.db = 0
330 #rc_cache.cache_perms.arguments.redis_expiration_time = 7200
331 332 #rc_cache.cache_perms.arguments.distributed_lock = true
332 333
333
334 ## `cache_repo` cache settings for FileTree, Readme, RSS FEEDS
334 335 rc_cache.cache_repo.backend = dogpile.cache.rc.file_namespace
335 336 rc_cache.cache_repo.expiration_time = 2592000
336 rc_cache.cache_repo.arguments.filename = /tmp/rc_cache_2
337 337
338 ## redis backend with distributed locks
338 ## alternative `cache_repo` redis backend with distributed lock
339 339 #rc_cache.cache_repo.backend = dogpile.cache.rc.redis
340 340 #rc_cache.cache_repo.expiration_time = 2592000
341 ## this needs to be greater then expiration_time
341 ## redis_expiration_time needs to be greater then expiration_time
342 342 #rc_cache.cache_repo.arguments.redis_expiration_time = 2678400
343 #rc_cache.cache_repo.arguments.socket_timeout = 30
343 344 #rc_cache.cache_repo.arguments.host = localhost
344 345 #rc_cache.cache_repo.arguments.port = 6379
345 346 #rc_cache.cache_repo.arguments.db = 1
346 347 #rc_cache.cache_repo.arguments.distributed_lock = true
347 348
348 ## cache settings for SQL queries
349 ## cache settings for SQL queries, this needs to use memory type backend
349 350 rc_cache.sql_cache_short.backend = dogpile.cache.rc.memory_lru
350 351 rc_cache.sql_cache_short.expiration_time = 30
351 352
353 ## `cache_repo_longterm` cache for repo object instances, this needs to use memory
354 ## type backend as the objects kept are not pickle serializable
355 rc_cache.cache_repo_longterm.backend = dogpile.cache.rc.memory_lru
356 # by default we use 96H, this is using invalidation on push anyway
357 rc_cache.cache_repo_longterm.expiration_time = 345600
358 # max items in LRU cache, reduce this number to save memory, and expire last used
359 # cached objects
360 rc_cache.cache_repo_longterm.max_size = 10000
361
352 362
353 363 ####################################
354 364 ### BEAKER SESSION ####
@@ -505,6 +515,7 b' debug_style = true'
505 515 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
506 516 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
507 517 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
518 # pymysql is an alternative driver for MySQL, use in case of problems with default one
508 519 #sqlalchemy.db1.url = mysql+pymysql://root:qweqwe@localhost/rhodecode
509 520
510 521 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
@@ -543,7 +554,6 b' vcs.server.protocol = http'
543 554
544 555 ## Push/Pull operations protocol, available options are:
545 556 ## `http` - use http-rpc backend (default)
546 ##
547 557 vcs.scm_app_implementation = http
548 558
549 559 ## Push/Pull operations hooks protocol, available options are:
@@ -81,7 +81,7 b' proc_name = rhodecode'
81 81 ## recommended for bigger setup is using of of other than sync one
82 82 worker_class = gevent
83 83 ## The maximum number of simultaneous clients. Valid only for Gevent
84 #worker_connections = 10
84 worker_connections = 10
85 85 ## max number of requests that worker will handle before being gracefully
86 86 ## restarted, could prevent memory leaks
87 87 max_requests = 1000
@@ -287,43 +287,53 b' celery.task_always_eager = false'
287 287 ### DOGPILE CACHE ####
288 288 #####################################
289 289 ## Default cache dir for caches. Putting this into a ramdisk
290 ## can boost performance, eg. /tmpfs/data_ramdisk, however this might require lots
291 ## of space
292 cache_dir = /tmp/rcdev/data
290 ## can boost performance, eg. /tmpfs/data_ramdisk, however this directory might require
291 ## large ammount of space
292 cache_dir = /%(here)s/rcdev/data
293 293
294 ## cache settings for permission tree, auth TTL.
294 ## `cache_perms` cache settings for permission tree, auth TTL.
295 295 rc_cache.cache_perms.backend = dogpile.cache.rc.file_namespace
296 296 rc_cache.cache_perms.expiration_time = 300
297 rc_cache.cache_perms.arguments.filename = /tmp/rc_cache_1
298 297
299 ## redis backend with distributed locks
298 ## alternative `cache_perms` redis backend with distributed lock
300 299 #rc_cache.cache_perms.backend = dogpile.cache.rc.redis
301 300 #rc_cache.cache_perms.expiration_time = 300
301 ## redis_expiration_time needs to be greater then expiration_time
302 #rc_cache.cache_perms.arguments.redis_expiration_time = 7200
303 #rc_cache.cache_perms.arguments.socket_timeout = 30
302 304 #rc_cache.cache_perms.arguments.host = localhost
303 305 #rc_cache.cache_perms.arguments.port = 6379
304 306 #rc_cache.cache_perms.arguments.db = 0
305 #rc_cache.cache_perms.arguments.redis_expiration_time = 7200
306 307 #rc_cache.cache_perms.arguments.distributed_lock = true
307 308
308
309 ## `cache_repo` cache settings for FileTree, Readme, RSS FEEDS
309 310 rc_cache.cache_repo.backend = dogpile.cache.rc.file_namespace
310 311 rc_cache.cache_repo.expiration_time = 2592000
311 rc_cache.cache_repo.arguments.filename = /tmp/rc_cache_2
312 312
313 ## redis backend with distributed locks
313 ## alternative `cache_repo` redis backend with distributed lock
314 314 #rc_cache.cache_repo.backend = dogpile.cache.rc.redis
315 315 #rc_cache.cache_repo.expiration_time = 2592000
316 ## this needs to be greater then expiration_time
316 ## redis_expiration_time needs to be greater then expiration_time
317 317 #rc_cache.cache_repo.arguments.redis_expiration_time = 2678400
318 #rc_cache.cache_repo.arguments.socket_timeout = 30
318 319 #rc_cache.cache_repo.arguments.host = localhost
319 320 #rc_cache.cache_repo.arguments.port = 6379
320 321 #rc_cache.cache_repo.arguments.db = 1
321 322 #rc_cache.cache_repo.arguments.distributed_lock = true
322 323
323 ## cache settings for SQL queries
324 ## cache settings for SQL queries, this needs to use memory type backend
324 325 rc_cache.sql_cache_short.backend = dogpile.cache.rc.memory_lru
325 326 rc_cache.sql_cache_short.expiration_time = 30
326 327
328 ## `cache_repo_longterm` cache for repo object instances, this needs to use memory
329 ## type backend as the objects kept are not pickle serializable
330 rc_cache.cache_repo_longterm.backend = dogpile.cache.rc.memory_lru
331 # by default we use 96H, this is using invalidation on push anyway
332 rc_cache.cache_repo_longterm.expiration_time = 345600
333 # max items in LRU cache, reduce this number to save memory, and expire last used
334 # cached objects
335 rc_cache.cache_repo_longterm.max_size = 10000
336
327 337
328 338 ####################################
329 339 ### BEAKER SESSION ####
@@ -475,6 +485,7 b' set debug = false'
475 485 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30
476 486 #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
477 487 #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode
488 # pymysql is an alternative driver for MySQL, use in case of problems with default one
478 489 #sqlalchemy.db1.url = mysql+pymysql://root:qweqwe@localhost/rhodecode
479 490
480 491 sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode
General Comments 0
You need to be logged in to leave comments. Login now