---
title: "Upgrade the Kafka Version"
description: "Upgrade an Exoscale Managed Kafka service to a newer Apache Kafka version from the Portal or the Exoscale API."
url: https://community.exoscale.com/product/dbaas/service-specific/kafka/how-to/upgrade-version/
product: "Kafka"
section: product
last_updated: 2026-11-24
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# 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](https://community.exoscale.com/product/dbaas/service-specific/kafka/reference/version-lifecycle/index.md).

## 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](https://portal.exoscale.com/).
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

```bash
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

- [Kafka Version Lifecycle](https://community.exoscale.com/product/dbaas/service-specific/kafka/reference/version-lifecycle/index.md)
- [Manage Maintenance Windows](https://community.exoscale.com/product/dbaas/how-to/maintenance-windows/index.md)

