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: Documentation/2.0/0_4_migration_tool.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
## etcd 0.4.x -> 0.5.0 Data Migration Tool
1
+
## etcd 0.4.x -> 2.0.0 Data Migration Tool
2
2
3
3
### Upgrading from 0.4.x
4
4
5
-
Between 0.4.x and 0.5, the on-disk data formats have changed. In order to allow users to convert to 0.5, a migration tool is provided.
5
+
Between 0.4.x and 2.0, the on-disk data formats have changed. In order to allow users to convert to 2.0, a migration tool is provided.
6
6
7
-
In the early 0.5.0-alpha series, we're providing this tool early to encourage adoption. However, before 0.5.0-release, etcd will autodetect the 0.4.x data dir upon upgrade and automatically update the data too (while leaving a backup, in case of emergency).
7
+
In the early 2.0.0-alpha series, we're providing this tool early to encourage adoption. However, before 2.0.0-release, etcd will autodetect the 0.4.x data dir upon upgrade and automatically update the data too (while leaving a backup, in case of emergency).
8
8
9
9
### Data Migration Tips
10
10
@@ -18,7 +18,7 @@ The tool can be run via:
18
18
./bin/etcd-migrate --data-dir=<PATH TO YOUR DATA>
19
19
```
20
20
21
-
It should autodetect everything and convert the data-dir to be 0.5 compatible. It does not remove the 0.4.x data, and is safe to convert multiple times; the 0.5 data will be overwritten. Recovering the disk space once everything is settled is covered later in the document.
21
+
It should autodetect everything and convert the data-dir to be 2.0 compatible. It does not remove the 0.4.x data, and is safe to convert multiple times; the 2.0 data will be overwritten. Recovering the disk space once everything is settled is covered later in the document.
22
22
23
23
If, however, it complains about autodetecting the name (which can happen, depending on how the cluster was configured), you need to supply the name of this particular node. This is equivalent to the `--name` flag (or `ETCD_NAME` variable) that etcd was run with, which can also be found by accessing the self api, eg:
24
24
@@ -38,10 +38,10 @@ And the tool should migrate successfully. If it still has an error at this time,
38
38
39
39
### Recovering Disk Space
40
40
41
-
If the conversion has completed, the entire cluster is running on something 0.5-based, and the disk space is important, the following command will clear 0.4.x data from the data-dir:
41
+
If the conversion has completed, the entire cluster is running on something 2.0-based, and the disk space is important, the following command will clear 0.4.x data from the data-dir:
42
42
43
43
```sh
44
44
rm -ri snapshot conf log
45
45
```
46
46
47
-
It will ask before every deletion, but these are the 0.4.x files and will not affect the working 0.5 data.
47
+
It will ask before every deletion, but these are the 0.4.x files and will not affect the working 2.0 data.
Copy file name to clipboardExpand all lines: Documentation/2.0/backward_compatibility.md
+9-9
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
### Backward Compatibility
2
2
3
-
The main goal of etcd 0.5 release is to improve cluster safety around bootstrapping and dynamic reconfiguration. To do this, we deprecated the old error-prone APIs and provide a new set of APIs.
3
+
The main goal of etcd 2.0 release is to improve cluster safety around bootstrapping and dynamic reconfiguration. To do this, we deprecated the old error-prone APIs and provide a new set of APIs.
4
4
5
5
The other main focus of this release was a more reliable Raft implementation, but as this change is internal it should not have any notable effects to users.
6
6
@@ -16,35 +16,35 @@ The major flag changes are to mostly related to bootstrapping. The `initial-*` f
16
16
-`-peers-file` is replaced by `-initial-cluster`.
17
17
18
18
The documentation of new command line flags can be found at
- Default data dir location has changed from {$hostname}.etcd to {name}.etcd.
23
23
24
-
- The disk format within the data dir has changed. etcd 0.5 should be able to auto upgrade the old data format. Instructions on doing so manually are in the [migration tool doc][migrationtooldoc].
24
+
- The disk format within the data dir has changed. etcd 2.0 should be able to auto upgrade the old data format. Instructions on doing so manually are in the [migration tool doc][migrationtooldoc].
etcd 0.4’s standby mode has been deprecated by 0.5’s [proxy mode][proxymode].
30
+
etcd 0.4’s standby mode has been deprecated by 2.0’s [proxy mode][proxymode].
31
31
32
32
Standby mode was intended for large clusters that had a subset of the members acting in the consensus process. Overall this process was too magical and allowed for operators to back themselves into a corner.
33
33
34
-
Proxy mode in 0.5 will provide similar functionality, and with improved control over which machines act as proxies due to the operator specifically configuring them. Proxies also support read only or read/write modes for increased security and durability.
34
+
Proxy mode in 2.0 will provide similar functionality, and with improved control over which machines act as proxies due to the operator specifically configuring them. Proxies also support read only or read/write modes for increased security and durability.
`v2/admin` on peer url and `v2/keys/_etcd` are unified under the new [v2/member API][memberapi] to better explain which machines are part of an etcd cluster, and to simplify the keyspace for all your use cases.
Copy file name to clipboardExpand all lines: Documentation/2.0/clustering.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ A discovery URL identifies a unique etcd cluster. Instead of reusing a discovery
97
97
98
98
Moreover, discovery URLs should ONLY be used for the initial bootstrapping of a cluster. To change cluster membership after the cluster is already running, see the [runtime reconfiguration][runtime] guide.
etcdserver: discovery token ignored since a cluster has already been initialized. Valid log found at /var/lib/etcd
218
218
```
219
219
220
-
# 0.4 to 0.5+ Migration Guide
220
+
# 0.4 to 2.0+ Migration Guide
221
221
222
-
In etcd 0.5 we introduced the ability to listen on more than one address and to advertise multiple addresses. This makes using etcd easier when you have complex networking, such as private and public networks on various cloud providers.
222
+
In etcd 2.0 we introduced the ability to listen on more than one address and to advertise multiple addresses. This makes using etcd easier when you have complex networking, such as private and public networks on various cloud providers.
223
223
224
224
To make understanding this feature easier, we changed the naming of some flags, but we support the old flags to make the migration from the old to new version easier.
#### Fallback to proxy mode with discovery service
30
30
If you bootstrap a etcd cluster using [discovery service][discovery-service] with more than the expected number of etcd members, the extra etcd processes will fall back to being `readwrite` proxies by default. They will forward the requests to the cluster as described above. For example, if you create a discovery url with `size=5`, and start ten etcd processes using that same discovery URL, the result will be a cluster with five etcd members and five proxies. Note that this behaviour can be disabled with the `proxy-fallback` flag.
@@ -53,7 +53,7 @@ To increase from 3 to 5 members you will make two add operations
53
53
To decrease from 5 to 3 you will make two remove operations
54
54
55
55
All of these examples will use the `etcdctl` command line tool that ships with etcd.
56
-
If you want to use the member API directly you can find the documentation [here](https://github.com/coreos/etcd/blob/master/Documentation/0.5/other_apis.md).
56
+
If you want to use the member API directly you can find the documentation [here](https://github.com/coreos/etcd/blob/master/Documentation/2.0/other_apis.md).
57
57
58
58
### Remove a Member
59
59
@@ -86,7 +86,7 @@ Removal of the leader is safe, but the cluster will be out of progress for a per
86
86
87
87
Adding a member is a two step process:
88
88
89
-
* Add the new member to the cluster via the [members API](https://github.com/coreos/etcd/blob/master/Documentation/0.5/other_apis.md#post-v2members) or the `etcdctl member add` command.
89
+
* Add the new member to the cluster via the [members API](https://github.com/coreos/etcd/blob/master/Documentation/2.0/other_apis.md#post-v2members) or the `etcdctl member add` command.
90
90
* Start the member with the correct configuration.
91
91
92
92
Using `etcdctl` let's add the new member to the cluster:
[](https://quay.io/repository/coreos/etcd-git)
5
5
6
-
### WARNING ###
6
+
### Release Candidate Warning ###
7
7
8
-
The current `master` branch of etcd is under heavy development in anticipation of the forthcoming 0.5.0 release.
8
+
The current `master` branch of etcd is under development in anticipation of the forthcoming 2.0.0 release.
9
9
10
10
It is strongly recommended that users work with the latest 0.4.x release (0.4.6), which can be found on the [releases](https://github.com/coreos/etcd/releases) page.
11
11
12
12
Unless otherwise noted, the etcd documentation refers to configuring and running 0.4.x releases.
13
+
Documentation related to the 2.0.0 release candidates can be found in the `Documentation/2.0` directory.
0 commit comments