{"action":"opened","number":836,"pull_request":{"url":"https://api.github.com/repos/AlexsLemonade/refinebio/pulls/836","id":230622986,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMwNjIyOTg2","html_url":"https://github.com/AlexsLemonade/refinebio/pull/836","diff_url":"https://github.com/AlexsLemonade/refinebio/pull/836.diff","patch_url":"https://github.com/AlexsLemonade/refinebio/pull/836.patch","issue_url":"https://api.github.com/repos/AlexsLemonade/refinebio/issues/836","number":836,"state":"open","locked":false,"title":"Start Nomad Servers with Monit","user":{"login":"Miserlou","id":139987,"node_id":"MDQ6VXNlcjEzOTk4Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/139987?v=4","gravatar_id":"","url":"https://api.github.com/users/Miserlou","html_url":"https://github.com/Miserlou","followers_url":"https://api.github.com/users/Miserlou/followers","following_url":"https://api.github.com/users/Miserlou/following{/other_user}","gists_url":"https://api.github.com/users/Miserlou/gists{/gist_id}","starred_url":"https://api.github.com/users/Miserlou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Miserlou/subscriptions","organizations_url":"https://api.github.com/users/Miserlou/orgs","repos_url":"https://api.github.com/users/Miserlou/repos","events_url":"https://api.github.com/users/Miserlou/events{/privacy}","received_events_url":"https://api.github.com/users/Miserlou/received_events","type":"User","site_admin":false},"body":"## Issue Number\r\n\r\nhttps://github.com/hashicorp/nomad/issues/4864\r\n\r\n## Purpose/Implementation Notes\r\n\r\nPart 1 of hacks to get around Nomad being a pile of hot garbage.\r\n\r\n## Methods\r\nNomad will die some times. This makes sure that if it goes down, we make it come back up.\r\n\r\nThis isn't really a solution since the underlying problem is still there, but at least it'll come back up if it can - which it probably can't.\r\n\r\nFrom the `monit` log, you can see it working:\r\n\r\n```\r\n[UTC Nov 13 20:40:10] info     : 'ip-10-0-122-116.ec2.internal' Monit 5.16 started\r\n[UTC Nov 13 20:45:10] error    : 'nomad' '/bin/bash' failed with exit status (1) -- Error querying jobs: Get http://127.0.0.1:4646/v1/jobs: dial tcp 127.0.0.1:4646: getsockopt: connection refused\r\n[UTC Nov 13 20:45:10] info     : 'nomad' trying to restart\r\n[UTC Nov 13 20:45:10] info     : 'nomad' start: /home/ubuntu/kill_restart_nomad.sh\r\n```\r\n\r\nIt's now passed the 5 minute health window, and the health check passed so it hasn't restarted the service. `nomad status` works again. If I manually kill nomad, monit will start it again.\r\n\r\n## Types of changes\r\n\r\n- New feature (non-breaking change which adds functionality)\r\n","created_at":"2018-11-13T21:00:54Z","updated_at":"2018-11-13T21:00:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AlexsLemonade/refinebio/pulls/836/commits","review_comments_url":"https://api.github.com/repos/AlexsLemonade/refinebio/pulls/836/comments","review_comment_url":"https://api.github.com/repos/AlexsLemonade/refinebio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AlexsLemonade/refinebio/issues/836/comments","statuses_url":"https://api.github.com/repos/AlexsLemonade/refinebio/statuses/015390008fe2b621fbf8d2f9aca04fe781d7d2cf","head":{"label":"AlexsLemonade:mis/robust-nomad","ref":"mis/robust-nomad","sha":"015390008fe2b621fbf8d2f9aca04fe781d7d2cf","user":{"login":"AlexsLemonade","id":29661525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NjYxNTI1","avatar_url":"https://avatars1.githubusercontent.com/u/29661525?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexsLemonade","html_url":"https://github.com/AlexsLemonade","followers_url":"https://api.github.com/users/AlexsLemonade/followers","following_url":"https://api.github.com/users/AlexsLemonade/following{/other_user}","gists_url":"https://api.github.com/users/AlexsLemonade/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexsLemonade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexsLemonade/subscriptions","organizations_url":"https://api.github.com/users/AlexsLemonade/orgs","repos_url":"https://api.github.com/users/AlexsLemonade/repos","events_url":"https://api.github.com/users/AlexsLemonade/events{/privacy}","received_events_url":"https://api.github.com/users/AlexsLemonade/received_events","type":"Organization","site_admin":false},"repo":{"id":84867561,"node_id":"MDEwOlJlcG9zaXRvcnk4NDg2NzU2MQ==","name":"refinebio","full_name":"AlexsLemonade/refinebio","private":false,"owner":{"login":"AlexsLemonade","id":29661525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NjYxNTI1","avatar_url":"https://avatars1.githubusercontent.com/u/29661525?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexsLemonade","html_url":"https://github.com/AlexsLemonade","followers_url":"https://api.github.com/users/AlexsLemonade/followers","following_url":"https://api.github.com/users/AlexsLemonade/following{/other_user}","gists_url":"https://api.github.com/users/AlexsLemonade/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexsLemonade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexsLemonade/subscriptions","organizations_url":"https://api.github.com/users/AlexsLemonade/orgs","repos_url":"https://api.github.com/users/AlexsLemonade/repos","events_url":"https://api.github.com/users/AlexsLemonade/events{/privacy}","received_events_url":"https://api.github.com/users/AlexsLemonade/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AlexsLemonade/refinebio","description":"Refine.bio harmonizes petabytes of publicly available biological data into ready-to-use datasets for cancer researchers and AI/ML scientists.","fork":false,"url":"https://api.github.com/repos/AlexsLemonade/refinebio","forks_url":"https://api.github.com/repos/AlexsLemonade/refinebio/forks","keys_url":"https://api.github.com/repos/AlexsLemonade/refinebio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexsLemonade/refinebio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexsLemonade/refinebio/teams","hooks_url":"https://api.github.com/repos/AlexsLemonade/refinebio/hooks","issue_events_url":"https://api.github.com/repos/AlexsLemonade/refinebio/issues/events{/number}","events_url":"https://api.github.com/repos/AlexsLemonade/refinebio/events","assignees_url":"https://api.github.com/repos/AlexsLemonade/refinebio/assignees{/user}","branches_url":"https://api.github.com/repos/AlexsLemonade/refinebio/branches{/branch}","tags_url":"https://api.github.com/repos/AlexsLemonade/refinebio/tags","blobs_url":"https://api.github.com/repos/AlexsLemonade/refinebio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexsLemonade/refinebio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexsLemonade/refinebio/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexsLemonade/refinebio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexsLemonade/refinebio/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexsLemonade/refinebio/languages","stargazers_url":"https://api.github.com/repos/AlexsLemonade/refinebio/stargazers","contributors_url":"https://api.github.com/repos/AlexsLemonade/refinebio/contributors","subscribers_url":"https://api.github.com/repos/AlexsLemonade/refinebio/subscribers","subscription_url":"https://api.github.com/repos/AlexsLemonade/refinebio/subscription","commits_url":"https://api.github.com/repos/AlexsLemonade/refinebio/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexsLemonade/refinebio/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexsLemonade/refinebio/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexsLemonade/refinebio/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexsLemonade/refinebio/contents/{+path}","compare_url":"https://api.github.com/repos/AlexsLemonade/refinebio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexsLemonade/refinebio/merges","archive_url":"https://api.github.com/repos/AlexsLemonade/refinebio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexsLemonade/refinebio/downloads","issues_url":"https://api.github.com/repos/AlexsLemonade/refinebio/issues{/number}","pulls_url":"https://api.github.com/repos/AlexsLemonade/refinebio/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexsLemonade/refinebio/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexsLemonade/refinebio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexsLemonade/refinebio/labels{/name}","releases_url":"https://api.github.com/repos/AlexsLemonade/refinebio/releases{/id}","deployments_url":"https://api.github.com/repos/AlexsLemonade/refinebio/deployments","created_at":"2017-03-13T19:42:31Z","updated_at":"2018-11-09T22:03:24Z","pushed_at":"2018-11-13T20:54:51Z","git_url":"git://github.com/AlexsLemonade/refinebio.git","ssh_url":"git@github.com:AlexsLemonade/refinebio.git","clone_url":"https://github.com/AlexsLemonade/refinebio.git","svn_url":"https://github.com/AlexsLemonade/refinebio","homepage":"https://www.refine.bio/","size":343245,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":88,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":88,"watchers":33,"default_branch":"dev"}},"base":{"label":"AlexsLemonade:dev","ref":"dev","sha":"877aff6dcd75907960d799a9963e3c746043a298","user":{"login":"AlexsLemonade","id":29661525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NjYxNTI1","avatar_url":"https://avatars1.githubusercontent.com/u/29661525?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexsLemonade","html_url":"https://github.com/AlexsLemonade","followers_url":"https://api.github.com/users/AlexsLemonade/followers","following_url":"https://api.github.com/users/AlexsLemonade/following{/other_user}","gists_url":"https://api.github.com/users/AlexsLemonade/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexsLemonade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexsLemonade/subscriptions","organizations_url":"https://api.github.com/users/AlexsLemonade/orgs","repos_url":"https://api.github.com/users/AlexsLemonade/repos","events_url":"https://api.github.com/users/AlexsLemonade/events{/privacy}","received_events_url":"https://api.github.com/users/AlexsLemonade/received_events","type":"Organization","site_admin":false},"repo":{"id":84867561,"node_id":"MDEwOlJlcG9zaXRvcnk4NDg2NzU2MQ==","name":"refinebio","full_name":"AlexsLemonade/refinebio","private":false,"owner":{"login":"AlexsLemonade","id":29661525,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI5NjYxNTI1","avatar_url":"https://avatars1.githubusercontent.com/u/29661525?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexsLemonade","html_url":"https://github.com/AlexsLemonade","followers_url":"https://api.github.com/users/AlexsLemonade/followers","following_url":"https://api.github.com/users/AlexsLemonade/following{/other_user}","gists_url":"https://api.github.com/users/AlexsLemonade/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexsLemonade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexsLemonade/subscriptions","organizations_url":"https://api.github.com/users/AlexsLemonade/orgs","repos_url":"https://api.github.com/users/AlexsLemonade/repos","events_url":"https://api.github.com/users/AlexsLemonade/events{/privacy}","received_events_url":"https://api.github.com/users/AlexsLemonade/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/AlexsLemonade/refinebio","description":"Refine.bio harmonizes petabytes of publicly available biological data into ready-to-use datasets for cancer researchers and AI/ML scientists.","fork":false,"url":"https://api.github.com/repos/AlexsLemonade/refinebio","forks_url":"https://api.github.com/repos/AlexsLemonade/refinebio/forks","keys_url":"https://api.github.com/repos/AlexsLemonade/refinebio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexsLemonade/refinebio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexsLemonade/refinebio/teams","hooks_url":"https://api.github.com/repos/AlexsLemonade/refinebio/hooks","issue_events_url":"https://api.github.com/repos/AlexsLemonade/refinebio/issues/events{/number}","events_url":"https://api.github.com/repos/AlexsLemonade/refinebio/events","assignees_url":"https://api.github.com/repos/AlexsLemonade/refinebio/assignees{/user}","branches_url":"https://api.github.com/repos/AlexsLemonade/refinebio/branches{/branch}","tags_url":"https://api.github.com/repos/AlexsLemonade/refinebio/tags","blobs_url":"https://api.github.com/repos/AlexsLemonade/refinebio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexsLemonade/refinebio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexsLemonade/refinebio/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexsLemonade/refinebio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexsLemonade/refinebio/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexsLemonade/refinebio/languages","stargazers_url":"https://api.github.com/repos/AlexsLemonade/refinebio/stargazers","contributors_url":"https://api.github.com/repos/AlexsLemonade/refinebio/contributors","subscribers_url":"https://api.github.com/repos/AlexsLemonade/refinebio/subscribers","subscription_url":"https://api.github.com/repos/AlexsLemonade/refinebio/subscription","commits_url":"https://api.github.com/repos/AlexsLemonade/refinebio/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexsLemonade/refinebio/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexsLemonade/refinebio/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexsLemonade/refinebio/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexsLemonade/refinebio/contents/{+path}","compare_url":"https://api.github.com/repos/AlexsLemonade/refinebio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexsLemonade/refinebio/merges","archive_url":"https://api.github.com/repos/AlexsLemonade/refinebio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexsLemonade/refinebio/downloads","issues_url":"https://api.github.com/repos/AlexsLemonade/refinebio/issues{/number}","pulls_url":"https://api.github.com/repos/AlexsLemonade/refinebio/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexsLemonade/refinebio/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexsLemonade/refinebio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexsLemonade/refinebio/labels{/name}","releases_url":"https://api.github.com/repos/AlexsLemonade/refinebio/releases{/id}","deployments_url":"https://api.github.com/repos/AlexsLemonade/refinebio/deployments","created_at":"2017-03-13T19:42:31Z","updated_at":"2018-11-09T22:03:24Z","pushed_at":"2018-11-13T20:54:51Z","git_url":"git://github.com/AlexsLemonade/refinebio.git","ssh_url":"git@github.com:AlexsLemonade/refinebio.git","clone_url":"https://github.com/AlexsLemonade/refinebio.git","svn_url":"https://github.com/AlexsLemonade/refinebio","homepage":"https://www.refine.bio/","size":343245,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":88,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":1,"open_issues":88,"watchers":33,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio/pulls/836"},"html":{"href":"https://github.com/AlexsLemonade/refinebio/pull/836"},"issue":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio/issues/836"},"comments":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio/issues/836/comments"},"review_comments":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio/pulls/836/comments"},"review_comment":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio/pulls/836/commits"},"statuses":{"href":"https://api.github.com/repos/AlexsLemonade/refinebio/statuses/015390008fe2b621fbf8d2f9aca04fe781d7d2cf"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":54,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"Miserlou"}}