{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15531","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15531/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15531/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15531/events","html_url":"https://github.com/kubernetes/kubernetes/issues/15531","id":111122636,"number":15531,"title":"Take pod number into consideration for scheduling algorithm in `priority` stage","user":{"login":"dalanlan","id":5979704,"avatar_url":"https://avatars.githubusercontent.com/u/5979704?v=3","gravatar_id":"","url":"https://api.github.com/users/dalanlan","html_url":"https://github.com/dalanlan","followers_url":"https://api.github.com/users/dalanlan/followers","following_url":"https://api.github.com/users/dalanlan/following{/other_user}","gists_url":"https://api.github.com/users/dalanlan/gists{/gist_id}","starred_url":"https://api.github.com/users/dalanlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalanlan/subscriptions","organizations_url":"https://api.github.com/users/dalanlan/orgs","repos_url":"https://api.github.com/users/dalanlan/repos","events_url":"https://api.github.com/users/dalanlan/events{/privacy}","received_events_url":"https://api.github.com/users/dalanlan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/kind/feature","name":"kind/feature","color":"c7def8"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/priority/P2","name":"priority/P2","color":"fbca04"},{"url":"https://api.github.com/repos/kubernetes/kubernetes/labels/team/control-plane","name":"team/control-plane","color":"d2b48c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/16","html_url":"https://github.com/kubernetes/kubernetes/milestones/v1.2-candidate","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones/16/labels","id":1278500,"number":16,"title":"v1.2-candidate","description":"Things to consider for next minor release.","creator":{"login":"bgrant0607","id":7725777,"avatar_url":"https://avatars.githubusercontent.com/u/7725777?v=3","gravatar_id":"","url":"https://api.github.com/users/bgrant0607","html_url":"https://github.com/bgrant0607","followers_url":"https://api.github.com/users/bgrant0607/followers","following_url":"https://api.github.com/users/bgrant0607/following{/other_user}","gists_url":"https://api.github.com/users/bgrant0607/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrant0607/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrant0607/subscriptions","organizations_url":"https://api.github.com/users/bgrant0607/orgs","repos_url":"https://api.github.com/users/bgrant0607/repos","events_url":"https://api.github.com/users/bgrant0607/events{/privacy}","received_events_url":"https://api.github.com/users/bgrant0607/received_events","type":"User","site_admin":false},"open_issues":115,"closed_issues":5,"state":"open","created_at":"2015-08-29T03:54:34Z","updated_at":"2015-10-14T05:16:19Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-10-13T07:38:21Z","updated_at":"2015-10-14T09:07:54Z","closed_at":null,"body":"Currently we only consider cpu and memory resource (being requested) when calculating *priority* score for each node in `LeastRequestedPriority`.\r\nSeems that pod number should be a factor to consider during scheduling since it has the upper bound set by kubelet. \r\nIs there any particular reason to avoid this?\r\n/cc @davidopp "},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/147984315","html_url":"https://github.com/kubernetes/kubernetes/issues/15531#issuecomment-147984315","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/15531","id":147984315,"user":{"login":"HaiyangDING","id":11399486,"avatar_url":"https://avatars.githubusercontent.com/u/11399486?v=3","gravatar_id":"","url":"https://api.github.com/users/HaiyangDING","html_url":"https://github.com/HaiyangDING","followers_url":"https://api.github.com/users/HaiyangDING/followers","following_url":"https://api.github.com/users/HaiyangDING/following{/other_user}","gists_url":"https://api.github.com/users/HaiyangDING/gists{/gist_id}","starred_url":"https://api.github.com/users/HaiyangDING/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaiyangDING/subscriptions","organizations_url":"https://api.github.com/users/HaiyangDING/orgs","repos_url":"https://api.github.com/users/HaiyangDING/repos","events_url":"https://api.github.com/users/HaiyangDING/events{/privacy}","received_events_url":"https://api.github.com/users/HaiyangDING/received_events","type":"User","site_admin":false},"created_at":"2015-10-14T09:07:54Z","updated_at":"2015-10-14T09:07:54Z","body":"@dalanlan @davidopp \r\n\r\nJust clarify something that I understand, correct me if wrong.\r\n\r\nBy default, the resource request defaults to resource limit if resource limit is specified. However, if resource limit is not set, then resource request would not be set either.\r\n\r\nThis is why we need [limit-range](https://github.com/kubernetes/kubernetes/tree/master/docs/admin/limitrange). Unfortunately, this doc is a bit out-of-date and I have a PR to update this at #13724. Basically, if you set a limit-range, then the resource request/limit would have their default value if not specified by the user."}}