Skip to content

AxonOps — AI-Native Control Plane for Open Source Data Platforms

Configure a Topic

Topic configuration refers to the settings that control the behavior and characteristics of a Kafka topic. These configurations can be set at the time of topic creation or modified later.

OptionDescriptionExample/Default Value
retention.msHow long (in milliseconds) to retain messages in the topic.604800000 (7 days)
retention.bytesMaximum total bytes to retain in the topic.-1 (unlimited)
cleanup.policyHow old data is removed: delete (default) or compact (log compaction).delete
min.insync.replicasMinimum number of replicas that must acknowledge a write for it to be considered successful.1
segment.bytesSize of each log segment file.1073741824 (1 GB)
segment.msTime after which a new log segment is rolled.604800000 (7 days)
max.message.bytesMaximum size of a single message.1048576 (1 MiB)
compression.typeCompression algorithm for topic data: gzip, snappy, lz4, zstd, uncompressed, producer.producer
message.timestamp.typeWhether to use CreateTime or LogAppendTime for message timestamps.CreateTime

Note

Defaults can vary by Kafka version and broker configuration. Confirm the effective values in your cluster.

For all Apache Kafka topic configuration options, see the Apache Kafka topic configuration reference.

Go to the Topics section.

Topics navigation item

Click on the topic name in the list to open the configuration and metrics popup.

Topic overview list

Filter config options by name, value, or source

Section titled “Filter config options by name, value, or source”

Topic configuration filter

Perform the specified action.

  • Edit Config:
  • Delete Config:

Topic configuration actions

Update the value to the required value and save changes.

Edit topic configuration value