Increases Kafka session_timeout_ms and heartbeat_interval_ms 72/6672/1
authorBenjamin Diaz <bdiaz@whitestack.com>
Tue, 9 Oct 2018 23:22:04 +0000 (20:22 -0300)
committerBenjamin 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

index cdc8548..3af2d4a 100755 (executable)
@@ -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)