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/v24.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
@@ -8,7 +8,7 @@ docs_area: manage
8
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. You cannot replicate data from a cluster on a newer version to a cluster on an older version.
9
9
10
10
{{site.data.alerts.callout_info}}
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)_.
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 (system VC)_ must be at a cluster major version greater than or equal to the _application virtual cluster (app VC)_.
12
12
{{site.data.alerts.end}}
13
13
14
14
## Upgrade primary and standby clusters
@@ -19,51 +19,51 @@ To upgrade your primary and standby clusters:
19
19
20
20
1.[Upgrade the binaries]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#perform-a-major-version-upgrade) on the standby cluster. Replace the binary on each node of the cluster and restart the node.
21
21
22
-
1.[Finalize]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#finalize-a-major-version-upgrade-manually) the upgrade on the standby cluster's SystemVC.
22
+
1.[Finalize]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#finalize-a-major-version-upgrade-manually) the upgrade on the standby cluster's system VC.
23
23
24
24
{{site.data.alerts.callout_info}}
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
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.
29
29
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.
30
+
1.[Finalize]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#finalize-a-major-version-upgrade-manually) the upgrade on the primary cluster's system VC.
31
31
32
32
{{site.data.alerts.callout_info}}
33
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.
34
34
{{site.data.alerts.end}}
35
35
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.
36
+
1.[Finalize]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#finalize-a-major-version-upgrade-manually) the upgrade on the primary cluster's app VC.
37
37
38
-
Upgrading the primary cluster's AppVC also upgrades the standby cluster's AppVC, since it replicates from the primary.
38
+
Upgrading the primary cluster's app VC also upgrades the standby cluster's app VC, since it replicates from the primary.
39
39
40
-
## Upgrade ReaderVC
40
+
## Upgrade reader VC
41
41
42
-
If you have a _reader virtual cluster (ReaderVC)_, 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:
42
+
If you have a _reader virtual cluster (reader VC)_, you must upgrade it independently from the primary and standby clusters, after completing the main upgrade process. Use the following steps to upgrade your reader VC by dropping and re-creating it:
43
43
44
-
1. After upgrading the AppVC on your primary cluster, wait for the replicated time to pass the time at which the upgrade completed.
45
-
1. On the standby cluster, stop the ReaderVC service:
44
+
1. After upgrading the app VC on your primary cluster, wait for the replicated time to pass the time at which the upgrade completed.
45
+
1. On the standby cluster, stop the reader VC service:
46
46
47
47
{% include_cached copy-clipboard.html %}
48
48
~~~sql
49
49
ALTER VIRTUAL CLUSTER <readervc-name> STOP SERVICE;
50
50
~~~
51
51
52
-
1. Drop the ReaderVC:
52
+
1. Drop the reader VC:
53
53
54
54
{% include_cached copy-clipboard.html %}
55
55
~~~ sql
56
56
DROP VIRTUAL CLUSTER <readervc-name>;
57
57
~~~
58
58
59
-
1. On the standby cluster, re-create the ReaderVC:
59
+
1. On the standby cluster, re-create the reader VC:
60
60
61
61
{% include_cached copy-clipboard.html %}
62
62
~~~ sql
63
63
ALTER VIRTUAL CLUSTER dest-system SET REPLICATION READ VIRTUAL CLUSTER;
64
64
~~~
65
65
66
-
At this point, the ReaderVC is on the same version as the standby cluster.
66
+
At this point, the reader VC is on the same version as the standby cluster.
Copy file name to clipboardExpand all lines: src/current/v25.2/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
@@ -8,7 +8,7 @@ docs_area: manage
8
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. You cannot replicate data from a cluster on a newer version to a cluster on an older version.
9
9
10
10
{{site.data.alerts.callout_info}}
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)_.
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 (system VC)_ must be at a cluster major version greater than or equal to the _application virtual cluster (app VC)_.
12
12
{{site.data.alerts.end}}
13
13
14
14
## Upgrade primary and standby clusters
@@ -19,51 +19,51 @@ To upgrade your primary and standby clusters:
19
19
20
20
1.[Upgrade the binaries]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#perform-a-major-version-upgrade) on the standby cluster. Replace the binary on each node of the cluster and restart the node.
21
21
22
-
1.[Finalize]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#finalize-a-major-version-upgrade-manually) the upgrade on the standby cluster's SystemVC.
22
+
1.[Finalize]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#finalize-a-major-version-upgrade-manually) the upgrade on the standby cluster's system VC.
23
23
24
24
{{site.data.alerts.callout_info}}
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
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.
29
29
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.
30
+
1.[Finalize]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#finalize-a-major-version-upgrade-manually) the upgrade on the primary cluster's system VC.
31
31
32
32
{{site.data.alerts.callout_info}}
33
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.
34
34
{{site.data.alerts.end}}
35
35
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.
36
+
1.[Finalize]({% link {{ page.version.version }}/upgrade-cockroach-version.md %}#finalize-a-major-version-upgrade-manually) the upgrade on the primary cluster's app VC.
37
37
38
-
Upgrading the primary cluster's AppVC also upgrades the standby cluster's AppVC, since it replicates from the primary.
38
+
Upgrading the primary cluster's app VC also upgrades the standby cluster's app VC, since it replicates from the primary.
39
39
40
-
## Upgrade ReaderVC
40
+
## Upgrade reader VC
41
41
42
-
If you have a _reader virtual cluster (ReaderVC)_, 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:
42
+
If you have a _reader virtual cluster (reader VC)_, you must upgrade it independently from the primary and standby clusters, after completing the main upgrade process. Use the following steps to upgrade your reader VC by dropping and re-creating it:
43
43
44
-
1. After upgrading the AppVC on your primary cluster, wait for the replicated time to pass the time at which the upgrade completed.
45
-
1. On the standby cluster, stop the ReaderVC service:
44
+
1. After upgrading the app VC on your primary cluster, wait for the replicated time to pass the time at which the upgrade completed.
45
+
1. On the standby cluster, stop the reader VC service:
46
46
47
47
{% include_cached copy-clipboard.html %}
48
48
~~~sql
49
49
ALTER VIRTUAL CLUSTER <readervc-name> STOP SERVICE;
50
50
~~~
51
51
52
-
1. Drop the ReaderVC:
52
+
1. Drop the reader VC:
53
53
54
54
{% include_cached copy-clipboard.html %}
55
55
~~~ sql
56
56
DROP VIRTUAL CLUSTER <readervc-name>;
57
57
~~~
58
58
59
-
1. On the standby cluster, re-create the ReaderVC:
59
+
1. On the standby cluster, re-create the reader VC:
60
60
61
61
{% include_cached copy-clipboard.html %}
62
62
~~~ sql
63
63
ALTER VIRTUAL CLUSTER dest-system SET REPLICATION READ VIRTUAL CLUSTER;
64
64
~~~
65
65
66
-
At this point, the ReaderVC is on the same version as the standby cluster.
66
+
At this point, the reader VC is on the same version as the standby cluster.
Copy file name to clipboardExpand all lines: src/current/v25.3/read-from-standby.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,13 +11,13 @@ Use this page to understand how the _read from standby_ feature works and how to
11
11
12
12
## How the read from standby feature works
13
13
14
-
PCR utilizes [cluster virtualization]({% link {{ page.version.version }}/cluster-virtualization-overview.md %}) to separate a cluster's control plane from its data plane. A cluster always has one control plane, called a _system virtual cluster (SystemVC)_, and at least one data plane, called an _App Virtual Cluster (AppVC)_. The standby cluster's SystemVC manages the PCR job and other cluster metadata, and is not used for application queries. All data tables, system tables, and cluster settings in the standby cluster's AppVC are identical to the primary cluster's AppVC. The standby cluster's AppVC itself remains offline during replication.
14
+
PCR utilizes [cluster virtualization]({% link {{ page.version.version }}/cluster-virtualization-overview.md %}) to separate a cluster's control plane from its data plane. A cluster always has one control plane, called a _system virtual cluster (system VC)_, and at least one data plane, called an _App Virtual Cluster (app VC)_. The standby cluster's system VC manages the PCR job and other cluster metadata, and is not used for application queries. All data tables, system tables, and cluster settings in the standby cluster's app VC are identical to the primary cluster's app VC. The standby cluster's app VC itself remains offline during replication.
15
15
16
-
When using read from standby, applications can read from the standby cluster, but they do not connect directly to the standby cluster's AppVC. Instead, PCR introduces a _reader virtual cluster (ReaderVC)_. The ReaderVC ensures a clean, isolated environment specifically for serving read queries without interfering with replication or system metadata. It reads continuously from the standby cluster's AppVC using internal pointers, providing access to the replicated data while keeping the AppVC offline. The ReaderVC itself only stores a small amount of metadata and no user data, so it is not expected to take up additional storage space.
16
+
When using read from standby, applications can read from the standby cluster, but they do not connect directly to the standby cluster's app VC. Instead, PCR introduces a _reader virtual cluster (reader VC)_. The reader VC ensures a clean, isolated environment specifically for serving read queries without interfering with replication or system metadata. It reads continuously from the standby cluster's app VC using internal pointers, providing access to the replicated data while keeping the app VC offline. The reader VC itself only stores a small amount of metadata and no user data, so it is not expected to take up additional storage space.
17
17
18
-
The standby cluster's ReaderVC has its own system tables and [cluster settings]({% link {{ page.version.version }}/cluster-settings.md %}). The ReaderVC replicates a subset of system tables, including **Users** and **Roles**, from the AppVC, so that existing primary users can authenticate using the same [users and roles]({% link {{ page.version.version }}/security-reference/authorization.md %}) as on the primary cluster's AppVC. Other system tables and cluster settings are set to defaults in the ReaderVC. For more information, consult [Physical Cluster Replication Technical Overview]({% link {{ page.version.version }}/physical-cluster-replication-technical-overview.md %}).
18
+
The standby cluster's reader VC has its own system tables and [cluster settings]({% link {{ page.version.version }}/cluster-settings.md %}). The reader VC replicates a subset of system tables, including **Users** and **Roles**, from the app VC, so that existing primary users can authenticate using the same [users and roles]({% link {{ page.version.version }}/security-reference/authorization.md %}) as on the primary cluster's app VC. Other system tables and cluster settings are set to defaults in the reader VC. For more information, consult [Physical Cluster Replication Technical Overview]({% link {{ page.version.version }}/physical-cluster-replication-technical-overview.md %}).
19
19
20
-
In the event of failover, the ReaderVC's response depends on the type of failover. After failover to the latest timestamp, the ReaderVC continues pointing to the AppVC but stops receiving updates. After failover to a point-in-time timestamp, the ReaderVC is destroyed.
20
+
In the event of failover, the reader VC's response depends on the type of failover. After failover to the latest timestamp, the reader VC continues pointing to the app VC but stops receiving updates. After failover to a point-in-time timestamp, the reader VC is destroyed.
21
21
22
22
## Use the read from standby feature
23
23
### Before you begin
@@ -46,7 +46,7 @@ ALTER VIRTUAL CLUSTER main SET REPLICATION READ VIRTUAL CLUSTER;
46
46
~~~
47
47
48
48
{{site.data.alerts.callout_info}}
49
-
The standby cluster's AppVC must have a status of `replicating` before you can create your ReaderVC. Use the [`SHOW VIRTUAL CLUSTERS`]({% link {{ page.version.version }}/show-virtual-cluster.md %}) command to check the status of the AppVC.
49
+
The standby cluster's app VC must have a status of `replicating` before you can create your reader VC. Use the [`SHOW VIRTUAL CLUSTERS`]({% link {{ page.version.version }}/show-virtual-cluster.md %}) command to check the status of the app VC.
50
50
{{site.data.alerts.end}}
51
51
52
52
### Check the status of your reader virtual cluster
@@ -58,7 +58,7 @@ To confirm that your reader virtual cluster is active:
58
58
SHOW VIRTUAL CLUSTERS;
59
59
~~~
60
60
61
-
The output shows a `standby-readonly` virtual cluster in addition to the systemVC and AppVC:
61
+
The output shows a `standby-readonly` virtual cluster in addition to the system VC and app VC:
62
62
63
63
~~~
64
64
id | name | data_state | service_mode
@@ -69,7 +69,7 @@ The output shows a `standby-readonly` virtual cluster in addition to the systemV
69
69
~~~
70
70
71
71
{{site.data.alerts.callout_info}}
72
-
The ReaderVC cannot serve reads until after the PCR initial scan is complete. After completing the initial scan, wait until the ReaderVC's `service_mode` is `shared`, then wait about one minute before connecting to the ReaderVC.
72
+
The reader VC cannot serve reads until after the PCR initial scan is complete. After completing the initial scan, wait until the reader VC's `service_mode` is `shared`, then wait about one minute before connecting to the reader VC.
0 commit comments