4 ms·
I'm worried that I'm meaner about K8s in this than I mean to be, which would be a problem not least because I don't have enough K8s experience to justify meanne
by tptacek 4y ago
I'm worried that I'm meaner about K8s in this than I mean to be, which would be a problem not least because I don't have enough K8s experience to justify meanness. I'm really more just surprised at how path-dependent the industry is; even systems that were consciously built not to echo Borg, even greenfield systems like Flynn that were reimaginactiments of orchestration, all seem to follow the same model of central, allocating schedulers based on distributed consensus about worker inventory.
- ilyt 4y ago> all seem to follow the same model of central, allocating schedulers based on distributed consensus about worker inventory. Because frankly, it's easy to code. You just look thru list of what you have, list of what you put on it, and assign based on this and that algorithm. It keeps workers simple - register to cluster, send status (or wait for healthckeck), wait for request to start the job, done, you got a worker. It keeps the scheduler to just be scheduler - take state, apply list of "changes" (jobs to start/stop), execute. It keeps client simple - submit to scheduler, observe progress. It is also easy to debug. You just have one place doing the scheduling (and not a bunch of workers playing the "stock market" of resources), running on one node without distributed mess to worry about. Any test is just "feed this state to code and see whether it reacted as we need". Any job that got "rejected" for scheduling have clear reason. It also allows bigger optimizations to happen from point of view of a cluster. Some designs are reinvented so many times because they are just good or easy to implement first approximation of solution.
- vidarh 4y agoBe mean about K8s, it can take it. I don't think any of the criticism of it is unreasonable. It's a huge, convoluted beast. To me, K8s makes most sense in terms of creating a swiss army knife that lots of people know. You can do far better than K8s for specialised cases like yours and/or with people who has the right skills. But for a lot of people with simpler needs it's better to just stick to what is easy to hire for than look for an optimal solution.
- intelVISA 4y ago> You can do far better than K8s "Nobody ever got fired for K8s" is how I imagine most SWEs justify using such a crappy system. Kinda like SAP.
- btown 4y agoHowever bad you think k8s is, SAP is worse on its best day.
- deleted 4y ago[deleted]
- vidarh 4y agoSurprisingly often "crappy but sufficient and possible to hire for" beats good. Hiring good devops people with enough experience of alternatives to be able to pick an alternative or build something custom that is good enough to be worth it is hard.
- rco8786 4y agoHa! I said exactly this in a slack convo at work the other day.
- snotrockets 4y agoIt ain't that. It's that k8s-aas is available everywhere (and if it's not, then it'd be soon). So knowledge is transferable. And most don't want to, and shouldn't setup their own orchestrator. It's painful, cumbersome, and a waste of money, where you could get a k8s-aas everywhere. Fly are the rare example of a company that does need to run their own orchestration, and indeed, k8s doesn't fit them (it rarely does, in such cases. Unless you sell k8s-aas).
- vidarh 4y agoI mostly agree with you, but would qualify that by saying that writing a specialized orchestrator is not that hard for a lot of cases. I have done so a couple of times. Lots of decisions will likely end up similar to K8S - e.g. for one I ended up putting SkyDNS/CoreDNS for service discovery on top of Etcd and using a Nginx handler to route ingress - when we first upgraded our (many years old) system to doing that, K8S was not yet widely used and I was unaware K8S did the same. But if you have a specific use case and understand it well, it can be worth it. However, even if you have a situation like that where it's genuinely cost effective for you to write your own, a big reason why K8S might still be a better choice is that you can hire people who know K8S - if you build your own you need to worry about knowledge transfer for something very critical to your operation. I think writing orchestrators is fun, yet I still think most people shouldn't do so for production (but write a toy one as a learning experience anyway)
- linuxftw 4y agoThe nice thing about a centralized scheduler is the code for scheduling only needs to run in one place. If each node 'bids' on the workload, you need to run scheduling fit on every node for every application. You also need to work out a way to decide who wins the bid. Every time you want to change your scheduling logic, guess what? Gotta update all the nodes. The k8s scheduler is battle-tested. Across all the different environments and CI pipelines, it has scheduled billions, if not trillions, of pods at this point. If you have a better way of scheduling workloads across nodes, I advise you to make it work for kubernetes and sell it as an enterprise scheduler, and you'll make tons of money. Even if it's not better for the general use case, and just better for some edge (pun intended) use case, it would do quite well. IMO, all roads lead to k8s. You're just eventually going to have to solve the same set of problems.
- lupex 4y agoBorg–at least as it is published in those papers()–and these other schedulers are really design to maximize the availability of large distributed apps. () The real Borg now does a lot more... But there is a completely different world if you look elsewhere. In batch systems like supercomputers (HPC), you want to maximize throughput, not availability. It is common to have something closer to your design: a inventory of jobs and scheduler that allocates workers to them. E.g. https://hpc-wiki.info/hpc/Scheduling_Basics https://hpc-wiki.info/hpc/Scheduling_Basics