What is the default value for heartbeat.interval.ms?

Study for the CCDAK Apache Kafka Test. Use flashcards and multiple choice questions with hints and explanations for each question. Prepare thoroughly for your exam!

Multiple Choice

What is the default value for heartbeat.interval.ms?

Explanation:
Heartbeats keep a consumer’s session alive while it processes records in a group. The frequency is controlled by heartbeat.interval.ms, measured in milliseconds. The default is 3,000 ms, so heartbeats are sent about every three seconds. This works with session.timeout.ms, which defines how long the broker waits without a heartbeat before considering the consumer dead. With a typical default session timeout of 10,000 ms, the three-second heartbeat provides several chances to heartbeat before the session would timeout. If the heartbeat interval is set too long, the broker may miss heartbeats and trigger a rebalance; if it’s too short, you add more heartbeat overhead. The three-second default is a balanced choice.

Heartbeats keep a consumer’s session alive while it processes records in a group. The frequency is controlled by heartbeat.interval.ms, measured in milliseconds. The default is 3,000 ms, so heartbeats are sent about every three seconds. This works with session.timeout.ms, which defines how long the broker waits without a heartbeat before considering the consumer dead. With a typical default session timeout of 10,000 ms, the three-second heartbeat provides several chances to heartbeat before the session would timeout. If the heartbeat interval is set too long, the broker may miss heartbeats and trigger a rebalance; if it’s too short, you add more heartbeat overhead. The three-second default is a balanced choice.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy