Commit Graph

8092 Commits (07db7744232389ff621c899471168a4f6bfa35f4)

Author SHA1 Message Date
Xiang Li d286dfdc6c write log entry to file on disk when appendEntry and truncate log file on disk when truncate log entries 2013-07-20 19:07:16 -07:00
Ben Johnson 59de4e7064 Fix missing SendSnapshotRecoveryRequest() implementations. 2013-07-19 08:57:46 -06:00
Ben Johnson 17941d11b1 Merge pull request #80 from coreos/newSnapshotLoop
New snapshot loop
2013-07-19 07:55:05 -07:00
Xiang Li 6b6e167d38 separate sendSnapshotRecovery logic into sendSnapshotRecoveryRequest func 2013-07-18 16:56:21 -07:00
Xiang Li e4e81010ae change func names and fix typo 2013-07-18 16:44:01 -07:00
Xiang Li 656d8bcc1a fix filename typo 2013-07-18 16:31:43 -07:00
Xiang Li 800aaa64b7 change getLogEntry to getEntry 2013-07-18 16:29:06 -07:00
Xiang Li dee43ecd60 add spanshot loop with protobuf 2013-07-18 13:39:07 -07:00
Xiang Li e3322b65d5 Merge branch 'snapshotLoop' into newSnapshotLoop 2013-07-18 10:21:03 -07:00
Ben Johnson 91e7c9fb38 Fix HTTPTransporter test. 2013-07-18 11:01:45 -06:00
Ben Johnson a055fb324d Merge branch 'master' of https://github.com/benbjohnson/go-raft 2013-07-18 10:51:20 -06:00
Ben Johnson 0e6ceabca9 Merge pull request #79 from coreos/master
fix a file name typo
2013-07-18 09:51:10 -07:00
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