{"action":"created","comment":{"url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/comments/145870504","pull_request_review_id":70735293,"id":145870504,"diff_hunk":"@@ -0,0 +1,37 @@\n+# Auto-scaling Experiment Design\n+\n+## Environment Requirement\n+\n+- Kubernetes cluster with 1.6.x installed.\n+- PaddleCloud with latest develop branch installed.\n+- At least 4 kubernetes nodes, each node should have 2 GPU cards at least.\n+- Dataset prepared to multiple files with the RecordIO format.\n+\n+## Experiment Metric\n+\n+- Computing resource utils(requests / total).\n+- Training time for each job.\n+- The number of running trainer.\n+\n+## Before Starting The Experiment\n+\n+- We will use [recognize_digits](https://github.com/PaddlePaddle/cloud/tree/develop/demo/recognize_digits) as the training job for the demo.\n+- We have 240 CPU cores and 80 GPU cards totally.\n+\n+## Test Case\n+\n+### Without auto-scaling Job \n+\n+- Start a Deployment to simulate the online serving(10 pods).\n+- Start a training job(jobA) with 2~100 trainer instances(2 pservers, 1 master), the trainers will be scaled immediately to use the maximum free resources in the cluster.\n+- Start another training job(jobB) with 50~100 trainer instances(2 pservers, 1 master), there is no enough resource, the job will wait for the adequacy of the resource.\n+\n+### With auto-scaling Job","path":"doc/autoscale_experiment.md","position":29,"original_position":29,"commit_id":"cebfc514bb2e29511d7ae520189fe5d7fe4e1816","original_commit_id":"cebfc514bb2e29511d7ae520189fe5d7fe4e1816","user":{"login":"putcn","id":2062926,"avatar_url":"https://avatars1.githubusercontent.com/u/2062926?v=4","gravatar_id":"","url":"https://api.github.com/users/putcn","html_url":"https://github.com/putcn","followers_url":"https://api.github.com/users/putcn/followers","following_url":"https://api.github.com/users/putcn/following{/other_user}","gists_url":"https://api.github.com/users/putcn/gists{/gist_id}","starred_url":"https://api.github.com/users/putcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/putcn/subscriptions","organizations_url":"https://api.github.com/users/putcn/orgs","repos_url":"https://api.github.com/users/putcn/repos","events_url":"https://api.github.com/users/putcn/events{/privacy}","received_events_url":"https://api.github.com/users/putcn/received_events","type":"User","site_admin":false},"body":"我们可以用hpa来自动控制Nginx数量吗","created_at":"2017-10-20T03:12:19Z","updated_at":"2017-10-20T03:12:19Z","html_url":"https://github.com/PaddlePaddle/cloud/pull/419#discussion_r145870504","pull_request_url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/419","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/comments/145870504"},"html":{"href":"https://github.com/PaddlePaddle/cloud/pull/419#discussion_r145870504"},"pull_request":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/419"}},"in_reply_to_id":145693756},"pull_request":{"url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/419","id":147546351,"html_url":"https://github.com/PaddlePaddle/cloud/pull/419","diff_url":"https://github.com/PaddlePaddle/cloud/pull/419.diff","patch_url":"https://github.com/PaddlePaddle/cloud/pull/419.patch","issue_url":"https://api.github.com/repos/PaddlePaddle/cloud/issues/419","number":419,"state":"open","locked":false,"title":"auto-scale experiment plan","user":{"login":"Yancey1989","id":1426912,"avatar_url":"https://avatars2.githubusercontent.com/u/1426912?v=4","gravatar_id":"","url":"https://api.github.com/users/Yancey1989","html_url":"https://github.com/Yancey1989","followers_url":"https://api.github.com/users/Yancey1989/followers","following_url":"https://api.github.com/users/Yancey1989/following{/other_user}","gists_url":"https://api.github.com/users/Yancey1989/gists{/gist_id}","starred_url":"https://api.github.com/users/Yancey1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yancey1989/subscriptions","organizations_url":"https://api.github.com/users/Yancey1989/orgs","repos_url":"https://api.github.com/users/Yancey1989/repos","events_url":"https://api.github.com/users/Yancey1989/events{/privacy}","received_events_url":"https://api.github.com/users/Yancey1989/received_events","type":"User","site_admin":false},"body":"Fixed #395 \r\nFixed #413 ","created_at":"2017-10-19T12:46:11Z","updated_at":"2017-10-20T03:12:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0289eafe4ea51a5cc1af334b69aac3e49358a42f","assignee":null,"assignees":[],"requested_reviewers":[{"login":"helinwang","id":1724178,"avatar_url":"https://avatars3.githubusercontent.com/u/1724178?v=4","gravatar_id":"","url":"https://api.github.com/users/helinwang","html_url":"https://github.com/helinwang","followers_url":"https://api.github.com/users/helinwang/followers","following_url":"https://api.github.com/users/helinwang/following{/other_user}","gists_url":"https://api.github.com/users/helinwang/gists{/gist_id}","starred_url":"https://api.github.com/users/helinwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helinwang/subscriptions","organizations_url":"https://api.github.com/users/helinwang/orgs","repos_url":"https://api.github.com/users/helinwang/repos","events_url":"https://api.github.com/users/helinwang/events{/privacy}","received_events_url":"https://api.github.com/users/helinwang/received_events","type":"User","site_admin":false},{"login":"putcn","id":2062926,"avatar_url":"https://avatars1.githubusercontent.com/u/2062926?v=4","gravatar_id":"","url":"https://api.github.com/users/putcn","html_url":"https://github.com/putcn","followers_url":"https://api.github.com/users/putcn/followers","following_url":"https://api.github.com/users/putcn/following{/other_user}","gists_url":"https://api.github.com/users/putcn/gists{/gist_id}","starred_url":"https://api.github.com/users/putcn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/putcn/subscriptions","organizations_url":"https://api.github.com/users/putcn/orgs","repos_url":"https://api.github.com/users/putcn/repos","events_url":"https://api.github.com/users/putcn/events{/privacy}","received_events_url":"https://api.github.com/users/putcn/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/419/commits","review_comments_url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/419/comments","review_comment_url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaddlePaddle/cloud/issues/419/comments","statuses_url":"https://api.github.com/repos/PaddlePaddle/cloud/statuses/cebfc514bb2e29511d7ae520189fe5d7fe4e1816","head":{"label":"Yancey1989:experiment_design","ref":"experiment_design","sha":"cebfc514bb2e29511d7ae520189fe5d7fe4e1816","user":{"login":"Yancey1989","id":1426912,"avatar_url":"https://avatars2.githubusercontent.com/u/1426912?v=4","gravatar_id":"","url":"https://api.github.com/users/Yancey1989","html_url":"https://github.com/Yancey1989","followers_url":"https://api.github.com/users/Yancey1989/followers","following_url":"https://api.github.com/users/Yancey1989/following{/other_user}","gists_url":"https://api.github.com/users/Yancey1989/gists{/gist_id}","starred_url":"https://api.github.com/users/Yancey1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yancey1989/subscriptions","organizations_url":"https://api.github.com/users/Yancey1989/orgs","repos_url":"https://api.github.com/users/Yancey1989/repos","events_url":"https://api.github.com/users/Yancey1989/events{/privacy}","received_events_url":"https://api.github.com/users/Yancey1989/received_events","type":"User","site_admin":false},"repo":{"id":91298946,"name":"cloud","full_name":"Yancey1989/cloud","owner":{"login":"Yancey1989","id":1426912,"avatar_url":"https://avatars2.githubusercontent.com/u/1426912?v=4","gravatar_id":"","url":"https://api.github.com/users/Yancey1989","html_url":"https://github.com/Yancey1989","followers_url":"https://api.github.com/users/Yancey1989/followers","following_url":"https://api.github.com/users/Yancey1989/following{/other_user}","gists_url":"https://api.github.com/users/Yancey1989/gists{/gist_id}","starred_url":"https://api.github.com/users/Yancey1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yancey1989/subscriptions","organizations_url":"https://api.github.com/users/Yancey1989/orgs","repos_url":"https://api.github.com/users/Yancey1989/repos","events_url":"https://api.github.com/users/Yancey1989/events{/privacy}","received_events_url":"https://api.github.com/users/Yancey1989/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Yancey1989/cloud","description":"PaddleCloud web site and utilities","fork":true,"url":"https://api.github.com/repos/Yancey1989/cloud","forks_url":"https://api.github.com/repos/Yancey1989/cloud/forks","keys_url":"https://api.github.com/repos/Yancey1989/cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yancey1989/cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yancey1989/cloud/teams","hooks_url":"https://api.github.com/repos/Yancey1989/cloud/hooks","issue_events_url":"https://api.github.com/repos/Yancey1989/cloud/issues/events{/number}","events_url":"https://api.github.com/repos/Yancey1989/cloud/events","assignees_url":"https://api.github.com/repos/Yancey1989/cloud/assignees{/user}","branches_url":"https://api.github.com/repos/Yancey1989/cloud/branches{/branch}","tags_url":"https://api.github.com/repos/Yancey1989/cloud/tags","blobs_url":"https://api.github.com/repos/Yancey1989/cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yancey1989/cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yancey1989/cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yancey1989/cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yancey1989/cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/Yancey1989/cloud/languages","stargazers_url":"https://api.github.com/repos/Yancey1989/cloud/stargazers","contributors_url":"https://api.github.com/repos/Yancey1989/cloud/contributors","subscribers_url":"https://api.github.com/repos/Yancey1989/cloud/subscribers","subscription_url":"https://api.github.com/repos/Yancey1989/cloud/subscription","commits_url":"https://api.github.com/repos/Yancey1989/cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yancey1989/cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yancey1989/cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yancey1989/cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yancey1989/cloud/contents/{+path}","compare_url":"https://api.github.com/repos/Yancey1989/cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yancey1989/cloud/merges","archive_url":"https://api.github.com/repos/Yancey1989/cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yancey1989/cloud/downloads","issues_url":"https://api.github.com/repos/Yancey1989/cloud/issues{/number}","pulls_url":"https://api.github.com/repos/Yancey1989/cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/Yancey1989/cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/Yancey1989/cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yancey1989/cloud/labels{/name}","releases_url":"https://api.github.com/repos/Yancey1989/cloud/releases{/id}","deployments_url":"https://api.github.com/repos/Yancey1989/cloud/deployments","created_at":"2017-05-15T05:37:04Z","updated_at":"2017-07-06T09:41:49Z","pushed_at":"2017-10-19T12:51:10Z","git_url":"git://github.com/Yancey1989/cloud.git","ssh_url":"git@github.com:Yancey1989/cloud.git","clone_url":"https://github.com/Yancey1989/cloud.git","svn_url":"https://github.com/Yancey1989/cloud","homepage":null,"size":9261,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"PaddlePaddle:develop","ref":"develop","sha":"f92c7ac57a09c50dca09d1d9c2a803611bdb7455","user":{"login":"PaddlePaddle","id":23534030,"avatar_url":"https://avatars3.githubusercontent.com/u/23534030?v=4","gravatar_id":"","url":"https://api.github.com/users/PaddlePaddle","html_url":"https://github.com/PaddlePaddle","followers_url":"https://api.github.com/users/PaddlePaddle/followers","following_url":"https://api.github.com/users/PaddlePaddle/following{/other_user}","gists_url":"https://api.github.com/users/PaddlePaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddlePaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddlePaddle/subscriptions","organizations_url":"https://api.github.com/users/PaddlePaddle/orgs","repos_url":"https://api.github.com/users/PaddlePaddle/repos","events_url":"https://api.github.com/users/PaddlePaddle/events{/privacy}","received_events_url":"https://api.github.com/users/PaddlePaddle/received_events","type":"Organization","site_admin":false},"repo":{"id":89484677,"name":"cloud","full_name":"PaddlePaddle/cloud","owner":{"login":"PaddlePaddle","id":23534030,"avatar_url":"https://avatars3.githubusercontent.com/u/23534030?v=4","gravatar_id":"","url":"https://api.github.com/users/PaddlePaddle","html_url":"https://github.com/PaddlePaddle","followers_url":"https://api.github.com/users/PaddlePaddle/followers","following_url":"https://api.github.com/users/PaddlePaddle/following{/other_user}","gists_url":"https://api.github.com/users/PaddlePaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddlePaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddlePaddle/subscriptions","organizations_url":"https://api.github.com/users/PaddlePaddle/orgs","repos_url":"https://api.github.com/users/PaddlePaddle/repos","events_url":"https://api.github.com/users/PaddlePaddle/events{/privacy}","received_events_url":"https://api.github.com/users/PaddlePaddle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PaddlePaddle/cloud","description":"PaddleCloud distributed training job scheduling","fork":false,"url":"https://api.github.com/repos/PaddlePaddle/cloud","forks_url":"https://api.github.com/repos/PaddlePaddle/cloud/forks","keys_url":"https://api.github.com/repos/PaddlePaddle/cloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaddlePaddle/cloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaddlePaddle/cloud/teams","hooks_url":"https://api.github.com/repos/PaddlePaddle/cloud/hooks","issue_events_url":"https://api.github.com/repos/PaddlePaddle/cloud/issues/events{/number}","events_url":"https://api.github.com/repos/PaddlePaddle/cloud/events","assignees_url":"https://api.github.com/repos/PaddlePaddle/cloud/assignees{/user}","branches_url":"https://api.github.com/repos/PaddlePaddle/cloud/branches{/branch}","tags_url":"https://api.github.com/repos/PaddlePaddle/cloud/tags","blobs_url":"https://api.github.com/repos/PaddlePaddle/cloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaddlePaddle/cloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaddlePaddle/cloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaddlePaddle/cloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaddlePaddle/cloud/statuses/{sha}","languages_url":"https://api.github.com/repos/PaddlePaddle/cloud/languages","stargazers_url":"https://api.github.com/repos/PaddlePaddle/cloud/stargazers","contributors_url":"https://api.github.com/repos/PaddlePaddle/cloud/contributors","subscribers_url":"https://api.github.com/repos/PaddlePaddle/cloud/subscribers","subscription_url":"https://api.github.com/repos/PaddlePaddle/cloud/subscription","commits_url":"https://api.github.com/repos/PaddlePaddle/cloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaddlePaddle/cloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaddlePaddle/cloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaddlePaddle/cloud/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaddlePaddle/cloud/contents/{+path}","compare_url":"https://api.github.com/repos/PaddlePaddle/cloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaddlePaddle/cloud/merges","archive_url":"https://api.github.com/repos/PaddlePaddle/cloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaddlePaddle/cloud/downloads","issues_url":"https://api.github.com/repos/PaddlePaddle/cloud/issues{/number}","pulls_url":"https://api.github.com/repos/PaddlePaddle/cloud/pulls{/number}","milestones_url":"https://api.github.com/repos/PaddlePaddle/cloud/milestones{/number}","notifications_url":"https://api.github.com/repos/PaddlePaddle/cloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaddlePaddle/cloud/labels{/name}","releases_url":"https://api.github.com/repos/PaddlePaddle/cloud/releases{/id}","deployments_url":"https://api.github.com/repos/PaddlePaddle/cloud/deployments","created_at":"2017-04-26T13:35:42Z","updated_at":"2017-10-09T03:47:29Z","pushed_at":"2017-10-20T01:06:55Z","git_url":"git://github.com/PaddlePaddle/cloud.git","ssh_url":"git@github.com:PaddlePaddle/cloud.git","clone_url":"https://github.com/PaddlePaddle/cloud.git","svn_url":"https://github.com/PaddlePaddle/cloud","homepage":"","size":9355,"stargazers_count":15,"watchers_count":15,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":119,"forks":15,"open_issues":119,"watchers":15,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/419"},"html":{"href":"https://github.com/PaddlePaddle/cloud/pull/419"},"issue":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/issues/419"},"comments":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/issues/419/comments"},"review_comments":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/419/comments"},"review_comment":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/pulls/419/commits"},"statuses":{"href":"https://api.github.com/repos/PaddlePaddle/cloud/statuses/cebfc514bb2e29511d7ae520189fe5d7fe4e1816"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"putcn"}}