{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/mig/issues/226","repository_url":"https://api.github.com/repos/mozilla/mig","labels_url":"https://api.github.com/repos/mozilla/mig/issues/226/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/mig/issues/226/comments","events_url":"https://api.github.com/repos/mozilla/mig/issues/226/events","html_url":"https://github.com/mozilla/mig/issues/226","id":152834156,"number":226,"title":"on linux/systemd the mig-agent.service file could use cgroups","user":{"login":"gdestuynder","id":956866,"avatar_url":"https://avatars.githubusercontent.com/u/956866?v=3","gravatar_id":"","url":"https://api.github.com/users/gdestuynder","html_url":"https://github.com/gdestuynder","followers_url":"https://api.github.com/users/gdestuynder/followers","following_url":"https://api.github.com/users/gdestuynder/following{/other_user}","gists_url":"https://api.github.com/users/gdestuynder/gists{/gist_id}","starred_url":"https://api.github.com/users/gdestuynder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdestuynder/subscriptions","organizations_url":"https://api.github.com/users/gdestuynder/orgs","repos_url":"https://api.github.com/users/gdestuynder/repos","events_url":"https://api.github.com/users/gdestuynder/events{/privacy}","received_events_url":"https://api.github.com/users/gdestuynder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-03T17:46:36Z","updated_at":"2016-05-03T17:46:36Z","closed_at":null,"body":"Using cgroups in the service file would allow us to lower mig-agent's priority (specially for I/O) as part of ensuring MIG never takes too many resources.\r\nThe settings are easy and nearly free so this seems like a good idea/\"can't hurt\" kind of safety mechanism.\r\n\r\nFor ex (see man systemd.directives and systemd.resource-control):\r\nMemoryLimit=200M\r\nCPUQuota=20%\r\nBlockIOWeight=400"}}