HackerTrans
TopNewTrendsCommentsPastAskShowJobs

enisoc

no profile record

comments

enisoc
·11 tahun yang lalu·discuss
=== Shameful Plug ===

If you're interested in running MySQL inside Kubernetes, check out Vitess:

http://vitess.io/resources/presentations.html

We still have work to do, but we're not stopping at the easy part. We show you how to do replication, sharding, and even live re-sharding of MySQL inside Kubernetes. We're working on integrating with Outbrain's Orchestrator for automated failover, and our VTGate query routing service means those failovers will be transparent to your app.

We are admittedly running into the same limits in Kubernetes around using replication controllers for datastores. But Kubernetes is improving very quickly, and there's a reason for that. They have a cheatsheet of one way all of this can come together successfully in the form of Borg:

http://research.google.com/pubs/pub43438.html

At YouTube, we run our main MySQL databases (the ones with tables for users, videos, views, etc) inside containers with local storage. Of course, Borg has a much more mature scheduler, which gives stronger safety guarantees for replicas. My point is that we've proven this approach can work at scale for datastores in a container cluster, and through Vitess we're trying to bring the same capabilities to Kubernetes.