Topic Configuration Management
Core Settings
-
Replication Settings
- replication.factor: Number of replicas
- min.insync.replicas: Minimum replicas for writes
- unclean.leader.election.enable: Out-of-sync leader election
-
Partition Management
- num.partitions: Initial partition count
- auto.create.topics.enable: Automatic topic creation
- delete.topic.enable: Topic deletion allowed
-
Storage Settings
- retention.ms: Message retention time
- retention.bytes: Maximum partition size
- segment.bytes: Size of segment files
Dynamic Configuration
- Topic configurations stored in ZooKeeper
- Can be modified without broker restart
- Changes affect only specified topics
- Monitored via kafka-topics.sh tool
Monitoring and Validation
-
Health Checks
- Check under-replicated partitions
- Monitor in-sync replica count
- Track partition leadership changes
-
Configuration Validation
- Verify replication factor adequacy
- Check min.insync.replicas setting
- Validate partition count
References
Flashcards
What are the three most critical topic configurations for reliability?:: replication.factor, min.insync.replicas, and unclean.leader.election.enable
Where are dynamic topic configurations stored?:: In ZooKeeper
When does auto.create.topics.enable trigger topic creation?:: When a producer writes messages, a consumer reads messages, or any client requests metadata