projects
/
osm
/
MON.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53ad3c4
)
Increases Kafka session_timeout_ms and heartbeat_interval_ms
72/6672/1
author
Benjamin Diaz
<bdiaz@whitestack.com>
Tue, 9 Oct 2018 23:22:04 +0000
(20:22 -0300)
committer
Benjamin Diaz
<bdiaz@whitestack.com>
Tue, 9 Oct 2018 23:22:04 +0000
(20:22 -0300)
Signed-off-by: Benjamin Diaz <bdiaz@whitestack.com>
osm_mon/core/message_bus/common_consumer.py
patch
|
blob
|
history
diff --git
a/osm_mon/core/message_bus/common_consumer.py
b/osm_mon/core/message_bus/common_consumer.py
index
cdc8548
..
3af2d4a
100755
(executable)
--- a/
osm_mon/core/message_bus/common_consumer.py
+++ b/
osm_mon/core/message_bus/common_consumer.py
@@
-106,7
+106,9
@@
class CommonConsumer:
common_consumer = KafkaConsumer(bootstrap_servers=cfg.BROKER_URI,
key_deserializer=bytes.decode,
value_deserializer=bytes.decode,
- group_id="mon-consumer")
+ group_id="mon-consumer",
+ session_timeout_ms=60000,
+ heartbeat_interval_ms=20000)
topics = ['metric_request', 'alarm_request', 'vim_account']
common_consumer.subscribe(topics)