Keep Your Kafka Consumer Group IDs When Upgrading to Kestra 2.1
For the complete documentation index, see llms.txt. For a full content snapshot, see llms-full.txt. Append.mdto anykestra.io/docs/*URL for plain Markdown.
Available on: Enterprise Edition
In Kestra 2.1.0, the Kafka consumer group IDs of an instance that sets kestra.queue.prefix change. Set kestra.queue.kafka.client.consumer-prefix before you upgrade to keep the IDs from 2.0.
This applies only to Enterprise Edition instances that use the Kafka queue and set kestra.queue.prefix. Without kestra.queue.prefix, the group IDs don’t change.
What changed
A consumer group ID is a prefix followed by a hash of the topic name. Topic names don’t change in 2.1.0, so the hash stays the same, but the prefix changes:
| Version | Consumer group prefix |
|---|---|
| 2.0 | Always kestra_subscriber_ |
| 2.1.0 | kestra.queue.kafka.client.consumer-prefix if set, otherwise kestra.queue.prefix followed by __, otherwise kestra_subscriber_ |
For example, with kestra.queue.prefix: dev, the group kestra_subscriber_1a2b3c4d becomes dev__1a2b3c4d.
A renamed group has no committed offsets. Kestra starts its consumers from the earliest offset, so after the upgrade they read every message still retained in their topics. The 2.0 groups stay in Kafka, empty and with no members. Anything tied to the group names also stops matching, such as Kafka ACLs on consumer groups or consumer lag monitoring.
What to do
Before you upgrade, set the consumer group prefix to the 2.0 value:
kestra: queue: type: kafka prefix: dev kafka: client: consumer-prefix: kestra_subscriber_The instance then keeps its 2.0 consumer group IDs and their committed offsets, and your ACLs and monitoring keep working.
To use the new <prefix>__ group IDs instead, upgrade without consumer-prefix, then:
- Update the Kafka ACLs and the monitoring that refer to consumer group names.
- Delete the empty
kestra_subscriber_*groups once the new groups have caught up.
The kestra.kafka.client.prefix and kestra.kafka.defaults.consumer-prefix properties are removed. In 2.0 they had no effect on consumer group IDs, so remove them from your configuration.
For every Kafka property, see the Kafka configuration.
Was this page helpful?