What is the default value for session.timeout.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 session.timeout.ms?

Explanation:
Session timeout controls how long the Kafka group coordinator waits for a consumer’s heartbeat before considering that member failed and triggering a rebalance. The typical default is 10000 milliseconds, which is 10 seconds, giving a balance between quick failure detection and avoiding unnecessary rebalances. Since heartbeats are sent regularly (heartbeat interval defaults to about 3 seconds), the session timeout should be longer than that interval. A shorter value, like 5 seconds, can cause false failure detections during temporary delays, while much longer values (30 or 60 seconds) delay recovery from a failed member.

Session timeout controls how long the Kafka group coordinator waits for a consumer’s heartbeat before considering that member failed and triggering a rebalance. The typical default is 10000 milliseconds, which is 10 seconds, giving a balance between quick failure detection and avoiding unnecessary rebalances. Since heartbeats are sent regularly (heartbeat interval defaults to about 3 seconds), the session timeout should be longer than that interval. A shorter value, like 5 seconds, can cause false failure detections during temporary delays, while much longer values (30 or 60 seconds) delay recovery from a failed member.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy