Ryan2207 Posted July 18, 2016 Share Posted July 18, 2016 Hello Is it possible to set allocated hardware resources to a docker container, extra cores ram etc or will it just take the resources it needs ? Kind Regards Ryan Quote Link to comment
lionelhutz Posted July 18, 2016 Share Posted July 18, 2016 There is a sticky about pinning a specific core to a docker, but I think that is about it. They just use the ram they need. Quote Link to comment
Squid Posted July 18, 2016 Share Posted July 18, 2016 Hello Is it possible to set allocated hardware resources to a docker container, extra cores ram etc or will it just take the resources it needs ? Kind Regards Ryan You can limit everything. Cores, memory, etc. To limit cores add to extra parameters: --cpuset-cpus=0 to limit memory --memory=4G Additionally you can prioritize one docker app's cpu resources over another. Google docker run for a complete breakdown of everything possible. Personally, I think its in everyone's best interests to limit the resources of every app with the exception of Plex 1 Quote Link to comment
testdasi Posted July 18, 2016 Share Posted July 18, 2016 Additionally you can prioritize one docker app's cpu resources over another. Google docker run for a complete breakdown of everything possible. I read the docker run reference but still can't figure out how to priority one docker cpu over another. Please can you share how. Is it the --cpu-shares? Just based on the information provided on the reference, I set Handbrake to 128, Plex to 8192 and the rest to 1024. Quote Link to comment
Squid Posted July 18, 2016 Share Posted July 18, 2016 Additionally you can prioritize one docker app's cpu resources over another. Google docker run for a complete breakdown of everything possible. I read the docker run reference but still can't figure out how to priority one docker cpu over another. Please can you share how. Is it the --cpu-shares? Just based on the information provided on the reference, I set Handbrake to 128, Plex to 8192 and the rest to 1024. Iirc everything is based upon 1024. Or setting 2 containers to 512 will each allow them to max out at 50% if they both want to run full bore. If only one wants to run full bore it will max out at 100% there is no way to prioritize or set a max cpu usage for a container. Things get more complicated using 3 or more containers but the concept is the same Sent from my LG-D852 using Tapatalk Quote Link to comment
Squid Posted July 18, 2016 Share Posted July 18, 2016 Time permitting I'll try and bang together a post explaining exactly how everything is supposed to work. Quote Link to comment
rutherford Posted May 21, 2020 Share Posted May 21, 2020 by the way: extra parameters are under Docker settings for the specific Docker. Change Basic View to Advanced View toggle in top right. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.