Skip to content

Commit ed29cec

Browse files
authored
Some fixes for acrolinx.
1 parent 050a6af commit ed29cec

File tree

1 file changed

+32
-30
lines changed

1 file changed

+32
-30
lines changed

articles/azure-arc/data/includes/azure-arc-data-preview-release.md

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ ms.date: 08/02/2022
1010
At this time, a test or preview build is not available for the next release.
1111
-->
1212

13-
1413
The current test release published on September 27, 2022.
1514

1615
|Component|Value|
@@ -30,7 +29,7 @@ New for this release:
3029
-->
3130

3231
- Arc-enabled SQL managed instance
33-
- New reprovision replica task provides users a way to rebuild a broken sql instance replica. More infromation [below](#reprovision-replica).
32+
- New reprovision replica task lets you rebuild a broken sql instance replica. For more information, see [Reprovision replica](#reprovision-replica).
3433

3534
<!--
3635
- Arc-enabled PostgreSQL server
@@ -40,51 +39,53 @@ New for this release:
4039
- Columns for release information added to the following commands: `az sql mi-arc list` this makes it easy to see what instance may need to be updated.
4140
- Alternately you can run `az arcdata dc list-upgrades'
4241

42+
### Reprovision replica
4343

44-
# Reprovision Replica
44+
The reprovision replica task lets you rebuild a broken sql instance replica. It is intended to be used for a replica that is failing to synchronize, perhaps due to corruption of the data on the persistent volumes (PV) for that instance, or due to some recurring SQL issue, for example.
4545

46-
The reprovision replica task provides users a way to rebuild a broken sql instance replica. It is intended to be used for a replica that is failing to synchronize, perhaps due to corruption of the data on the PV(s) for that instance, or due to some recurring SQL issue, etc.
46+
Support for reprovisioning of a replica is provided only via `az` CLI and kube-native. There is no portal support.
4747

48-
Support for reprovisioning of a replica is provided only via az cli and kube-native. There is no portal support.
48+
#### Prerequisites
4949

50-
## Prerequisites
5150
Reprovisioning can only be performed on a multi-replica instance.
5251

53-
## How to request a reprovision
52+
#### Request a reprovision replica
5453

55-
### Via CLI
54+
Request provisioning [via `az` CLI](#via-az-cli) or [via `kubectl`](#via-kubectl).
5655

57-
```
56+
##### Via `az` CLI
57+
58+
```az
5859
az sql mi-arc reprovision-replica -n <instance_name-replica_number> -k <namespace> --use-k8s
5960
```
6061

6162
For example, for replica 2 of instance mySqlInstance in namespace arc, the command would be:
6263

63-
```
64+
```az
6465
az sql mi-arc reprovision-replica -n mySqlInstance-2 -k arc --use-k8s
6566
```
6667

67-
This will run until completion at which point the message displayed by the cli will be:
68+
This runs until completion at which point the console returns:
6869

69-
```
70+
```az
7071
sql-reprov-replica-mySqlInstance-2-1664217002.376132 is Ready
7172
```
7273

73-
Note that the name of the thing that is ready, is the kubernetes task. At this point you can either examine the task:
74+
The name of the thing that is ready, is the kubernetes task. At this point you can either examine the task:
7475

75-
```
76+
```console
7677
kubectl describe SqlManagedInstanceReprovisionReplicaTask sql-reprov-replica-mySqlInstance-2-1664217002.376132 -n arc
7778
```
7879

79-
or delete it:
80+
Or delete it:
8081

81-
```
82+
```console
8283
kubectl delete SqlManagedInstanceReprovisionReplicaTask sql-reprov-replica-mySqlInstance-2-1664217002.376132 -n arc
8384
```
8485

85-
There is an optional --no-wait parameter for the cli. If you send the request with --no-wait, the output will include the name of the task to be monitored. For example:
86+
There is an optional `--no-wait` parameter for the command. If you send the request with `--no-wait`, the output will include the name of the task to be monitored. For example:
8687

87-
```
88+
```az
8889
az sql mi-arc reprovision-replica -n mySqlInstance-2 -k arc --use-k8s --no-wait
8990
Reprovisioning replica mySqlInstance-2 in namespace `arc`. Please use
9091
`kubectl get -n arc SqlManagedInstanceReprovisionReplicaTask sql-reprov-replica-mySqlInstance-2-1664217434.531035`
@@ -93,10 +94,11 @@ to check its status or
9394
to view all reprovision tasks.
9495
```
9596

96-
### Via kubectl
97+
#### Via kubectl
98+
9799
The CRD for reprovision replica is fairly simple. You can create a yaml file with this structure:
98100

99-
```
101+
```yaml
100102
apiVersion: tasks.sql.arcdata.microsoft.com/v1beta1
101103
kind: SqlManagedInstanceReprovisionReplicaTask
102104
metadata:
@@ -108,7 +110,7 @@ spec:
108110
109111
To use the same example as above, mySqlinstance replica 2, the payload would be:
110112
111-
```
113+
```yaml
112114
apiVersion: tasks.sql.arcdata.microsoft.com/v1beta1
113115
kind: SqlManagedInstanceReprovisionReplicaTask
114116
metadata:
@@ -119,28 +121,28 @@ spec:
119121
```
120122
121123
Once the yaml is applied via kubectl apply, you can monitor or delete the task via kubectl:
122-
```
124+
125+
```console
123126
kubectl get -n arc SqlManagedInstanceReprovisionReplicaTask my-reprovision-task-mySqlInstance-2
124127
kubectl describe -n arc SqlManagedInstanceReprovisionReplicaTask my-reprovision-task-mySqlInstance-2
125128
kubectl delete -n arc SqlManagedInstanceReprovisionReplicaTask my-reprovision-task-mySqlInstance-2
126129
```
127130

128-
## Limitations
131+
#### Limitations
129132

130-
* The task should reject attempts to reprovision the current primary replica. If the current primary is believed to be corrupted and in need of reprovisioning, the user should fail over to a different primary and then request the reprovisioning.
133+
- The task should reject attempts to reprovision the current primary replica. If the current primary is believed to be corrupted and in need of reprovisioning, the user should fail over to a different primary and then request the reprovisioning.
131134

132-
* Reprovisioning of multiple replicas in the same instance will serialize; the tasks will accumulate and be held in "Creating" state until the currently active task finishes *and is deleted*. There is no auto-cleanup of a completed task, so this serialization will affect the user even if they run the az command synchronously and wait for it to complete before requesting another reprovision. In all cases they will have to remove the task via kubectl before another reprovision on the same instance can run. **There is no warning about this, either in the az cli or in kubectl.**
135+
- Reprovisioning of multiple replicas in the same instance will serialize; the tasks will accumulate and be held in "Creating" state until the currently active task finishes *and is deleted*. There is no auto-cleanup of a completed task, so this serialization will affect the user even if they run the az command synchronously and wait for it to complete before requesting another reprovision. In all cases they will have to remove the task via kubectl before another reprovision on the same instance can run. **There is no warning about this, either in the az cli or in kubectl.**
133136

134137

135-
More about that second limitation: If you have multiple requests to reprovision a replica in one instance, you may see something like this in the output from a kubectl get SqlManagedInstanceReprovisionReplicaTask:
136-
```
138+
More about that second limitation: If you have multiple requests to reprovision a replica in one instance, you may see something like this in the output from a `kubectl get SqlManagedInstanceReprovisionReplicaTask`:
139+
140+
```console
137141
kubectl get SqlManagedInstanceReprovisionReplicaTask -n arc
138142
NAME STATUS AGE
139143
sql-reprov-replica-c-sql-djlexlmty-1-1664217344.304601 Completed 13m
140144
sql-reprov-replica-c-sql-kkncursza-1-1664217002.376132 Completed 19m
141145
sql-reprov-replica-c-sql-kkncursza-1-1664217434.531035 Creating 12m
142146
```
143147

144-
That last entry for replica c-sql-kkncursza-1, ```sql-reprov-replica-c-sql-kkncursza-1-1664217434.531035```, will stay in state Creating until the completed one ```sql-reprov-replica-c-sql-kkncursza-1-1664217002.376132``` is removed.
145-
146-
148+
That last entry for replica c-sql-kkncursza-1, `sql-reprov-replica-c-sql-kkncursza-1-1664217434.531035`, will stay in status `Creating` until the completed one `sql-reprov-replica-c-sql-kkncursza-1-1664217002.376132` is removed.

0 commit comments

Comments
 (0)