{"id":1124,"date":"2021-10-04T09:45:27","date_gmt":"2021-10-04T07:45:27","guid":{"rendered":"https:\/\/www.rocworks.at\/wordpress\/?p=1124"},"modified":"2021-10-04T09:45:27","modified_gmt":"2021-10-04T07:45:27","slug":"docker-cpu-limits","status":"publish","type":"post","link":"https:\/\/www.rocworks.at\/wordpress\/?p=1124","title":{"rendered":"Docker CPU Limits&#8230;"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If your docker container do not use all your cpu&#8217;s, it may be the case that limits are set in \/etc\/systemd\/system\/docker.slice. To apply changed settings I had to reboot my machine (just a restart of docker didn&#8217;t change the behaviour).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cat \/etc\/systemd\/system\/docker.slice \n\n&#91;Unit]\nDescription=Docker Systemd Slice\nBefore=slices.target\n\n&#91;Slice]\n<strong>CPUQuota=200%\n<\/strong>MemoryAccounting=true\nCPUAccounting=true\n<strong>MemoryLimit=1280M\n<\/strong>#StartupCPUWeight=<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If your docker container do not use all your cpu&#8217;s, it may be the case that limits are set in \/etc\/systemd\/system\/docker.slice. To apply changed settings I had to reboot my machine (just a restart of docker didn&#8217;t change the behaviour).<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1124","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1124","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1124"}],"version-history":[{"count":1,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1124\/revisions"}],"predecessor-version":[{"id":1125,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1124\/revisions\/1125"}],"wp:attachment":[{"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1124"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rocworks.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}