{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/162","labels_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/162/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/162/comments","events_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/162/events","html_url":"https://github.com/jenkinsci/mesos-plugin/pull/162","id":104861338,"number":162,"title":"prevent offer starvation","user":{"login":"felixb","id":192135,"avatar_url":"https://avatars.githubusercontent.com/u/192135?v=3","gravatar_id":"","url":"https://api.github.com/users/felixb","html_url":"https://github.com/felixb","followers_url":"https://api.github.com/users/felixb/followers","following_url":"https://api.github.com/users/felixb/following{/other_user}","gists_url":"https://api.github.com/users/felixb/gists{/gist_id}","starred_url":"https://api.github.com/users/felixb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixb/subscriptions","organizations_url":"https://api.github.com/users/felixb/orgs","repos_url":"https://api.github.com/users/felixb/repos","events_url":"https://api.github.com/users/felixb/events{/privacy}","received_events_url":"https://api.github.com/users/felixb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-04T09:56:32Z","updated_at":"2015-10-27T21:44:31Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/mesos-plugin/pulls/162","html_url":"https://github.com/jenkinsci/mesos-plugin/pull/162","diff_url":"https://github.com/jenkinsci/mesos-plugin/pull/162.diff","patch_url":"https://github.com/jenkinsci/mesos-plugin/pull/162.patch"},"body":"this change prevents offer starvation by:\r\n\r\n* rejecting offers for longer period if no slave is queued\r\n* calling reviveOffers when adding a slave to queue\r\n\r\nthis is necessary when running a lot of frameworks on a mesos cluster.\r\nthe rejectOfferDuration is configurable and defaults to 10min.\r\n\r\nthis is basically the same change made in marathon and chronos a few weeks ago.\r\nsee https://github.com/mesosphere/marathon/pull/1949 for further details."},"comment":{"url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/comments/151654718","html_url":"https://github.com/jenkinsci/mesos-plugin/pull/162#issuecomment-151654718","issue_url":"https://api.github.com/repos/jenkinsci/mesos-plugin/issues/162","id":151654718,"user":{"login":"vinodkone","id":48131,"avatar_url":"https://avatars.githubusercontent.com/u/48131?v=3","gravatar_id":"","url":"https://api.github.com/users/vinodkone","html_url":"https://github.com/vinodkone","followers_url":"https://api.github.com/users/vinodkone/followers","following_url":"https://api.github.com/users/vinodkone/following{/other_user}","gists_url":"https://api.github.com/users/vinodkone/gists{/gist_id}","starred_url":"https://api.github.com/users/vinodkone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinodkone/subscriptions","organizations_url":"https://api.github.com/users/vinodkone/orgs","repos_url":"https://api.github.com/users/vinodkone/repos","events_url":"https://api.github.com/users/vinodkone/events{/privacy}","received_events_url":"https://api.github.com/users/vinodkone/received_events","type":"User","site_admin":false},"created_at":"2015-10-27T21:44:31Z","updated_at":"2015-10-27T21:44:31Z","body":"Note that we exposed a new call in mesos called suppressOffers() that can suppress offers altogether instead of doing it one offer at a time as you did here. How about leveraging that instead?"}}