Yicheng Qin
51397a6423
rafthttp: use go-routine for MsgProp processing
...
MsgProp process is blocking when there is no leader, which blocks the peer
loop totally.
2015-03-09 14:11:16 -07:00
Xiang Li
a2be25cba4
Merge pull request #2460 from xiang90/raft-logger
...
raft: introduce logger interface
2015-03-09 08:00:21 -07:00
Xiang Li
97579e2e1d
raft: introduce logger interface
2015-03-08 21:36:32 -07:00
Xiang Li
17ba06b5cd
Merge pull request #2461 from xiang90/fix-raft
...
raft: do not reset vote if term is not changed
2015-03-08 11:39:35 -07:00
Xiang Li
7fe608532a
raft: do not reset vote if term is not changed
...
raft MUST keep the voting information for the same term. reset
should not reset vote if term is not changed.
2015-03-07 22:31:20 -08:00
Xiang Li
b374f93bb8
Merge pull request #2456 from xiang90/tls
...
pkg/transport: fix downgrade https to http bug in transport
2015-03-06 11:39:44 -08:00
Xiang Li
3c9581adde
pkg/transport: fix downgrade https to http bug in transport
...
If the TLS config is empty, etcd downgrades https to http without a warning.
This commit avoid the downgrade and stoping etcd from bootstrap if it cannot
listen on TLS.
2015-03-06 10:42:23 -08:00
Xiang Li
964c61916d
Merge pull request #2455 from kelseyhightower/add-benchmarks
...
Documentation: add initial benchmarks
2015-03-06 09:34:05 -08:00
Kelsey Hightower
4a38788b2f
Documentation: add initial benchmarks
2015-03-06 09:32:24 -08:00
Yicheng Qin
ba20016f0f
tools/etcd-tester: reorganize failures
2015-03-05 21:14:41 -08:00
Xiang Li
daea484a9f
Merge pull request #2451 from xiang90/fix_wal
...
wal: do not race reader and writer
2015-03-05 20:57:25 -08:00
Xiang Li
ab72c3ec88
wal: do not race reader and writer
2015-03-05 20:19:17 -08:00
Yicheng Qin
eba6daef4b
Merge pull request #2450 from yichengq/335
...
tools/functional-tester: add cleanup rpc
2015-03-05 16:36:16 -08:00
Yicheng Qin
181ee445c1
better dir name
2015-03-05 16:34:14 -08:00
Yicheng Qin
b96ecfcc07
Merge pull request #2448 from yichengq/334
...
tools/etcd-tester: add kill majority test
2015-03-05 15:59:34 -08:00
Xiang Li
8e76ccf979
Merge pull request #2439 from xiang90/metrics
...
Metrics
2015-03-05 15:55:34 -08:00
Yicheng Qin
2152447361
tools/functional-tester: add cleanup rpc
2015-03-05 15:55:28 -08:00
Yicheng Qin
4314b19a2e
tools/etcd-agent: recycle etcd zombie when termination
2015-03-05 15:51:11 -08:00
Yicheng Qin
267313a3f8
tools/etcd-tester: add kill majority test
2015-03-05 15:14:14 -08:00
Yicheng Qin
8b770f8a1a
Merge pull request #2447 from yichengq/334
...
etcd-tester: initial stresser
2015-03-05 13:33:51 -08:00
Yicheng Qin
3cffc910de
tools/etcd-tester: use stresser
2015-03-05 13:21:49 -08:00
Xiang Li
eec52738d8
etcd-tester: initial stresser
2015-03-05 11:06:43 -08:00
Yicheng Qin
0a04eec481
Merge pull request #2441 from yichengq/334
...
tools/functional-tester: make it work basically
2015-03-05 10:30:38 -08:00
Yicheng Qin
d5957aebfd
tools/etcd-tester: add failure killall
2015-03-05 10:24:21 -08:00
Yicheng Qin
530dd891be
tools/etcd-tester: make it work
...
1. add cluster support
2. add failureNo case
3. add main func
2015-03-05 10:24:21 -08:00
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