Yicheng Qin
8d3d737993
tools/etcd-agent/client: fix rpc Dial
2015-03-05 10:24:21 -08:00
Yicheng Qin
061baad611
tools/etcd-agent: write etcd log into log file
2015-03-05 10:24:13 -08:00
Xiang Li
0ab24d4606
Merge pull request #2444 from bdarnell/multinode-report
...
Add ReportUnreachable and ReportSnapshot to MultiNode.
2015-03-05 10:05:15 -08:00
Ben Darnell
725c411346
Add ReportUnreachable and ReportSnapshot to MultiNode.
...
Add ReportSnapshot requirement to doc.go.
2015-03-05 12:39:52 -05:00
Xiang Li
6b9b695167
Merge pull request #2435 from bdarnell/multinode
...
raft: Introduce MultiNode.
2015-03-04 21:27:20 -08:00
Yicheng Qin
008bbd2b84
tools/etcd-agent: log rpc actions
2015-03-04 18:29:23 -08:00
Yicheng Qin
9e69aba7aa
tools/etcd-agent: add main func
2015-03-04 17:22:56 -08:00
Xiang Li
a32abdbb0f
rafthttp: make metrics naming consistent
2015-03-04 16:12:53 -08:00
Xiang Li
ab33c068b7
rafthttp: record the number of failed messages
2015-03-04 16:09:50 -08:00
Yicheng Qin
c2d4d8c64e
Merge pull request #2415 from yichengq/333
...
rafthttp: support multiple peer urls
2015-03-04 16:00:25 -08:00
Yicheng Qin
933ab1e4f7
rafthttp: peer.newURLc -> peer.newURLsC
2015-03-04 15:00:47 -08:00
Yicheng Qin
0fe9861197
rafthttp: support multiple peer urls
2015-03-04 15:00:07 -08:00
Xiang Li
c3f32504ec
Merge pull request #2431 from bdarnell/raft-docs
...
raft: Expand doc.go
2015-03-04 13:29:35 -08:00
Ben Darnell
c824c867ec
raft: more doc updates.
...
Including parallelism of persist and send, cancellation of
ConfChanges, and the risks of two-node clusters.
2015-03-04 15:48:35 -05:00
Ben Darnell
4e74d81bbb
raft: Introduce MultiNode.
...
MultiNode is an alternative to raft.Node that is more efficient
when a node may participate in many consensus groups. It is currently
used in the CockroachDB project; this commit merges the
github.com/cockroachdb/etcd fork back into the mainline.
2015-03-04 15:30:21 -05:00
Xiang Li
ecf9d1232d
Merge pull request #2433 from xiang90/metrics
...
rafthttp: add metrics for sending message
2015-03-04 11:29:25 -08:00
Xiang Li
17aa3cf7db
rafthttp: add metrics for sending message
2015-03-04 11:18:16 -08:00
Xiang Li
80146e2ccf
Merge pull request #2427 from xiang90/etcd-smoketest
...
tools/functional-tester: inital commit
2015-03-04 10:30:49 -08:00
Xiang Li
ebf253bad9
Merge pull request #20 from yichengq/etcd-smoketest
...
etcd-tester: fix build
2015-03-04 10:30:36 -08:00
Yicheng Qin
30e6d49bec
etcd-tester: fix build
2015-03-04 10:22:53 -08:00
Ben Darnell
250970cc23
raft: Expand doc.go
...
Includes more details on the required caller behavior and the safety of
membership changes.
Closes #2397
2015-03-04 13:18:02 -05:00
Xiang Li
c7146bd5f2
Merge pull request #2421 from xiang90/cleanup-rafthttp
...
Cleanup rafthttp
2015-03-03 22:35:01 -08:00
Xiang Li
44e53953c9
rafthttp: add comments for Transporter interface
2015-03-03 22:34:47 -08:00
Xiang Li
2bfd266a81
tools/functional-tester: inital commit
2015-03-03 20:12:20 -08:00
Xiang Li
559466e996
Merge pull request #2422 from xiang90/fix_etcdctl
...
etcdctl: mark unstarted member
2015-03-03 11:13:39 -08:00
Xiang Li
b218fc67e4
etcdctl: mark unstarted member
2015-03-03 11:00:40 -08:00
Xiang Li
2558b1d31b
Merge pull request #2420 from xiang90/kill-todo
...
rafthttp: kill connection timeout TODO
2015-03-03 10:15:27 -08:00
Xiang Li
cb105c626c
rafthttp: kill connection timeout TODO
2015-03-03 09:49:01 -08:00
Kelsey Hightower
3a132ad8ef
Merge pull request #2413 from xiang90/refactor-peer
...
rafthttp: add comment for timeout
2015-03-03 06:40:24 -08:00
Kelsey Hightower
a3b3fc5e87
Merge pull request #2414 from xiang90/fix_max_host
...
pkg/transport: set the maxIdleConnsPerHost to -1
2015-03-03 06:30:46 -08:00
Kelsey Hightower
b15806e189
etcdctl: update the ls subcommand help to match behavior
...
Currently the `etcdctl ls` subcommand help output is a bit misleading.
It mentions that using the `--recursive` flag will output all keys and
values for a given path:
--recursive returns all values for key and child keys
This is inaccurate. The `--recursive` will only output the key names
under the given path. Fix the issue by updating the help string for
the `--recursive` flag.
--recursive returns all key names recursively for the given path
Fixes #2379 .
2015-03-03 06:25:22 -08:00
Yicheng Qin
1271b01069
Merge pull request #2406 from yichengq/333
...
rafthttp: add functional tests
2015-03-02 22:51:55 -08:00
Xiang Li
e50d43fd32
pkg/transport: set the maxIdleConnsPerHost to -1
...
for transport that are using timeout connections, we set the
maxIdleConnsPerHost to -1. The default transport does not clear
the timeout for the connections it sets to be idle. So the connections
with timeout cannot be reused.
2015-03-02 21:52:03 -08:00
Xiang Li
115b045505
rafthttp: add comment for timeout
2015-03-02 16:52:19 -08:00
Xiang Li
24fbad7bd8
Merge pull request #2412 from xiang90/refactor-peer
...
rafhttp: refactor peer.go
2015-03-02 16:24:35 -08:00
Xiang Li
88bde91716
rafhttp: refactor func peer.pick in peer.go
2015-03-02 15:17:14 -08:00
Yicheng Qin
81c67eed9c
rafthttp: add functional tests
2015-03-02 14:22:20 -08:00
Yicheng Qin
4dd3be0f05
Merge pull request #2401 from yichengq/331
...
rafthttp: add unit tests and SendMsgApp benchmark
2015-03-02 13:55:16 -08:00
Yicheng Qin
fc2d7019e5
rafthttp: {nopProcessor, errProcessor} -> fakeRaft
2015-03-02 13:31:56 -08:00
Yicheng Qin
ee8325d62c
test: not run race test on rafthttp pkg
2015-03-02 13:30:34 -08:00
Yicheng Qin
f59b60671e
rafthttp: add peer tests
2015-03-02 13:30:30 -08:00
Yicheng Qin
45d6b76eea
rafthttp: add stream tests
2015-03-02 13:29:05 -08:00
Yicheng Qin
8ec28f27d1
rafthttp: streamReader roundtrip -> dial
2015-03-02 13:26:48 -08:00
Yicheng Qin
a299f68e09
rafthttp: add transport benchmark test
2015-03-02 13:25:32 -08:00
Yicheng Qin
9d445d2fcf
rafthttp: add transport tests
2015-03-02 13:25:30 -08:00
Yicheng Qin
399e3cdf81
rafthttp: add stream http tests
2015-03-02 13:24:50 -08:00
Yicheng Qin
31666cdbff
Merge pull request #2408 from yichengq/335
...
rafthttp: report MsgSnap status
2015-03-02 09:43:08 -08:00
Yicheng Qin
b4b9b9118a
rafthttp: report MsgSnap status
2015-03-02 09:38:11 -08:00
Yicheng Qin
78aa251ab2
rafthttp: only use pipeline to send MsgSnap
...
The size of MsgSnap may be very big, e.g., 1G.
If its size is big and general streaming is used to send it, it may block
the following messages for several ten seconds, which interrupts the
heartbeat heavily.
Only use pipeline to send MsgSnap.
2015-03-02 09:35:54 -08:00
Yicheng Qin
9989bf1d36
Merge pull request #2407 from yichengq/334
...
rafthttp: report unreachable status of the peer
2015-03-02 09:35:35 -08:00