Show More
@@ -312,43 +312,53 b' celery.task_always_eager = false' | |||||
312 | ### DOGPILE CACHE #### |
|
312 | ### DOGPILE CACHE #### | |
313 | ##################################### |
|
313 | ##################################### | |
314 | ## Default cache dir for caches. Putting this into a ramdisk |
|
314 | ## Default cache dir for caches. Putting this into a ramdisk | |
315 |
## can boost performance, eg. /tmpfs/data_ramdisk, however this might require |
|
315 | ## can boost performance, eg. /tmpfs/data_ramdisk, however this directory might require | |
316 | ## of space |
|
316 | ## large ammount of space | |
317 | cache_dir = /tmp/rcdev/data |
|
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 | rc_cache.cache_perms.backend = dogpile.cache.rc.file_namespace |
|
320 | rc_cache.cache_perms.backend = dogpile.cache.rc.file_namespace | |
321 | rc_cache.cache_perms.expiration_time = 300 |
|
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 lock |
|
323 | ## alternative `cache_perms` redis backend with distributed lock | |
325 | #rc_cache.cache_perms.backend = dogpile.cache.rc.redis |
|
324 | #rc_cache.cache_perms.backend = dogpile.cache.rc.redis | |
326 | #rc_cache.cache_perms.expiration_time = 300 |
|
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 | #rc_cache.cache_perms.arguments.host = localhost |
|
329 | #rc_cache.cache_perms.arguments.host = localhost | |
328 | #rc_cache.cache_perms.arguments.port = 6379 |
|
330 | #rc_cache.cache_perms.arguments.port = 6379 | |
329 | #rc_cache.cache_perms.arguments.db = 0 |
|
331 | #rc_cache.cache_perms.arguments.db = 0 | |
330 | #rc_cache.cache_perms.arguments.redis_expiration_time = 7200 |
|
|||
331 | #rc_cache.cache_perms.arguments.distributed_lock = true |
|
332 | #rc_cache.cache_perms.arguments.distributed_lock = true | |
332 |
|
333 | |||
333 |
|
334 | ## `cache_repo` cache settings for FileTree, Readme, RSS FEEDS | ||
334 | rc_cache.cache_repo.backend = dogpile.cache.rc.file_namespace |
|
335 | rc_cache.cache_repo.backend = dogpile.cache.rc.file_namespace | |
335 | rc_cache.cache_repo.expiration_time = 2592000 |
|
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 lock |
|
338 | ## alternative `cache_repo` redis backend with distributed lock | |
339 | #rc_cache.cache_repo.backend = dogpile.cache.rc.redis |
|
339 | #rc_cache.cache_repo.backend = dogpile.cache.rc.redis | |
340 | #rc_cache.cache_repo.expiration_time = 2592000 |
|
340 | #rc_cache.cache_repo.expiration_time = 2592000 | |
341 |
## |
|
341 | ## redis_expiration_time needs to be greater then expiration_time | |
342 | #rc_cache.cache_repo.arguments.redis_expiration_time = 2678400 |
|
342 | #rc_cache.cache_repo.arguments.redis_expiration_time = 2678400 | |
|
343 | #rc_cache.cache_repo.arguments.socket_timeout = 30 | |||
343 | #rc_cache.cache_repo.arguments.host = localhost |
|
344 | #rc_cache.cache_repo.arguments.host = localhost | |
344 | #rc_cache.cache_repo.arguments.port = 6379 |
|
345 | #rc_cache.cache_repo.arguments.port = 6379 | |
345 | #rc_cache.cache_repo.arguments.db = 1 |
|
346 | #rc_cache.cache_repo.arguments.db = 1 | |
346 | #rc_cache.cache_repo.arguments.distributed_lock = true |
|
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 | rc_cache.sql_cache_short.backend = dogpile.cache.rc.memory_lru |
|
350 | rc_cache.sql_cache_short.backend = dogpile.cache.rc.memory_lru | |
350 | rc_cache.sql_cache_short.expiration_time = 30 |
|
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 | ### BEAKER SESSION #### |
|
364 | ### BEAKER SESSION #### | |
@@ -505,6 +515,7 b' debug_style = true' | |||||
505 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30 |
|
515 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30 | |
506 | #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode |
|
516 | #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode | |
507 | #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode |
|
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 | #sqlalchemy.db1.url = mysql+pymysql://root:qweqwe@localhost/rhodecode |
|
519 | #sqlalchemy.db1.url = mysql+pymysql://root:qweqwe@localhost/rhodecode | |
509 |
|
520 | |||
510 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30 |
|
521 | sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30 | |
@@ -543,7 +554,6 b' vcs.server.protocol = http' | |||||
543 |
|
554 | |||
544 | ## Push/Pull operations protocol, available options are: |
|
555 | ## Push/Pull operations protocol, available options are: | |
545 | ## `http` - use http-rpc backend (default) |
|
556 | ## `http` - use http-rpc backend (default) | |
546 | ## |
|
|||
547 | vcs.scm_app_implementation = http |
|
557 | vcs.scm_app_implementation = http | |
548 |
|
558 | |||
549 | ## Push/Pull operations hooks protocol, available options are: |
|
559 | ## Push/Pull operations hooks protocol, available options are: |
@@ -81,7 +81,7 b' proc_name = rhodecode' | |||||
81 | ## recommended for bigger setup is using of of other than sync one |
|
81 | ## recommended for bigger setup is using of of other than sync one | |
82 | worker_class = gevent |
|
82 | worker_class = gevent | |
83 | ## The maximum number of simultaneous clients. Valid only for Gevent |
|
83 | ## The maximum number of simultaneous clients. Valid only for Gevent | |
84 |
|
|
84 | worker_connections = 10 | |
85 | ## max number of requests that worker will handle before being gracefully |
|
85 | ## max number of requests that worker will handle before being gracefully | |
86 | ## restarted, could prevent memory leaks |
|
86 | ## restarted, could prevent memory leaks | |
87 | max_requests = 1000 |
|
87 | max_requests = 1000 | |
@@ -287,43 +287,53 b' celery.task_always_eager = false' | |||||
287 | ### DOGPILE CACHE #### |
|
287 | ### DOGPILE CACHE #### | |
288 | ##################################### |
|
288 | ##################################### | |
289 | ## Default cache dir for caches. Putting this into a ramdisk |
|
289 | ## Default cache dir for caches. Putting this into a ramdisk | |
290 |
## can boost performance, eg. /tmpfs/data_ramdisk, however this might require |
|
290 | ## can boost performance, eg. /tmpfs/data_ramdisk, however this directory might require | |
291 | ## of space |
|
291 | ## large ammount of space | |
292 |
cache_dir = / |
|
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 | rc_cache.cache_perms.backend = dogpile.cache.rc.file_namespace |
|
295 | rc_cache.cache_perms.backend = dogpile.cache.rc.file_namespace | |
296 | rc_cache.cache_perms.expiration_time = 300 |
|
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 lock |
|
298 | ## alternative `cache_perms` redis backend with distributed lock | |
300 | #rc_cache.cache_perms.backend = dogpile.cache.rc.redis |
|
299 | #rc_cache.cache_perms.backend = dogpile.cache.rc.redis | |
301 | #rc_cache.cache_perms.expiration_time = 300 |
|
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 | #rc_cache.cache_perms.arguments.host = localhost |
|
304 | #rc_cache.cache_perms.arguments.host = localhost | |
303 | #rc_cache.cache_perms.arguments.port = 6379 |
|
305 | #rc_cache.cache_perms.arguments.port = 6379 | |
304 | #rc_cache.cache_perms.arguments.db = 0 |
|
306 | #rc_cache.cache_perms.arguments.db = 0 | |
305 | #rc_cache.cache_perms.arguments.redis_expiration_time = 7200 |
|
|||
306 | #rc_cache.cache_perms.arguments.distributed_lock = true |
|
307 | #rc_cache.cache_perms.arguments.distributed_lock = true | |
307 |
|
308 | |||
308 |
|
309 | ## `cache_repo` cache settings for FileTree, Readme, RSS FEEDS | ||
309 | rc_cache.cache_repo.backend = dogpile.cache.rc.file_namespace |
|
310 | rc_cache.cache_repo.backend = dogpile.cache.rc.file_namespace | |
310 | rc_cache.cache_repo.expiration_time = 2592000 |
|
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 lock |
|
313 | ## alternative `cache_repo` redis backend with distributed lock | |
314 | #rc_cache.cache_repo.backend = dogpile.cache.rc.redis |
|
314 | #rc_cache.cache_repo.backend = dogpile.cache.rc.redis | |
315 | #rc_cache.cache_repo.expiration_time = 2592000 |
|
315 | #rc_cache.cache_repo.expiration_time = 2592000 | |
316 |
## |
|
316 | ## redis_expiration_time needs to be greater then expiration_time | |
317 | #rc_cache.cache_repo.arguments.redis_expiration_time = 2678400 |
|
317 | #rc_cache.cache_repo.arguments.redis_expiration_time = 2678400 | |
|
318 | #rc_cache.cache_repo.arguments.socket_timeout = 30 | |||
318 | #rc_cache.cache_repo.arguments.host = localhost |
|
319 | #rc_cache.cache_repo.arguments.host = localhost | |
319 | #rc_cache.cache_repo.arguments.port = 6379 |
|
320 | #rc_cache.cache_repo.arguments.port = 6379 | |
320 | #rc_cache.cache_repo.arguments.db = 1 |
|
321 | #rc_cache.cache_repo.arguments.db = 1 | |
321 | #rc_cache.cache_repo.arguments.distributed_lock = true |
|
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 | rc_cache.sql_cache_short.backend = dogpile.cache.rc.memory_lru |
|
325 | rc_cache.sql_cache_short.backend = dogpile.cache.rc.memory_lru | |
325 | rc_cache.sql_cache_short.expiration_time = 30 |
|
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 | ### BEAKER SESSION #### |
|
339 | ### BEAKER SESSION #### | |
@@ -475,6 +485,7 b' set debug = false' | |||||
475 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30 |
|
485 | #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db?timeout=30 | |
476 | #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode |
|
486 | #sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode | |
477 | #sqlalchemy.db1.url = mysql://root:qweqwe@localhost/rhodecode |
|
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 | #sqlalchemy.db1.url = mysql+pymysql://root:qweqwe@localhost/rhodecode |
|
489 | #sqlalchemy.db1.url = mysql+pymysql://root:qweqwe@localhost/rhodecode | |
479 |
|
490 | |||
480 | sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode |
|
491 | sqlalchemy.db1.url = postgresql://postgres:qweqwe@localhost/rhodecode |
General Comments 0
You need to be logged in to leave comments.
Login now