heartbeat.interval.ms
The consumer setting for how often, in milliseconds, the consumer sends a heartbeat to the group coordinator.
In more detail
It must be lower than the session timeout and is usually no more than a third of it, so several heartbeats can be missed before the consumer is declared dead. kafka-python 2.2 defaults to 3000.
Example
KafkaConsumer(session_timeout_ms=15000, heartbeat_interval_ms=5000)Related terms
- heartbeat — A small message sent at regular intervals on a long-lived connection to prove that both ends and the path between them are still alive.
- session.timeout.ms — The consumer setting for how long the group coordinator waits without a heartbeat before declaring the consumer dead and rebalancing.
Taught in
- Rebalancing And Its Cost — Apache Kafka & Event Streaming