aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorjason2017-03-28 15:06:52 -0600
committerjason2017-03-28 15:12:10 -0600
commitd2a91b00a983d177a1c54069dd97b8b28af3f02e (patch)
tree22180416b81563cce42701fdc6555b1d9e19491a /etc
parentf62b135cb4f7e57bc34a369259f41365452d0854 (diff)
downloadeventmq-feature/config_refactor.tar.gz
eventmq-feature/config_refactor.zip
Refactor eventmq configuration managementfeature/config_refactor
- Refactor each device's configuration loading. The global section will be loaded then the section for the app will overrite any sections. - Defines ambiguous settings that cannot be defined globally. skip these settings and emit a warning if they are - update eventmq.conf-dist to include comments and more of the settings that can be defined. - Refactor some option names. * Job Manager: `WORKER_ADDR` is now `CONNECT_ADDR` in the `[jobmanager]` section * Job Manager: `WORKER_ADDR_DEFAULT` is now `CONNECT_ADDR_DEFAULT` in the `[jobmanager]` section * Job Manager: `WORKER_ADDR_FAILOVER` is now `CONNECT_ADDR_FAILOVER` in the `[jobmanager]` section * Publisher: `PUBLISHER_FRONTEND_ADDR` is not `FRONTEND_LISTEN_ADDR` in the `[publisher]` section * Publisher: `PUBLISHER_BACKEND_ADDR` is not `BACKEND_LISTEN_ADDR` in the `[publisher]` section * Router: `FRONTEND_ADDR` is now `FRONTEND_LISTEN_ADDR` in the `[router]` section * Router: `BACKEND_ADDR` is now `BACKEND_LISTEN_ADDR` in the `[router]` section * Scheduler: `SCHEDULER_ADDR` is now `CONNECT_ADDR` in the `[scheduler]` section * `RQ_HOST` is now `REDIS_HOST` * `RQ_PORT` is now `REDIS_PORT` * `RQ_DB` is now `REDIS_DB` * `RQ_PASSWORD` is now `REDIS_PASSWORD` * `ADMINISTRATIVE_ADDR` is now `ADMINISTRATIVE_LISTEN_ADDR` in each respective section See also: #20
Diffstat (limited to 'etc')
-rw-r--r--etc/eventmq.conf-dist70
1 files changed, 52 insertions, 18 deletions
diff --git a/etc/eventmq.conf-dist b/etc/eventmq.conf-dist
index d492269..2d42285 100644
--- a/etc/eventmq.conf-dist
+++ b/etc/eventmq.conf-dist
@@ -1,27 +1,61 @@
1# -*- mode: conf; encoding: utf-8 -*-
1[global] 2[global]
2# Enable message output at different stages in the app. 3# Don't bother with HEARTBEATS, both sending and paying attention to them
3super_debug = true 4disable_heartbeats=False
4 5# Assume the peer is dead after this many missed heartbeats
5# Hide the heartbeat logs when super_debug is enabled. Showing them will generate a lot of messages. 6heartbeat_liveness=3
6hide_heartbeat_logs = True 7# Assume a missed heartbeat after this many seconds
7 8heartbeat_timeout=5
8# Port to listen on for administrative commands sent via emq-cli 9# How often should a heartbeat be sent in seconds. This should be lower than
9administrative_addr=tcp://0.0.0.0:47293 10# HEARTBEAT_TIMEOUT
10 11heartbeat_interval = 3
11frontend_addr=tcp://0.0.0.0:47291 12# Enable raw message output at different stages in the app.
12backend_addr=tcp://0.0.0.0:47290 13super_debug=true
13worker_addr=tcp://eventmq:47290 14# Hide the heartbeat logs when super_debug is enabled. Showing them will
14scheduler_addr=tcp://eventmq:47291 15# generate a lot of messages.
16hide_heartbeat_logs=true
17# Default character encoding for strings in messages See these URLs for
18# supported encodings:
19# https://docs.python.org/2/library/codecs.html#standard-encodings
20# https://docs.python.org/3/library/codecs.html#standard-encodings
21default_encoding=utf-8
15 22
16[router] 23[router]
24# Listen for clients and schedulers on this address
25frontend_listen_addr=tcp://127.0.0.1:47291
26# Listen for jobmanagers on this address
27backend_listen_addr=tcp://127.0.0.1:47290
28# Listen for administrative status and management commands on this address
29admnistrative_listen_addr=tcp://127.0.0.1:47293
17 30
18[scheduler] 31[scheduler]
32# The address of the router's frontend_listen_addr to connect to
33connect_addr=tcp://127.0.0.1:47291
34# Scheduled jobs are saved and loaded from Redis
35redis_host=localhost
36redis_port=6379
37redis_db=0
38# Leave password blank if there is no password
39redis_password=
19 40
20[jobmanager] 41[jobmanager]
21worker_addr=tcp://127.0.0.1:47290 42# The address of the router's backend_listen_addr to connect to
22queues=[[50,"google"], [40,"pushes"], [10,"default"]] 43connect_addr=tcp://127.0.0.1:47290
23concurrent_jobs=2 44# When no named queue is specified for a job use this queue
45default_queue_name=default
46# JSON Array of weights and named queues. We recommend you keep the default
47# queue unless your 100% positive every job will specify a queue
48queues=[[10, "default"]]
49# Number of concurrent jobs to run
50concurrent_jobs=4
51# Number of messages to cache in RAM before discarding messages
52hwm=10000
53# Number of jobs to execute before restarting the Multiprocessing workers to
54# free up any leaked memory.
55max_job_count=1024
24 56
25[publisher] 57[publisher]
26publisher_frontend_addr=tcp://0.0.0.0:47298 58# Listen for publish messages on this address
27publisher_backend_addr=tcp://0.0.0.0:47299 \ No newline at end of file 59frontend_listen_addr=tcp://127.0.0.1:47298
60# Listen for subscribers on this address
61backend_listen_addr=tcp://127.0.0.1:47299 \ No newline at end of file