Please enable JavaScript.
Coggle requires JavaScript to display documents.
Optimizing Kafka Deployment - Coggle Diagram
Throughput
-
Increase Throughput
-
Producer
Batching Strategy
-
+ linger.ms
Increase the possibility of batching - the waiting time for the producer to wait for batch to reach the configured batch.size
Take care of
Latency
as the producer is waiting for messages to be batched, messages are not sent immediately
Compression
compression.type
lz4, snappy, zstd, and gzip
-
-
-
buffer.memory
-
If that memory limit is reached, then the producer will block on additional sends until memory frees up or until max.block.ms time passes.
-
-
Latency
-
Decrease Latency
Broker
- No. of Partitions
it may take longer to replicate a lot of partitions shared between each pair of brokers and consequently take longer for messages to be considered committed.
-
-
-
-
-
-
Availability
-
Increase Availability
Broker
-
min.in.sync.replica
. In the case of a shrinking ISR, the higher this minimum value is, the more likely there is to be a failure on producer send, which decreases availability for the partition.
-
-
Consumer
- session.timeout.ms
The lower the session timeout is set,
the faster a failed consumer will be detected
-
Streams
num.standby.replicas
If a local state store does not exist, i.e., num.standby.replicas=0, the changelog is replayed from the earliest offset.
If a local state store does exist,
the changelog is replayed from the previously checkpointed offset.