34 Commits

Author SHA1 Message Date
Brandon Philips
41b9051686 chore(*.go): add copyright notice 2013-10-07 09:48:28 -07:00
Xiang Li
266519c8d2 fix typo 2013-09-27 21:56:42 -07:00
Xiang Li
6f32b2d576 fix timeout 2013-09-27 21:24:33 -07:00
Xiang Li
2eb0625f15 mrege and change peerstats to followersstats 2013-09-26 19:58:48 -07:00
Xiang Li
a8ff1b27d4 init peerStats in transportation.go; avoid nil pointer due to restart from snapshot(we do not keep stats in persistentlayer yet) 2013-09-22 11:20:08 -04:00
Xiang Li
8d245b546f cleanup 2013-09-12 13:17:19 -04:00
Xiang Li
44e8c234ed merge master 2013-09-07 14:47:55 -04:00
Ivan7702
90d7ebec47 gofmt 2013-09-02 19:58:45 -04:00
Ivan7702
8eaa9500e9 change heartbeattimeout to electiontimeout 2013-09-02 19:54:46 -04:00
Ivan7702
51941fa613 add timeout for transportation layer 2013-09-01 21:41:57 -04:00
Xiang Li
6ef18b1ae3 thread-saft queue 2013-08-21 13:35:15 -07:00
Xiang Li
896c944c7e add serverStats 2013-08-20 14:05:23 -07:00
Xiang Li
d8cd744f2f fix remove node 2013-08-19 19:07:18 -07:00
Xiang Li
e4b164c324 add avg 2013-08-19 17:40:13 -07:00
Xiang Li
a97590ff50 basic stats 2013-08-19 17:19:45 -07:00
Xiang Li
f813017f1b fix raft api 2013-08-18 21:12:36 -07:00
Brandon Philips
2c09cd7d1a chore(trasnsporter): delete unused variables
just return directly instead of creating intermediate variables
2013-08-17 07:57:09 -07:00
Xiang Li
3940196de0 move trans related func to trans.go 2013-08-13 12:23:35 -07:00
Xiang Li
8e48a20c85 clean up trans.go 2013-08-11 11:56:18 -07:00
Brandon Philips
7f9c2eee45 fix(transporter): consistently print debug
not all transporter handlers were printing debug on failure. Fix.
2013-08-10 23:32:22 -07:00
Brandon Philips
f1ad907875 chore(transporter): add spaces before return
just a little nip
2013-08-10 23:32:21 -07:00
Xiang Li
ce3c55ba3f refactor 2013-08-09 23:03:49 -07:00
Xiang Li
d3471eec7f separate_id 2013-08-09 21:06:16 -07:00
Brandon Philips
a19048841f feat(trasnport): add an independent node name
Don't let the raft algorithm know anything about the transport. Give it
a nodename instead. This will allow us to support more complex
networking setups in the future.
2013-08-09 17:09:57 -07:00
Cong Ding
13af54fdd0 revise log handling
All the log-related operations are calling functions in util.go. This makes
the consistancy of the logs.
2013-08-01 23:28:03 +02:00
Xiang Li
d2382c232e not hardcode debug scheme 2013-07-20 16:29:27 -07:00
Xiang Li
58501151da change snapshot api due to the change in go-raft 2013-07-16 18:03:21 -07:00
Cong Ding
fd1d908e79 fix typos 2013-07-16 01:04:41 +02:00
Xiang Li
00d2d6eb4e gofmt 2013-07-12 08:56:10 -07:00
Xiang Li
89bacedf3e change https bool to scheme string 2013-07-12 08:44:40 -07:00
Xiang Li
880cd71df5 add http timeout 2013-07-11 09:43:14 -07:00
Xiang Li
931afb9394 report network problem 2013-07-10 17:49:32 -07:00
Xiang Li
fad972304c gofmt 2013-07-09 14:58:59 -07:00
Xiang Li
5749b9db50 clean up transporter.go 2013-07-09 14:55:45 -07:00