by chubot · 5y ago · 0 comments
Hm, why not just use the underlying nodes then, without Kubernetes?
Is the underlying cloud that bad at scheduling, and are they keeping the VMs warm all the time?
What are they gaining for this indirection? Is it to get a common interface across GCP and other clouds?
Bin-packing or fragmentation is not a common problem
there’s relatively low strain on the scheduler.
That said, strain on the kube-scheduler is spiky
EDIT: Also don't discount the rest of the Kubernetes ecosystem. It's more than just a scheduler. It provides configuration, secrets management, healthchecks, self-healing, service discovery, ACLs... there are absolutely other ways to solve each of these things. But when starting from scratch there's a wide field of additional questions to answer, problems to solve.
Related comment from 6 months ago about Kubernetes use cases: https://lobste.rs/s/kx1jj4/what_has_your_experience_with_kub...
Summary: scale has at least 2 different meanings. Scaling in resources doesn't really mean you need Kubernetes. Scaling in terms of workload diversity is a better use case for it.
Kubernetes is basically a knockoff of Borg, but Borg is designed (or evolved) to run diverse services (search, maps, gmail, etc.; batch and low latency). Ironically most people who run their own Kube clusters don't seem to have much workload diversity.
On the other hand, HPC is usually about scaling in terms of resources: running a few huge jobs on many nodes. A single job will occupy an entire node (and thousands of nodes), which is what's happening here.
I've never used these HPC systems but it looks like they are starting to run on the cloud. Kubernetes may still have been a defensible choice for other reasons, but as someone who used Borg for a long time, it's weird what it's turned into. Sort of like protobufs now have a weird "reflection service". Huh?
https://aws.amazon.com/blogs/publicsector/tag/htcondor/
https://aws.amazon.com/marketplace/pp/Center-for-High-Throug...
We migrated to k8s to A) have a way to standardize how to run containerized builds and get the benefits for "it works on my laptop" matching how it works in production (at least functionally) and B) a common set of patterns for managing deployed software.
Resource scheduling only became of interest after we migrated when we realized the aggregation of our payloads allowed us to use things like spot instances without jeopardizing availability.
I used to work in HPC/Grid but it's been a while but I do remember Condor being clunky even though it had its uses.
And the commercial grid offerings couldn't scale to almost 10k nodes back then (am not sure about now, or if they even exist anymore)
And yea, I like the ability to easily support a diverse set of workloads on the same cluster. It's a simple and easier to understand architecture compared to my previous experience with hadoop.
This has not been my experience at all, but most of my clients are big corporations/enterprises. It's not uncommon to have a cluster with hundreds or thousands of different services running, from front-end static file servers to CRUD apps to machine learning. Even the startups I've worked with had at least a handful of different services they ran on K8s.
For a second I read that as self-discovery
Damn kubernetes is some good shit
It is however designed for secure networks where you have total control over the physical layer-2. If that gets compromised you can be in a world of hurt.
In a past life i configured and set up slurm in vpcs in amazon, was kind of a fun exercise.