Skip to content

Commit 9f1dcd2

Browse files
committed
Fix MD040 and MD032 errors
Signed-off-by: Ronald Ngounou <[email protected]>
1 parent d9bd2a5 commit 9f1dcd2

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

content/en/docs/v3.5/upgrades/archives_upgrades/upgrade_3_0.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ description: Processes, checklists, and notes on upgrading etcd from 2.3 to 3.0
55
---
66

77
In the general case, upgrading from etcd 2.3 to 3.0 can be a zero-downtime, rolling upgrade:
8-
- one by one, stop the etcd v2.3 processes and replace them with etcd v3.0 processes
9-
- after running all v3.0 processes, new features in v3.0 are available to the cluster
8+
9+
- one by one, stop the etcd v2.3 processes and replace them with etcd v3.0 processes
10+
- after running all v3.0 processes, new features in v3.0 are available to the cluster
1011

1112
Before [starting an upgrade](#upgrade-procedure), read through the rest of this guide to prepare.
1213

@@ -46,11 +47,11 @@ Please [backup the data directory](/docs/v2.3/admin_guide#backing-up-the-datasto
4647

4748
This example details the upgrade of a three-member v2.3 etcd cluster running on a local machine.
4849

49-
#### 1. Check upgrade requirements.
50+
#### 1. Check upgrade requirements
5051

5152
Is the cluster healthy and running v.2.3.x?
5253

53-
```
54+
```bash
5455
$ etcdctl cluster-health
5556
member 6e3bd23ae5f1eae0 is healthy: got healthy result from http://localhost:22379
5657
member 924e2e83e93f2560 is healthy: got healthy result from http://localhost:32379
@@ -65,14 +66,14 @@ $ curl http://localhost:2379/version
6566

6667
When each etcd process is stopped, expected errors will be logged by other cluster members. This is normal since a cluster member connection has been (temporarily) broken:
6768

68-
```
69+
```bash
6970
2016-06-27 15:21:48.624124 E | rafthttp: failed to dial 8211f1d0f64f3269 on stream Message (dial tcp 127.0.0.1:12380: getsockopt: connection refused)
7071
2016-06-27 15:21:48.624175 I | rafthttp: the connection with 8211f1d0f64f3269 became inactive
7172
```
7273

7374
It’s a good idea at this point to [backup the etcd data directory](/docs/v2.3/admin_guide#backing-up-the-datastore) to provide a downgrade path should any problems occur:
7475

75-
```
76+
```bash
7677
$ etcdctl backup \
7778
--data-dir /var/lib/etcd \
7879
--backup-dir /tmp/etcd_backup
@@ -82,24 +83,23 @@ $ etcdctl backup \
8283

8384
The new v3.0 etcd will publish its information to the cluster:
8485

85-
```
86+
```bash
8687
09:58:25.938673 I | etcdserver: published {Name:infra1 ClientURLs:[http://localhost:12379]} to cluster 524400597fb1d5f6
8788
```
8889

8990
Verify that each member, and then the entire cluster, becomes healthy with the new v3.0 etcd binary:
9091

91-
```
92+
```bash
9293
$ etcdctl cluster-health
9394
member 6e3bd23ae5f1eae0 is healthy: got healthy result from http://localhost:22379
9495
member 924e2e83e93f2560 is healthy: got healthy result from http://localhost:32379
9596
member 8211f1d0f64f3269 is healthy: got healthy result from http://localhost:12379
9697
cluster is healthy
9798
```
9899

99-
100100
Upgraded members will log warnings like the following until the entire cluster is upgraded. This is expected and will cease after all etcd cluster members are upgraded to v3.0:
101101

102-
```
102+
```bash
103103
2016-06-27 15:22:05.679644 W | etcdserver: the local etcd version 2.3.7 is not up-to-date
104104
2016-06-27 15:22:05.679660 W | etcdserver: member 8211f1d0f64f3269 has a higher version 3.0.0
105105
```
@@ -110,12 +110,12 @@ Upgraded members will log warnings like the following until the entire cluster i
110110

111111
When all members are upgraded, the cluster will report upgrading to 3.0 successfully:
112112

113-
```
113+
```bash
114114
2016-06-27 15:22:19.873751 N | membership: updated the cluster version from 2.3 to 3.0
115115
2016-06-27 15:22:19.914574 I | api: enabled capabilities for version 3.0.0
116116
```
117117

118-
```
118+
```bash
119119
$ ETCDCTL_API=3 etcdctl endpoint health
120120
127.0.0.1:12379 is healthy: successfully committed proposal: took = 18.440155ms
121121
127.0.0.1:32379 is healthy: successfully committed proposal: took = 13.651368ms

content/en/docs/v3.5/upgrades/upgrade_3_1.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ description: Processes, checklists, and notes on upgrading etcd from 3.0 to 3.1
55
---
66

77
In the general case, upgrading from etcd 3.0 to 3.1 can be a zero-downtime, rolling upgrade:
8+
89
- one by one, stop the etcd v3.0 processes and replace them with etcd v3.1 processes
910
- after running all v3.1 processes, new features in v3.1 are available to the cluster
1011

0 commit comments

Comments
 (0)