-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.exs
33 lines (26 loc) · 1.01 KB
/
config.exs
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
import Config
config :message_broker,
port: 8000,
# worker pool configs
wp_terminate_delay: 3000, # for 'soft' worker kill
wp_start_delay: 100,
wp_default_worker_no: 10,
autoscaler_time_frame: 1000, # 1 sec
wp_autoscale_proportion: 2,
enable_autoscaler: true,
# for persistent messages (save published events to logs)
batcher_flush_time: 2000, # 2 sec
# commands
publish_command: "pub", # PUBLISH
subscribe_command: "sub", # SUBSCRIBE
unsubscribe_command: "unsub", # UNSUBSCRIBE
acknowledge_command: "ack", # ACKNOWLEDGE
# logs config
logs_dir: "logs", # directory
clean_logs_on_startup: true, # does what it says, in dev mode I don't need them
reset_previous_topic_subscriber: false, # after a broker restart, the previous subscriptions are recreated
# some topics for the lab2 (producer)
tweets_topic: "tweets",
users_topic: "users",
# utils
debug_io_time: true