Commit Graph

10780 Commits (05d1a948d01105677928649e356f64cb07b8f1b0)

Author SHA1 Message Date
Xiang Li 825b04bbea fix a file name typo 2013-07-18 09:47:44 -07:00
Ben Johnson a0eb460727 Update paths to 'benbjohnson'. 2013-07-18 10:41:33 -06:00
Ben Johnson 925a5afdda Merge pull request #78 from coreos/master
Change binary encoding to protobuf
2013-07-18 09:39:15 -07:00
Xiang Li 41209beb5a change binary encoding to protobuf 2013-07-18 09:26:31 -07:00
Xiang Li bcdc237b3e Merge https://github.com/coreos/go-raft 2013-07-17 14:24:31 -07:00
Ben Johnson 3008464281 Merge pull request #77 from benbjohnson/74-log-refactor
[Fix #74] Refactor to use binary log and binary RPCs.
2013-07-17 11:39:53 -07:00
Ben Johnson e3b06c530a [Fix #74] Refactor to use binary log and binary RPCs. 2013-07-17 07:45:53 -06:00
Xiang Li 5bfda2c28e remove nitro package 2013-07-16 18:00:16 -07:00
Xiang Li 72abfa40a7 combine two dup func 2013-07-16 17:43:12 -07:00
Xiang Li b743f48d71 add snapshotting state 2013-07-16 17:40:19 -07:00
Xiang Li 1bbbf7ca6a remove nitro 2013-07-16 13:23:05 -07:00
Xiang Li 5c9cec3f74 keep recent log entries after snapshot 2013-07-16 13:16:33 -07:00
Xiang Li 10f8b9f836 Merge https://github.com/benbjohnson/go-raft 2013-07-16 12:28:52 -07:00
Ben Johnson 9df8a885b7 Merge pull request #73 from coreos/master
set mtu
2013-07-15 07:45:43 -07:00
Xiang Li 557c735f69 move MLPR frmo log to server 2013-07-14 22:48:41 -07:00
Xiang Li 2e75d0846e change mtu to maxLogEntriesPerRequest 2013-07-14 22:19:48 -07:00
Xiang Li 9c83cdef74 set back debug level 2013-07-14 21:39:38 -07:00
Xiang Li af7d99eae0 set mtu 2013-07-14 21:38:42 -07:00
Xiang Li 5482d260ce follower will not promote until get synced 2013-07-11 18:03:24 -07:00
Xiang Li 9cafa8fe1d add nitro tool to go-raft lib 2013-07-11 12:56:34 -07:00
Ben Johnson c0c294e397 Merge pull request #70 from coreos/master
Commit a NOP after the server becomes leader
2013-07-11 11:26:55 -07:00
Xiang Li 255ce1bc7d add NOPCommand.go 2013-07-10 22:20:21 -07:00
Xiang Li 2abebe3065 refactor 2013-07-10 22:19:57 -07:00
Xiang Li b9e1da8ac2 let knowen peer to rejoin to the cluster 2013-07-10 20:02:24 -07:00
Xiang Li d0da319e26 Merge https://github.com/benbjohnson/go-raft 2013-07-10 16:35:00 -07:00
Xiang Li 75e0a229e9 commit a NOP after the server becomes leader. Commit ohter commands, after the majority of the peers synced by the NOP command 2013-07-10 16:07:14 -07:00
Ben Johnson f37954c5b3 Merge pull request #68 from waffleio/master
waffle.io Badge
2013-07-10 14:09:48 -07:00
waffleio a87bf88090 add waffle.io badge 2013-07-10 14:08:20 -07:00
Xiang Li 044ab0fea5 Merge pull request #67 from benbjohnson/append-entries-benchmarking
Reset Timer on Benchmarks
2013-07-10 11:47:36 -07:00
Ben Johnson cdf542509e Reset timer on benchmarks. 2013-07-10 12:38:35 -06:00
Ben Johnson 645a10390a go fmt 2013-07-10 12:38:03 -06:00
Ben Johnson 459c84b32d Merge pull request #66 from benbjohnson/append-entries-benchmarking
Append entries benchmarking
2013-07-10 11:31:13 -07:00
Ben Johnson 628b86fe1d Add throughput metrics to benchmark. 2013-07-10 12:10:52 -06:00
Ben Johnson df0c7ef823 Convert encoding/decoding tests to benchmarks. 2013-07-10 12:08:08 -06:00
Xiang Li 8f030b55e6 Merge pull request #65 from benbjohnson/fix-candidate-loop-state-check
Fix state check in candidate inner loop.
2013-07-10 10:53:28 -07:00
Ben Johnson 2ee061c60f Fix state check in candidate inner loop. 2013-07-10 11:46:11 -06:00
Ben Johnson da98ea0510 Merge pull request #64 from coreos/master
add encoding speed test and gofmt
2013-07-10 10:40:01 -07:00
Xiang Li 62ddd377a0 add encoding speed test and gofmt 2013-07-10 10:31:56 -07:00
Ben Johnson 7cfb6f554e Merge pull request #63 from benbjohnson/http-transporter
Default HTTP Transporter
2013-07-08 21:07:51 -07:00
Ben Johnson 67d11f725c Remove trace logging. 2013-07-08 21:35:21 -06:00
Ben Johnson 6ce3a6cd92 Use client.Post(). 2013-07-08 21:33:52 -06:00
Ben Johnson 5e713120bf HTTP Transporter fixes. 2013-07-08 21:00:14 -06:00
Ben Johnson 4ee205422c Merge branch 'master' of https://github.com/benbjohnson/go-raft into http-transporter
Conflicts:
	peer.go
	server.go
2013-07-08 20:56:15 -06:00
Ben Johnson 5aa494ddf9 Add HTTPTransporter. 2013-07-08 20:55:00 -06:00
Ben Johnson 1c4b918fab Merge pull request #62 from coreos/master
Remove the lock in init()
2013-07-08 16:58:42 -07:00
Xiang Li 3392f8192f Remove the lock in init(). Since addPeer func() require that lock. When do log replay in the init(), there will be deadlock 2013-07-08 16:42:33 -07:00
Ben Johnson 1157ef0199 Merge pull request #61 from coreos/master
Fix two problems
2013-07-08 12:42:56 -07:00
Xiang Li 9efa791026 record the value of the commit result before remvoe it 2013-07-08 10:56:26 -07:00
Xiang Li b3e7f49a33 do not send commit signal if it came from old leader 2013-07-08 10:35:26 -07:00
Ben Johnson 271a734791 Merge pull request #60 from coreos/master
create new channel before start heartbeat
2013-07-08 07:24:44 -07:00