rpk topic alter-config
An rpk command that changes topic properties such as retention.ms or min.insync.replicas on an existing topic.
In more detail
Each -s (or --set) flag takes a key=value pair, and several can be combined in one call. The change takes effect without restarting the broker.
Example
rpk topic alter-config events -s retention.ms=3600000Related terms
- rpk — The command-line tool that ships with Redpanda for starting brokers and managing topics, consumer groups and schemas.
- retention.ms — The topic property that sets the maximum age, in milliseconds, of records before their segment becomes eligible for deletion.
- min.insync.replicas — The topic or broker setting for the smallest number of in-sync replicas that must confirm an acks=all write for it to succeed.
Taught in
- Retention: Time, Size And Why Data Stays — Apache Kafka & Event Streaming
- Acknowledgements: What Acks Means For Durability — Apache Kafka & Event Streaming
- In-Sync Replicas And Minimum ISR — Apache Kafka & Event Streaming
- Losing A Broker — Apache Kafka & Event Streaming