Creating a Kafka Consumer Group
A consumer subscribes to a topic. A consumer group consists of one or more consumers. Within a consumer group, each consumer can consume multiple partitions at the same time. Each partition can be consumed by one consumer at a time.
auto.create.groups.enable: a consumer group is automatically created when a consumer attempts to enter a group that does not exist.
- A consumer group is required before consuming messages when auto.create.groups.enable is false in Configuring Parameters. Otherwise, consumption will fail.
- A consumer group is created automatically before consuming messages when auto.create.groups.enable is true in Configuring Parameters.
Create a consumer group on the console.
Creating a consumer group on the console does not require an instance restart.
Notes and Constraints
- For instances created on and after April 25, 2023, consumer groups can be created on the console.
- If auto.create.groups.enable is set to true, the consumer group status is EMPTY, and no offset has been submitted, the system automatically deletes the consumer group 10 minutes later.
- If auto.create.groups.enable is set to false, the system does not automatically delete consumer groups. You can manually delete them.
- If a consumer group has never committed an offset, the group will be deleted after the Kafka instance restarts.
Procedure
- 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 Middleware > Distributed Message Service (for Kafka) to open the console of DMS for Kafka.
- Click the desired Kafka instance to view the instance details.
- In the navigation pane, choose Consumer Groups.
- Click Create Consumer Group.
- Set consumer group parameters by referring to Table 1 and click OK.
Table 1 Consumer group parameters Parameter
Description
Consumer Group Name
Enter 3 to 64 characters, starting with a letter or underscore (_). Use only letters, digits, periods (.), hyphens (-), and underscores (_).
If a consumer group name starts with a special character, for example, a number sign (#), monitoring data cannot be displayed.
Description
Enter 0 to 200 characters.
View the new consumer group in the consumer group list.
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