Cloud

Order Cluster Upgrades with Upgrade Dependencies

Upgrade dependencies control the order in which your clusters upgrade. With an upgrade dependency, a cluster upgrades to a new Redpanda version only after another cluster in your organization has run that version without health problems for a period that you specify, called the bake time. For example, you can make a production cluster wait until a staging cluster has run a new version for one day, so that any problem with the version shows up on staging before it reaches production.

Upgrade dependencies are available for BYOC and Dedicated clusters.

Upgrade dependencies are in limited availability. If you don’t see Upgrade dependencies in your cluster’s Dataplane settings, contact Redpanda Support to enable it for your organization.

After reading this page, you will be able to:

  • Explain how bake time and maintenance windows decide when a cluster upgrades

  • Add or remove an upgrade dependency in the Redpanda Cloud UI

  • Find out why a cluster hasn’t upgraded from its upgrade dependency status

How upgrade dependencies work

An upgrade dependency connects two clusters:

  • The waiting cluster is the cluster whose upgrades wait. You add the dependency in its settings.

  • The prerequisite cluster is the cluster that must upgrade first. It’s the cluster you select in Depends on cluster.

When a waiting cluster has an upgrade dependency:

  • The waiting cluster upgrades only to a version that the prerequisite cluster has run for the whole bake time.

  • The upgrade still starts in the waiting cluster’s own maintenance window. When the bake time ends, the upgrade waits for the next window. If the waiting cluster uses the default Anytime maintenance window, the upgrade can start as soon as the bake time ends.

  • If the waiting cluster has more than one prerequisite cluster, it upgrades only to the lowest version that all of them have baked.

  • The wait restarts if the prerequisite cluster becomes unhealthy during the bake, or if the version is no longer certified. The waiting cluster then waits for the prerequisite cluster’s next version to bake.

Two terms decide whether a version counts:

Healthy

Redpanda monitors every cluster while it upgrades and runs a new version. If Redpanda detects a problem with the prerequisite cluster on that version, it marks the cluster as unhealthy for the version. A version that was marked unhealthy during its bake never counts, even after the cluster recovers.

Certified

Redpanda certifies each Redpanda version before it rolls out to production clusters. If Redpanda finds a problem with a version after its release, it withdraws the certification, and clusters no longer upgrade to that version.

If an urgent fix is necessary, such as a critical security patch, Redpanda may upgrade a cluster without waiting for its upgrade dependencies.

Plan your dependencies

When you plan dependencies across your clusters, keep these limits in mind:

  • Both clusters must be BYOC or Dedicated clusters in the same organization. Serverless clusters can’t have or be an upgrade dependency.

  • A dependency can’t create a cycle. For example, if cluster B depends on cluster A, cluster A can’t depend on cluster B, directly or through other clusters.

  • A chain of dependencies can include at most three clusters, for example dev-cluster → staging-cluster → prod-cluster.

  • The bake time can be from 0 to 7 days. The default is 1 day. With a bake time of 0, the waiting cluster can upgrade as soon as the prerequisite cluster reaches a new version.

You can manage upgrade dependencies only in the Redpanda Cloud UI. Upgrade dependencies aren’t part of the Terraform cluster resource, so terraform apply doesn’t remove a dependency that you added in the UI.

Add an upgrade dependency

  1. In the Redpanda Cloud UI, open the waiting cluster, and go to Dataplane settings.

  2. In the Upgrade dependencies row, click Edit, then click Add dependency.

  3. In Depends on cluster, select the prerequisite cluster. The list doesn’t include clusters that already wait for this cluster.

    The Add upgrade dependency form in Dataplane settings, with the Depends on cluster and Bake time fields
  4. In Bake time, select how long the prerequisite cluster must run a new version first.

  5. Click Add dependency, then click Done.

The dependency takes effect immediately. Redpanda checks upgrade dependencies right before each upgrade starts, so a new dependency holds back any upgrade of the waiting cluster that hasn’t started yet. An upgrade that is already in progress finishes.

Remove an upgrade dependency

  1. In the waiting cluster’s Dataplane settings, click Edit in the Upgrade dependencies row.

  2. Click the delete icon next to the dependency, then click Done.

If the waiting cluster has no other dependency that blocks it, it can upgrade in its next maintenance window.

Check upgrade status

To find out why a cluster hasn’t upgraded, or when it can, check its upgrade dependency status:

  • In the waiting cluster’s Dataplane settings, the Upgrade dependencies row shows the status of each of its dependencies.

  • The Clusters page of your organization shows every waiting cluster, with one status that combines all of its dependencies, and the earliest maintenance window in which it could upgrade. A cluster is blocked if any one of its dependencies blocks it.

    The Upgrade dependencies panel on the Clusters page, listing two Eligible clusters and their earliest upgrade windows

Each dependency has one of the following statuses:

Status Meaning What to do

Eligible

The dependency allows the waiting cluster to upgrade. This doesn’t mean that an upgrade is scheduled: the waiting cluster upgrades in its next maintenance window only if a new version is available.

Nothing.

Blocked: Baking

The prerequisite cluster is running a new version, but the bake time hasn’t ended yet.

Nothing. The Clusters page shows the earliest window in which the waiting cluster can upgrade.

Blocked: Not upgraded yet

The prerequisite cluster hasn’t reached a version that the waiting cluster could upgrade to.

Nothing. The prerequisite cluster upgrades in its own maintenance window. Check that window if you expect it to upgrade first.

Blocked: Not ready

The prerequisite cluster isn’t ready, for example because it is being created or updated.

Check the state of the prerequisite cluster on the Clusters page.

Blocked: Not healthy

The prerequisite cluster is unhealthy, or was unhealthy during the bake.

Redpanda investigates unhealthy clusters. The waiting cluster upgrades after the prerequisite cluster’s next version bakes. To upgrade without waiting, remove the dependency.

Blocked: Version no longer certified

The version that the prerequisite cluster baked is no longer certified.

Nothing. The waiting cluster upgrades after the prerequisite cluster’s next version bakes.