A
A
akdes2017-06-19 17:24:52
MySQL
akdes, 2017-06-19 17:24:52

Several docker-composes eat up a lot of memory, is there a way out?

Good day to all.
Under the staging system, we took one t2.micro-Instance (AWS - 1GB Ram). everything is fine until I want to raise another (fourth) micro service, with my own muscle and nginx. the muscle did not rise.
docker-compose up -d said that everything starts, but the container with the muscle falls off a second after starting.
In this regard, I upgraded to 2GB of RAM, so far it has helped - 5 projects are working and eating 1.2 gigs at idle, without load.
Can you tell me how to optimize?
All projects from one mysql:5.7-Image
Many thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nazar Mokrinsky, 2017-06-19
@nazarpc

docker-compose only launches containers, doesn't eat anything at all. The overhead of Docker is also negligible. The thing is that you are running several DB instances, and these friends are very fond of memory. Nginx doesn't eat much. You can tweak the MySQL settings in order to eat less memory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question