Configuring Automatic Consumer Group Creation for Kafka
A consumer subscribes to a topic. A consumer group is a logical collection of consumers. Kafka uses consumer groups to balance messages and manage the consumption progress.
If the Auto Create Consumer Group function is enabled, a consumer group is automatically created when a consumer attempts to enter a group that does not exist. If this function is disabled, manually create a consumer group before consuming messages. Otherwise, message consumption will fail.
Notes and Constraints
- Enabled by default for new Kafka instances.
- Modifying this function does not restart Kafka instances.
Configuring Automatic Consumer Group Creation for Kafka
- Log in to the Kafka console.
- Click
in the upper left corner to select the region where your instance is located. - Click a Kafka instance name to go to the instance details page.
- Modify the automatic consumer group creation function of Kafka in either of the following ways:
- In the Instance Information area on the Overview page, configure the function.
- Choose Instance > Parameters in the navigation pane on the left. Click Edit next to auto.create.groups.enable. Configure the function in Current Value.
Related Documents
- To manually create a consumer group on the console, see Creating a Kafka Consumer Group.
- To manually create a consumer group by calling an API, see Creating a Consumer Group.