Updated on 2025-06-19 GMT+08:00

Automatic Topic Creation

Parameter Explanation

  • Automatic Topic Creation

    If this option is enabled, a topic will be automatically created when a message is produced in or consumed from a topic that does not exist. By default, the topic has the parameters shown in Table 1.

    The following parameters of cluster instances can be changed on the Parameters page: log.retention.hours (retention period), default.replication.factor (replica quantity), or num.partitions (partition quantity). The value will be used in later topics that are automatically created.

    For example, assume that num.partitions is changed to 5, an automatically created topic has parameters listed in Table 1.

    Table 1 Topic parameters

    Parameter Name

    Default Value (Single-node)

    Default Value (Cluster)

    Modified To (Cluster)

    Partitions

    1

    3

    5

    Replicas

    1

    3

    3

    Aging Time

    72 hours

    72 hours

    72 hours

    Synchronous Replication

    Disabled

    Disabled

    Disabled

    Synchronous Flushing

    Disabled

    Disabled

    Disabled

    Message Timestamp

    CreateTime

    CreateTime

    CreateTime

    Max. Message Size

    10,485,760 bytes

    10,485,760 bytes

    10,485,760 bytes

FAQs