requiredNumAck
-
An integer indicating the acknowledgement mode for messages sent to Kafka. This setting affects the durability of messages.
- 0
-
The producer never waits for an acknowledgement from the broker. This option provides the lowest latency but the weakest durability guarantees (some data will be lost when a server fails).
- 1
-
The producer gets an acknowledgement after the leader replica has received the data. This option provides better durability as the client waits until the server acknowledges the request as successful (only messages that were written to the now-dead leader but not yet replicated will be lost).
- -1
-
The producer gets an acknowledgement after all in-sync replicas have received the data. This option provides the best durability, we guarantee that no messages will be lost as long as at least one in sync replica remains.
Required.
+ .Example
log4j.appender.sd.requiredNumAck = -1
Created
December 29, 2014 01:35
-
-
Save esammer/c12e5cf4c29872d392be to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment