{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/11074","labels_url":"https://api.github.com/repos/docker/docker/issues/11074/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/11074/comments","events_url":"https://api.github.com/repos/docker/docker/issues/11074/events","html_url":"https://github.com/docker/docker/pull/11074","id":59327005,"number":11074,"title":"feature: add option for changing docker daemon cpu shares","user":{"login":"HammerOfThor","id":1203611,"avatar_url":"https://avatars.githubusercontent.com/u/1203611?v=3","gravatar_id":"","url":"https://api.github.com/users/HammerOfThor","html_url":"https://github.com/HammerOfThor","followers_url":"https://api.github.com/users/HammerOfThor/followers","following_url":"https://api.github.com/users/HammerOfThor/following{/other_user}","gists_url":"https://api.github.com/users/HammerOfThor/gists{/gist_id}","starred_url":"https://api.github.com/users/HammerOfThor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HammerOfThor/subscriptions","organizations_url":"https://api.github.com/users/HammerOfThor/orgs","repos_url":"https://api.github.com/users/HammerOfThor/repos","events_url":"https://api.github.com/users/HammerOfThor/events{/privacy}","received_events_url":"https://api.github.com/users/HammerOfThor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/1-design-review","name":"1-design-review","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-28T05:41:18Z","updated_at":"2015-03-08T02:16:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/11074","html_url":"https://github.com/docker/docker/pull/11074","diff_url":"https://github.com/docker/docker/pull/11074.diff","patch_url":"https://github.com/docker/docker/pull/11074.patch"},"body":"add Cgroup support for changing docker daemon cpu shares, this will\r\nalso restrict cpu usage of all the containers.\r\n\r\ntwo reasons why this option is necessary:\r\n\r\n1. docker daemon SHOULD belong to \"docker\" cgroup logically, not the\r\nroot cgroup as the current version does, and we should supply the capability\r\nto restrict the docker daemon resources.\r\n\r\n2. now we can restrict the cpu shares and cpuset for each container,\r\nbut we can't restrict sum of all the containers. To restrict the total\r\nusage of all running containers is useful because we can enable docker\r\ncontainers can get enough but not too much resource, including cpu,\r\nmemory etc.\r\n\r\nthis patch will start Cgroup support for docker daemon from cpu-shares.\r\n\r\nSigned-off-by: Zhang Wei <zhangwei555@huawei.com>"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/77728475","html_url":"https://github.com/docker/docker/pull/11074#issuecomment-77728475","issue_url":"https://api.github.com/repos/docker/docker/issues/11074","id":77728475,"user":{"login":"HammerOfThor","id":1203611,"avatar_url":"https://avatars.githubusercontent.com/u/1203611?v=3","gravatar_id":"","url":"https://api.github.com/users/HammerOfThor","html_url":"https://github.com/HammerOfThor","followers_url":"https://api.github.com/users/HammerOfThor/followers","following_url":"https://api.github.com/users/HammerOfThor/following{/other_user}","gists_url":"https://api.github.com/users/HammerOfThor/gists{/gist_id}","starred_url":"https://api.github.com/users/HammerOfThor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HammerOfThor/subscriptions","organizations_url":"https://api.github.com/users/HammerOfThor/orgs","repos_url":"https://api.github.com/users/HammerOfThor/repos","events_url":"https://api.github.com/users/HammerOfThor/events{/privacy}","received_events_url":"https://api.github.com/users/HammerOfThor/received_events","type":"User","site_admin":false},"created_at":"2015-03-08T02:16:09Z","updated_at":"2015-03-08T02:16:09Z","body":"ping @jfrazelle , what do you think of this feature, any suggestions? "}}