{"action":"created","comment":{"url":"https://api.github.com/repos/bluebore/galaxy/pulls/comments/34336006","id":34336006,"diff_hunk":"@@ -79,6 +79,26 @@ typedef boost::multi_index::multi_index_container<\n     >\n > AgentLoadIndex;\n \n+// job trace 用于记录job启动到结束\n+// 的汇总数据\n+struct JobTrace {\n+    // 实例被kill次数\n+    uint32_t killed_count;\n+    // 因实例超出副本数被kill\n+    uint32_t overflow_killed_count;\n+    // 实例启动次数\n+    uint32_t start_count;\n+    // 部署失败次数\n+    uint32_t deploy_failed_count;\n+    // 重新调度次数\n+    uint32_t reschedule_count;\n+    // 第一次运行数量与实例数相等\n+    bool has_been_stable;\n+    // 调度到稳定耗时 (ms)\n+    int32_t deploy_start_time;\n+    int32_t deploy_end_time;\n+    ScheduleState state;\n+};","path":"src/master/master_impl.h","position":23,"original_position":23,"commit_id":"10c1a4a8b2694e6d0a17fd2621170c4ccbd5565b","original_commit_id":"10c1a4a8b2694e6d0a17fd2621170c4ccbd5565b","user":{"login":"imotai","id":8623385,"avatar_url":"https://avatars.githubusercontent.com/u/8623385?v=3","gravatar_id":"","url":"https://api.github.com/users/imotai","html_url":"https://github.com/imotai","followers_url":"https://api.github.com/users/imotai/followers","following_url":"https://api.github.com/users/imotai/following{/other_user}","gists_url":"https://api.github.com/users/imotai/gists{/gist_id}","starred_url":"https://api.github.com/users/imotai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imotai/subscriptions","organizations_url":"https://api.github.com/users/imotai/orgs","repos_url":"https://api.github.com/users/imotai/repos","events_url":"https://api.github.com/users/imotai/events{/privacy}","received_events_url":"https://api.github.com/users/imotai/received_events","type":"User","site_admin":false},"body":"我换成pb","created_at":"2015-07-10T08:29:20Z","updated_at":"2015-07-10T08:29:20Z","html_url":"https://github.com/bluebore/galaxy/pull/121#discussion_r34336006","pull_request_url":"https://api.github.com/repos/bluebore/galaxy/pulls/121","_links":{"self":{"href":"https://api.github.com/repos/bluebore/galaxy/pulls/comments/34336006"},"html":{"href":"https://github.com/bluebore/galaxy/pull/121#discussion_r34336006"},"pull_request":{"href":"https://api.github.com/repos/bluebore/galaxy/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/bluebore/galaxy/pulls/121","id":39490261,"html_url":"https://github.com/bluebore/galaxy/pull/121","diff_url":"https://github.com/bluebore/galaxy/pull/121.diff","patch_url":"https://github.com/bluebore/galaxy/pull/121.patch","issue_url":"https://api.github.com/repos/bluebore/galaxy/issues/121","number":121,"state":"open","locked":false,"title":"监控前端入口 & master添加 job 调度统计","user":{"login":"imotai","id":8623385,"avatar_url":"https://avatars.githubusercontent.com/u/8623385?v=3","gravatar_id":"","url":"https://api.github.com/users/imotai","html_url":"https://github.com/imotai","followers_url":"https://api.github.com/users/imotai/followers","following_url":"https://api.github.com/users/imotai/following{/other_user}","gists_url":"https://api.github.com/users/imotai/gists{/gist_id}","starred_url":"https://api.github.com/users/imotai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imotai/subscriptions","organizations_url":"https://api.github.com/users/imotai/orgs","repos_url":"https://api.github.com/users/imotai/repos","events_url":"https://api.github.com/users/imotai/events{/privacy}","received_events_url":"https://api.github.com/users/imotai/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-08T15:31:17Z","updated_at":"2015-07-10T08:29:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dcf488d9d855f089a60c2ecc7db9bd80431a6b6f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bluebore/galaxy/pulls/121/commits","review_comments_url":"https://api.github.com/repos/bluebore/galaxy/pulls/121/comments","review_comment_url":"https://api.github.com/repos/bluebore/galaxy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bluebore/galaxy/issues/121/comments","statuses_url":"https://api.github.com/repos/bluebore/galaxy/statuses/10c1a4a8b2694e6d0a17fd2621170c4ccbd5565b","head":{"label":"imotai:master","ref":"master","sha":"10c1a4a8b2694e6d0a17fd2621170c4ccbd5565b","user":{"login":"imotai","id":8623385,"avatar_url":"https://avatars.githubusercontent.com/u/8623385?v=3","gravatar_id":"","url":"https://api.github.com/users/imotai","html_url":"https://github.com/imotai","followers_url":"https://api.github.com/users/imotai/followers","following_url":"https://api.github.com/users/imotai/following{/other_user}","gists_url":"https://api.github.com/users/imotai/gists{/gist_id}","starred_url":"https://api.github.com/users/imotai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imotai/subscriptions","organizations_url":"https://api.github.com/users/imotai/orgs","repos_url":"https://api.github.com/users/imotai/repos","events_url":"https://api.github.com/users/imotai/events{/privacy}","received_events_url":"https://api.github.com/users/imotai/received_events","type":"User","site_admin":false},"repo":{"id":32663300,"name":"galaxy","full_name":"imotai/galaxy","owner":{"login":"imotai","id":8623385,"avatar_url":"https://avatars.githubusercontent.com/u/8623385?v=3","gravatar_id":"","url":"https://api.github.com/users/imotai","html_url":"https://github.com/imotai","followers_url":"https://api.github.com/users/imotai/followers","following_url":"https://api.github.com/users/imotai/following{/other_user}","gists_url":"https://api.github.com/users/imotai/gists{/gist_id}","starred_url":"https://api.github.com/users/imotai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imotai/subscriptions","organizations_url":"https://api.github.com/users/imotai/orgs","repos_url":"https://api.github.com/users/imotai/repos","events_url":"https://api.github.com/users/imotai/events{/privacy}","received_events_url":"https://api.github.com/users/imotai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/imotai/galaxy","description":"Galaxy","fork":true,"url":"https://api.github.com/repos/imotai/galaxy","forks_url":"https://api.github.com/repos/imotai/galaxy/forks","keys_url":"https://api.github.com/repos/imotai/galaxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imotai/galaxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imotai/galaxy/teams","hooks_url":"https://api.github.com/repos/imotai/galaxy/hooks","issue_events_url":"https://api.github.com/repos/imotai/galaxy/issues/events{/number}","events_url":"https://api.github.com/repos/imotai/galaxy/events","assignees_url":"https://api.github.com/repos/imotai/galaxy/assignees{/user}","branches_url":"https://api.github.com/repos/imotai/galaxy/branches{/branch}","tags_url":"https://api.github.com/repos/imotai/galaxy/tags","blobs_url":"https://api.github.com/repos/imotai/galaxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imotai/galaxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imotai/galaxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/imotai/galaxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imotai/galaxy/statuses/{sha}","languages_url":"https://api.github.com/repos/imotai/galaxy/languages","stargazers_url":"https://api.github.com/repos/imotai/galaxy/stargazers","contributors_url":"https://api.github.com/repos/imotai/galaxy/contributors","subscribers_url":"https://api.github.com/repos/imotai/galaxy/subscribers","subscription_url":"https://api.github.com/repos/imotai/galaxy/subscription","commits_url":"https://api.github.com/repos/imotai/galaxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/imotai/galaxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/imotai/galaxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/imotai/galaxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/imotai/galaxy/contents/{+path}","compare_url":"https://api.github.com/repos/imotai/galaxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imotai/galaxy/merges","archive_url":"https://api.github.com/repos/imotai/galaxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imotai/galaxy/downloads","issues_url":"https://api.github.com/repos/imotai/galaxy/issues{/number}","pulls_url":"https://api.github.com/repos/imotai/galaxy/pulls{/number}","milestones_url":"https://api.github.com/repos/imotai/galaxy/milestones{/number}","notifications_url":"https://api.github.com/repos/imotai/galaxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imotai/galaxy/labels{/name}","releases_url":"https://api.github.com/repos/imotai/galaxy/releases{/id}","created_at":"2015-03-22T05:31:06Z","updated_at":"2015-05-18T07:04:12Z","pushed_at":"2015-07-10T06:25:06Z","git_url":"git://github.com/imotai/galaxy.git","ssh_url":"git@github.com:imotai/galaxy.git","clone_url":"https://github.com/imotai/galaxy.git","svn_url":"https://github.com/imotai/galaxy","homepage":null,"size":2113,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"bluebore:master","ref":"master","sha":"58293ce995c7d2d843fcf6d980ce6686339c9772","user":{"login":"bluebore","id":6851389,"avatar_url":"https://avatars.githubusercontent.com/u/6851389?v=3","gravatar_id":"","url":"https://api.github.com/users/bluebore","html_url":"https://github.com/bluebore","followers_url":"https://api.github.com/users/bluebore/followers","following_url":"https://api.github.com/users/bluebore/following{/other_user}","gists_url":"https://api.github.com/users/bluebore/gists{/gist_id}","starred_url":"https://api.github.com/users/bluebore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluebore/subscriptions","organizations_url":"https://api.github.com/users/bluebore/orgs","repos_url":"https://api.github.com/users/bluebore/repos","events_url":"https://api.github.com/users/bluebore/events{/privacy}","received_events_url":"https://api.github.com/users/bluebore/received_events","type":"User","site_admin":false},"repo":{"id":28955570,"name":"galaxy","full_name":"bluebore/galaxy","owner":{"login":"bluebore","id":6851389,"avatar_url":"https://avatars.githubusercontent.com/u/6851389?v=3","gravatar_id":"","url":"https://api.github.com/users/bluebore","html_url":"https://github.com/bluebore","followers_url":"https://api.github.com/users/bluebore/followers","following_url":"https://api.github.com/users/bluebore/following{/other_user}","gists_url":"https://api.github.com/users/bluebore/gists{/gist_id}","starred_url":"https://api.github.com/users/bluebore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluebore/subscriptions","organizations_url":"https://api.github.com/users/bluebore/orgs","repos_url":"https://api.github.com/users/bluebore/repos","events_url":"https://api.github.com/users/bluebore/events{/privacy}","received_events_url":"https://api.github.com/users/bluebore/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bluebore/galaxy","description":"Data Center Operating System","fork":false,"url":"https://api.github.com/repos/bluebore/galaxy","forks_url":"https://api.github.com/repos/bluebore/galaxy/forks","keys_url":"https://api.github.com/repos/bluebore/galaxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bluebore/galaxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bluebore/galaxy/teams","hooks_url":"https://api.github.com/repos/bluebore/galaxy/hooks","issue_events_url":"https://api.github.com/repos/bluebore/galaxy/issues/events{/number}","events_url":"https://api.github.com/repos/bluebore/galaxy/events","assignees_url":"https://api.github.com/repos/bluebore/galaxy/assignees{/user}","branches_url":"https://api.github.com/repos/bluebore/galaxy/branches{/branch}","tags_url":"https://api.github.com/repos/bluebore/galaxy/tags","blobs_url":"https://api.github.com/repos/bluebore/galaxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bluebore/galaxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bluebore/galaxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/bluebore/galaxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bluebore/galaxy/statuses/{sha}","languages_url":"https://api.github.com/repos/bluebore/galaxy/languages","stargazers_url":"https://api.github.com/repos/bluebore/galaxy/stargazers","contributors_url":"https://api.github.com/repos/bluebore/galaxy/contributors","subscribers_url":"https://api.github.com/repos/bluebore/galaxy/subscribers","subscription_url":"https://api.github.com/repos/bluebore/galaxy/subscription","commits_url":"https://api.github.com/repos/bluebore/galaxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/bluebore/galaxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/bluebore/galaxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/bluebore/galaxy/issues/comments{/number}","contents_url":"https://api.github.com/repos/bluebore/galaxy/contents/{+path}","compare_url":"https://api.github.com/repos/bluebore/galaxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bluebore/galaxy/merges","archive_url":"https://api.github.com/repos/bluebore/galaxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bluebore/galaxy/downloads","issues_url":"https://api.github.com/repos/bluebore/galaxy/issues{/number}","pulls_url":"https://api.github.com/repos/bluebore/galaxy/pulls{/number}","milestones_url":"https://api.github.com/repos/bluebore/galaxy/milestones{/number}","notifications_url":"https://api.github.com/repos/bluebore/galaxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bluebore/galaxy/labels{/name}","releases_url":"https://api.github.com/repos/bluebore/galaxy/releases{/id}","created_at":"2015-01-08T08:04:16Z","updated_at":"2015-06-04T14:07:14Z","pushed_at":"2015-07-10T06:25:06Z","git_url":"git://github.com/bluebore/galaxy.git","ssh_url":"git@github.com:bluebore/galaxy.git","clone_url":"https://github.com/bluebore/galaxy.git","svn_url":"https://github.com/bluebore/galaxy","homepage":"","size":2547,"stargazers_count":8,"watchers_count":8,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":14,"forks":10,"open_issues":14,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bluebore/galaxy/pulls/121"},"html":{"href":"https://github.com/bluebore/galaxy/pull/121"},"issue":{"href":"https://api.github.com/repos/bluebore/galaxy/issues/121"},"comments":{"href":"https://api.github.com/repos/bluebore/galaxy/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/bluebore/galaxy/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/bluebore/galaxy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bluebore/galaxy/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/bluebore/galaxy/statuses/10c1a4a8b2694e6d0a17fd2621170c4ccbd5565b"}}}}