Configuring Automatic Topic Creation
Automatic topic creation: 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 following parameters:
- Partitions: 3
- Replicas: 3
- Aging Time: 72
- Synchronous Replication and Synchronous Flushing disabled
- Message Timestamp: CreateTime
- Max.Message Size (bytes): 10,485,760
After you change the value of the log.retention.hours, default.replication.factor, or num.partitions parameter, 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 the following parameters:
- Partitions: 5
- Replicas: 3
- Aging Time: 72
- Synchronous Replication and Synchronous Flushing disabled
- Message Timestamp: CreateTime
- Max.Message Size (bytes): 10,485,760
Configuring Automatic Topic Creation
- Log in to the console.
- Click in the upper left corner to select a region.
Select the region where your Kafka instance is located.
- Click and choose Application > Distributed Message Service for Kafka to open the console of DMS for Kafka.
- Click the desired Kafka instance to view its details.
- In the Instance Information area, click or next to Automatic Topic Creation. The Confirm dialog box is displayed.
Enabling or disabling automatic topic creation may cause instance restarts.
- Click OK.
You can view the execution status of the task on the Background Tasks page.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot