diff options
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/eventmq.conf-dist | 70 |
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 |
| 3 | super_debug = true | 4 | disable_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. | 6 | heartbeat_liveness=3 |
| 6 | hide_heartbeat_logs = True | 7 | # Assume a missed heartbeat after this many seconds |
| 7 | 8 | heartbeat_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 |
| 9 | administrative_addr=tcp://0.0.0.0:47293 | 10 | # HEARTBEAT_TIMEOUT |
| 10 | 11 | heartbeat_interval = 3 | |
| 11 | frontend_addr=tcp://0.0.0.0:47291 | 12 | # Enable raw message output at different stages in the app. |
| 12 | backend_addr=tcp://0.0.0.0:47290 | 13 | super_debug=true |
| 13 | worker_addr=tcp://eventmq:47290 | 14 | # Hide the heartbeat logs when super_debug is enabled. Showing them will |
| 14 | scheduler_addr=tcp://eventmq:47291 | 15 | # generate a lot of messages. |
| 16 | hide_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 | ||
| 21 | default_encoding=utf-8 | ||
| 15 | 22 | ||
| 16 | [router] | 23 | [router] |
| 24 | # Listen for clients and schedulers on this address | ||
| 25 | frontend_listen_addr=tcp://127.0.0.1:47291 | ||
| 26 | # Listen for jobmanagers on this address | ||
| 27 | backend_listen_addr=tcp://127.0.0.1:47290 | ||
| 28 | # Listen for administrative status and management commands on this address | ||
| 29 | admnistrative_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 | ||
| 33 | connect_addr=tcp://127.0.0.1:47291 | ||
| 34 | # Scheduled jobs are saved and loaded from Redis | ||
| 35 | redis_host=localhost | ||
| 36 | redis_port=6379 | ||
| 37 | redis_db=0 | ||
| 38 | # Leave password blank if there is no password | ||
| 39 | redis_password= | ||
| 19 | 40 | ||
| 20 | [jobmanager] | 41 | [jobmanager] |
| 21 | worker_addr=tcp://127.0.0.1:47290 | 42 | # The address of the router's backend_listen_addr to connect to |
| 22 | queues=[[50,"google"], [40,"pushes"], [10,"default"]] | 43 | connect_addr=tcp://127.0.0.1:47290 |
| 23 | concurrent_jobs=2 | 44 | # When no named queue is specified for a job use this queue |
| 45 | default_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 | ||
| 48 | queues=[[10, "default"]] | ||
| 49 | # Number of concurrent jobs to run | ||
| 50 | concurrent_jobs=4 | ||
| 51 | # Number of messages to cache in RAM before discarding messages | ||
| 52 | hwm=10000 | ||
| 53 | # Number of jobs to execute before restarting the Multiprocessing workers to | ||
| 54 | # free up any leaked memory. | ||
| 55 | max_job_count=1024 | ||
| 24 | 56 | ||
| 25 | [publisher] | 57 | [publisher] |
| 26 | publisher_frontend_addr=tcp://0.0.0.0:47298 | 58 | # Listen for publish messages on this address |
| 27 | publisher_backend_addr=tcp://0.0.0.0:47299 \ No newline at end of file | 59 | frontend_listen_addr=tcp://127.0.0.1:47298 |
| 60 | # Listen for subscribers on this address | ||
| 61 | backend_listen_addr=tcp://127.0.0.1:47299 \ No newline at end of file | ||