Skip to content

Commit

Permalink
v2 docs cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: lucperkins <[email protected]>
  • Loading branch information
lucperkins committed Jan 9, 2020
1 parent 28ba8f6 commit 8662174
Show file tree
Hide file tree
Showing 44 changed files with 134 additions and 389 deletions.
8 changes: 2 additions & 6 deletions content/docs/v2/04_to_2_snapshot_migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,17 @@
title: Snapshot Migration
---

**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../docs.md#documentation

You can migrate a snapshot of your data from a v0.4.9+ cluster into a new etcd 2.2 cluster using a snapshot migration. After snapshot migration, the etcd indexes of your data will change. Many etcd applications rely on these indexes to behave correctly. This operation should only be done while all etcd applications are stopped.

To get started get the newest data snapshot from the 0.4.9+ cluster:

```
```shell
curl http://cluster.example.com:4001/v2/migration/snapshot > backup.snap
```

Now, import the snapshot into your new cluster:

```
```shell
etcdctl --endpoint new_cluster.example.com import --snap backup.snap
```

Expand Down
12 changes: 5 additions & 7 deletions content/docs/v2/admin_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
title: Administration
---

**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

## Data Directory

### Lifecycle
Expand Down Expand Up @@ -305,15 +303,15 @@ By default, etcd uses the default configuration of the Go 1.4 runtime, which mea

When using etcd in heavy-load scenarios on machines with multiple cores it will usually be desirable to increase the number of threads that etcd can utilize. To do this, simply set the environment variable GOMAXPROCS to the desired number when starting etcd. For more information on this variable, see the [Go runtime documentation][golang-runtime].

[add-a-member]: runtime-configuration.md#add-a-new-member
[add-a-member]: ../runtime-configuration#add-a-new-member
[golang1.5-runtime]: https://golang.org/doc/go1.5#runtime
[golang-memstats]: https://golang.org/pkg/runtime/#MemStats
[golang-runtime]: https://golang.org/pkg/runtime
[metrics]: metrics.md
[metrics]: ../metrics
[prometheus]: http://prometheus.io/
[remove-a-member]: runtime-configuration.md#remove-a-member
[runtime-reconfig]: runtime-configuration.md#cluster-reconfiguration-operations
[remove-a-member]: ../runtime-configuration#remove-a-member
[runtime-reconfig]: ../runtime-configuration#cluster-reconfiguration-operations
[snap-pkg]: http://godoc.org/github.com/coreos/etcd/snap
[update-a-member]: runtime-configuration.md#update-a-member
[update-a-member]: ../runtime-configuration#update-a-member
[v3-docs]: /docs/latest
[wal-pkg]: http://godoc.org/github.com/coreos/etcd/wal
4 changes: 0 additions & 4 deletions content/docs/v2/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
title: etcd API
---

**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../docs.md#documentation

## Running a Single Machine Cluster

These examples will use a single member cluster to show you the basics of the etcd REST API.
Expand Down
98 changes: 0 additions & 98 deletions content/docs/v2/api_v3.md

This file was deleted.

5 changes: 1 addition & 4 deletions content/docs/v2/auth_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
title: v2 Auth and Security
---

**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../docs.md#documentation

## etcd Resources

There are three types of resources in etcd

1. permission resources: users and roles in the user store
Expand Down
6 changes: 1 addition & 5 deletions content/docs/v2/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
title: Authentication Guide
---

**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../docs.md#documentation

## Overview

Authentication -- having users and roles in etcd -- was added in etcd 2.1. This guide will help you set up basic authentication in etcd.
Expand Down Expand Up @@ -183,4 +179,4 @@ $ etcdctl -u user get foo

Otherwise, all `etcdctl` commands remain the same. Users and roles can still be created and modified, but require authentication by a user with the root role.

[auth-api]: auth_api.md
[auth-api]: ../auth_api
17 changes: 4 additions & 13 deletions content/docs/v2/backward_compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
title: Backward Compatibility
---

**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../docs.md#documentation

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.

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.
Expand Down Expand Up @@ -51,27 +47,22 @@ We added an option for a consistent read in the old version of etcd since etcd 0

## Standby

etcd 0.4’s standby mode has been deprecated. [Proxy mode][proxymode] is introduced to solve a subset of problems standby was solving.
etcd 0.4’s standby mode has been deprecated. [Proxy mode](../proxy) is introduced to solve a subset of problems standby was solving.

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.

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.

[proxymode]: proxy.md

## Discovery Service

A size key needs to be provided inside a [discovery token][discoverytoken].

[discoverytoken]: clustering.md#custom-etcd-discovery-service
A size key needs to be provided inside a [discovery token](../clustering#custom-etcd-discovery-service).

## HTTP Admin API

`v2/admin` on peer url and `v2/keys/_etcd` are unified under the new [v2/members API][members-api] to better explain which machines are part of an etcd cluster, and to simplify the keyspace for all your use cases.

[members-api]: members_api.md
`v2/admin` on peer url and `v2/keys/_etcd` are unified under the new [v2/members API](../members-api) to better explain which machines are part of an etcd cluster, and to simplify the keyspace for all your use cases.

## HTTP Key Value API

- The follower can now transparently proxy write requests to the leader. Clients will no longer see 307 redirections to the leader from etcd.

- Expiration time is in UTC instead of local time.
Expand Down
23 changes: 0 additions & 23 deletions content/docs/v2/benchmarks/README.md

This file was deleted.

3 changes: 3 additions & 0 deletions content/docs/v2/benchmarks/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
title: Benchmarks
---
7 changes: 3 additions & 4 deletions content/docs/v2/benchmarks/etcd-2-1-0-alpha-benchmarks.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../../docs.md#documentation

---
title: etcd 2.1.0-alpha benchmarks
---

## Physical machines

Expand Down
9 changes: 3 additions & 6 deletions content/docs/v2/benchmarks/etcd-2-2-0-benchmarks.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../../docs.md#documentation


# Benchmarking etcd v2.2.0
---
title: Benchmarking etcd v2.2.0
---

## Physical Machines

Expand Down
7 changes: 3 additions & 4 deletions content/docs/v2/benchmarks/etcd-2-2-0-rc-benchmarks.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../../docs.md#documentation

---
title: etcd 2.2.0-rc benchmarks
---

## Physical machines

Expand Down
7 changes: 3 additions & 4 deletions content/docs/v2/benchmarks/etcd-2-2-0-rc-memory-benchmarks.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../../docs.md#documentation

---
title: etcd 2.2.0-rc memory benchmarks
---

## Physical machine

Expand Down
7 changes: 3 additions & 4 deletions content/docs/v2/benchmarks/etcd-3-demo-benchmarks.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../../docs.md#documentation

---
title: etcd 3 demo benchmarks
---

## Physical machines

Expand Down
9 changes: 3 additions & 6 deletions content/docs/v2/benchmarks/etcd-3-watch-memory-benchmark.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../../docs.md#documentation


# Watch Memory Usage Benchmark
---
title: Watch Memory Usage Benchmark
---

*NOTE*: The watch features are under active development, and their memory usage may change as that development progresses. We do not expect it to significantly increase beyond the figures stated below.

Expand Down
9 changes: 3 additions & 6 deletions content/docs/v2/benchmarks/etcd-storage-memory-benchmark.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../../docs.md#documentation


# Storage Memory Usage Benchmark
---
title: Storage Memory Usage Benchmark
---

<!---todo: link storage to storage design doc-->
Two components of etcd storage consume physical memory. The etcd process allocates an *in-memory index* to speed key lookup. The process's *page cache*, managed by the operating system, stores recently-accessed data from disk for quick re-use.
Expand Down
6 changes: 1 addition & 5 deletions content/docs/v2/branch_management.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
title: Branch Management
---

**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../docs.md#documentation

## Guide

* New development occurs on the [master branch][master].
Expand All @@ -27,6 +23,6 @@ Before the release of the next stable version, feature PRs will be frozen. We wi

All branches with prefix `release-` are considered _stable_ branches.

After every minor release (http://semver.org/), we will have a new stable branch for that release. We will keep fixing the backwards-compatible bugs for the latest stable release, but not previous releases. The _patch_ release, incorporating any bug fixes, will be once every two weeks, given any patches.
After every minor release (https://semver.org/), we will have a new stable branch for that release. We will keep fixing the backwards-compatible bugs for the latest stable release, but not previous releases. The _patch_ release, incorporating any bug fixes, will be once every two weeks, given any patches.

[master]: https://github.com/coreos/etcd/tree/master
4 changes: 0 additions & 4 deletions content/docs/v2/clustering.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
title: Clustering Guide
---

**This is the documentation for etcd2 releases. Read [etcd3 doc][v3-docs] for etcd3 releases.**

[v3-docs]: ../docs.md#documentation

## Overview

Starting an etcd cluster statically requires that each member knows another in the cluster. In a number of cases, you might not know the IPs of your cluster members ahead of time. In these cases, you can bootstrap an etcd cluster with the help of a discovery service.
Expand Down
Loading

0 comments on commit 8662174

Please sign in to comment.