Re:Thou shalt not run a database inside a container
by ghshephard on Wednesday January 13, 2021 @01:40PM
(#25766215)
I'm very familiar with an environment that has about 120 TByte of databases - Mongo and Postgres - 100% run in containers over about 75 namespaces in GKE. Handles being restarted without issue.
[ Parent
| on HN ]
Re:Thou shalt not run a database inside a container
by yen223 on Wednesday January 13, 2021 @03:57PM
(#25767871)
What benefits do they get from running databases in Kubernetes?
Re:Thou shalt not run a database inside a container
by ghshephard on Wednesday January 13, 2021 @04:49PM
(#25768396)
Once you containerize every part of your application stack, you can simplify support/deployment to a single model, and you get the advantages of everything that containerization has to offer - dynamic scaling, robust recovery, trivial application migration, etc... without having to build in special rules/processes for one-off elements. The database then become yet one more component in your environment that isn't treated any differently than any other component - with the possible exception of requesting that it be scheduled less ephemerally than other components.
I've seen it work in production for 3+ years - And I don't recall there ever being an issue with the databases being in a container - it's hard to imagine them being anywhere else.
Re:Thou shalt not run a database inside a container
by postalrat on Wednesday January 13, 2021 @06:17PM
(#25769377)
After reading that I start thinking everything would be better containerized. So why not run kubernetes nodes in containers?
Re:Thou shalt not run a database inside a container
by predakanga on Wednesday January 13, 2021 @07:43PM
(#25770189)
You can!
KinD[0] is a project to do just that, although production workloads are an explicit non-goal.