{"action":"opened","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5336","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5336/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5336/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/5336/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/5336","id":60740394,"number":5336,"title":"Scheduler to optimistically use binding info","user":{"login":"erictune","id":8105590,"avatar_url":"https://avatars.githubusercontent.com/u/8105590?v=3","gravatar_id":"","url":"https://api.github.com/users/erictune","html_url":"https://github.com/erictune","followers_url":"https://api.github.com/users/erictune/followers","following_url":"https://api.github.com/users/erictune/following{/other_user}","gists_url":"https://api.github.com/users/erictune/gists{/gist_id}","starred_url":"https://api.github.com/users/erictune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erictune/subscriptions","organizations_url":"https://api.github.com/users/erictune/orgs","repos_url":"https://api.github.com/users/erictune/repos","events_url":"https://api.github.com/users/erictune/events{/privacy}","received_events_url":"https://api.github.com/users/erictune/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-11T22:25:06Z","updated_at":"2015-03-11T22:25:06Z","closed_at":null,"body":"The scheduler binds a pod A to machine M.\r\nThen it tries pod B to machine M.\r\nIn trying this second binding, it uses stale information about A, in particular, that it is not yet bound to a machine.  \r\nSometime later, it \"learns\" about A being bound to M via watch.\r\n\r\nIt should assume all bindings it makes happen so as to avoid conflicts.\r\n\r\nIt will be very common for the scheduler to miss hostPort conflicts once I remove the check.\r\n\r\nAlso, spreading will work poorly.  It may put A and B on same machine.\r\n\r\n(Note that optimism is bad for anti-conflicts, but we don't have those I think).\r\n"}}