Hello,

If I understand it correctly, when the number of messages a replica is
behind from the leader is < replica.lag.max.messages, the replica is
considered in sync with the master and are eligible for leader election.

This means we can lose at most replica.lag.max.messages messages during
leader election, is it? We can set the replica.lag.max.messages to be very
low, but then we may result in unclean leader election, so still we can
lose data.

Can you recommend some way to prevent data loss? We have tried setting
require ack from all replicas, but that slows down producer significantly.

In addition, do we have metrics about how far each replica is behind? If
not, can we add them.


Thanks,

Reply via email to