tencent cloud

TDMQ for CKafka

Release Notes and Announcements
Release Notes
Broker Release Notes
Announcement
Product Introduction
Introduction and Selection of the TDMQ Product Series
What Is TDMQ for CKafka
Strengths
Scenarios
Technology Architecture
Product Series Introduction
Apache Kafka Version Support Description
Comparison with Apache Kafka
High Availability
Use Limits
Regions and AZs
Related Cloud Services
Billing
Billing Overview
Pricing
Billing Example
Changing from Postpaid by Hour to Monthly Subscription
Renewal
Viewing Consumption Details
Overdue Payments
Refund
Getting Started
Guide for Getting Started
Preparations
VPC Network Access
Public Domain Name Access
User Guide
Usage Process Guide
Configuring Account Permission
Creating Instance
Configuring Topic
Connecting Instance
Managing Messages
Managing Consumer Group
Managing Instance
Changing Instance Specification
Configuring Traffic Throttling
Configuring Elastic Scaling Policy
Configuring Advanced Features
Viewing Monitoring Data and Configuring Alarm Rules
Synchronizing Data Using CKafka Connector
Use Cases
Cluster Resource Assessment
Client Practical Tutorial
Log Integration
Open-Source Ecosystem Integration
Replacing Supporting Route (Old)
Migration Guide
Migration Solution Overview
Migrating Cluster Using Open-Source Tool
Troubleshooting
Topics
Clients
Messages
​​API Reference
History
Introduction
API Category
Making API Requests
Other APIs
ACL APIs
Instance APIs
Routing APIs
DataHub APIs
Topic APIs
Data Types
Error Codes
SDK Reference
SDK Overview
Java SDK
Python SDK
Go SDK
PHP SDK
C++ SDK
Node.js SDK
SDK for Connector
Security and Compliance
Permission Management
Network Security
Deletion Protection
Event Record
CloudAudit
FAQs
Instances
Topics
Consumer Groups
Client-Related
Network-Related
Monitoring
Messages
Agreements
CKafka Service Level Agreements
Contact Us
Glossary

Consumer Group Status Description

PDF
フォーカスモード
フォントサイズ
最終更新日: 2026-01-20 16:52:41

Consumer Group Status Description

The statuses of a consumer group on the consumer group list page include Dead, Empty, PreparingRebalance, AwaitingSync, and Stable, with the most common being Empty, Stable, and Dead. Status mechanism transitions in the consumer group are shown below:


Dead: No members exist in the consumer group and no metadata is present.
Empty: No members exist in the consumer group, but metadata is present. If all offsets in the group have expired, the consumer group will become Dead. Generally, a newly created group is in the Empty status by default.
In the Apache Kafka version 0.10.x, when there are no members in a consumer group and this status persists for more than 7 days, the consumer group will be automatically deleted. TDMQ for CKafka (CKafka) supports customizing a retention period for empty consumer groups in the instance dimension. For detailed information, see Configuring a Retention Period for Empty Consumer Groups.
Stable: Members in the consumer group can consume normally.

Rebalance Status Details

Cause of Rebalance

According to the status mechanism of a consumer group, when the consumer group is in the Empty, AwaitSync, or Stable status, it may perform a rebalance. Rebalances may occur in the following scenarios:
A consumer has subscribed to a topic.
A consumer is disabled.
When a consumer is considered to be in the Dead status by the group coordinator. If a consumer fails to send a heartbeat to the group coordinator within session.timeout.ms, the consumer will be considered in the Dead status, triggering a rebalance. For details, see Configuring Client Parameters.
The number of partitions has increased.
A non-existent topic has been subscribed to. If you have subscribed to a topic that has not been created, a rebalance will occur when this topic is created. Similarly, a rebalance will also occur if a subscribed topic is deleted.
The application crashes.

Analysis of the Rebalance Process

Taking the mechanism of Kafka version 0.10 as an example, the rebalance process is analyzed as follows:
1. When any consumer wants to join a consumer group, a JoinGroup request will be sent to the group coordinator. The first consumer to join the group will become the group leader.
2. The leader will receive the list of all consumers in this group from the group coordinator and is responsible for assigning partitions to consumers in the group. Partition assignment can be implemented through the PartitionAssignor API.
3. After the assignment is completed, the leader sends the assignment results to the group coordinator, who then distributes the results to all consumers.
4. Therefore, each consumer can only view its assigned partition, and the leader is the only consumer who can access consumers in the consumer group and the nodes of their respective partition assignments.
The above process will be executed once whenever a rebalance occurs.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック