Brandon Philips
351e84aece
feat(etcd): add listen host parameter
...
this separates out the listening IP from the advertised IP. This is
necessary so that we can hit etcd on 127.0.0.1 but also advertise the
right IP to the rest of the cluster.
2013-08-23 13:07:15 -07:00
Xiang Li
dd2f856d63
if the whole cluster dies, should not panic
2013-08-19 16:26:09 -07:00
Xiang Li
798d52e695
simplify remove/join process; add tests
2013-08-19 15:28:01 -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
bfc68e8e37
fix(raft_server): rename getLeaderVersion to getVersion
2013-08-19 08:53:15 -07:00
Brandon Philips
3fff0a3c2b
fix(version): add raftVersion to the version file
2013-08-19 08:45:58 -07:00
Brandon Philips
fc776f2ad6
fix(raft_server): add comment on version field
...
explain what the version field is for and why it is set to
releaseVersion
2013-08-18 21:54:07 -07:00
Brandon Philips
2c9e90d6ad
feat(raft_server): do not allow mixed versions
...
fail to join if there is an internal version mismatch.
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
5357fb431e
Pull deeply nested logic into functions
2013-08-17 20:55:52 -07:00
Xiang Li
cf2d6888c2
add error package
2013-08-17 20:41:15 -07:00
Fabrizio (Misto) Milo
c459b4bda7
go flavour
2013-08-17 08:30:31 -07:00
Xiang Li
981351c9d9
use type inheritance
2013-08-17 08:30:31 -07:00
Xiang Li
e0ca8f20d2
add newJoinCommand func().
2013-08-17 08:30:31 -07:00
Xiang Li
ca4b5815f7
make raft and etcd server
2013-08-17 08:30:31 -07:00
Xiang Li
cb33641f5f
clean up
2013-08-17 08:30:30 -07:00
Fabrizio (Misto) Milo
3102420542
use infof instead of fmt.Printf
2013-08-13 11:52:55 -07:00
Fabrizio (Misto) Milo
e6d8d4046d
split raft server logic into separate module
2013-08-13 11:52:55 -07:00