Commit Graph

18 Commits (805959833200bbb769d9b02ef443d478a48da766)

Author SHA1 Message Date
Yicheng Qin baadf63912 feat: implement standby mode
Change log:
1. PeerServer
- estimate initial mode from its log through removedInLog variable
- refactor FindCluster to return the estimation
- refactor Start to call FindCluster explicitly
- move raftServer start and cluster init from FindCluster to Start
- remove stopNotify from PeerServer because it is not used anymore
2. Etcd
- refactor Run logic to fit the specification
3. ClusterConfig
- rename promoteDelay to removeDelay for better naming
- add SyncClusterInterval field to ClusterConfig
- commit command to set default cluster config when cluster is created
- store cluster config info into key space for consistency
- reload cluster config when reboot
4. add StandbyServer
5. Error
- remove unused EcodePromoteError
2014-05-09 01:56:55 -07:00
Yicheng Qin ba36a16bc5 feat(peer_server): stop service when removed
It doesn't modify the exit logic, but makes external code know
when removal happens and be able to determine what it should do.
2014-05-07 10:00:27 -07:00
Yicheng Qin 17e299995c refactor(peer_server): remove standby mode in peer server 2014-05-07 09:10:09 -07:00
Yicheng Qin 67600603c5 chore: rename proxy mode to standby mode
It makes the name more reasonable.
2014-04-17 08:04:42 -07:00
Ben Johnson 174b9ff343 bump(github.com/goraft/raft): 6bf34b9
Move from coreos/raft to goraft/raft and update to latest.
2014-03-24 15:09:47 -07:00
Ben Johnson 7d4fda550d Machine join/remove v2 API. 2014-03-18 16:25:21 -06:00
Ben Johnson 1d961b8e56 Add proxy mode. 2014-02-22 15:02:20 -07:00
Brandon Philips 13b6c1e684 chore(*): make everything use goven
for i in github.com/BurntSushi/toml github.com/coreos/go-etcd/etcd github.com/coreos/go-log/log github.com/gorilla/context github.com/rcrowley/go-metrics bitbucket.org/kardianos/osext github.com/coreos/go-systemd/journal github.com/coreos/raft code.google.com/p/goprotobuf/proto ; do goven  -copy -rewrite $i; done
2014-02-01 23:44:18 -08:00
Ben Johnson a9e20aecc6 Raft fixes, integrate logging. 2013-12-29 10:40:10 -07:00
Xiang Li 8a0496cfae bump deps 2013-11-22 08:59:24 -08:00
Xiang Li 6156d5c790 refactor separate etcd index from raft index 2013-11-09 17:55:54 -08:00
Ben Johnson e7598075ac Use raft.Server interface. 2013-10-14 13:51:20 -06:00
Ben Johnson dc59bd8d77 gofmt 2013-10-13 21:37:45 -06:00
Ben Johnson d44fd6661a Fix registry cache issues. 2013-10-13 21:09:56 -06:00
Ben Johnson 8670e1b7aa Refactored. 2013-10-12 15:56:43 -06:00
Ben Johnson bb9401544a Intermediate commit. 2013-10-12 13:35:23 -06:00
Ben Johnson eb78d96a20 Intermediate commit. 2013-10-12 00:28:46 -06:00
Ben Johnson 89334df5ae Refactor commands. 2013-10-11 01:02:38 -06:00