Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Uhm. I'm not using containers much so I'm not up-to-date with best practices, but I recall a solution involving a "shared volume" for containerazed database to store data in. Is this approach wrong?


Yes, because when (not if) your container crashes, your data is gone.


Nope, that is the problem that mounts and shared volumes solve.

At that point you can argue there is no point in using a container, but your statement is false.


Mounts and shared volumes are fine, if you can guarantee that the container is going to be scheduled on this specific machine, where the given filesystem lives.

If you can't guarantee that, you are going into the world of NFS (which databases do not like much) or iSCSI, or, if you have distributed storage, into the world of glusterfs, ceph or something similar.

It's much simpler to just set up a database server (or cluster) and live with that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: