conduktor.io ↗

Kafka Broker Durability Configuration

Review actual topic replicas, minimum ISR and failure recovery; defaults do not reconfigure existing topics.

broker

Config / referenceDefault → proposalRationale and conditions
Replication
default.replication.factor
Broker 4.4
Evaluate
1 → 3Sets the default replica count for applicable automatically created topics. Three replicas can tolerate a single broker loss with a suitable minimum ISR.
Tradeoff: It increases storage and replication traffic. Changing a default does not change existing topic replica assignments.
Workload, validation and sources

Workload: A replicated deployment with topic-level ISR and failure-recovery requirements.

Avoid when: Fewer than three brokers or assuming existing topics are automatically replicated.

Measure: actual topic replica assignments, ISR and replication traffic

acks=all must be reviewed with actual topic replication, ISR and failure scenarios. A single-replica ISR can satisfy a minimum ISR of one.

Creation-time replication defaults do not change existing topic replicas. Use supported partition reassignment for existing topics; do not delete __consumer_offsets to change its replication.

Versioned reference · 2026-10-27 · unbenchmarked tuning proposal

min.insync.replicas
Broker 4.4
Evaluate
1 → 2With acks=all, requires a minimum in-sync replica set before accepting writes. A value of two is commonly paired with three replicas.
Tradeoff: When ISR is below the minimum, writes fail rather than weaken the guarantee. Eligible-leader-replica behavior and failure recovery are version-dependent.
Workload, validation and sources

Workload: A replicated deployment with topic-level ISR and failure-recovery requirements.

Avoid when: A topic replication factor below the minimum or an availability requirement incompatible with the chosen threshold.

Measure: UnderMinIsrPartitionCount, produce failures and actual topic settings

acks=all must be reviewed with actual topic replication, ISR and failure scenarios. A single-replica ISR can satisfy a minimum ISR of one.

An aggressive lag timeout can shrink ISR during pauses and block writes below minimum ISR. ISR removal is not itself always a leader election.

Versioned reference · 2026-10-27 · unbenchmarked tuning proposal

unclean.leader.election.enable
Broker 4.4
Keep
false (unchanged)Keeping false avoids electing an out-of-sync replica through unclean election.
Tradeoff: Disabling unclean election can leave a partition unavailable until an eligible replica returns. Enabling it can lose previously acknowledged data.
Workload, validation and sources

Workload: A replicated deployment with topic-level ISR and failure-recovery requirements.

Avoid when: Changing this solely to restore availability without accepting possible data loss.

Measure: unclean elections, offline partitions and replica recovery

Versioned reference · 2026-10-27 · unbenchmarked tuning proposal

num.replica.fetchers
Broker 4.4
Evaluate
1 → 4Sets follower replication fetcher concurrency for each source broker.
Tradeoff: More fetchers can increase CPU, connections and disk activity without increasing storage capacity.
Workload, validation and sources

Workload: A replicated deployment with topic-level ISR and failure-recovery requirements.

Avoid when: Replication limited by disk or network capacity rather than fetcher concurrency.

Measure: follower lag, UnderReplicatedPartitions, disk and network throughput

Versioned reference · 2026-10-27 · unbenchmarked tuning proposal

replica.lag.time.max.ms
Broker 4.4
Keep
30 s (unchanged)Sets the lag interval used when considering removal of an out-of-date follower from ISR.
Tradeoff: A shorter interval can shrink ISR during pauses and reduce write availability with acks=all. It does not necessarily trigger a leader election.
Workload, validation and sources

Workload: A replicated deployment with topic-level ISR and failure-recovery requirements.

Avoid when: Lowering it to improve latency without observing follower lag and pause behavior.

Measure: ISR shrink/expand rate, UnderMinIsrPartitionCount and follower lag

An aggressive lag timeout can shrink ISR during pauses and block writes below minimum ISR. ISR removal is not itself always a leader election.

Versioned reference · 2026-10-27 · unbenchmarked tuning proposal

offsets.topic.replication.factor
Broker 4.4
Keep
3 (unchanged)Sets replication for the offsets topic when it is first created.
Tradeoff: Changing this property does not alter an existing offsets topic. Use a supported partition reassignment to change existing replicas; do not delete committed offsets.
Workload, validation and sources

Workload: A replicated deployment with topic-level ISR and failure-recovery requirements.

Avoid when: Trying to repair existing replication by deleting and recreating __consumer_offsets.

Measure: actual offsets-topic replicas, ISR and offset commit availability

Creation-time replication defaults do not change existing topic replicas. Use supported partition reassignment for existing topics; do not delete __consumer_offsets to change its replication.

Versioned reference · 2026-10-27 · unbenchmarked tuning proposal

Segments, compaction and flush
log.flush.interval.messages
Broker 4.4
Keep
no practical count trigger (9223372036854775807) (unchanged)Controls count-triggered flushing of log data. Keep the default unless an explicit storage durability policy requires more frequent flushes.
Tradeoff: Per-record flushing can severely increase I/O. Replication and minimum ISR remain necessary; fsync is not an end-to-end loss guarantee.
Workload, validation and sources

Workload: A replicated deployment with topic-level ISR and failure-recovery requirements.

Avoid when: Using per-record fsync as a blanket durability profile.

Measure: flush time/rate, disk latency, throughput and replication health

Frequent fsync is an explicit storage-policy tradeoff, not a blanket durability improvement. Replication and ISR requirements remain necessary.

Versioned reference · 2026-10-27 · unbenchmarked tuning proposal

log.flush.interval.ms
Broker 4.4
Keep
unset (unchanged)Sets time-triggered log flush behavior; an unset value follows the broker flush scheduler configuration.
Tradeoff: Frequent flushes add storage work and can reduce throughput. Keeping the default does not remove the need for replication and a recovery policy.
Workload, validation and sources

Workload: A replicated deployment with topic-level ISR and failure-recovery requirements.

Avoid when: A blanket short flush interval without storage-specific durability requirements.

Measure: flush latency, disk I/O and request latency

Frequent fsync is an explicit storage-policy tradeoff, not a blanket durability improvement. Replication and ISR requirements remain necessary.

Versioned reference · 2026-10-27 · unbenchmarked tuning proposal

log.cleanup.policy
Broker 4.4
Keep
delete (unchanged)Sets the default cleanup policy; delete and compact have different retention semantics and topic overrides apply.
Tradeoff: Compaction retains the latest value per key rather than all history, and tombstones have their own retention window.
Workload, validation and sources

Workload: A replicated deployment with topic-level ISR and failure-recovery requirements.

Avoid when: Applying compaction to an event-history topic that must preserve every event.

Measure: effective topic policy, cleaner progress and replay correctness

Time and byte retention limits apply independently to eligible segments. Byte retention is per partition; compaction preserves key state rather than full event history. Topic overrides matter.

Versioned reference · 2026-10-27 · unbenchmarked tuning proposal

Other controls
auto.create.topics.enable
Broker 4.4
Evaluate
true → falseDisabling automatic topic creation makes topic provisioning an explicit operation.
Tradeoff: Clients referencing missing topics will fail until an authorized provisioner creates them.
Workload, validation and sources

Workload: A replicated deployment with topic-level ISR and failure-recovery requirements.

Avoid when: Applications that intentionally rely on automatic creation without an alternative provisioning flow.

Measure: unknown-topic errors and provisioning failures

Versioned reference · 2026-10-27 · unbenchmarked tuning proposal

Retention
log.retention.hours
Broker 4.4
Keep
168 h (unchanged)Sets time-based delete retention when more specific retention settings do not override it.
Tradeoff: Shorter retention reduces the replay window. Deletion operates on eligible segments and is not an exact per-record deletion deadline.
Workload, validation and sources

Workload: A replicated deployment with topic-level ISR and failure-recovery requirements.

Avoid when: A recovery, replay or compliance requirement longer than the retention window.

Measure: consumer lag age, retained bytes and effective topic retention

Time and byte retention limits apply independently to eligible segments. Byte retention is per partition; compaction preserves key state rather than full event history. Topic overrides matter.

Versioned reference · 2026-10-27 · unbenchmarked tuning proposal

Network and buffers
message.max.bytes
Broker 4.4
Keep
1048588 B (unchanged)Sets the broker default maximum accepted record-batch size after compression; a topic can override max.message.bytes.
Tradeoff: It is not the whole ProduceRequest limit. Large batches also affect replica/consumer fetch behavior and memory.
Workload, validation and sources

Workload: A replicated deployment with topic-level ISR and failure-recovery requirements.

Avoid when: Changing the limit without reviewing topic overrides and client record sizes.

Measure: rejected batches, batch sizes and consumer/follower memory

The Java request limit and uncompressed batch limit differ from the broker/topic compressed record-batch limit. Also check the broker whole-request limit socket.request.max.bytes.

Versioned reference · 2026-10-27 · unbenchmarked tuning proposal