Yicheng Qin
e41cbeda5d
rafthttp: drop messages in channel when disconnection
...
The messages in channel are outdated, and there is no need to send
them in the future. It also reports unreachable if there are messages
in the channel.
2015-03-11 14:42:06 -07:00
Yicheng Qin
a230003255
rafthttp: report unreachable when dropping messages
2015-03-11 14:11:41 -07:00
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
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
Xiang Li
44e53953c9
rafthttp: add comments for Transporter interface
2015-03-03 22:34:47 -08:00
Yicheng Qin
8ec28f27d1
rafthttp: streamReader roundtrip -> dial
2015-03-02 13:26:48 -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
eeaf12beb1
rafthttp: use /raft/stream for MsgApp stream
...
New rafthttp uses /raft/stream/msgapp for MsgApp stream, but v2.0 rafthttp
cannot understand it. Use the old endpoint /raft/stream instead for backward
compatibility, and plan to move to new endpoint in the version after the
next one.
2015-02-28 11:35:16 -08:00
Yicheng Qin
758ff26dd8
rafthttp: add copyright header
2015-02-28 11:35:16 -08:00
Yicheng Qin
1c5a507761
rafthttp: refactor peer and add general stream
2015-02-28 11:35:16 -08:00