Skip to content

Upgrade the Kafka Version

Move a Managed Kafka service to a newer Apache Kafka version. The versions you can choose are listed by exo dbaas type show kafka, see Kafka Version Lifecycle.

Before You Upgrade

  • An upgrade cannot be reverted, because the old brokers are removed during the upgrade. Test the target version on a non-production service first.
  • Data moves between brokers during the upgrade, so make sure the disk has free space.
  • Before you move from Kafka 3.x to 4.x, remove message.format.version from your topic and service configurations. Kafka 4.0 no longer has this setting.
  • Kafka 4.x no longer accepts clients older than version 2.1. Update every producer, consumer and connector before you move from 3.x to 4.x.

Upgrade from the Portal

  1. Open the service in the Portal.
  2. In the menu at the top right of the service page, select Upgrade.
  3. Select the target version, then select Upgrade.

Upgrade with the API

echo '{"version":"TARGET_VERSION"}' | \
  exo api update-dbaas-service-kafka SERVICE_NAME -z ZONE

Parameters:

  • TARGET_VERSION: the target version, as a string, for example "4.3".
  • SERVICE_NAME: name of the service.
  • ZONE: zone the service runs in, for example ch-gva-2.

During the Upgrade

New brokers start next to the existing ones, partitions and leadership move to them, then the old brokers are removed. The service stays available. Performance can drop while the data moves, and client logs can show temporary leader not found warnings. Most client libraries retry on their own.

Related Pages

Last updated on