News for hackers. Stuff that matters.
Re:Borg, Omega, Kubernetes: Lessons learned from container m... by justinsb on Friday March 04, 2016 @08:12AM (#11223485)
Your limitation is your database. Getting MySQL or Postgres to run on multiple machines is not trivial. You can do Master/Slave with failover (manual or automated), or try to find a clustered SQL database (Galera, or what I was working on at FathomDB).

If you have a single node database, Kubernetes can make sure that only a single pod is running at any one time, attached to your volume. It will automatically recover if e.g. a node crashes.

If you have a distributed SQL database, Kubernetes can make sure the right volumes get attached to your pods. (The syntax is a little awkward right now, because you have to create N replication controllers, but PetSets will fix this in 1.3). Each pod will automatically be recovered by Kubernetes, but it is up to your distributed database to remain available as the pods crash and restart.

In short: Kubernetes does the right thing here, but Kubernetes can't magically make a single-machine database into a distributed one.

Re:Borg, Omega, Kubernetes: Lessons learned from container m... by alexc05 on Friday March 04, 2016 @01:17PM (#11225703)
This was very helpful. Thank you.