Wednesday, May 30, 2018

Databases on Kubernetes: How to Recover from Failures and Scale Up and Down in a Few Line Commands

DZone Database Zone
Databases on Kubernetes: How to Recover from Failures and Scale Up and Down in a Few Line Commands
Databases on Kubernetes: How to Recover from Failures and Scale Up and Down in a Few Line Commands

A month ago, Kubernetes launched a beta for Local Persistent Volumes. In summary, it means that if a Pod using a local disk get killed, no data will be lost (let's ignore edge cases here). The secret is that a new Pod will be rescheduled to run on the same node, leveraging the disk which already exists there.

Of course, its downside is that we are tying our Pod to a specific node, but if we consider the time and effort spent on loading a copy of the data somewhere else, being able to leverage the same disk become a big advantage.

No comments:

Fun With SQL: Functions in Postgres

DZone Database Zone Fun With SQL: Functions in Postgres In our previous  Fun with SQL  post on the  Citus Data  blog, we covered w...