comparison development.ini @ 776:f6c613fba757 beta

Celery is configured by the .ini files and run from paster now removed celeryconfig, added homebrew celery-pylons, added paster celeryd command, fixed tasks to use pylons configs, sqlalchemy sessions
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 27 Nov 2010 01:27:24 +0100
parents 1f8546ccccdd
children 30ad41c76fae
comparison
equal deleted inserted replaced
775:aaf2fc59a39a 776:f6c613fba757
1 ################################################################################ 1 ################################################################################
2 ################################################################################ 2 ################################################################################
3 # rhodecode - Pylons environment configuration # 3 # RhodeCode - Pylons environment configuration #
4 # # 4 # #
5 # The %(here)s variable will be replaced with the parent directory of this file# 5 # The %(here)s variable will be replaced with the parent directory of this file#
6 ################################################################################ 6 ################################################################################
7 7
8 [DEFAULT] 8 [DEFAULT]
9 debug = true 9 debug = true
10 ################################################################################ 10 ################################################################################
11 ## Uncomment and replace with the address which should receive ## 11 ## Uncomment and replace with the address which should receive ##
12 ## any error reports after application crash ## 12 ## any error reports after application crash ##
13 ## Additionally those settings will be used by rhodecode mailing system ## 13 ## Additionally those settings will be used by RhodeCode mailing system ##
14 ################################################################################ 14 ################################################################################
15 #email_to = admin@localhost 15 #email_to = admin@localhost
16 #error_email_from = paste_error@localhost 16 #error_email_from = paste_error@localhost
17 #app_email_from = rhodecode-noreply@localhost 17 #app_email_from = rhodecode-noreply@localhost
18 #error_message = 18 #error_message =
19 19
20 #smtp_server = mail.server.com 20 #smtp_server = mail.server.com
21 #smtp_username = 21 #smtp_username =
22 #smtp_password = 22 #smtp_password =
23 #smtp_port = 23 #smtp_port =
24 #smtp_use_tls = 24 #smtp_use_tls = false
25 #smtp_use_ssl = true
25 26
26 [server:main] 27 [server:main]
27 ##nr of threads to spawn 28 ##nr of threads to spawn
28 threadpool_workers = 5 29 threadpool_workers = 5
29 30
30 ##max request before 31 ##max request before thread respawn
31 threadpool_max_requests = 6 32 threadpool_max_requests = 6
32 33
33 ##option to use threads of process 34 ##option to use threads of process
34 use_threadpool = false 35 use_threadpool = false
35 36
44 lang=en 45 lang=en
45 cache_dir = %(here)s/data 46 cache_dir = %(here)s/data
46 index_dir = %(here)s/data/index 47 index_dir = %(here)s/data/index
47 48
48 #################################### 49 ####################################
50 ### CELERY CONFIG ####
51 ####################################
52 use_celery = false
53 broker.host = localhost
54 broker.vhost = rabbitmqhost
55 broker.port = 5672
56 broker.user = rabbitmq
57 broker.password = qweqwe
58
59 celery.imports = rhodecode.lib.celerylib.tasks
60
61 celery.result.backend = amqp
62 celery.result.dburi = amqp://
63 celery.result.serialier = json
64
65 #celery.send.task.error.emails = true
66 #celery.amqp.task.result.expires = 18000
67
68 celeryd.concurrency = 2
69 #celeryd.log.file = celeryd.log
70 celeryd.log.level = debug
71 celeryd.max.tasks.per.child = 3
72
73 #tasks will never be sent to the queue, but executed locally instead.
74 celery.always.eager = false
75
76 ####################################
49 ### BEAKER CACHE #### 77 ### BEAKER CACHE ####
50 #################################### 78 ####################################
51 beaker.cache.data_dir=/%(here)s/data/cache/data 79 beaker.cache.data_dir=/%(here)s/data/cache/data
52 beaker.cache.lock_dir=/%(here)s/data/cache/lock 80 beaker.cache.lock_dir=/%(here)s/data/cache/lock
53 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long 81 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
59 beaker.cache.short_term.expire=60 87 beaker.cache.short_term.expire=60
60 88
61 beaker.cache.long_term.type=memory 89 beaker.cache.long_term.type=memory
62 beaker.cache.long_term.expire=36000 90 beaker.cache.long_term.expire=36000
63 91
64
65 beaker.cache.sql_cache_short.type=memory 92 beaker.cache.sql_cache_short.type=memory
66 beaker.cache.sql_cache_short.expire=5 93 beaker.cache.sql_cache_short.expire=10
67 94
68 beaker.cache.sql_cache_med.type=memory 95 beaker.cache.sql_cache_med.type=memory
69 beaker.cache.sql_cache_med.expire=360 96 beaker.cache.sql_cache_med.expire=360
70 97
71 beaker.cache.sql_cache_long.type=file 98 beaker.cache.sql_cache_long.type=file
73 100
74 #################################### 101 ####################################
75 ### BEAKER SESSION #### 102 ### BEAKER SESSION ####
76 #################################### 103 ####################################
77 ## Type of storage used for the session, current types are 104 ## Type of storage used for the session, current types are
78 ## "dbm", "file", "memcached", "database", and "memory". 105 ## dbm, file, memcached, database, and memory.
79 ## The storage uses the Container API 106 ## The storage uses the Container API
80 ##that is also used by the cache system. 107 ##that is also used by the cache system.
81 beaker.session.type = file 108 beaker.session.type = file
82 109
83 beaker.session.key = rhodecode 110 beaker.session.key = rhodecode