Xiang Li
0d7c43d885
*: add a Advance interface to raft.Node
...
Node set the applied to committed right after it sends out Ready to application. This is not
correct since the application has not actually applied the entries at that point. We add a
Advance interface to Node. Application needs to call Advance to tell raft Node its progress.
Also this change can avoid unnecessary copying when application is still applying entires but
there are more entries to be applied.
2014-11-05 15:04:14 -08:00
Brian Waldon
75104c10d4
Merge pull request #1553 from bcwaldon/client-sync
...
Support syncing and `--no-sync` flag in `etcdctl member` commands
2014-10-31 20:51:01 -07:00
Brian Waldon
58af26736c
client: further clarify external interfaces
2014-10-31 20:45:55 -07:00
Brian Waldon
17c6f21d68
client: elevate context to caller of KeysAPI
2014-10-31 17:27:43 -07:00
Brian Waldon
f0760d6246
client: elevate context to caller of MembersAPI
2014-10-31 17:27:42 -07:00
Brian Waldon
913d102a81
client: remove unused field
2014-10-31 17:25:05 -07:00
Brian Waldon
824049897d
client: export necessary interfaces/methods
2014-10-31 17:25:05 -07:00
Brian Waldon
b47631b38f
etcdctl: respect --no-sync in member subcommands
2014-10-31 17:25:05 -07:00
Brian Waldon
22b86684f0
etcdctl: sync before running member subcommands
2014-10-31 17:25:05 -07:00
Brian Waldon
5ed5d018be
client: add httpClusterClient.Sync
2014-10-31 17:25:05 -07:00
Brian Waldon
f6e8b677cf
client: pass httpActionDo into NewMembersAPI
2014-10-31 17:25:05 -07:00
Brian Waldon
0ef270c25c
client: pass httpActionDo into New[Discovery]KeysAPI
2014-10-31 17:25:05 -07:00
Brian Waldon
1130273178
client: s/newHTTPClusterClient/NewHTTPClient/
2014-10-31 17:25:05 -07:00
Brian Waldon
3eb126af4d
client: use httpActionDo in httpClusterClient
2014-10-31 17:25:05 -07:00
Brian Waldon
c282664c23
client: s/transport/CancelableTransport/
...
CancelableTransport is implemented by callers of the
client pkg, so we should export it so it is
documented publicly.
2014-10-31 17:25:04 -07:00
Brian Waldon
d52d836761
client: return full http.Response in httpActionDo
2014-10-31 17:25:04 -07:00
Yicheng Qin
5bdf6a4110
Merge pull request #1528 from unihorn/191
...
raft: add tests based on section 5.3 in raft paper
2014-10-31 16:35:36 -07:00
Yicheng Qin
421d5fbe72
raft: add tests based on section 5.3 in raft paper
2014-10-31 16:32:34 -07:00
Brian Waldon
f35130a0ed
etcdctl: clean up formatting of member add
v0.5.0-alpha.1
2014-10-31 15:37:08 -07:00
Brandon Philips
500e9e2212
version: bump to v0.5.0-alpha.1
2014-10-31 15:22:13 -07:00
Brandon Philips
7c52a86325
Merge pull request #1569 from philips/dynamic-configuration-docs
...
Documentation: add the runtime configuration document
2014-10-31 15:19:42 -07:00
Brandon Philips
124dd7096a
Documentation: add the runtime configuration document
2014-10-31 15:16:45 -07:00
Brandon Philips
388b4aeb71
Merge pull request #1568 from philips/dynamic-configuration
...
etcdctl: two member fixes
2014-10-31 15:08:40 -07:00
Brandon Philips
6b4485d1ae
etcdctl: take a name and print out the initial cluster
...
To help the user lets print out the configuration that they will need to give
to their new member:
$ etcdctl member add infra4 http://localhost:7004
added member 9bf1b35fc7761a23 to cluster
ETCD_NAME="infra4"
ETCD_INITIAL_CLUSTER="node2=http://localhost:7002,node3=http://localhost:7003,infra4=http://localhost:7004,node1=http://localhost:7001 "
This is a little weird because the API doesn't take a name so the user gives us
a name and we just pass it on through.
2014-10-31 15:05:23 -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
Brandon Philips
8f3be206ed
etcdctl: add help on the members subcommands
2014-10-31 14:50:23 -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
Jonathan Boulle
749097429f
Merge pull request #1565 from jonboulle/int
...
integration: clean up licenses and docs
2014-10-31 14:34:05 -07:00
Jonathan Boulle
34b2fecd28
integration: clean up licenses and docs
2014-10-31 14:33:56 -07:00
Brandon Philips
faede90293
Merge pull request #1556 from philips/fixup-the-admin-guide
...
Documentation: fixup the admin_guide
2014-10-31 14:11: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
Brian Waldon
308b8796e4
Merge pull request #1557 from bcwaldon/id-logging
...
etcdserver: fix logging of IDs
2014-10-31 12:27:37 -07:00
Brian Waldon
6e038e02a6
etcdserver: fix logging of IDs
2014-10-31 12:26:53 -07:00
Brian Waldon
38250d3fac
Merge pull request #1541 from bcwaldon/client-peers
...
Use `-peers` in `etcdctl members` commands
2014-10-31 12:26:15 -07:00
Brian Waldon
eab4692744
client: use v2MembersURL helper
2014-10-31 12:21:15 -07:00
Brian Waldon
f0c3385cfc
etcdctl: wire up --peers for member commands
2014-10-31 12:21:15 -07:00
Brian Waldon
8b8b3efdaa
client: accept slice of endpoints
2014-10-31 12:21:15 -07:00
Brian Waldon
8d519ffdb8
client: introduce httpClusterClient
2014-10-31 12:21:15 -07:00
Brian Waldon
323fb1ec85
client: introduce httpActionDo interface
2014-10-31 12:21:15 -07:00
Brian Waldon
9d07db4432
client: move timeout into caller of httpClient
2014-10-31 12:21:15 -07:00
Brian Waldon
7c1f4a9baf
client: explicitly carry API prefix around
2014-10-31 12:21:15 -07:00
Brian Waldon
dee912f2fd
etcdctl: break out mustNewMembersAPI
2014-10-31 12:21:08 -07:00
Brian Waldon
bc62b05c7f
etcdctl: break out getPeersFlagValue
2014-10-31 12:21:00 -07:00
Brian Waldon
48ec876af9
godep: bump github.com/codegangsta/cli
2014-10-31 12:21:00 -07:00
Xiang Li
a576dbca43
Merge pull request #1554 from xiangli-cmu/removed_logging
...
etcdserver: better logging when member is removed
2014-10-31 12:07:57 -07:00
Xiang Li
eb472b7745
etcdserver: better logging when member is removed
2014-10-31 12:00:50 -07:00
Brandon Philips
a535161a84
Merge pull request #1552 from philips/fixup-wal-doc
...
wal: update the docs to show the optional metadata field
2014-10-31 11:32:26 -07:00
Brandon Philips
513c72ec8b
wal: update the docs to show the optional metadata field
2014-10-31 11:32:17 -07:00
Yicheng Qin
e02ef6b141
Merge pull request #1546 from unihorn/198
...
etcdserver: better logging for assign ids from upstream
2014-10-31 11:13:43 -07:00
Yicheng Qin
2c5f062b7f
etcdserver: better logging for assign ids from upstream
2014-10-31 11:06:31 -07:00