You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/current/v25.3/upgrade-with-pcr.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,10 +5,10 @@ toc: true
5
5
docs_area: manage
6
6
---
7
7
8
-
When [**physical cluster replication (PCR)**]({% link {{ page.version.version }}/physical-cluster-replication-overview.md %}) is enabled, you must use the process on this page to upgrade your clusters. This process ensures that the standby cluster upgrades before the primary cluster.
8
+
When [**physical cluster replication (PCR)**]({% link {{ page.version.version }}/physical-cluster-replication-overview.md %}) is enabled, you must use the process on this page to upgrade your clusters. This process ensures that the standby cluster safely upgrades before the primary cluster, preventing any version incompatibility.
9
9
10
10
{{site.data.alerts.callout_info}}
11
-
The entire standby cluster must be on the same version as the primary cluster or a version the primary cluster can directly upgrade to. Within the primary and standby CockroachDB clusters, the _system virtual cluster (SystemVC)_ must be at a cluster version greater than or equal to the _app virtual cluster (AppVC)_.
11
+
The entire standby cluster must be on the same major version as the primary cluster or a major version the primary cluster [can directly upgrade to]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#compatible-versions). Within the primary and standby CockroachDB clusters, the _system virtual cluster (SystemVC)_ must be at a cluster major version greater than or equal to the _app virtual cluster (AppVC)_.
12
12
{{site.data.alerts.end}}
13
13
14
14
## Upgrade primary and standby clusters
@@ -25,14 +25,12 @@ To upgrade your primary and standby clusters:
25
25
If you need to [roll back]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#roll-back-a-major-version-upgrade) an upgrade, you must do so before the upgrade has been finalized.
26
26
{{site.data.alerts.end}}
27
27
28
-
After you have finalized the upgrade on the standby cluster's SystemVC, the clusters can remain in this state for an indefinite amount of time. You can wait to upgrade the primary cluster as long as is needed.
29
-
30
28
1.[Upgrade the binaries]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#perform-a-major-version-upgrade) on the primary cluster. Replace the binary on each node of the cluster and restart the node.
31
29
32
30
1.[Finalize]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#finalize-a-major-version-upgrade-manually) the upgrade on the primary cluster's SystemVC.
33
31
34
32
{{site.data.alerts.callout_info}}
35
-
If you need to [roll back]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#roll-back-a-major-version-upgrade) an upgrade, you must do so before the upgrade has been finalized. Rolling back the upgrade on the primary cluster does not also roll back the standby cluster.
33
+
If you need to [roll back]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#roll-back-a-major-version-upgrade) 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.
36
34
{{site.data.alerts.end}}
37
35
38
36
1.[Finalize]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#finalize-a-major-version-upgrade-manually) the upgrade on the primary cluster's AppVC.
@@ -41,35 +39,37 @@ To upgrade your primary and standby clusters:
41
39
42
40
## Upgrade ReaderVC
43
41
44
-
If you have a [_reader virtual cluster (ReaderVC)_]({% link {{ page.version.version }}/read-from-standby.md %}), use the following steps to upgrade it by dropping and re-creating it:
42
+
If you have a [_reader virtual cluster (ReaderVC)_]({% link {{ page.version.version }}/read-from-standby.md %}), you must upgrade it independently from the primary and standby clusters, after completing the main upgrade process. Use the following steps to upgrade your ReaderVC by dropping and re-creating it:
45
43
46
44
1. After upgrading the AppVC on your primary cluster, wait for the replicated time to pass the time at which the upgrade completed.
47
45
1. On the standby cluster, stop the ReaderVC service:
48
46
49
47
{% include_cached copy-clipboard.html %}
50
48
~~~sql
51
-
ALTER VIRTUAL CLUSTER <readervc-name> STOP SERVICE
49
+
ALTER VIRTUAL CLUSTER <readervc-name> STOP SERVICE;
52
50
~~~
53
51
54
52
1. Drop the ReaderVC:
55
53
56
54
{% include_cached copy-clipboard.html %}
57
55
~~~ sql
58
-
DROP VIRTUAL CLUSTER <readervc-name>
56
+
DROP VIRTUAL CLUSTER <readervc-name>;
59
57
~~~
60
58
61
-
1. Back onthe standby cluster, if the version is as expected, re-create the ReaderVC:
59
+
1. Onthe standby cluster, re-create the ReaderVC:
62
60
63
61
{% include_cached copy-clipboard.html %}
64
62
~~~ sql
65
-
ALTER VIRTUAL CLUSTER dest-system SET REPLICATION READ VIRTUAL CLUSTER
63
+
ALTER VIRTUAL CLUSTER dest-system SET REPLICATION READ VIRTUAL CLUSTER;
66
64
~~~
67
65
66
+
At this point, the ReaderVC is on the same version as the standby cluster.
67
+
68
68
## Failover and fast failback during upgrade
69
69
70
-
If you need toperform a [failover]({% link {{ page.version.version }}/failover-replication.md %}) while upgrading your clusters, you can do that using the normal process.
70
+
If you need to, you can still perform a [failover]({% link {{ page.version.version }}/failover-replication.md %}) while upgrading your clusters.
71
71
72
-
However, after performing a failover you cannot perform a [fast failback]({% link {{ page.version.version }}/failover-replication.md %}#failback) to the original primary cluster during the upgrade process. This is because at times during the upgrade the standby cluster is ahead of the primary cluster.
72
+
However, after performing a failover you cannot perform a [fast failback]({% link {{ page.version.version }}/failover-replication.md %}#failback) to the original primary cluster while the standby cluster version is newer than the primary cluster version. This is because you cannot replicate data from a cluster on a newer version to a cluster on an older version.
0 commit comments