B
B
Berkutman2020-07-10 09:16:13
Docker
Berkutman, 2020-07-10 09:16:13

Large database on docker?

Hello everyone, while I smoke docker, a question arose with real life. How good is the idea to deploy a large high load database inside docker?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Shitskov, 2020-07-10
@Zarom

Docker is well suited for staitless applications.
And what advantages will remain for the database? It will no longer be possible to take it and run it on another host without data on the disk - portability is lost.
With a high load, volume mounts will also add a bottleneck.
Those. in practice, databases are most often deployed outside the docker / kubernetes cluster. Perhaps someone will name in the answers the advantages of the database in the docker.

S
shurshur, 2020-07-10
@shurshur

Don't use data containers, it's inherently bad practice, debatable even in the rare cases where they are used.
Data containers were used at a time when user volumes had not yet been brought into docker, then the typical way to create one that does not explicitly belong to any "heavy" container was to create a lightweight container that does nothing, from which everyone pulled data to itself.
Now you just do volume and that's it.But for the database there is no point in doing volume, it's easier and more reliable to forward the physical directory.

S
Sergey Pankov, 2020-07-10
@trapwalker

It's a good idea to do everything in docker. In many ways, it simplifies life during deployment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question