{"action":"created","comment":{"url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls/comments/224181681","pull_request_review_id":163486822,"id":224181681,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDE4MTY4MQ==","diff_hunk":"@@ -0,0 +1,70 @@\n+\"\"\"Autoscale Treadmill cell based on scheduler queue.\"\"\"\n+\n+import logging\n+import time\n+\n+import click\n+\n+from treadmill import cli\n+\n+from treadmill_aws import cli as aws_cli\n+from treadmill_aws import autoscale\n+\n+\n+_LOGGER = logging.getLogger(__name__)\n+\n+_DEFAULT_TIMEOUT = 60\n+\n+_DEFAULT_APP_SERVER_RATIO = 0.5\n+\n+\n+def init():\n+    \"\"\"Treadmill App DNS\"\"\"","path":"lib/python/treadmill_aws/sproc/autoscale.py","position":22,"original_position":22,"commit_id":"cba47bd5dd56eacc8243660c98c183c6cb278e18","original_commit_id":"cba47bd5dd56eacc8243660c98c183c6cb278e18","user":{"login":"bretttegartms","id":36966583,"node_id":"MDQ6VXNlcjM2OTY2NTgz","avatar_url":"https://avatars2.githubusercontent.com/u/36966583?v=4","gravatar_id":"","url":"https://api.github.com/users/bretttegartms","html_url":"https://github.com/bretttegartms","followers_url":"https://api.github.com/users/bretttegartms/followers","following_url":"https://api.github.com/users/bretttegartms/following{/other_user}","gists_url":"https://api.github.com/users/bretttegartms/gists{/gist_id}","starred_url":"https://api.github.com/users/bretttegartms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bretttegartms/subscriptions","organizations_url":"https://api.github.com/users/bretttegartms/orgs","repos_url":"https://api.github.com/users/bretttegartms/repos","events_url":"https://api.github.com/users/bretttegartms/events{/privacy}","received_events_url":"https://api.github.com/users/bretttegartms/received_events","type":"User","site_admin":false},"body":"Please correct the command description.","created_at":"2018-10-10T17:59:22Z","updated_at":"2018-10-10T17:59:22Z","html_url":"https://github.com/Morgan-Stanley/treadmill-aws/pull/141#discussion_r224181681","pull_request_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls/141","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls/comments/224181681"},"html":{"href":"https://github.com/Morgan-Stanley/treadmill-aws/pull/141#discussion_r224181681"},"pull_request":{"href":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls/141"}}},"pull_request":{"url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls/141","id":221875807,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxODc1ODA3","html_url":"https://github.com/Morgan-Stanley/treadmill-aws/pull/141","diff_url":"https://github.com/Morgan-Stanley/treadmill-aws/pull/141.diff","patch_url":"https://github.com/Morgan-Stanley/treadmill-aws/pull/141.patch","issue_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/issues/141","number":141,"state":"open","locked":false,"title":"Simple autoscaler for treadmill cell.","user":{"login":"andreikeis","id":21692028,"node_id":"MDQ6VXNlcjIxNjkyMDI4","avatar_url":"https://avatars0.githubusercontent.com/u/21692028?v=4","gravatar_id":"","url":"https://api.github.com/users/andreikeis","html_url":"https://github.com/andreikeis","followers_url":"https://api.github.com/users/andreikeis/followers","following_url":"https://api.github.com/users/andreikeis/following{/other_user}","gists_url":"https://api.github.com/users/andreikeis/gists{/gist_id}","starred_url":"https://api.github.com/users/andreikeis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreikeis/subscriptions","organizations_url":"https://api.github.com/users/andreikeis/orgs","repos_url":"https://api.github.com/users/andreikeis/repos","events_url":"https://api.github.com/users/andreikeis/events{/privacy}","received_events_url":"https://api.github.com/users/andreikeis/received_events","type":"User","site_admin":false},"body":"- Supports max/min servers.\r\n- Will increment server count at most batch count.\r\n- Limitation - does not support partitions yet, operates on default\r\n  partition.","created_at":"2018-10-10T17:42:41Z","updated_at":"2018-10-10T17:59:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01714ba63461d1755747c089d82ed79dbbd0d2b5","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ceache","id":1071518,"node_id":"MDQ6VXNlcjEwNzE1MTg=","avatar_url":"https://avatars3.githubusercontent.com/u/1071518?v=4","gravatar_id":"","url":"https://api.github.com/users/ceache","html_url":"https://github.com/ceache","followers_url":"https://api.github.com/users/ceache/followers","following_url":"https://api.github.com/users/ceache/following{/other_user}","gists_url":"https://api.github.com/users/ceache/gists{/gist_id}","starred_url":"https://api.github.com/users/ceache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceache/subscriptions","organizations_url":"https://api.github.com/users/ceache/orgs","repos_url":"https://api.github.com/users/ceache/repos","events_url":"https://api.github.com/users/ceache/events{/privacy}","received_events_url":"https://api.github.com/users/ceache/received_events","type":"User","site_admin":false},{"login":"evreng","id":31860030,"node_id":"MDQ6VXNlcjMxODYwMDMw","avatar_url":"https://avatars0.githubusercontent.com/u/31860030?v=4","gravatar_id":"","url":"https://api.github.com/users/evreng","html_url":"https://github.com/evreng","followers_url":"https://api.github.com/users/evreng/followers","following_url":"https://api.github.com/users/evreng/following{/other_user}","gists_url":"https://api.github.com/users/evreng/gists{/gist_id}","starred_url":"https://api.github.com/users/evreng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evreng/subscriptions","organizations_url":"https://api.github.com/users/evreng/orgs","repos_url":"https://api.github.com/users/evreng/repos","events_url":"https://api.github.com/users/evreng/events{/privacy}","received_events_url":"https://api.github.com/users/evreng/received_events","type":"User","site_admin":false},{"login":"mswiecicki-ms","id":41795972,"node_id":"MDQ6VXNlcjQxNzk1OTcy","avatar_url":"https://avatars2.githubusercontent.com/u/41795972?v=4","gravatar_id":"","url":"https://api.github.com/users/mswiecicki-ms","html_url":"https://github.com/mswiecicki-ms","followers_url":"https://api.github.com/users/mswiecicki-ms/followers","following_url":"https://api.github.com/users/mswiecicki-ms/following{/other_user}","gists_url":"https://api.github.com/users/mswiecicki-ms/gists{/gist_id}","starred_url":"https://api.github.com/users/mswiecicki-ms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mswiecicki-ms/subscriptions","organizations_url":"https://api.github.com/users/mswiecicki-ms/orgs","repos_url":"https://api.github.com/users/mswiecicki-ms/repos","events_url":"https://api.github.com/users/mswiecicki-ms/events{/privacy}","received_events_url":"https://api.github.com/users/mswiecicki-ms/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls/141/commits","review_comments_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls/141/comments","review_comment_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/issues/141/comments","statuses_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/statuses/cba47bd5dd56eacc8243660c98c183c6cb278e18","head":{"label":"andreikeis:autoscale","ref":"autoscale","sha":"cba47bd5dd56eacc8243660c98c183c6cb278e18","user":{"login":"andreikeis","id":21692028,"node_id":"MDQ6VXNlcjIxNjkyMDI4","avatar_url":"https://avatars0.githubusercontent.com/u/21692028?v=4","gravatar_id":"","url":"https://api.github.com/users/andreikeis","html_url":"https://github.com/andreikeis","followers_url":"https://api.github.com/users/andreikeis/followers","following_url":"https://api.github.com/users/andreikeis/following{/other_user}","gists_url":"https://api.github.com/users/andreikeis/gists{/gist_id}","starred_url":"https://api.github.com/users/andreikeis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreikeis/subscriptions","organizations_url":"https://api.github.com/users/andreikeis/orgs","repos_url":"https://api.github.com/users/andreikeis/repos","events_url":"https://api.github.com/users/andreikeis/events{/privacy}","received_events_url":"https://api.github.com/users/andreikeis/received_events","type":"User","site_admin":false},"repo":{"id":128098094,"node_id":"MDEwOlJlcG9zaXRvcnkxMjgwOTgwOTQ=","name":"treadmill-aws","full_name":"andreikeis/treadmill-aws","private":false,"owner":{"login":"andreikeis","id":21692028,"node_id":"MDQ6VXNlcjIxNjkyMDI4","avatar_url":"https://avatars0.githubusercontent.com/u/21692028?v=4","gravatar_id":"","url":"https://api.github.com/users/andreikeis","html_url":"https://github.com/andreikeis","followers_url":"https://api.github.com/users/andreikeis/followers","following_url":"https://api.github.com/users/andreikeis/following{/other_user}","gists_url":"https://api.github.com/users/andreikeis/gists{/gist_id}","starred_url":"https://api.github.com/users/andreikeis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreikeis/subscriptions","organizations_url":"https://api.github.com/users/andreikeis/orgs","repos_url":"https://api.github.com/users/andreikeis/repos","events_url":"https://api.github.com/users/andreikeis/events{/privacy}","received_events_url":"https://api.github.com/users/andreikeis/received_events","type":"User","site_admin":false},"html_url":"https://github.com/andreikeis/treadmill-aws","description":null,"fork":true,"url":"https://api.github.com/repos/andreikeis/treadmill-aws","forks_url":"https://api.github.com/repos/andreikeis/treadmill-aws/forks","keys_url":"https://api.github.com/repos/andreikeis/treadmill-aws/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreikeis/treadmill-aws/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreikeis/treadmill-aws/teams","hooks_url":"https://api.github.com/repos/andreikeis/treadmill-aws/hooks","issue_events_url":"https://api.github.com/repos/andreikeis/treadmill-aws/issues/events{/number}","events_url":"https://api.github.com/repos/andreikeis/treadmill-aws/events","assignees_url":"https://api.github.com/repos/andreikeis/treadmill-aws/assignees{/user}","branches_url":"https://api.github.com/repos/andreikeis/treadmill-aws/branches{/branch}","tags_url":"https://api.github.com/repos/andreikeis/treadmill-aws/tags","blobs_url":"https://api.github.com/repos/andreikeis/treadmill-aws/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreikeis/treadmill-aws/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreikeis/treadmill-aws/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreikeis/treadmill-aws/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreikeis/treadmill-aws/statuses/{sha}","languages_url":"https://api.github.com/repos/andreikeis/treadmill-aws/languages","stargazers_url":"https://api.github.com/repos/andreikeis/treadmill-aws/stargazers","contributors_url":"https://api.github.com/repos/andreikeis/treadmill-aws/contributors","subscribers_url":"https://api.github.com/repos/andreikeis/treadmill-aws/subscribers","subscription_url":"https://api.github.com/repos/andreikeis/treadmill-aws/subscription","commits_url":"https://api.github.com/repos/andreikeis/treadmill-aws/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreikeis/treadmill-aws/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreikeis/treadmill-aws/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreikeis/treadmill-aws/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreikeis/treadmill-aws/contents/{+path}","compare_url":"https://api.github.com/repos/andreikeis/treadmill-aws/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreikeis/treadmill-aws/merges","archive_url":"https://api.github.com/repos/andreikeis/treadmill-aws/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreikeis/treadmill-aws/downloads","issues_url":"https://api.github.com/repos/andreikeis/treadmill-aws/issues{/number}","pulls_url":"https://api.github.com/repos/andreikeis/treadmill-aws/pulls{/number}","milestones_url":"https://api.github.com/repos/andreikeis/treadmill-aws/milestones{/number}","notifications_url":"https://api.github.com/repos/andreikeis/treadmill-aws/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreikeis/treadmill-aws/labels{/name}","releases_url":"https://api.github.com/repos/andreikeis/treadmill-aws/releases{/id}","deployments_url":"https://api.github.com/repos/andreikeis/treadmill-aws/deployments","created_at":"2018-04-04T17:39:33Z","updated_at":"2018-10-09T20:42:52Z","pushed_at":"2018-10-10T17:40:04Z","git_url":"git://github.com/andreikeis/treadmill-aws.git","ssh_url":"git@github.com:andreikeis/treadmill-aws.git","clone_url":"https://github.com/andreikeis/treadmill-aws.git","svn_url":"https://github.com/andreikeis/treadmill-aws","homepage":null,"size":3661,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Morgan-Stanley:master","ref":"master","sha":"8ea7ffa7f8b836abafb9a311c316393e812c711e","user":{"login":"Morgan-Stanley","id":5435928,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0MzU5Mjg=","avatar_url":"https://avatars3.githubusercontent.com/u/5435928?v=4","gravatar_id":"","url":"https://api.github.com/users/Morgan-Stanley","html_url":"https://github.com/Morgan-Stanley","followers_url":"https://api.github.com/users/Morgan-Stanley/followers","following_url":"https://api.github.com/users/Morgan-Stanley/following{/other_user}","gists_url":"https://api.github.com/users/Morgan-Stanley/gists{/gist_id}","starred_url":"https://api.github.com/users/Morgan-Stanley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Morgan-Stanley/subscriptions","organizations_url":"https://api.github.com/users/Morgan-Stanley/orgs","repos_url":"https://api.github.com/users/Morgan-Stanley/repos","events_url":"https://api.github.com/users/Morgan-Stanley/events{/privacy}","received_events_url":"https://api.github.com/users/Morgan-Stanley/received_events","type":"Organization","site_admin":false},"repo":{"id":94892705,"node_id":"MDEwOlJlcG9zaXRvcnk5NDg5MjcwNQ==","name":"treadmill-aws","full_name":"Morgan-Stanley/treadmill-aws","private":false,"owner":{"login":"Morgan-Stanley","id":5435928,"node_id":"MDEyOk9yZ2FuaXphdGlvbjU0MzU5Mjg=","avatar_url":"https://avatars3.githubusercontent.com/u/5435928?v=4","gravatar_id":"","url":"https://api.github.com/users/Morgan-Stanley","html_url":"https://github.com/Morgan-Stanley","followers_url":"https://api.github.com/users/Morgan-Stanley/followers","following_url":"https://api.github.com/users/Morgan-Stanley/following{/other_user}","gists_url":"https://api.github.com/users/Morgan-Stanley/gists{/gist_id}","starred_url":"https://api.github.com/users/Morgan-Stanley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Morgan-Stanley/subscriptions","organizations_url":"https://api.github.com/users/Morgan-Stanley/orgs","repos_url":"https://api.github.com/users/Morgan-Stanley/repos","events_url":"https://api.github.com/users/Morgan-Stanley/events{/privacy}","received_events_url":"https://api.github.com/users/Morgan-Stanley/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Morgan-Stanley/treadmill-aws","description":"Treadmill AWS specific module","fork":false,"url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws","forks_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/forks","keys_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/teams","hooks_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/hooks","issue_events_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/issues/events{/number}","events_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/events","assignees_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/assignees{/user}","branches_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/branches{/branch}","tags_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/tags","blobs_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/git/refs{/sha}","trees_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/statuses/{sha}","languages_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/languages","stargazers_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/stargazers","contributors_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/contributors","subscribers_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/subscribers","subscription_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/subscription","commits_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/commits{/sha}","git_commits_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/git/commits{/sha}","comments_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/comments{/number}","issue_comment_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/issues/comments{/number}","contents_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/contents/{+path}","compare_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/merges","archive_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/downloads","issues_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/issues{/number}","pulls_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls{/number}","milestones_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/milestones{/number}","notifications_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/labels{/name}","releases_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/releases{/id}","deployments_url":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/deployments","created_at":"2017-06-20T13:12:23Z","updated_at":"2018-10-09T20:13:49Z","pushed_at":"2018-10-10T17:42:41Z","git_url":"git://github.com/Morgan-Stanley/treadmill-aws.git","ssh_url":"git@github.com:Morgan-Stanley/treadmill-aws.git","clone_url":"https://github.com/Morgan-Stanley/treadmill-aws.git","svn_url":"https://github.com/Morgan-Stanley/treadmill-aws","homepage":"","size":3661,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":15,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls/141"},"html":{"href":"https://github.com/Morgan-Stanley/treadmill-aws/pull/141"},"issue":{"href":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/issues/141"},"comments":{"href":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/issues/141/comments"},"review_comments":{"href":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls/141/comments"},"review_comment":{"href":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/pulls/141/commits"},"statuses":{"href":"https://api.github.com/repos/Morgan-Stanley/treadmill-aws/statuses/cba47bd5dd56eacc8243660c98c183c6cb278e18"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bretttegartms"}}