-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CPU/RAM restrictions are not enforced #4
Comments
Actually, Fogify translates its resources model to the constraints at the
CPU-limit is the CPU limit that Fogify will provide at docker-compose file for the respective service. According to the memory constraints, that is really odd. I know docker has some issues with java containers, and the memory limits but I am not sure if this is the case. Can you provide more information about the service that you would like to run? |
OK, so I did more tests and at least with respect to RAM, you're right! It seems I was misguided, because if I run the
So it seems to be OK. Although I am still confused how the database I'm running within the container could even start with only 100MB of RAM available. It shouldn't be possible and I'm not certain what docker does when a container reaches its declared limits. But this is not an issue with fogify anyway. With respect to CPU, it's a bit more complicated I think. Please take a look at this repo: https://github.com/Datalab-AUTH/fogify-db-benchmarks First, build the "stress" docker image:
You can edit the CMD line in the Dockerfile to change the number of CPUs (--cpus) and RAM (--vm-bytes) to match your PC first. Then you can run the
If at the same time I run
The RAM indeed seems limited, but the CPU seems that isn't (~400% in the first line). If I monitor the host system with something like But I understand that there may be nothing that you can do from within fogify and this is probably an issue with docker itself. So feel free to close this if you think so too. |
I'm trying to set CPU and RAM restrictions for my docker containers but they don't seem to really apply. As far as I can tell, fogify only checks the sum of resources against the host system on startup, instead of actually enforcing them. There are multiple issues with this.
This is also connected to #3 I guess.
The text was updated successfully, but these errors were encountered: