Repository navigation
Conversation
|
|
||
| ## Design considerations | ||
|
|
||
| SCS plans to require a Hard Anti Affinity and/or Redundancy for the control plane and |
There was a problem hiding this comment.
In line 56 you exclude affinity for worker nodes and here you include it. Isn't this contradicting?
There was a problem hiding this comment.
Maybe its not perfectly formulated. What I meant is that (Anti) Affinity isn't relevant for the SCS internally, since SCS in the end only standardizes the infrastructure, not the workload. But it is nonetheless important to standardize the possibility for (Anti) Affinity usage in the clusters.
Adds a standard decision for K8s node anti-affinity. This should lead to a standard, which ensures anti-affinity, and therefore high-availability and fault-tolerance on systems of SCS users. Signed-off-by: Hannes Baum <[email protected]>
Some small updates and changes to the Decision Record due to the comments of @matofeder and @anjastrunk. Signed-off-by: Hannes Baum <[email protected]>
d699c4d to
40a63de
Compare
|
Hmmm, reading through the document, it looks more complicated than it needs to be. Maybe my view of the world is too simple and I'm happy to learn. But here's my understanding:
Both mechanisms are not very useful if several worker nodes or several control planes nodes are VMs that are running on the same host (hypervisor) system. Because then, one event (a host failure) would affect several k8s nodes of one type at once. We have thus determined that
I seem to be missing something here, as the proposed standards document looks a lot more complicated than my explanation here. You seem to imply that the control plane still does not survive a host failure? |
The main goal I had with this Decision Record (that is also something we should keep in mind, this is only a DR) was to set clearer goals and guidelines for the following standard. You're completely right with your observation about the essence of this document and that this could probably be cut a bit shorter. But I also wanted to make clear, that this document is more about "availability" with/trough "cluster distribution" and not really about "Anti Affinity", since this is (in my opinion) more widely used in the context of workloads, at least in the K8s space. So this document was more about clearing that up and finding the right concepts to apply to the standard following it. About the the depth of commitments to get an (high)-available, fault-tolerant cluster: this is something I would put and discuss in the standard. I think there's always a scenario, where a cluster could go down due to some unexpected problems. Wider distribution of the underlying infrastructure (different physical machines, buildings, AZs, regions) most likely help, but this obviously increases the costs and isn't feasible for every business. I think the final decision how to implement this aspect should be left to the providers, but we can probably give out a recommendation. Another aspect of the length of this document can be found here:
In the document, I wanted to make clear that the distribution of the worker nodes over several physical nodes isn't very useful, if the customers/users can't use them properly. They need clear information about the worker nodes and their distribution, otherwise all workloads could be scheduled (maybe unintentionally) on the same node, in which case a single worker node failure would bring down the whole environment of a single customer. Not good! Thats why I mentioned the labeling and communication in the DR. Also, just to ask the question about this:
I thought (at least from my experience and experiments), if all control plane nodes except one go down, the cluster should still be working. It's maybe not very responsable due to a high request load, but at least the data would still be secure. Rebuilding the cluster would take some time of course. I hope that made it more clear. |
|
I now created the follow-up PR for the real standard here. |
Adds a standard decision for K8s node anti-affinity. This should lead to a standard, which ensures anti-affinity, and therefore high-availability and fault-tolerance on systems of SCS users.