Yicheng Qin
29dca49cb5
rafthttp: wait 1ms before enabling cancel
...
CancelRequest only effects on in-flight request, so we need to wait
for Do(request) called before enabling cancel.
2015-06-12 07:55:06 -07:00
Yicheng Qin
1dbe72bb74
rafthttp: pretty print connection error
...
1. print out the status change of connection with peer
2. only print the first error for repeated ones
2015-06-10 15:43:49 -07:00
Yicheng Qin
1403783326
Merge pull request #2911 from yichengq/rafthttp-plog
...
rafthttp: use leveled logger
2015-06-09 16:16:33 -07:00
Yicheng Qin
f1e995b070
rafthttp: use leveled logger
2015-06-09 16:15:02 -07:00
Yicheng Qin
7f8925e172
rafthttp: fix pipeline.stop may block
...
This PR makes pipeline.stop stop quickly. It cancels inflight requests,
and stops sending messages in the buffer.
2015-06-02 17:15:44 -07:00
Yicheng Qin
c371d8c65c
rafthttp: version enforcement on rafthttp messages
...
This PR sets etcd version and min cluster version in request header,
and let server check version compatibility. rafthttp server
will reject any message from peer with incompatible version(too low
version or too high version), and print out warning logs.
2015-06-02 13:33:18 -07:00
Xiang Li
0d3d4c5b01
rafthttp: print out log when clusterID mismatch instead of exiting
...
We have heard from several users that they do not expect a clusterID
mismatch to kill the cluster.
2015-05-26 16:05:58 -07:00
Yicheng Qin
9f19b5660f
rafthttp: add AddRemote
...
Add remotes to rafthttp, who help newly joined members catch up the
progress of the cluster. It supports basic message sending to remote, and
has no stream connection for simplicity. remotes will not be used
after the latest peers have been added into rafthttp.
2015-04-24 11:49:23 -07:00
Xiang Li
8e76ccf979
Merge pull request #2439 from xiang90/metrics
...
Metrics
2015-03-05 15:55:34 -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
0fe9861197
rafthttp: support multiple peer urls
2015-03-04 15:00:07 -08:00
Xiang Li
17aa3cf7db
rafthttp: add metrics for sending message
2015-03-04 11:18:16 -08:00
Yicheng Qin
b4b9b9118a
rafthttp: report MsgSnap status
2015-03-02 09:38:11 -08:00
Yicheng Qin
9b986fb4c1
rafthttp: report unreachable status of the peer
...
When it failed to send message to the remote peer, it reports unreachable
to raft.
2015-03-01 16:48:26 -08:00
Yicheng Qin
1c5a507761
rafthttp: refactor peer and add general stream
2015-02-28 11:35:16 -08:00
Yicheng Qin
d8a9e11e22
rafthttp: extract pipeline from peer
2015-02-28 11:06:11 -08:00