CMS Topic Reference
A topic is a topic of a cluster, declared rather than created by a
client. It is deployed as a Topic resource of cms.camelx.io/v1alpha1, and listed on the
Topics tab of its cluster.
Topic Settings
| Field | What it is | Default |
|---|---|---|
| Topic name | The only name asked for: the name of the topic in the cluster, as typed: lowercase letters, digits, hyphens and dots, such as orders.events, from 2 to 63 characters, each part between dots starting and ending with a letter or a digit. It is also the alias of the topic. The component and the Topic resource take it with a hyphen for each dot, orders-events, and the topic keeps its name in spec.topicName. | — |
| Partitions | The number of partitions. Immutable: the broker cannot add partitions to a topic. | 1 |
| Keep messages for | A duration in minutes, hours, days or months of 30 days, written to retention.ms in milliseconds: 7 days give 604800000 | The default of the cluster |
| Keep at most | A size from 100 MiB to 100 GiB per partition, written to retention.bytes | No limit |
A topic is set when it is created: it has no edit panel. Deleting it deletes the topic and its
messages from the cluster (deletionPolicy: Delete).
The cluster is not a field: a topic is created from the page of its cluster, and carries its name in
the label cms.camelx.io/cluster of its application, where the cms-topic definition reads it.
Declared and Unmanaged Topics
A cluster with Clients create topics on also holds topics that no Topic resource declares. The
status of the cluster counts them as unmanaged; they are not listed in the console.
Status
The status reports the topic name, its partitions and the configs the broker applied, and conditions that say whether the topic exists in the cluster.