{"action":"created","issue":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/375","labels_url":"https://api.github.com/repos/mesosphere/marathon/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/mesosphere/marathon/issues/375/comments","events_url":"https://api.github.com/repos/mesosphere/marathon/issues/375/events","html_url":"https://github.com/mesosphere/marathon/issues/375","id":37035902,"number":375,"title":"Support for arbitrary resource types","user":{"login":"ConnorDoyle","id":379372,"avatar_url":"https://avatars.githubusercontent.com/u/379372?v=3","gravatar_id":"","url":"https://api.github.com/users/ConnorDoyle","html_url":"https://github.com/ConnorDoyle","followers_url":"https://api.github.com/users/ConnorDoyle/followers","following_url":"https://api.github.com/users/ConnorDoyle/following{/other_user}","gists_url":"https://api.github.com/users/ConnorDoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/ConnorDoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ConnorDoyle/subscriptions","organizations_url":"https://api.github.com/users/ConnorDoyle/orgs","repos_url":"https://api.github.com/users/ConnorDoyle/repos","events_url":"https://api.github.com/users/ConnorDoyle/events{/privacy}","received_events_url":"https://api.github.com/users/ConnorDoyle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mesosphere/marathon/milestones/12","html_url":"https://github.com/mesosphere/marathon/milestones/Backlog","labels_url":"https://api.github.com/repos/mesosphere/marathon/milestones/12/labels","id":870039,"number":12,"title":"Backlog","description":"","creator":{"login":"ConnorDoyle","id":379372,"avatar_url":"https://avatars.githubusercontent.com/u/379372?v=3","gravatar_id":"","url":"https://api.github.com/users/ConnorDoyle","html_url":"https://github.com/ConnorDoyle","followers_url":"https://api.github.com/users/ConnorDoyle/followers","following_url":"https://api.github.com/users/ConnorDoyle/following{/other_user}","gists_url":"https://api.github.com/users/ConnorDoyle/gists{/gist_id}","starred_url":"https://api.github.com/users/ConnorDoyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ConnorDoyle/subscriptions","organizations_url":"https://api.github.com/users/ConnorDoyle/orgs","repos_url":"https://api.github.com/users/ConnorDoyle/repos","events_url":"https://api.github.com/users/ConnorDoyle/events{/privacy}","received_events_url":"https://api.github.com/users/ConnorDoyle/received_events","type":"User","site_admin":false},"open_issues":152,"closed_issues":12,"state":"open","created_at":"2014-11-17T19:11:38Z","updated_at":"2015-07-24T10:55:59Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2014-07-02T23:58:28Z","updated_at":"2015-07-24T18:18:09Z","closed_at":null,"body":"Apache Mesos allows user-defined resource types via the  \r\n`--resources=name(role):value;name(role):value...`  \r\nargument to the `mesos-slave` program.  It would be great if there were a way to require these as part of an app's definition in the Marathon API, in addition to the standard resource types (`cpus`, `mem`, `disk`, `ports`) already supported."},"comment":{"url":"https://api.github.com/repos/mesosphere/marathon/issues/comments/124607323","html_url":"https://github.com/mesosphere/marathon/issues/375#issuecomment-124607323","issue_url":"https://api.github.com/repos/mesosphere/marathon/issues/375","id":124607323,"user":{"login":"syogesh","id":2312935,"avatar_url":"https://avatars.githubusercontent.com/u/2312935?v=3","gravatar_id":"","url":"https://api.github.com/users/syogesh","html_url":"https://github.com/syogesh","followers_url":"https://api.github.com/users/syogesh/followers","following_url":"https://api.github.com/users/syogesh/following{/other_user}","gists_url":"https://api.github.com/users/syogesh/gists{/gist_id}","starred_url":"https://api.github.com/users/syogesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syogesh/subscriptions","organizations_url":"https://api.github.com/users/syogesh/orgs","repos_url":"https://api.github.com/users/syogesh/repos","events_url":"https://api.github.com/users/syogesh/events{/privacy}","received_events_url":"https://api.github.com/users/syogesh/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T18:18:08Z","updated_at":"2015-07-24T18:18:08Z","body":"I actually only really wanted support for custom scalar resources specifically a network bandwidth scalar resource. In the discussion on how to implement it seemed like the maintainers wanted all the custom resources in one request so I implemented it. As for syntax I prefer something like this but I'm pretty flexible.\r\n```\r\n\"requiredCustomResources\": [\r\n    {\r\n          \"name\": \"gpus\",\r\n          \"type\": \"scalar\",\r\n          \"amount\": 16\r\n    }\r\n]\r\n```"}}