{"action":"created","issue":{"url":"https://api.github.com/repos/oomichi/try-kubernetes/issues/18","repository_url":"https://api.github.com/repos/oomichi/try-kubernetes","labels_url":"https://api.github.com/repos/oomichi/try-kubernetes/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/oomichi/try-kubernetes/issues/18/comments","events_url":"https://api.github.com/repos/oomichi/try-kubernetes/issues/18/events","html_url":"https://github.com/oomichi/try-kubernetes/issues/18","id":315234153,"node_id":"MDU6SXNzdWUzMTUyMzQxNTM=","number":18,"title":"Test Failure: [HPA] Horizontal pod autoscaling (scale resource: CPU)","user":{"login":"oomichi","id":1287154,"node_id":"MDQ6VXNlcjEyODcxNTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1287154?v=4","gravatar_id":"","url":"https://api.github.com/users/oomichi","html_url":"https://github.com/oomichi","followers_url":"https://api.github.com/users/oomichi/followers","following_url":"https://api.github.com/users/oomichi/following{/other_user}","gists_url":"https://api.github.com/users/oomichi/gists{/gist_id}","starred_url":"https://api.github.com/users/oomichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oomichi/subscriptions","organizations_url":"https://api.github.com/users/oomichi/orgs","repos_url":"https://api.github.com/users/oomichi/repos","events_url":"https://api.github.com/users/oomichi/events{/privacy}","received_events_url":"https://api.github.com/users/oomichi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":34,"created_at":"2018-04-17T21:01:59Z","updated_at":"2018-08-07T01:45:02Z","closed_at":null,"author_association":"OWNER","body":"結論\r\n- HPA には metrics-server の設定が必須（ドキュメント追記、テストチェック追加を実施）\r\n- 1つのHPAテストで失敗（タイムアウト）は16分、成功すると2分14秒で完了\r\n失敗すると時間を消費してしまう1例\r\n- HPA の CPU使用率は Deployment 作成時に --request フラグで指定した CPU 要求量に対する割合\r\nたとえば --requests='cpu=500m,memory=256Mi' を指定した場合、Pod の負荷が 25% の場合\r\nHPA として見える（kubectl get hpa）CPU 使用率は 50% (= 250 msec / 500 msec) となる。\r\n\r\nThis is one of issue https://github.com/oomichi/try-kubernetes/issues/17\r\n\r\nThe test is failed because of\r\n```\r\nI0404 22:01:33.211083   14594 runners.go:175] Pod rs-cz9bx      k8s-v110-flannel-worker Running <nil>\r\nI0404 22:01:33.211152   14594 runners.go:175] Pod rs-fm7c8      k8s-v110-flannel-worker Running <nil>\r\nI0404 22:01:33.211163   14594 runners.go:175] Pod rs-g96bg      k8s-v110-flannel-worker Running <nil>\r\nI0404 22:01:33.211180   14594 runners.go:175] Pod rs-j2dq9              Pending <nil>\r\nI0404 22:01:33.211189   14594 runners.go:175] Pod rs-wcpmh      k8s-v110-flannel-worker Running <nil>\r\nApr  4 22:01:33.211: INFO: Unexpected error occurred: Only 4 pods started out of 5\r\n```\r\nand that happens due to less compute node like:\r\n```\r\nApr  4 22:01:33.225: INFO: At 2018-04-04 21:59:23 +0000 UTC - event for rs-j2dq9: {default-scheduler } FailedScheduling: 0/2 nodes are available: 1 Insufficient cpu, 1 node(s) had taints that the pod didn't tolerate.\r\n```\r\n本件、kubernetes v1.11 でも引き続き発生。"},"comment":{"url":"https://api.github.com/repos/oomichi/try-kubernetes/issues/comments/410905765","html_url":"https://github.com/oomichi/try-kubernetes/issues/18#issuecomment-410905765","issue_url":"https://api.github.com/repos/oomichi/try-kubernetes/issues/18","id":410905765,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDkwNTc2NQ==","user":{"login":"oomichi","id":1287154,"node_id":"MDQ6VXNlcjEyODcxNTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/1287154?v=4","gravatar_id":"","url":"https://api.github.com/users/oomichi","html_url":"https://github.com/oomichi","followers_url":"https://api.github.com/users/oomichi/followers","following_url":"https://api.github.com/users/oomichi/following{/other_user}","gists_url":"https://api.github.com/users/oomichi/gists{/gist_id}","starred_url":"https://api.github.com/users/oomichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oomichi/subscriptions","organizations_url":"https://api.github.com/users/oomichi/orgs","repos_url":"https://api.github.com/users/oomichi/repos","events_url":"https://api.github.com/users/oomichi/events{/privacy}","received_events_url":"https://api.github.com/users/oomichi/received_events","type":"User","site_admin":false},"created_at":"2018-08-07T01:45:02Z","updated_at":"2018-08-07T01:45:02Z","author_association":"OWNER","body":"問題のコードは\r\ntest/e2e/common/autoscaling_utils.go\r\n```\r\n 46         dynamicRequestSizeInMillicores  = 20\r\n```\r\n"}}
{"actor":{"display_login":"oomichi"}}