forked from gem/oq-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openquake.cfg
90 lines (75 loc) · 2.67 KB
/
openquake.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Copyright (c) 2010-2012, GEM Foundation.
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# OpenQuake is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with OpenQuake. If not, see <http://www.gnu.org/licenses/>.
[kvs]
port = 6379
host = localhost
redis_db = 0
stats_db = 15
test_db = 3
# Turn on Java-side kvs connection caching for bigger deployments. When doing
# so set 'timeout=0' in /etc/redis/redis.conf -- please see
# https://bugs.launchpad.net/openquake/+bug/907760
# for details.
cache_connections = true
[amqp]
host = localhost
port = 5672
user = guest
password = guest
vhost = /
exchange = oq.signalling
# This is where tasks will be enqueued.
celery_queue = celery
# The AMQP exchange name for task signalling.
task_exchange = oq.tasks
[logging]
backend = amqp
[database]
name = openquake
host = localhost
port = 5432
admin_password = openquake
admin_user = oq_admin
job_init_password = openquake
job_init_user = oq_job_init
job_superv_password = openquake
job_superv_user = oq_job_superv
reslt_writer_password = openquake
reslt_writer_user = oq_reslt_writer
[hazard]
# The number of work items per task. (In the case of the classical calculator,
# this indicates the number of sources to consider per task.)
block_size = 1
# The number of tasks to be in queue at any given time.
# Ideally, this would be set to at least number of available worker processes.
# In some cases, we found that it's actually best to have a number of tasks in
# queue equal to 2 * the number of worker processes. This makes a big difference
# in large calculations.
concurrent_tasks = 32
[risk]
# The number of work items (assets) per task. This affects both the
# RAM usage (the more, the more) and the performance of the
# computation (the more the less).
block_size = 1000
# The number of tasks to be in queue at any given time.
# Ideally, this would be set to the number of available worker processes.
# FIXME(lp). Why do we need two different parameter now that the
# distribution logic is shared?
concurrent_tasks = 32
[statistics]
# This setting should only be enabled during development but be omitted/turned
# off in production. It enables statistics counters for debugging purposes. At
# least one Q/A test requires these.
debug = true