I wrote a program which splits up logs via grok and sends them directly into elasticsearch.
If I run it on any normal Linux machine, it’s working like a charme. As soon as I try to run it in a docker container it is slow as hell.
Any idea how to check what is causing this behavior?
If anyone is interested in the code, it is on github: Github
If I’m right you’re using file access and if you’re doing a lot of file operations within a mounted directory it could slow down due to the fs-implementation you’re using in you docker daemon.
If you’re testing the docker container in a MacOS environment, it could get even slower because of the filesystem implementation that’s used.