For the complete documentation index, see llms.txt. This page is also available as Markdown.

create

Create a Kafka topic

Usage

ionosctl kafka topic create [flags]

Aliases

For topic command:

[t]

For create command:

[c post]

Description

Create a topic inside a Kafka cluster.

--partitions splits the topic so it can be produced/consumed in parallel; ordering is guaranteed only within a partition, and partitions cannot be reduced later.

--replication-factor is how many brokers keep a copy of each partition, giving fault tolerance. It cannot exceed the number of brokers in the cluster (3), so valid values are 1-3; 3 is recommended for production.

Log retention decides how long data is kept: --retention-time is the age (in milliseconds) after which messages become eligible for deletion (default 604800000 = 7 days); --segment-bytes is the size each on-disk log segment file reaches before a new one is rolled (default 1073741824 = 1 GiB). Retained data counts against the cluster's shared storage.

The cluster must be AVAILABLE before topics can be created.

Options

Examples

Last updated