group.instance.id — Kafka Consumer Configuration
A unique identifier of the consumer instance provided by the end user. Only non-empty strings are permitted
Description
A unique identifier of the consumer instance provided by the end user. Only non-empty strings are permitted. If set, the consumer is treated as a static member, which means that only one instance with this ID is allowed in the consumer group at any time. This can be used in combination with a larger session timeout to avoid group rebalances caused by transient unavailability (e.g. process restarts). If not set, the consumer will join the group as a dynamic member, which is the traditional behavior.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Consumer | 2.3 | null |
| Consumer | 2.4 | null |
| Consumer | 2.5 | null |
| Consumer | 2.6 | null |
| Consumer | 2.7 | null |
| Consumer | 2.8 | null |
| Consumer | 3.0 | null |
| Consumer | 3.1 | null |
| Consumer | 3.2 | null |
| Consumer | 3.3 | null |
| Consumer | 3.4 | null |
| Consumer | 3.5 | null |
| Consumer | 3.6 | null |
| Consumer | 3.7 | null |
| Consumer | 3.8 | null |
| Consumer | 3.9 | null |
| Consumer | 4.0 | null |
| Consumer | 4.1 | null |
| Consumer | 4.2 | null |
| Consumer | 4.3 | null |
| Consumer | 4.4 | null |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| consumer / throughput | <unique-per-instance-id> | Enables static group membership with a stable logical instance identity. Tradeoff: Concurrent members must not share an ID. Failure detection and partition reassignment can be delayed by session timeout. Manual decision; not an executable preset. Reference · 2026-10-27 |
| consumer / durability | <unique-per-instance-id> | Enables static group membership with a stable logical instance identity. Tradeoff: Concurrent members must not share an ID. Failure detection and partition reassignment can be delayed by session timeout. Manual decision; not an executable preset. Reference · 2026-10-27 |
Related Configs
partition.assignment.strategy · session.timeout.ms · max.poll.interval.ms