Turning MongoDB Off Inside a Docker Container Causes 100% CPU

I have been pulling my hair for this day for several days, to the point that I am throwing it here. Using docker-compose, I start several containers, one of which starts mongodb using CMD ["/ usr / bin / mongod"] However, when I close the container using docker stop, the mongod process accepts a 100% processor and keeps running forever, unable to kill him. When parent processes are killed, the mongod process becomes a child of the init element, but in the same state. Mongodb writes that it is closed with error code 0.

Version for dockers: 17.04.0-ce Version for dockers: 1.11.2

What I have tried so far:

  • different linux distributions
  • supervisord in mongod handling container
  • added - to the docker daemon
  • run mongod as fork
  • find the kernel update, but 3.14 seems to be the last one (works on Odroid C2)
  • different storage drivers, but only aufs works (overlay requires a higher kernel)

All without any joy.

enter image description here

+5
source share
1 answer

After upgrading the kernel to 4.x on Odroid-C2 using this link, the problem disappeared.

0
source

Source: https://habr.com/ru/post/1267292/


All Articles