With tickTime=2000 and syncLimit=2, what is the maximum time in milliseconds that a follower can be out of sync with the leader?

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

With tickTime=2000 and syncLimit=2, what is the maximum time in milliseconds that a follower can be out of sync with the leader?

Explanation:
In ZooKeeper, the time a follower can be out of sync with the leader is determined by multiplying the basic time unit by the allowed number of ticks. The basic time unit is tickTime, and syncLimit is the number of ticks a follower may lag behind. So the maximum out-of-sync time is tickTime × syncLimit. With tickTime = 2000 ms and syncLimit = 2, that’s 2000 × 2 = 4000 ms. Therefore, the follower can be out of sync for up to 4000 milliseconds. The other values would correspond to shorter or longer gaps than the two-tick allowance (e.g., 1000 ms is half a tick, 2000 ms is one tick, 6000 ms is three ticks), which don’t match the defined limit.

In ZooKeeper, the time a follower can be out of sync with the leader is determined by multiplying the basic time unit by the allowed number of ticks. The basic time unit is tickTime, and syncLimit is the number of ticks a follower may lag behind. So the maximum out-of-sync time is tickTime × syncLimit.

With tickTime = 2000 ms and syncLimit = 2, that’s 2000 × 2 = 4000 ms. Therefore, the follower can be out of sync for up to 4000 milliseconds.

The other values would correspond to shorter or longer gaps than the two-tick allowance (e.g., 1000 ms is half a tick, 2000 ms is one tick, 6000 ms is three ticks), which don’t match the defined limit.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy