Topic Configs
These dynamic per-topic configs are accepted by AlterConfigs / IncrementalAlterConfigs. Unknown keys are rejected with INVALID_CONFIG.
| Key | Type | Default | KIP | Description |
|---|---|---|---|---|
retention.ms | long (ms) | — | Retention time before log segments become eligible for deletion. | |
retention.bytes | long (bytes) | — | Maximum partition size before old segments are deleted. | |
segment.bytes | int (bytes) | — | Target size of a single log segment file. | |
cleanup.policy | string | delete | — | delete, compact, or compact,delete. |
compression.type | string | producer | — | Broker-side compression codec for the topic. |
min.insync.replicas | int (>=1) | 1 | — | With acks=all, the minimum in-sync replicas required to accept a write; otherwise NOT_ENOUGH_REPLICAS (19). |
unclean.leader.election.enable | boolean | false | KIP-841 | Allow electing an out-of-ISR replica as leader on ISR-empty failover (possible data loss). |
unclean.recovery.strategy | string | None | KIP-966 | Offset-aware unclean recovery: None, Balanced, or Aggressive. Supersedes unclean.leader.election.enable. |
remote.storage.enable | boolean | false | KIP-405 | Opt this topic into tiered (remote) storage. |
local.retention.ms | long (ms) | KIP-405 | Local-tier retention time for tiered partitions. | |
local.retention.bytes | long (bytes) | KIP-405 | Local-tier retention size budget for tiered partitions. | |
leader.replication.throttled.replicas | string | KIP-73 | Replica list throttled on the leader side during reassignment. | |
follower.replication.throttled.replicas | string | KIP-73 | Replica list throttled on the follower side during reassignment. |