{"action":"created","comment":{"url":"https://api.github.com/repos/sushilks/hydra/pulls/comments/64671088","id":64671088,"diff_hunk":"@@ -221,6 +222,74 @@ def create_hydra_app(self, name, app_path, app_args, cpus, mem, ports=None, cons\n         self.refresh_app_info(name)\n         return r\n \n+    def create_hydra_app_group(self, name, app_path, app_args, cpus, mem, apps_in_group,\n+                               total_apps, ports=None, constraints=None):\n+        \"\"\"\n+        Create an application in groups\n+        @args:\n+        name:                                      name of the app\n+        app_path:                                  path to launch app from\n+        app_args:                                  app args\n+        cpus:                                      required cpus\n+        mem:                                       required  mem\n+        apps_in_group:                             number of apps to group together\n+        total_apps:                                total apps to launch\n+        ports:                                     port list (optional)\n+        constaints:                                constaints optional\n+        \"\"\"\n+        assert(name not in self.apps)\n+        r = self.__mt.create_app(\n+            name, MarathonApp(cmd=self.get_cmd(app_path, app_args),\n+                              cpus=cpus, mem=mem,\n+                              ports=ports,\n+                              constraints=constraints,\n+                              uris=[self.get_app_uri()]))\n+        self.apps[name] = {'app': r, 'type': 'script'}\n+        self.wait_app_ready(name, 1)\n+        self.scale_and_verify_app(name, total_apps)\n+        self.create_app_groups(name, apps_in_group)\n+        return r\n+\n+    def create_app_groups(self, name, apps_in_group):","path":"src/main/python/hydra/lib/runtestbase.py","position":40,"original_position":40,"commit_id":"2c33119c84c6f6b160867c47876be1491cf21f78","original_commit_id":"2c33119c84c6f6b160867c47876be1491cf21f78","user":{"login":"sushilks","id":5265751,"avatar_url":"https://avatars.githubusercontent.com/u/5265751?v=3","gravatar_id":"","url":"https://api.github.com/users/sushilks","html_url":"https://github.com/sushilks","followers_url":"https://api.github.com/users/sushilks/followers","following_url":"https://api.github.com/users/sushilks/following{/other_user}","gists_url":"https://api.github.com/users/sushilks/gists{/gist_id}","starred_url":"https://api.github.com/users/sushilks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushilks/subscriptions","organizations_url":"https://api.github.com/users/sushilks/orgs","repos_url":"https://api.github.com/users/sushilks/repos","events_url":"https://api.github.com/users/sushilks/events{/privacy}","received_events_url":"https://api.github.com/users/sushilks/received_events","type":"User","site_admin":false},"body":"what is the format of \"apps_in_group\" \r\nis it array of application instance id ?","created_at":"2016-05-25T23:34:45Z","updated_at":"2016-05-25T23:34:45Z","html_url":"https://github.com/sushilks/hydra/pull/42#discussion_r64671088","pull_request_url":"https://api.github.com/repos/sushilks/hydra/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/sushilks/hydra/pulls/comments/64671088"},"html":{"href":"https://github.com/sushilks/hydra/pull/42#discussion_r64671088"},"pull_request":{"href":"https://api.github.com/repos/sushilks/hydra/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/sushilks/hydra/pulls/42","id":71472064,"html_url":"https://github.com/sushilks/hydra/pull/42","diff_url":"https://github.com/sushilks/hydra/pull/42.diff","patch_url":"https://github.com/sushilks/hydra/pull/42.patch","issue_url":"https://api.github.com/repos/sushilks/hydra/issues/42","number":42,"state":"open","locked":false,"title":"Introducing app grouping","user":{"login":"kratos7","id":16633018,"avatar_url":"https://avatars.githubusercontent.com/u/16633018?v=3","gravatar_id":"","url":"https://api.github.com/users/kratos7","html_url":"https://github.com/kratos7","followers_url":"https://api.github.com/users/kratos7/followers","following_url":"https://api.github.com/users/kratos7/following{/other_user}","gists_url":"https://api.github.com/users/kratos7/gists{/gist_id}","starred_url":"https://api.github.com/users/kratos7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kratos7/subscriptions","organizations_url":"https://api.github.com/users/kratos7/orgs","repos_url":"https://api.github.com/users/kratos7/repos","events_url":"https://api.github.com/users/kratos7/events{/privacy}","received_events_url":"https://api.github.com/users/kratos7/received_events","type":"User","site_admin":false},"body":"    App grouping for message passing\r\n    \r\n    ** This commit introduces app grouping for launched hydra apps\r\n    ** Each group can be sent seprate signals\r\n    ** Update mock backend to enable scaling of apps\r\n    ** Update rmq test to use groups as a POC\r\n    ** Unit test exercises full code path\r\n   \r\n    ** Also add Kraken minimal skeleton (does nothing at all :) )\r\n","created_at":"2016-05-25T22:15:36Z","updated_at":"2016-05-25T23:34:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"385e05833573cef126a84c81f95743123d67232d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sushilks/hydra/pulls/42/commits","review_comments_url":"https://api.github.com/repos/sushilks/hydra/pulls/42/comments","review_comment_url":"https://api.github.com/repos/sushilks/hydra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sushilks/hydra/issues/42/comments","statuses_url":"https://api.github.com/repos/sushilks/hydra/statuses/2c33119c84c6f6b160867c47876be1491cf21f78","head":{"label":"kratos7:master","ref":"master","sha":"2c33119c84c6f6b160867c47876be1491cf21f78","user":{"login":"kratos7","id":16633018,"avatar_url":"https://avatars.githubusercontent.com/u/16633018?v=3","gravatar_id":"","url":"https://api.github.com/users/kratos7","html_url":"https://github.com/kratos7","followers_url":"https://api.github.com/users/kratos7/followers","following_url":"https://api.github.com/users/kratos7/following{/other_user}","gists_url":"https://api.github.com/users/kratos7/gists{/gist_id}","starred_url":"https://api.github.com/users/kratos7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kratos7/subscriptions","organizations_url":"https://api.github.com/users/kratos7/orgs","repos_url":"https://api.github.com/users/kratos7/repos","events_url":"https://api.github.com/users/kratos7/events{/privacy}","received_events_url":"https://api.github.com/users/kratos7/received_events","type":"User","site_admin":false},"repo":{"id":53220638,"name":"hydra","full_name":"kratos7/hydra","owner":{"login":"kratos7","id":16633018,"avatar_url":"https://avatars.githubusercontent.com/u/16633018?v=3","gravatar_id":"","url":"https://api.github.com/users/kratos7","html_url":"https://github.com/kratos7","followers_url":"https://api.github.com/users/kratos7/followers","following_url":"https://api.github.com/users/kratos7/following{/other_user}","gists_url":"https://api.github.com/users/kratos7/gists{/gist_id}","starred_url":"https://api.github.com/users/kratos7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kratos7/subscriptions","organizations_url":"https://api.github.com/users/kratos7/orgs","repos_url":"https://api.github.com/users/kratos7/repos","events_url":"https://api.github.com/users/kratos7/events{/privacy}","received_events_url":"https://api.github.com/users/kratos7/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kratos7/hydra","description":"A Scale Testing infra using Mesos and marathon","fork":true,"url":"https://api.github.com/repos/kratos7/hydra","forks_url":"https://api.github.com/repos/kratos7/hydra/forks","keys_url":"https://api.github.com/repos/kratos7/hydra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kratos7/hydra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kratos7/hydra/teams","hooks_url":"https://api.github.com/repos/kratos7/hydra/hooks","issue_events_url":"https://api.github.com/repos/kratos7/hydra/issues/events{/number}","events_url":"https://api.github.com/repos/kratos7/hydra/events","assignees_url":"https://api.github.com/repos/kratos7/hydra/assignees{/user}","branches_url":"https://api.github.com/repos/kratos7/hydra/branches{/branch}","tags_url":"https://api.github.com/repos/kratos7/hydra/tags","blobs_url":"https://api.github.com/repos/kratos7/hydra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kratos7/hydra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kratos7/hydra/git/refs{/sha}","trees_url":"https://api.github.com/repos/kratos7/hydra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kratos7/hydra/statuses/{sha}","languages_url":"https://api.github.com/repos/kratos7/hydra/languages","stargazers_url":"https://api.github.com/repos/kratos7/hydra/stargazers","contributors_url":"https://api.github.com/repos/kratos7/hydra/contributors","subscribers_url":"https://api.github.com/repos/kratos7/hydra/subscribers","subscription_url":"https://api.github.com/repos/kratos7/hydra/subscription","commits_url":"https://api.github.com/repos/kratos7/hydra/commits{/sha}","git_commits_url":"https://api.github.com/repos/kratos7/hydra/git/commits{/sha}","comments_url":"https://api.github.com/repos/kratos7/hydra/comments{/number}","issue_comment_url":"https://api.github.com/repos/kratos7/hydra/issues/comments{/number}","contents_url":"https://api.github.com/repos/kratos7/hydra/contents/{+path}","compare_url":"https://api.github.com/repos/kratos7/hydra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kratos7/hydra/merges","archive_url":"https://api.github.com/repos/kratos7/hydra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kratos7/hydra/downloads","issues_url":"https://api.github.com/repos/kratos7/hydra/issues{/number}","pulls_url":"https://api.github.com/repos/kratos7/hydra/pulls{/number}","milestones_url":"https://api.github.com/repos/kratos7/hydra/milestones{/number}","notifications_url":"https://api.github.com/repos/kratos7/hydra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kratos7/hydra/labels{/name}","releases_url":"https://api.github.com/repos/kratos7/hydra/releases{/id}","deployments_url":"https://api.github.com/repos/kratos7/hydra/deployments","created_at":"2016-03-05T20:01:17Z","updated_at":"2016-03-05T20:01:19Z","pushed_at":"2016-05-25T22:14:21Z","git_url":"git://github.com/kratos7/hydra.git","ssh_url":"git@github.com:kratos7/hydra.git","clone_url":"https://github.com/kratos7/hydra.git","svn_url":"https://github.com/kratos7/hydra","homepage":null,"size":191,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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":"master"}},"base":{"label":"sushilks:master","ref":"master","sha":"fd77702a62453f5aeb1bd357d677652c66507fb6","user":{"login":"sushilks","id":5265751,"avatar_url":"https://avatars.githubusercontent.com/u/5265751?v=3","gravatar_id":"","url":"https://api.github.com/users/sushilks","html_url":"https://github.com/sushilks","followers_url":"https://api.github.com/users/sushilks/followers","following_url":"https://api.github.com/users/sushilks/following{/other_user}","gists_url":"https://api.github.com/users/sushilks/gists{/gist_id}","starred_url":"https://api.github.com/users/sushilks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushilks/subscriptions","organizations_url":"https://api.github.com/users/sushilks/orgs","repos_url":"https://api.github.com/users/sushilks/repos","events_url":"https://api.github.com/users/sushilks/events{/privacy}","received_events_url":"https://api.github.com/users/sushilks/received_events","type":"User","site_admin":false},"repo":{"id":52956862,"name":"hydra","full_name":"sushilks/hydra","owner":{"login":"sushilks","id":5265751,"avatar_url":"https://avatars.githubusercontent.com/u/5265751?v=3","gravatar_id":"","url":"https://api.github.com/users/sushilks","html_url":"https://github.com/sushilks","followers_url":"https://api.github.com/users/sushilks/followers","following_url":"https://api.github.com/users/sushilks/following{/other_user}","gists_url":"https://api.github.com/users/sushilks/gists{/gist_id}","starred_url":"https://api.github.com/users/sushilks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sushilks/subscriptions","organizations_url":"https://api.github.com/users/sushilks/orgs","repos_url":"https://api.github.com/users/sushilks/repos","events_url":"https://api.github.com/users/sushilks/events{/privacy}","received_events_url":"https://api.github.com/users/sushilks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sushilks/hydra","description":"A Scale Testing infra using Mesos and marathon","fork":false,"url":"https://api.github.com/repos/sushilks/hydra","forks_url":"https://api.github.com/repos/sushilks/hydra/forks","keys_url":"https://api.github.com/repos/sushilks/hydra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sushilks/hydra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sushilks/hydra/teams","hooks_url":"https://api.github.com/repos/sushilks/hydra/hooks","issue_events_url":"https://api.github.com/repos/sushilks/hydra/issues/events{/number}","events_url":"https://api.github.com/repos/sushilks/hydra/events","assignees_url":"https://api.github.com/repos/sushilks/hydra/assignees{/user}","branches_url":"https://api.github.com/repos/sushilks/hydra/branches{/branch}","tags_url":"https://api.github.com/repos/sushilks/hydra/tags","blobs_url":"https://api.github.com/repos/sushilks/hydra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sushilks/hydra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sushilks/hydra/git/refs{/sha}","trees_url":"https://api.github.com/repos/sushilks/hydra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sushilks/hydra/statuses/{sha}","languages_url":"https://api.github.com/repos/sushilks/hydra/languages","stargazers_url":"https://api.github.com/repos/sushilks/hydra/stargazers","contributors_url":"https://api.github.com/repos/sushilks/hydra/contributors","subscribers_url":"https://api.github.com/repos/sushilks/hydra/subscribers","subscription_url":"https://api.github.com/repos/sushilks/hydra/subscription","commits_url":"https://api.github.com/repos/sushilks/hydra/commits{/sha}","git_commits_url":"https://api.github.com/repos/sushilks/hydra/git/commits{/sha}","comments_url":"https://api.github.com/repos/sushilks/hydra/comments{/number}","issue_comment_url":"https://api.github.com/repos/sushilks/hydra/issues/comments{/number}","contents_url":"https://api.github.com/repos/sushilks/hydra/contents/{+path}","compare_url":"https://api.github.com/repos/sushilks/hydra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sushilks/hydra/merges","archive_url":"https://api.github.com/repos/sushilks/hydra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sushilks/hydra/downloads","issues_url":"https://api.github.com/repos/sushilks/hydra/issues{/number}","pulls_url":"https://api.github.com/repos/sushilks/hydra/pulls{/number}","milestones_url":"https://api.github.com/repos/sushilks/hydra/milestones{/number}","notifications_url":"https://api.github.com/repos/sushilks/hydra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sushilks/hydra/labels{/name}","releases_url":"https://api.github.com/repos/sushilks/hydra/releases{/id}","deployments_url":"https://api.github.com/repos/sushilks/hydra/deployments","created_at":"2016-03-02T11:12:25Z","updated_at":"2016-05-14T18:15:09Z","pushed_at":"2016-05-25T22:15:36Z","git_url":"git://github.com/sushilks/hydra.git","ssh_url":"git@github.com:sushilks/hydra.git","clone_url":"https://github.com/sushilks/hydra.git","svn_url":"https://github.com/sushilks/hydra","homepage":null,"size":223,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"open_issues_count":12,"forks":3,"open_issues":12,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sushilks/hydra/pulls/42"},"html":{"href":"https://github.com/sushilks/hydra/pull/42"},"issue":{"href":"https://api.github.com/repos/sushilks/hydra/issues/42"},"comments":{"href":"https://api.github.com/repos/sushilks/hydra/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/sushilks/hydra/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/sushilks/hydra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sushilks/hydra/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/sushilks/hydra/statuses/2c33119c84c6f6b160867c47876be1491cf21f78"}}}}
{"actor":{"display_login":"sushilks"}}