Parameter | Description |
Name | Topic name, cannot be changed after input. The name can only contain letters, numbers, underscores, hyphens, and periods. Does not support starting with double underscores. |
Partition Count | A concept of physical partition. A Topic can contain one or more partitions. CKafka uses partitions as the allocation unit. The default deployment architecture has at least 3 nodes. It is recommended to start with at least 3 partitions for a more balanced data distribution. For partition count configuration, refer to the Parameter Configuration Instructions. |
Number of Replicas | The number of replicas of a Partition is used to ensure high availability of the Partition. To ensure data reliability, 2 replicas are enabled by default. The number of replicas is also counted as the number of partitions. For example, if a customer creates 1 Topic, 6 partitions, and 2 replicas, then the total Partition quota used is 1 × 6 × 2 = 12. Notes: Setting it to a single replica cannot guarantee availability. Proceed with caution. |
Tag | Tags are used to manage resources by category from different dimensions. For more details, see Tag Management. |
retention.ms | Message retention time in the Topic dimension, ranging from 1 minute to 90 days. |
Parameter Name | Default Value | Parameter Range | Description |
Message Timestamp Type | LogAppendTime (Recommended) | LogAppendTime/CreateTime | CreateTime indicates the local time of the client. Since the client time may deviate from the server time, you need to check whether the written time is the correct time. LogAppendTime indicates the time when the server-side Broker receives a message. |
Predefined ACL Policy | Off | Enable / Disable | |
cleanup.policy | delete | delete/compact | Supports deleting logs by storage time or compressing logs by key (compact mode is required when using Kafka Connect). |
min.insync.replicas | 1 | Cannot be larger than the secondary quantity. | When the producer sets request.required.acks to 1, min.insync.replicas specifies the minimum number of replicas. |
unclean.leader.election.enable | true | true/false | Specifies whether it is possible to set replicas that are not in the ISR as leaders. |
segment.ms | / | 1 to 90 Days | The duration of fragment scrolling, in milliseconds. |
retention.bytes | Defaults to the message retention size of the instance. | 1 to 1,024 GB | number of partitions * rentention.bytes = message retention size of the current topic. For a topic, if both message retention time and message retention size are set, the actual message retention will be based on the threshold that is reached first. |
max.message.bytes | - | 1 KB to 12 MB | When sending data, the client aggregates data sent to the same partition and sends them in a unified manner. The server compares the message size of each batch. |