{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/autoscaler/issues/56","repository_url":"https://api.github.com/repos/kubernetes/autoscaler","labels_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/56/comments","events_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/56/events","html_url":"https://github.com/kubernetes/autoscaler/pull/56","id":227902535,"number":56,"title":"cluster-autoscaler: Resource slack for faster pod startup","user":{"login":"mumoshu","id":22009,"avatar_url":"https://avatars3.githubusercontent.com/u/22009?v=3","gravatar_id":"","url":"https://api.github.com/users/mumoshu","html_url":"https://github.com/mumoshu","followers_url":"https://api.github.com/users/mumoshu/followers","following_url":"https://api.github.com/users/mumoshu/following{/other_user}","gists_url":"https://api.github.com/users/mumoshu/gists{/gist_id}","starred_url":"https://api.github.com/users/mumoshu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mumoshu/subscriptions","organizations_url":"https://api.github.com/users/mumoshu/orgs","repos_url":"https://api.github.com/users/mumoshu/repos","events_url":"https://api.github.com/users/mumoshu/events{/privacy}","received_events_url":"https://api.github.com/users/mumoshu/received_events","type":"User","site_admin":false},"labels":[{"id":586404823,"url":"https://api.github.com/repos/kubernetes/autoscaler/labels/cncf-cla:%20yes","name":"cncf-cla: yes","color":"ededed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-05-11T07:34:30Z","updated_at":"2017-06-20T14:02:38Z","closed_at":"2017-06-20T14:02:38Z","pull_request":{"url":"https://api.github.com/repos/kubernetes/autoscaler/pulls/56","html_url":"https://github.com/kubernetes/autoscaler/pull/56","diff_url":"https://github.com/kubernetes/autoscaler/pull/56.diff","patch_url":"https://github.com/kubernetes/autoscaler/pull/56.patch"},"body":"Ref https://github.com/kubernetes/contrib/issues/2251\r\n\r\n* `--min-extra-capacity-rate=0.1` to make 10% resource slack\r\n\r\nA working example of CA running inside my test cluster with `--min-extra-capacity-rate=2`(=200%) with 2 node groups:\r\n```\r\nI0511 07:32:48.984318       1 aws_manager.go:187] Regenerating ASG information for kube5-Asg1-1EAU86YWRJGT6-Workers-5FQ8MWC9B6QG\r\nI0511 07:32:49.019873       1 aws_manager.go:187] Regenerating ASG information for kube5-Asg3-PTR2VK0YHXGP-Workers-W0KCGPQKD92H\r\nI0511 07:32:49.057607       1 resource_slack.go:156] Creating placeholder pods based on the following observations: cluster size = 3, cluster cpu sum = 6 cores, cluster memory sum = 12148524Ki, avg milli cpu per node = 2000, avg memory per node = 3.9GB, cluster total milli cpu = 6000, cluster total memory = 11.6GB, cluster extra milli cpu = 12000, cluster extra memory = 23.2GB, max pod milli cpu = 200, max pod memory = 0.3GB, remaining cluster extra milli cpu = 11800, remaining cluster extra memory = 22.9GB, min node milli cpu = 2000, min node memory = 3.9GB, milli cpu per extra placeholder pod = 200, memory per extra placeholder pod = 0.3GB, extra placeholder pods count = 59\r\nI0511 07:32:49.057786       1 resource_slack.go:191] Created 61 placeholder pods\r\nI0511 07:32:49.057851       1 resource_slack.go:205] Pod placeholder-largestcpu-200m-0MB is virtually scheduled on ip-10-0-0-240.ap-northeast-1.compute.internal\r\nI0511 07:32:49.057884       1 resource_slack.go:205] Pod placeholder-largestmemory-0m-300MB is virtually scheduled on ip-10-0-0-240.ap-northeast-1.compute.internal\r\nI0511 07:32:49.057921       1 resource_slack.go:205] Pod placeholder-standard-0-200m-300MB is virtually scheduled on ip-10-0-0-176.ap-northeast-1.compute.internal\r\nI0511 07:32:49.057941       1 resource_slack.go:205] Pod placeholder-standard-1-200m-300MB is virtually scheduled on ip-10-0-0-176.ap-northeast-1.compute.internal\r\nI0511 07:32:49.057966       1 resource_slack.go:205] Pod placeholder-standard-2-200m-300MB is virtually scheduled on ip-10-0-0-240.ap-northeast-1.compute.internal\r\nI0511 07:32:49.057995       1 resource_slack.go:205] Pod placeholder-standard-3-200m-300MB is virtually scheduled on ip-10-0-0-240.ap-northeast-1.compute.internal\r\nI0511 07:32:49.058015       1 resource_slack.go:205] Pod placeholder-standard-4-200m-300MB is virtually scheduled on ip-10-0-0-240.ap-northeast-1.compute.internal\r\nI0511 07:32:49.058035       1 resource_slack.go:205] Pod placeholder-standard-5-200m-300MB is virtually scheduled on ip-10-0-0-240.ap-northeast-1.compute.internal\r\nI0511 07:32:49.058060       1 resource_slack.go:205] Pod placeholder-standard-6-200m-300MB is virtually scheduled on ip-10-0-0-240.ap-northeast-1.compute.internal\r\nI0511 07:32:49.058083       1 resource_slack.go:205] Pod placeholder-standard-7-200m-300MB is virtually scheduled on ip-10-0-0-240.ap-northeast-1.compute.internal\r\nI0511 07:32:49.058117       1 resource_slack.go:205] Pod placeholder-standard-8-200m-300MB is virtually scheduled on ip-10-0-0-176.ap-northeast-1.compute.internal\r\nI0511 07:32:49.058138       1 resource_slack.go:205] Pod placeholder-standard-9-200m-300MB is virtually scheduled on ip-10-0-0-176.ap-northeast-1.compute.internal\r\nI0511 07:32:49.058158       1 resource_slack.go:205] Pod placeholder-standard-10-200m-300MB is virtually scheduled on ip-10-0-0-176.ap-northeast-1.compute.internal\r\nI0511 07:32:49.058180       1 resource_slack.go:205] Pod placeholder-standard-11-200m-300MB is virtually scheduled on ip-10-0-0-176.ap-northeast-1.compute.internal\r\nI0511 07:32:49.058210       1 resource_slack.go:205] Pod placeholder-standard-12-200m-300MB is virtually scheduled on ip-10-0-0-176.ap-northeast-1.compute.internal\r\nI0511 07:32:49.058851       1 static_autoscaler.go:211] Filtering out schedulables\r\nI0511 07:32:49.059482       1 static_autoscaler.go:219] No schedulable pods\r\nI0511 07:32:49.059492       1 scale_up.go:44] Pod default/placeholder-standard-13-200m-300MB is unschedulable\r\nI0511 07:32:49.059496       1 scale_up.go:44] Pod default/placeholder-standard-14-200m-300MB is unschedulable\r\nI0511 07:32:49.059498       1 scale_up.go:44] Pod default/placeholder-standard-15-200m-300MB is unschedulable\r\nI0511 07:32:49.059501       1 scale_up.go:44] Pod default/placeholder-standard-16-200m-300MB is unschedulable\r\n*snip*\r\nI0511 07:32:49.059613       1 scale_up.go:44] Pod default/placeholder-standard-57-200m-300MB is unschedulable\r\nI0511 07:32:49.059615       1 scale_up.go:44] Pod default/placeholder-standard-58-200m-300MB is unschedulable\r\nI0511 07:32:49.059652       1 aws_manager.go:187] Regenerating ASG information for kube5-Asg1-1EAU86YWRJGT6-Workers-5FQ8MWC9B6QG\r\nI0511 07:32:49.115802       1 aws_manager.go:187] Regenerating ASG information for kube5-Asg3-PTR2VK0YHXGP-Workers-W0KCGPQKD92H\r\nI0511 07:32:49.164903       1 round_trippers.go:417] GET https://10.3.0.1:443/api/v1/pods?fieldSelector=spec.nodeName%3Dip-10-0-0-240.ap-northeast-1.compute.internal 200 OK in 3 milliseconds\r\nI0511 07:32:49.169433       1 round_trippers.go:417] GET https://10.3.0.1:443/api/v1/pods?fieldSelector=spec.nodeName%3Dip-10-0-0-176.ap-northeast-1.compute.internal 200 OK in 2 milliseconds\r\nI0511 07:32:49.170768       1 scale_up.go:62] Upcoming 0 nodes\r\nI0511 07:32:49.250576       1 waste.go:57] Expanding Node Group kube5-Asg1-1EAU86YWRJGT6-Workers-5FQ8MWC9B6QG would waste 8.00% CPU, 30.21% Memory, 19.10% Blended\r\nI0511 07:32:49.250606       1 waste.go:57] Expanding Node Group kube5-Asg3-PTR2VK0YHXGP-Workers-W0KCGPQKD92H would waste 8.00% CPU, 30.21% Memory, 19.10% Blended\r\nI0511 07:32:49.250620       1 scale_up.go:145] Best option to resize: kube5-Asg3-PTR2VK0YHXGP-Workers-W0KCGPQKD92H\r\nI0511 07:32:49.250628       1 scale_up.go:149] Estimated 5 nodes needed in kube5-Asg3-PTR2VK0YHXGP-Workers-W0KCGPQKD92H\r\n```\r\n\r\nAlthough this work is rough around the edges but I hope it is reviewable.\r\n@Raffo Would you mind taking a look?\r\n"},"comment":{"url":"https://api.github.com/repos/kubernetes/autoscaler/issues/comments/309764226","html_url":"https://github.com/kubernetes/autoscaler/pull/56#issuecomment-309764226","issue_url":"https://api.github.com/repos/kubernetes/autoscaler/issues/56","id":309764226,"user":{"login":"mwielgus","id":11994812,"avatar_url":"https://avatars1.githubusercontent.com/u/11994812?v=3","gravatar_id":"","url":"https://api.github.com/users/mwielgus","html_url":"https://github.com/mwielgus","followers_url":"https://api.github.com/users/mwielgus/followers","following_url":"https://api.github.com/users/mwielgus/following{/other_user}","gists_url":"https://api.github.com/users/mwielgus/gists{/gist_id}","starred_url":"https://api.github.com/users/mwielgus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mwielgus/subscriptions","organizations_url":"https://api.github.com/users/mwielgus/orgs","repos_url":"https://api.github.com/users/mwielgus/repos","events_url":"https://api.github.com/users/mwielgus/events{/privacy}","received_events_url":"https://api.github.com/users/mwielgus/received_events","type":"User","site_admin":false},"created_at":"2017-06-20T14:02:38Z","updated_at":"2017-06-20T14:02:38Z","body":"Closing this PR as the pr resulting from the proposal #77 will most likely be significantly different. \r\n"}}
{"actor":{"display_login":"mwielgus"}}