Kafka Topic Management
Create, update, and delete Kafka topics in Surge
Kafka Topic Management
Kafka topic management is available from the Topics tab on a Kafka resource.
This view lists the topics known to the cluster and lets you create, edit, and
delete topics without leaving the Viduli console.
Creating a Topic
To create a topic:
- Open the Kafka resource details view.
- Go to the
Topicstab. - Click
Create Topic. - Enter the topic name.
- Set partitions and any advanced topic settings you need.
- Save the topic.
Editing a Topic
To update an existing topic:
- Open the
Topicstab for the Kafka cluster. - Select the topic you want to change.
- Open the edit action.
- Update the supported topic settings.
- Save the changes.
Deleting a Topic
To delete a topic:
- Open the
Topicstab for the Kafka cluster. - Select the topic.
- Choose the delete action.
- Confirm the deletion.
Topic Name Rules
Topic names must:
- use lowercase letters, numbers, hyphens, and dots
- start and end with a letter or number
- be no longer than 249 characters
Topic Fields
The topic form exposes these settings.
Partitions: Number of partitions for the topic.
Replication Factor: Number of broker replicas for the topic. This field
supports a concrete value or auto.
Min In-Sync Replicas: Minimum number of in-sync replicas required for a
write to be considered committed. This field supports a concrete value or
auto.
Cleanup Policy: Log cleanup behavior, such as delete or compaction.
Compression Type: Compression applied to topic data.
Message Timestamp Type: Whether Kafka uses producer timestamps or log append timestamps.
Retention Time: Maximum time to keep data before it becomes eligible for cleanup.
Retention Size: Maximum retained log size before older segments become eligible for cleanup.
Segment Roll Time: Maximum age of a log segment before Kafka rolls it.
Segment Size: Maximum size of a log segment before Kafka rolls it.
Max Message Size: Maximum allowed message size for the topic.
Flush Messages: Number of messages after which Kafka forces a flush.
Flush Time: Time after which Kafka forces a flush.
How auto Values Work
Surge supports auto for topic replication settings.
replication_factorresolves to the lower of 3 or the number of broker nodesmin_insync_replicasresolves toreplication_factor - 1, with a minimum of 1
This makes it easier to create sensible topic settings without manually matching every topic to the current broker count.
Topic Defaults and Per-Topic Settings
Cluster-level topic defaults and per-topic settings are separate controls.
- Use the cluster
Configurationtab to manage defaults applied at the cluster level - Use the
Topicstab when a specific topic needs its own settings
For cluster-level fields, see Kafka configuration.
Last updated on