0

I am trying to stuff as many lamp stack containers inside docker as possible that are running wordpress. According to many sources it is possible to stuff over 500 containers on a docker server, for example:

However, they most likely discuss empty docker containers and not LAMP stack ones (apache+mysql).

I have managed to stuff 120 containers running wordpress and don't see a siginifcant issue with RAM or CPU. I should be able to fit more but performance goes downhill in response times after that point.

A colleague has mentioned that mysql performs significant I/O operations which could cause issues with file descriptors / open file limits / and fs.io.max.nr .

Could this be the case? Could it be that the number of open files of each containers limits the total number of containers?

Community
  • 1
  • 1
Menelaos
  • 23,508
  • 18
  • 90
  • 155
  • Have you checked the things your colleague has suggested? For instance, have you run `df -i` to see if you are running out of inodes? – errata May 31 '15 at 17:03
  • You should look at https://goldmann.pl/blog/2014/09/11/resource-management-in-docker/ and http://domino.research.ibm.com/library/cyberdig.nsf/papers/0929052195DD819C85257D2300681E7B/$File/rc25482.pdf and keep in mind your host has some limit liek I/O bandwith, CPU... – user2915097 May 31 '15 at 18:55

0 Answers0