{"action":"opened","number":2117,"pull_request":{"url":"https://api.github.com/repos/kubernetes/contrib/pulls/2117","id":96421225,"html_url":"https://github.com/kubernetes/contrib/pull/2117","diff_url":"https://github.com/kubernetes/contrib/pull/2117.diff","patch_url":"https://github.com/kubernetes/contrib/pull/2117.patch","issue_url":"https://api.github.com/repos/kubernetes/contrib/issues/2117","number":2117,"state":"open","locked":false,"title":"Cluster Autoscaler: Support other scale down poilcies","user":{"login":"andrewsykim","id":12699319,"avatar_url":"https://avatars.githubusercontent.com/u/12699319?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewsykim","html_url":"https://github.com/andrewsykim","followers_url":"https://api.github.com/users/andrewsykim/followers","following_url":"https://api.github.com/users/andrewsykim/following{/other_user}","gists_url":"https://api.github.com/users/andrewsykim/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewsykim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewsykim/subscriptions","organizations_url":"https://api.github.com/users/andrewsykim/orgs","repos_url":"https://api.github.com/users/andrewsykim/repos","events_url":"https://api.github.com/users/andrewsykim/events{/privacy}","received_events_url":"https://api.github.com/users/andrewsykim/received_events","type":"User","site_admin":false},"body":"Seems like cluster autoscaler terminates the first valid candidate which works for most cases. There are situations where we might want to terminate the oldest nodes (like gradually upgrading cluster to new kubernetes version) or the least utilized node (to reduce rescheduling overhead). \r\n\r\nI wrote some preliminary code to get some initial feedback. After approval I will attempt to add some unit/integration/e2e tests for the different scaling policies (possibly in another PR).","created_at":"2016-12-04T04:38:21Z","updated_at":"2016-12-04T04:38:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/contrib/pulls/2117/commits","review_comments_url":"https://api.github.com/repos/kubernetes/contrib/pulls/2117/comments","review_comment_url":"https://api.github.com/repos/kubernetes/contrib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/contrib/issues/2117/comments","statuses_url":"https://api.github.com/repos/kubernetes/contrib/statuses/a8ee6dd78ca57520266c8bf4e3f542bfb9c67cbb","head":{"label":"Wattpad:support-scaling-policies","ref":"support-scaling-policies","sha":"a8ee6dd78ca57520266c8bf4e3f542bfb9c67cbb","user":{"login":"Wattpad","id":1958757,"avatar_url":"https://avatars.githubusercontent.com/u/1958757?v=3","gravatar_id":"","url":"https://api.github.com/users/Wattpad","html_url":"https://github.com/Wattpad","followers_url":"https://api.github.com/users/Wattpad/followers","following_url":"https://api.github.com/users/Wattpad/following{/other_user}","gists_url":"https://api.github.com/users/Wattpad/gists{/gist_id}","starred_url":"https://api.github.com/users/Wattpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wattpad/subscriptions","organizations_url":"https://api.github.com/users/Wattpad/orgs","repos_url":"https://api.github.com/users/Wattpad/repos","events_url":"https://api.github.com/users/Wattpad/events{/privacy}","received_events_url":"https://api.github.com/users/Wattpad/received_events","type":"Organization","site_admin":false},"repo":{"id":56529460,"name":"kubernetes-contrib","full_name":"Wattpad/kubernetes-contrib","owner":{"login":"Wattpad","id":1958757,"avatar_url":"https://avatars.githubusercontent.com/u/1958757?v=3","gravatar_id":"","url":"https://api.github.com/users/Wattpad","html_url":"https://github.com/Wattpad","followers_url":"https://api.github.com/users/Wattpad/followers","following_url":"https://api.github.com/users/Wattpad/following{/other_user}","gists_url":"https://api.github.com/users/Wattpad/gists{/gist_id}","starred_url":"https://api.github.com/users/Wattpad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wattpad/subscriptions","organizations_url":"https://api.github.com/users/Wattpad/orgs","repos_url":"https://api.github.com/users/Wattpad/repos","events_url":"https://api.github.com/users/Wattpad/events{/privacy}","received_events_url":"https://api.github.com/users/Wattpad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wattpad/kubernetes-contrib","description":"Fork of kubernetes/contrib","fork":true,"url":"https://api.github.com/repos/Wattpad/kubernetes-contrib","forks_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/forks","keys_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/teams","hooks_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/hooks","issue_events_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/issues/events{/number}","events_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/events","assignees_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/assignees{/user}","branches_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/branches{/branch}","tags_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/tags","blobs_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/languages","stargazers_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/stargazers","contributors_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/contributors","subscribers_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/subscribers","subscription_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/subscription","commits_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/contents/{+path}","compare_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/merges","archive_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/downloads","issues_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/issues{/number}","pulls_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/labels{/name}","releases_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/releases{/id}","deployments_url":"https://api.github.com/repos/Wattpad/kubernetes-contrib/deployments","created_at":"2016-04-18T17:53:43Z","updated_at":"2016-12-01T15:01:35Z","pushed_at":"2016-12-04T04:30:39Z","git_url":"git://github.com/Wattpad/kubernetes-contrib.git","ssh_url":"git@github.com:Wattpad/kubernetes-contrib.git","clone_url":"https://github.com/Wattpad/kubernetes-contrib.git","svn_url":"https://github.com/Wattpad/kubernetes-contrib","homepage":"","size":39213,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes:master","ref":"master","sha":"6a573a64da06043ce95afc5fde1de52890120c7d","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":40686014,"name":"contrib","full_name":"kubernetes/contrib","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars.githubusercontent.com/u/13629408?v=3","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/contrib","description":"This is a place for various components in the Kubernetes ecosystem that aren't part of the Kubernetes core. Consider creating a new repo instead.","fork":false,"url":"https://api.github.com/repos/kubernetes/contrib","forks_url":"https://api.github.com/repos/kubernetes/contrib/forks","keys_url":"https://api.github.com/repos/kubernetes/contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/contrib/teams","hooks_url":"https://api.github.com/repos/kubernetes/contrib/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/contrib/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/contrib/events","assignees_url":"https://api.github.com/repos/kubernetes/contrib/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/contrib/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/contrib/tags","blobs_url":"https://api.github.com/repos/kubernetes/contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/contrib/languages","stargazers_url":"https://api.github.com/repos/kubernetes/contrib/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/contrib/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/contrib/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/contrib/subscription","commits_url":"https://api.github.com/repos/kubernetes/contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/contrib/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/contrib/merges","archive_url":"https://api.github.com/repos/kubernetes/contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/contrib/downloads","issues_url":"https://api.github.com/repos/kubernetes/contrib/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/contrib/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/contrib/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/contrib/deployments","created_at":"2015-08-13T23:18:26Z","updated_at":"2016-12-03T21:00:32Z","pushed_at":"2016-12-03T03:13:12Z","git_url":"git://github.com/kubernetes/contrib.git","ssh_url":"git@github.com:kubernetes/contrib.git","clone_url":"https://github.com/kubernetes/contrib.git","svn_url":"https://github.com/kubernetes/contrib","homepage":"","size":92528,"stargazers_count":671,"watchers_count":671,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":666,"mirror_url":null,"open_issues_count":389,"forks":666,"open_issues":389,"watchers":671,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/2117"},"html":{"href":"https://github.com/kubernetes/contrib/pull/2117"},"issue":{"href":"https://api.github.com/repos/kubernetes/contrib/issues/2117"},"comments":{"href":"https://api.github.com/repos/kubernetes/contrib/issues/2117/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/2117/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/contrib/pulls/2117/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/contrib/statuses/a8ee6dd78ca57520266c8bf4e3f542bfb9c67cbb"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":43,"deletions":9,"changed_files":3}}
{"actor":{"display_login":"andrewsykim"}}