by twakefield · 10y ago · 0 comments
1) We think developers have had to take on too much responsibility for operating the software they build (DevOps). We hope to create more clearly defined roles for developers and operators through better tooling for operators.
2) A lot of the engineering challenges with SaaS comes from multi-tenancy, which is one of the reasons Dev and Ops have merged into one role.
3) A big reason to use cloud software is that you (as a user) don't have to operate it but that has been conflated with the requirement that you need to give up control of your data.
4) Adoption of containers (Docker[0], Rkt[1]) and container orchestration (Mesos[2], Kubernetes[3]) technology have created the opportunity to rethink the traditional model for delivering and operating software.
[1]: https://github.com/coreos/rkt
Edit: added some examples of container and orchestration tech with links
We've built some manual deployment scripts for creating new instances, but having to build everything ourselves has been time-prohibitive. I really wish I could find some ready-made tools for our use case.
Shoot me an email to ev@kontsevoy.com, will be glad to chat more about this.
1. Package your per-tenant application into a Kubernetes
pod (think of it as a lightweight VM, a collection of
Docker containers running on a same host).
2. Write a request router: someone needs to look up tenants
based on the virtual hostname in a request.
3. Use k8s API to find a pod with label == tenant. If
doesn't exist -> create one.
4. Forward the request there.
I'd imagine you'll have to "garbage collect" and gracefully shutdown pods when they sit idle for a while. I'd probably pack that logic into a pod itself....except we decided against using these PaaSes and placed a bet on Kubernetes.
In fact, our belief is that developers should think less about orchestration and let other people do the work. Kubernetes offers a perfect set of abstractions to make this thinking practical.