M
M
mashincode2020-06-25 12:11:11
Docker
mashincode, 2020-06-25 12:11:11

Django in docker starts running slower from time to time?

I have a docker-compose build with nginx python postgress celery and rabitmq, the fact is that everything works, but every day I do docker-compose down and up, as the site starts to work very slowly and after such a manipulation everything returns to normal , how to understand what is starting to happen inside the container, maybe there is a memory leak somewhere, docker fills all the space with logs? I can't understand because I go to bed, wake up and see a picture that everything is terribly slow

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
mashincode, 2020-06-29
@mashincode

The solution was to remove True in Django Debug, google celery djangp memory leak

D
Dimonchik, 2020-06-25
@dimonchik2013

logs and numbers (parameters),
memory consuming (and prots) - not as django as Celery with Postgre can get stuck, for example, on an insert

D
Dmitry, 2020-06-26
@dmtrrr

Look at the database first, bases in a container require special squats.
If all this is running on one machine, then you need to think about moving the database to a separate host.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question