Brian Waldon
9a728a127a
dep: bump golang.org/x/net/context
...
Move from code.google.com/p/go.net/context to
golang.org/x/net/context before bumping to latest.
2014-11-20 10:19:12 -08:00
Ben Darnell
355ee4f393
raft: Integrate snapshots into the raft.Storage interface.
...
Compaction is now treated as an implementation detail of Storage
implementations; Node.Compact() and related functionality have been
removed. Ready.Snapshot is now used only for incoming snapshots.
A return value has been added to ApplyConfChange to allow applications
to track the node information that must be stored in the snapshot.
raftpb.Snapshot has been split into Snapshot and SnapshotMetadata, to
allow the full snapshot data to be read from disk only when needed.
raft.Storage has new methods Snapshot, ApplySnapshot, HardState, and
SetHardState. The Snapshot and HardState parameters have been removed
from RestartNode() and will now be loaded from Storage instead.
The only remaining difference between StartNode and RestartNode is that
the former bootstraps an initial list of Peers.
2014-11-19 16:40:26 -05:00
Xiang Li
78865aa7f7
Merge pull request #1657 from xiangli-cmu/backup
...
*: add ctl backup support
2014-11-07 13:30:54 -08:00
Xiang Li
0d541e6338
*: add ctl backup support
2014-11-07 13:27:44 -08:00
Brian Waldon
2d942e970b
etcdctl: add --ca-file, --cert-file, --key-file flags
2014-11-06 12:50:38 -08:00
Brian Waldon
f4ea274555
etcdctl: centralize getEndpoints logic
2014-11-06 10:54:59 -08:00
Jonathan Boulle
f7434b55e5
*: add copyright header to remaining files
2014-11-03 23:29:15 -08:00
Brian Waldon
f0760d6246
client: elevate context to caller of MembersAPI
2014-10-31 17:27:42 -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
f6e8b677cf
client: pass httpActionDo into NewMembersAPI
2014-10-31 17:25:05 -07:00
Brian Waldon
f35130a0ed
etcdctl: clean up formatting of member add
2014-10-31 15:37:08 -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
Brandon Philips
8f3be206ed
etcdctl: add help on the members subcommands
2014-10-31 14:50:23 -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
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
64a12e9341
Merge pull request #1511 from coreos/set-watch-consistency-to-strong
...
etcdctl: Set watch consistency to STRONG
2014-10-30 16:52:50 -07:00
Brian Waldon
d36a3e18d2
etcdctl: remove SetConsistency call
...
This call to SetConsistency is explicitly setting the default
value, so it's really unnecessary.
2014-10-30 13:45:59 -07:00
Brian Waldon
6087e2b2f6
Merge pull request #1509 from bcwaldon/etcdctl-102
...
etcdctl: add --sort flag to ls command
2014-10-30 13:33:37 -07:00
micahhausler
2be3f870cc
etcdctl: Set watch consistency to STRONG
2014-10-29 18:11:05 -07:00
Pierre Phaneuf
97597eca03
etcdctl: add --sort flag to ls command
...
This is a port of coreos/etcdctl#102
2014-10-29 17:45:11 -07:00
Brian Waldon
243886edc8
etcdctl: add -p to ls command
...
This is a port of coreos/etcdctl#96
2014-10-29 17:42:21 -07:00
Brian Waldon
f6e242aa01
etcdctl: impl members commands
2014-10-29 15:09:23 -07:00
Brian Waldon
1539d5c49c
etcdctl: update to meet go vet
2014-10-22 17:52:40 -07:00
Brian Waldon
69842b344d
etcdctl: reflect build script location in README.md
2014-10-22 17:52:40 -07:00
Brian Waldon
52e08720b7
etcdctl: remove build indicator from README.md
2014-10-22 17:52:40 -07:00
Brian Waldon
29ef918808
etcdctl: import from external repo
2014-10-22 17:52:40 -07:00