58 Commits

Author SHA1 Message Date
Xiang Li
2eb0625f15 mrege and change peerstats to followersstats 2013-09-26 19:58:48 -07:00
Brandon Philips
da01fe6027 fix(command): make Latency and Counts objects
instead of suffixing everything make a latency object
2013-09-26 12:17:54 -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
896c944c7e add serverStats 2013-08-20 14:05:23 -07:00
Xiang Li
9a63723bbe add sdv 2013-08-19 20:35:56 -07:00
Xiang Li
d8cd744f2f fix remove node 2013-08-19 19:07:18 -07:00
Xiang Li
a97590ff50 basic stats 2013-08-19 17:19:45 -07:00
Xiang Li
798d52e695 simplify remove/join process; add tests 2013-08-19 15:28:01 -07:00
Xiang Li
fb9f09d240 use commandname 2013-08-19 13:43:12 -07:00
Xiang Li
49c160b50c change getMachines 2013-08-19 13:42:00 -07:00
Xiang Li
64e6d54758 add remove peer 2013-08-19 12:10:11 -07:00
Xiang Li
57ef6e9f5a add killallAndReocery test 2013-08-19 10:46:16 -07:00
Brandon Philips
e79f6842bb fix(command): change Version to RaftVersion
clear up confusion on what this field is used for: it is for the
internal raft protocol version only.
2013-08-18 21:54:07 -07:00
Brandon Philips
53b2038d2e feat(command): add version to join command
Add a version to the join command. Add a versioning document to discuss
some of the design decisions.
2013-08-18 21:54:07 -07:00
Xiang Li
f813017f1b fix raft api 2013-08-18 21:12:36 -07:00
Xiang Li
cf2d6888c2 add error package 2013-08-17 20:41:15 -07:00
Xiang Li
e0ca8f20d2 add newJoinCommand func(). 2013-08-17 08:30:31 -07:00
Brandon Philips
3e59badf1a fix(command): be consistent will all CommandNames
testAndSet was missing the etcd: prefix. Make it consistent and have a
helper function.
2013-08-15 21:38:15 -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
Xiang Li
09cfd89298 better error name for watcher 2013-08-05 17:03:15 -07:00
Xiang Li
8a4b2e83a5 change create->new, follow go spec 2013-08-04 17:17:40 -07:00
Xiang Li
66f4e0aa19 clear watchers before recover from a snapshot 2013-08-03 23:29:05 -07:00
Xiang Li
9b8c5b0527 allow pervious machine to rejoin to the cluster without pervious log 2013-08-03 22:33:56 -07:00
Xiang Li
50613c555b simplify machine list. do not need a separate struct to store machines, since we have already stored them into etcd store. 2013-08-02 20:21:11 -07:00
Xiang Li
cc428c4e84 change keyword from /machines to /_etcd/machines 2013-07-31 19:40:40 -07:00
Xiang Li
79966b6550 Accept maxsize parameter. Deny further join request if reache max size 2013-07-31 11:05:12 -07:00
Xiang Li
69f8b8693d add new node to /machines 2013-07-30 22:39:45 -07:00
Xiang Li
9ae4dec45e change init func due to the change in raft 2013-07-26 12:15:42 -07:00
Xiang Li
58501151da change snapshot api due to the change in go-raft 2013-07-16 18:03:21 -07:00
Xiang Li
268ba2592a record machine info locally via join command 2013-07-14 11:45:35 -07:00
Xiang Li
76ef446baf add machinesHttpHandler 2013-07-13 19:13:07 -07:00
Xiang Li
6821747763 remove commented codes 2013-07-12 16:38:25 -07:00
Xiang Li
4b9b5d8069 merge get and list 2013-07-12 10:10:56 -07:00
Xiang Li
a131632d3d error handling 2013-07-12 08:41:28 -07:00
Xiang Li
5e06b2b9fa clean command.go 2013-07-09 14:02:59 -07:00
Xiang Li
1e9307e88a clean up tree.go and watcher.go 2013-07-09 13:14:12 -07:00
Xiang Li
dc3844a1f8 add testAndSet Command 2013-07-08 11:00:10 -07:00
Xiang Li
e2f0420862 change imports to coreos/etcd coreos/go-raft; change API to work with new go-raft 2013-07-08 09:41:04 -07:00
Xiang Li
93c96b3813 add list feature 2013-07-05 16:22:45 -07:00
Xiang Li
e211554b91 watch accept sinceIndex 2013-06-30 16:30:41 -07:00
Xiang Li
047f8ab6a8 watch sinceindex works 2013-06-29 15:29:10 -07:00
Xiang Li
5681e1a9d0 return command index 2013-06-29 12:49:05 -07:00
Xiang Li
c2f436a58b fix redirect after seprate client and server pot 2013-06-28 15:37:29 -07:00
Xiang Li
e91ea7be38 use xiangli-cmu/go-raft as the raft lib 2013-06-28 09:58:41 -07:00
Xiang Li
c3bfe19ae9 fix a bug in set(update node need to create a new one, not get the pointer of the node) 2013-06-20 21:34:27 -07:00
Xiang Li
ef59a03fbb gofmt 2013-06-20 15:59:23 -07:00
Xiang Li
58e7b456bb redirect the join command and do not redirect other commands (let client does that) 2013-06-20 15:26:31 -07:00
Xiang Li
74650431e9 fix a expiration bug 2013-06-18 15:04:30 -07:00