41 Commits

Author SHA1 Message Date
Barak Michener
192f200d9e Fix up migration tool, add snapshot migration
Fixes all updates since bcwaldon sketched the original, with cleanup and
into an acutal working state. The commit log follows:

fix pb reference and remove unused file post rebase

unbreak the migrate folder

correctly detect node IDs

fix snapshotting

Fix previous broken snapshot

Add raft log entries to the translation; fix test for all timezones. (Still in progress, but passing)

Fix etcd:join and etcd:remove

print more data when dumping the log

Cleanup based on yichengq's comments

more comments

Fix the commited index based on the snapshot, if one exists

detect nodeIDs from snapshot

add initial tool documentation and match the semantics in the build script and main

formalize migration doc

rename function and clarify docs

fix nil pointer

fix the record conversion test

add migration to test suite and fix govet
2014-11-14 16:46:08 -05:00
Jonathan Boulle
3f358b6d5d etcdserver: ensure initial-advertise-peer-urls match initial-cluster
This adds a check to setupCluster to ensure that the list of URLs
specified in `initial-advertise-peer-urls` matches those configured in
`initial-cluster` for this node. Also updates the documentation to
clarify this and address some changes in wording.
2014-11-12 12:54:35 -08:00
Xiang Li
a0002d0598 doc: add fallback to discovery section in clustering.md 2014-11-10 12:14:19 -08:00
Xiang Li
1e299d8232 doc: add doc for proxy 2014-11-08 19:59:24 -08:00
Jonathan Boulle
3d2f65fc0d docs: clarify rewriting 2014-11-07 16:35:33 -08:00
Jonathan Boulle
6b283f6ea1 docs: reword failure descriptions 2014-11-07 16:34:19 -08:00
Jonathan Boulle
4367c9a1db docs: no need to stop etcd while doing backup 2014-11-07 16:25:38 -08:00
Jonathan Boulle
a56fa60fb4 doc: add backup/restore guide 2014-11-07 16:14:45 -08:00
Jonathan Boulle
ca1b30db10 etcdhttp: return 404 when removing nonexistent member 2014-11-06 16:59:40 -08:00
Xiang Li
a1f5df22ad doc: document conflict case when adding a member 2014-11-06 11:16:49 -08:00
Kelsey Hightower
9c8f9b3560 Merge pull request #1585 from coreos/clean-up-other-apis-docs
docs: clean up other apis
2014-11-06 10:48:02 -08:00
Yicheng Qin
5d755bd54a docs: describe the lifetime of discovery url 2014-11-06 00:31:19 -08:00
Kelsey Hightower
cc0ef16346 docs: clean up other apis
The docs for the other APIs use curl for example usage, which matches
the docs for the etcd APIs.

Other cleanup include fixing usage of peer ports and using 10.0.0.x IPs
throughout.
2014-11-03 17:14:08 -08:00
Kelsey Hightower
20df86e3c3 docs: clean up clustering doc 2014-11-03 09:51:50 -08:00
Kelsey Hightower
3068340a83 docs: fix usage of peers urls 2014-11-02 22:00:41 -08:00
Brandon Philips
124dd7096a Documentation: add the runtime configuration document 2014-10-31 15:16:45 -07:00
Yicheng Qin
74886713db Merge pull request #1567 from unihorn/199
*: name node{1,2,3} -> infra{1,2,3}
2014-10-31 14:53:34 -07:00
Yicheng Qin
1db23109ad *: name node{1,2,3} -> infra{1,2,3}
Be consistent with the naming in documentations.
2014-10-31 14:46:39 -07:00
Brandon Philips
b6cc34b52e Documentation: fixup the admin_guide
- Provide more concrete examples and explanation
- Cleanup the formatting to one sentence per line, this makes reviewing
  easier
- Point to existing docs on wal and snap instead of trying to duplicate
  it here again.
2014-10-31 14:11:27 -07:00
Xiang Li
8e633db5cb doc: add doc for initial-cluster-token 2014-10-30 17:08:15 -07:00
Xiang Li
3dfb6723b2 *: rename initial-cluster-name to initial-cluster-token 2014-10-30 13:43:38 -07:00
Xiang Li
af7d73717c doc: add a Custom etcd discovery service section 2014-10-30 11:34:46 -07:00
Brian Waldon
ac810b86bc doc: link directly to members API 2014-10-29 17:21:10 -07:00
Xiang Li
e85ba2f384 Merge pull request #1504 from xiangli-cmu/admin_guide
doc: add a doc for data directory
2014-10-29 17:16:27 -07:00
Xiang Li
f5c1da6967 doc: add a doc for data directory 2014-10-29 17:07:21 -07:00
Brian Waldon
8298e06627 doc: remove trailing slashes 2014-10-29 12:16:02 -07:00
Brian Waldon
ab67fa4cc6 api: remove admin prefix from members API 2014-10-29 12:12:51 -07:00
Brian Waldon
bab19e3b0b doc: move admin_api.md to other_apis.md 2014-10-29 12:12:51 -07:00
Brian Waldon
ad0664da9c doc: fix documentation of POST /v2/admin/members 2014-10-28 09:44:59 -07:00
Brian Waldon
b62fdac193 doc: PUT instead of POST discovery config 2014-10-24 16:30:48 -07:00
Brandon Philips
5456ef7049 Documentation/0.5: add api.md
- Update all of the ports to use the new IANA port numbers
- Update the stats section to talk about the id fields
- Remove mention of the modules
- Remove -L from all of the curl commands since it is no longer needed
- Point people at the clustering.md guide for the cluster APIs
2014-10-24 15:18:47 -07:00
Xiang Li
2e84eb3c36 *: change advertise-peer-urls -> initial-advertise-peer-urls 2014-10-24 13:51:59 -07:00
Jonathan Boulle
543e12074a etcdserver/member: change JSON fields to lowerCamelCase 2014-10-24 12:03:17 -07:00
Jonathan Boulle
14852662ef etcdhttp: rename Members -> members in JSON, update doc 2014-10-24 12:03:17 -07:00
Xiang Li
c25c50582e doc: add admin api doc 2014-10-23 14:26:33 -07:00
Brandon Philips
400dd2d7bc etcdserver: cleanup the cluster ID error message
1) Don't panic since we know exactly where this is coming from and don't
need the user to see a full back trace

2) Add docs explaining this situation a bit further

3) Cleanup the error to look like other similiar errors
2014-10-22 15:26:35 -07:00
Yicheng Qin
3184e1c66f docs: add glossary.md 2014-10-20 14:16:53 -07:00
Jonathan Boulle
2af0b2031f doc: add note about discovery proxy 2014-10-16 17:14:38 -07:00
Jonathan Boulle
a10c62ae25 documentation: clustering guide fixes 2014-10-06 15:07:44 -07:00
Brandon Philips
e2d8037ded main: use initial-cluster and initial-cluster-state flags
In preperation for adding the ability to join a machine to an existing
cluster force the user to specify whether they expect this to me a new
cluster or an active one.

The error for not specifying the initial-cluster-state is:
```
etcd: initial cluster state unset and no wal found
```
2014-10-06 14:59:25 -07:00
Brandon Philips
6bc160b4e3 Documentation: introduce the initial 0.5 clustering guide
Introduce the concepts of static initial cluster configuration and
document the flag migrations.
2014-10-06 12:25:12 -07:00