Re:Official Kubernetes on CoreOS Guides and Tools
by tracker1 on Friday September 18, 2015 @12:56PM
(#10240302)
How has etcd been running for you more recently? One of the things that kept me away was my test run of etcd failed gloriously (twice), and just wasn't stable/resiliant enough for me.
[ Parent
| on HN ]
Re:Official Kubernetes on CoreOS Guides and Tools
by unihorn on Friday September 18, 2015 @01:05PM
(#10240378)
We published etcd 2.x earlier this year, and it is super stable in current stage. We run harsh failure injection tests on it all the time, and the cluster could survive well. You could check https://coreos.com/blog/new-functional-testing-in-etcd/ for more details.
Re:Official Kubernetes on CoreOS Guides and Tools
by mattkrea on Friday September 18, 2015 @01:35PM
(#10240656)
We're about to start running with it but I am definitely a little concerned at the failover table. I'm a lot more comfortable when I can achieve 2/3 failure and still be okay although the cost of adding a few more instances isn't too bad.
Re:Official Kubernetes on CoreOS Guides and Tools
by philips on Friday September 18, 2015 @01:41PM
(#10240721)
To avoid split-brain a consensus system like etcd cannot make progress with less than 50% + 1 members operating. This is just a hard constraint of this type of distributed system.
You can find resources that explain all of the constraints in depth at the Raft homepage: https://raft.github.io/
Re:Official Kubernetes on CoreOS Guides and Tools
by mattkrea on Friday September 18, 2015 @01:49PM
(#10240797)
Thanks I'll check it out. Again, the cost of spinning up even a 9-node cluster these days is negligible but my initial plan was to separate etcd clusters by application rather than sharing between but we'll obviously be doing some serious experimentation as we move forward.
Re:Official Kubernetes on CoreOS Guides and Tools
by ecnahc515 on Friday September 18, 2015 @02:51PM
(#10241290)
You'll be glad to know that etcd has added basic ACL support to keys. If you were worried about isolation/access to the etcd cluster across apps, this might help you avoid running a cluster per-app.
Re:Official Kubernetes on CoreOS Guides and Tools
by mattkrea on Friday September 18, 2015 @03:37PM
(#10241573)
Yep, that's exactly what I have some staff internally looking into. Very happy to see it.
Re:Official Kubernetes on CoreOS Guides and Tools
by joshuak on Friday September 18, 2015 @09:01PM
(#10242889)
It's important to note, because it's often missed, that etcd can operate either as a participant in the high reliability / consensus portion of the cluster, but also as a proxy that does not participate. So you don't have to think in terms of 50%+1 of an entire cluster needing to stay up for consistency, only 50%+1 of the etcd cluster. This is nicely illustrated in the the cluster architecture docs at CoreOS.com.
https://coreos.com/os/docs/latest/cluster-architectures.html