Skip to content

Commit fa35363

Browse files
author
Brandon Philips
committed
Documentation: update to 2.0
In anticipation for a 2.0.0-rc.0 release update and move the documentation.
1 parent 35a7727 commit fa35363

12 files changed

+34
-33
lines changed

Documentation/0.5/0_4_migration_tool.md renamed to Documentation/2.0/0_4_migration_tool.md

+6-6
Original file line numberDiff line numberDiff 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
22

33
### Upgrading from 0.4.x
44

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.
66

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).
88

99
### Data Migration Tips
1010

@@ -18,7 +18,7 @@ The tool can be run via:
1818
./bin/etcd-migrate --data-dir=<PATH TO YOUR DATA>
1919
```
2020

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.
2222

2323
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:
2424

@@ -38,10 +38,10 @@ And the tool should migrate successfully. If it still has an error at this time,
3838

3939
### Recovering Disk Space
4040

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:
4242

4343
```sh
4444
rm -ri snapshot conf log
4545
```
4646

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.

Documentation/0.5/admin_guide.md renamed to Documentation/2.0/admin_guide.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Using an out-of-date data directory can lead to inconsistency as the member had
1515
For maximum safety, if an etcd member suffers any sort of data corruption or loss, it must be removed from the cluster.
1616
Once removed the member can be re-added with an empty data directory.
1717

18-
[members-api]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/other_apis.md#members-api
18+
[members-api]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/other_apis.md#members-api
1919

2020
#### Contents
2121

@@ -106,7 +106,7 @@ etcd -name node1 \
106106
-advertise-client-urls http://10.0.1.13:2379,http://127.0.0.1:2379
107107
```
108108

109-
[change peer url]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/other_apis.md#change-the-peer-urls-of-a-member
109+
[change peer url]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/other_apis.md#change-the-peer-urls-of-a-member
110110

111111
### Disaster Recovery
112112

File renamed without changes.

Documentation/0.5/backward_compatibility.md renamed to Documentation/2.0/backward_compatibility.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Backward Compatibility
22

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.
44

55
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.
66

@@ -16,35 +16,35 @@ The major flag changes are to mostly related to bootstrapping. The `initial-*` f
1616
- `-peers-file` is replaced by `-initial-cluster`.
1717

1818
The documentation of new command line flags can be found at
19-
https://github.com/coreos/etcd/blob/master/Documentation/0.5/configuration.md.
19+
https://github.com/coreos/etcd/blob/master/Documentation/2.0/configuration.md.
2020

2121
#### Data Dir
2222
- Default data dir location has changed from {$hostname}.etcd to {name}.etcd.
2323

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].
2525

26-
[migrationtooldoc]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/0_4_migration_tool.md
26+
[migrationtooldoc]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/0_4_migration_tool.md
2727

2828
#### Standby
2929

30-
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].
3131

3232
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.
3333

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.
3535

36-
[proxymode]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/proxy.md
36+
[proxymode]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/proxy.md
3737

3838
#### Discovery Service
3939

4040
A size key needs to be provided inside a [discovery token][discoverytoken].
41-
[discoverytoken]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/clustering.md#custom-etcd-discovery-service
41+
[discoverytoken]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/clustering.md#custom-etcd-discovery-service
4242

4343
#### HTTP Admin API
4444

4545
`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.
4646

47-
[memberapi]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/other_apis.md
47+
[memberapi]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/other_apis.md
4848

4949
#### HTTP Key Value API
5050
- The follower can now transparently proxy write equests to the leader. Clients will no longer see 307 redirections to the leader from etcd.

Documentation/0.5/clustering.md renamed to Documentation/2.0/clustering.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ A discovery URL identifies a unique etcd cluster. Instead of reusing a discovery
9797

9898
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.
9999

100-
[runtime]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/runtime-configuration.md
100+
[runtime]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/runtime-configuration.md
101101

102102
### Custom etcd discovery service
103103

@@ -217,9 +217,9 @@ $ etcd -name infra0 -initial-advertise-peer-urls http://10.0.1.10:2380 \
217217
etcdserver: discovery token ignored since a cluster has already been initialized. Valid log found at /var/lib/etcd
218218
```
219219

220-
# 0.4 to 0.5+ Migration Guide
220+
# 0.4 to 2.0+ Migration Guide
221221

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.
223223

224224
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.
225225

Documentation/0.5/configuration.md renamed to Documentation/2.0/configuration.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ Be CAUTIOUS to use unsafe flags because it will break the guarantee given by con
131131
+ Print the version and exit.
132132
+ default: false
133133

134-
[build-cluster]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/clustering.md#static
135-
[reconfig]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/runtime-configuration.md
136-
[discovery]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/clustering.md#discovery
137-
[proxy]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/proxy.md
134+
[build-cluster]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/clustering.md#static
135+
[reconfig]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/runtime-configuration.md
136+
[discovery]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/clustering.md#discovery
137+
[proxy]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/proxy.md
138138
[security]: https://github.com/coreos/etcd/blob/master/Documentation/security.md
139-
[restore]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/admin_guide.md#restoring-a-backup
139+
[restore]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/admin_guide.md#restoring-a-backup

Documentation/0.5/glossary.md renamed to Documentation/2.0/glossary.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ Client is a caller of the cluster's HTTP API.
2828

2929
### Machine (deprecated)
3030

31-
The alternative of Member in etcd before 0.5
31+
The alternative of Member in etcd before 2.0
File renamed without changes.

Documentation/0.5/proxy.md renamed to Documentation/2.0/proxy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ etcd -proxy on -client-listen-urls 127.0.0.1:8080 -discovery https://discovery.
2929
#### Fallback to proxy mode with discovery service
3030
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.
3131

32-
[discovery-service]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/clustering.md#discovery
32+
[discovery-service]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/clustering.md#discovery

Documentation/0.5/runtime-configuration.md renamed to Documentation/2.0/runtime-configuration.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If etcd falls below a simple majority of members it can no longer accept writes:
1414

1515
If you want to migrate a running member to another machine, please refer [member migration section][member migration].
1616

17-
[member migration]: https://github.com/coreos/etcd/blob/master/Documentation/0.5/admin_guide.md#member-migration
17+
[member migration]: https://github.com/coreos/etcd/blob/master/Documentation/2.0/admin_guide.md#member-migration
1818

1919
### Increase Cluster Size
2020

@@ -53,7 +53,7 @@ To increase from 3 to 5 members you will make two add operations
5353
To decrease from 5 to 3 you will make two remove operations
5454

5555
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).
5757

5858
### Remove a Member
5959

@@ -86,7 +86,7 @@ Removal of the leader is safe, but the cluster will be out of progress for a per
8686

8787
Adding a member is a two step process:
8888

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.
9090
* Start the member with the correct configuration.
9191

9292
Using `etcdctl` let's add the new member to the cluster:

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
[![Build Status](https://travis-ci.org/coreos/etcd.png?branch=master)](https://travis-ci.org/coreos/etcd)
44
[![Docker Repository on Quay.io](https://quay.io/repository/coreos/etcd-git/status "Docker Repository on Quay.io")](https://quay.io/repository/coreos/etcd-git)
55

6-
### WARNING ###
6+
### Release Candidate Warning ###
77

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.
99

1010
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.
1111

1212
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.
1314

1415
## README version 0.4.6
1516

scripts/build-release

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function package {
4242
cp etcd/README.md ${target}/README.md
4343
cp etcd/etcdctl/README.md ${target}/README-etcdctl.md
4444

45-
cp -R etcd/Documentation/0.5 ${target}/Documentation
45+
cp -R etcd/Documentation/2.0 ${target}/Documentation
4646
}
4747

4848
function main {

0 commit comments

Comments
 (0)