The entire standby cluster must be on the same major version as the primary cluster or a major version the primary cluster . Within the primary and standby CockroachDB clusters, the system virtual cluster (system VC) must be at a cluster major version greater than or equal to the application virtual cluster (app VC).
Minor version upgrades
Minor versions are not relevant when determining PCR compatibility. There is no need to consider PCR compatibility when upgrading to a specific minor version within a major version, so you can follow the normal .Upgrade primary and standby clusters
To upgrade your primary and standby clusters:- Ensure that the virtual clusters on both your primary cluster and your standby cluster are on the current version before beginning the upgrade process.
- on the standby cluster. On each node of the cluster, replace the binary and restart the node.
-
to the standby cluster’s system VC:
-
the upgrade on the standby cluster’s system VC:
If you need to an upgrade, you must do so before the upgrade has been finalized.
-
Confirm that finalization is complete on the standby cluster’s system VC:
- on the primary cluster. On each node of the cluster, replace the binary and restart the node.
-
to the primary cluster’s system VC:
-
the upgrade on the primary cluster’s system VC:
If you need to an upgrade, you must do so before the upgrade has been finalized. Rolling back the upgrade on the primary cluster does not roll back the standby cluster.
-
Confirm that finalization is complete on the primary cluster’s system VC:
-
to the primary cluster’s app VC:
-
the upgrade on the primary cluster’s app VC:
Upgrading the primary cluster’s app VC also upgrades the standby cluster’s app VC, since it replicates from the primary.
-
Confirm that finalization is complete on the primary cluster’s app VC:
Upgrade reader VC
If you have a reader virtual cluster (reader VC), you must drop and recreate it to upgrade after completing the main upgrade process on the primary and standby clusters. Follow these steps to upgrade your reader VC:- After upgrading the app VC on your primary cluster, wait for the replicated time to pass the time at which the upgrade completed.
-
On the standby cluster, stop the reader VC service:
-
Drop the reader VC:
-
On the standby cluster, re-create the reader VC:

