payload: {"action":"opened","number":54,"pull_request":{"url":"https://api.github.com/repos/open-lambda/open-lambda/pulls/54","id":273366516,"node_id":"MDExOlB1bGxSZXF1ZXN0MjczMzY2NTE2","html_url":"https://github.com/open-lambda/open-lambda/pull/54","diff_url":"https://github.com/open-lambda/open-lambda/pull/54.diff","patch_url":"https://github.com/open-lambda/open-lambda/pull/54.patch","issue_url":"https://api.github.com/repos/open-lambda/open-lambda/issues/54","number":54,"state":"open","locked":false,"title":"[Code Only] Work of Lambda Team in S19 CS838 Edge Computing Lab","user":{"login":"gtbai","id":8499720,"node_id":"MDQ6VXNlcjg0OTk3MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/8499720?v=4","gravatar_id":"","url":"https://api.github.com/users/gtbai","html_url":"https://github.com/gtbai","followers_url":"https://api.github.com/users/gtbai/followers","following_url":"https://api.github.com/users/gtbai/following{/other_user}","gists_url":"https://api.github.com/users/gtbai/gists{/gist_id}","starred_url":"https://api.github.com/users/gtbai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtbai/subscriptions","organizations_url":"https://api.github.com/users/gtbai/orgs","repos_url":"https://api.github.com/users/gtbai/repos","events_url":"https://api.github.com/users/gtbai/events{/privacy}","received_events_url":"https://api.github.com/users/gtbai/received_events","type":"User","site_admin":false},"body":"This is the code part of PR https://github.com/open-lambda/open-lambda/pull/53.\r\n\r\n> In this PR, we added the following two features for workers:\r\n> \r\n> 1. Enable requests of the same lambda to reuse a handler.\r\n>    \r\n>    * To accomplish this, we moved the code that adds a new handler to the `HandlerManagerSet .HandlerManager.handlers` list.\r\n> 2. Added request queuing mechanism (mem usage hard limit) for workers.\r\n>    \r\n>    * Added a utility function to get the current machine memory usage, making use of [shirou/gopsutil](https://github.com/shirou/gopsutil)\r\n>    * Added both a soft limit (`Config.Create_sandbox_soft_limit `/`HandlerManagerSet.sbSoftLimit`) and a hard limit (`Config.Create_sandbox_hard_limit `/`HandlerManagerSet.sbHardLimit`) for memory usage when creating new sandboxes.\r\n>      \r\n>      * When memory usage exceeds the soft limit, at most `Config.Max_num_sandbox_creating `/`HandlerManagerSet.maxNumSbCreating ` sandboxes can be being created at the same time.\r\n>      * When memory usage exceeds the hard limit, requests creating new sandboxes will be blocked, until memory usage decreases.","created_at":"2019-04-25T03:40:38Z","updated_at":"2019-04-25T03:40:38Z","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/open-lambda/open-lambda/pulls/54/commits","review_comments_url":"https://api.github.com/repos/open-lambda/open-lambda/pulls/54/comments","review_comment_url":"https://api.github.com/repos/open-lambda/open-lambda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-lambda/open-lambda/issues/54/comments","statuses_url":"https://api.github.com/repos/open-lambda/open-lambda/statuses/4621ca3ec6a2f92ad849886c30e2ca9b677a8da7","head":{"label":"gtbai:code-branch","ref":"code-branch","sha":"4621ca3ec6a2f92ad849886c30e2ca9b677a8da7","user":{"login":"gtbai","id":8499720,"node_id":"MDQ6VXNlcjg0OTk3MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/8499720?v=4","gravatar_id":"","url":"https://api.github.com/users/gtbai","html_url":"https://github.com/gtbai","followers_url":"https://api.github.com/users/gtbai/followers","following_url":"https://api.github.com/users/gtbai/following{/other_user}","gists_url":"https://api.github.com/users/gtbai/gists{/gist_id}","starred_url":"https://api.github.com/users/gtbai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtbai/subscriptions","organizations_url":"https://api.github.com/users/gtbai/orgs","repos_url":"https://api.github.com/users/gtbai/repos","events_url":"https://api.github.com/users/gtbai/events{/privacy}","received_events_url":"https://api.github.com/users/gtbai/received_events","type":"User","site_admin":false},"repo":{"id":182156450,"node_id":"MDEwOlJlcG9zaXRvcnkxODIxNTY0NTA=","name":"open-lambda","full_name":"gtbai/open-lambda","private":false,"owner":{"login":"gtbai","id":8499720,"node_id":"MDQ6VXNlcjg0OTk3MjA=","avatar_url":"https://avatars1.githubusercontent.com/u/8499720?v=4","gravatar_id":"","url":"https://api.github.com/users/gtbai","html_url":"https://github.com/gtbai","followers_url":"https://api.github.com/users/gtbai/followers","following_url":"https://api.github.com/users/gtbai/following{/other_user}","gists_url":"https://api.github.com/users/gtbai/gists{/gist_id}","starred_url":"https://api.github.com/users/gtbai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtbai/subscriptions","organizations_url":"https://api.github.com/users/gtbai/orgs","repos_url":"https://api.github.com/users/gtbai/repos","events_url":"https://api.github.com/users/gtbai/events{/privacy}","received_events_url":"https://api.github.com/users/gtbai/received_events","type":"User","site_admin":false},"html_url":"https://github.com/gtbai/open-lambda","description":"An open source serverless computing platform","fork":true,"url":"https://api.github.com/repos/gtbai/open-lambda","forks_url":"https://api.github.com/repos/gtbai/open-lambda/forks","keys_url":"https://api.github.com/repos/gtbai/open-lambda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gtbai/open-lambda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gtbai/open-lambda/teams","hooks_url":"https://api.github.com/repos/gtbai/open-lambda/hooks","issue_events_url":"https://api.github.com/repos/gtbai/open-lambda/issues/events{/number}","events_url":"https://api.github.com/repos/gtbai/open-lambda/events","assignees_url":"https://api.github.com/repos/gtbai/open-lambda/assignees{/user}","branches_url":"https://api.github.com/repos/gtbai/open-lambda/branches{/branch}","tags_url":"https://api.github.com/repos/gtbai/open-lambda/tags","blobs_url":"https://api.github.com/repos/gtbai/open-lambda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gtbai/open-lambda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gtbai/open-lambda/git/refs{/sha}","trees_url":"https://api.github.com/repos/gtbai/open-lambda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gtbai/open-lambda/statuses/{sha}","languages_url":"https://api.github.com/repos/gtbai/open-lambda/languages","stargazers_url":"https://api.github.com/repos/gtbai/open-lambda/stargazers","contributors_url":"https://api.github.com/repos/gtbai/open-lambda/contributors","subscribers_url":"https://api.github.com/repos/gtbai/open-lambda/subscribers","subscription_url":"https://api.github.com/repos/gtbai/open-lambda/subscription","commits_url":"https://api.github.com/repos/gtbai/open-lambda/commits{/sha}","git_commits_url":"https://api.github.com/repos/gtbai/open-lambda/git/commits{/sha}","comments_url":"https://api.github.com/repos/gtbai/open-lambda/comments{/number}","issue_comment_url":"https://api.github.com/repos/gtbai/open-lambda/issues/comments{/number}","contents_url":"https://api.github.com/repos/gtbai/open-lambda/contents/{+path}","compare_url":"https://api.github.com/repos/gtbai/open-lambda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gtbai/open-lambda/merges","archive_url":"https://api.github.com/repos/gtbai/open-lambda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gtbai/open-lambda/downloads","issues_url":"https://api.github.com/repos/gtbai/open-lambda/issues{/number}","pulls_url":"https://api.github.com/repos/gtbai/open-lambda/pulls{/number}","milestones_url":"https://api.github.com/repos/gtbai/open-lambda/milestones{/number}","notifications_url":"https://api.github.com/repos/gtbai/open-lambda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gtbai/open-lambda/labels{/name}","releases_url":"https://api.github.com/repos/gtbai/open-lambda/releases{/id}","deployments_url":"https://api.github.com/repos/gtbai/open-lambda/deployments","created_at":"2019-04-18T20:56:27Z","updated_at":"2019-04-22T02:27:12Z","pushed_at":"2019-04-25T03:35:57Z","git_url":"git://github.com/gtbai/open-lambda.git","ssh_url":"git@github.com:gtbai/open-lambda.git","clone_url":"https://github.com/gtbai/open-lambda.git","svn_url":"https://github.com/gtbai/open-lambda","homepage":"","size":108124,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":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":"open-lambda:master","ref":"master","sha":"6df65ce3e967baac8a8770286caa27ae0fcf5963","user":{"login":"open-lambda","id":19804021,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5ODA0MDIx","avatar_url":"https://avatars3.githubusercontent.com/u/19804021?v=4","gravatar_id":"","url":"https://api.github.com/users/open-lambda","html_url":"https://github.com/open-lambda","followers_url":"https://api.github.com/users/open-lambda/followers","following_url":"https://api.github.com/users/open-lambda/following{/other_user}","gists_url":"https://api.github.com/users/open-lambda/gists{/gist_id}","starred_url":"https://api.github.com/users/open-lambda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-lambda/subscriptions","organizations_url":"https://api.github.com/users/open-lambda/orgs","repos_url":"https://api.github.com/users/open-lambda/repos","events_url":"https://api.github.com/users/open-lambda/events{/privacy}","received_events_url":"https://api.github.com/users/open-lambda/received_events","type":"Organization","site_admin":false},"repo":{"id":61392620,"node_id":"MDEwOlJlcG9zaXRvcnk2MTM5MjYyMA==","name":"open-lambda","full_name":"open-lambda/open-lambda","private":false,"owner":{"login":"open-lambda","id":19804021,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5ODA0MDIx","avatar_url":"https://avatars3.githubusercontent.com/u/19804021?v=4","gravatar_id":"","url":"https://api.github.com/users/open-lambda","html_url":"https://github.com/open-lambda","followers_url":"https://api.github.com/users/open-lambda/followers","following_url":"https://api.github.com/users/open-lambda/following{/other_user}","gists_url":"https://api.github.com/users/open-lambda/gists{/gist_id}","starred_url":"https://api.github.com/users/open-lambda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-lambda/subscriptions","organizations_url":"https://api.github.com/users/open-lambda/orgs","repos_url":"https://api.github.com/users/open-lambda/repos","events_url":"https://api.github.com/users/open-lambda/events{/privacy}","received_events_url":"https://api.github.com/users/open-lambda/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/open-lambda/open-lambda","description":"An open source serverless computing platform","fork":false,"url":"https://api.github.com/repos/open-lambda/open-lambda","forks_url":"https://api.github.com/repos/open-lambda/open-lambda/forks","keys_url":"https://api.github.com/repos/open-lambda/open-lambda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-lambda/open-lambda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-lambda/open-lambda/teams","hooks_url":"https://api.github.com/repos/open-lambda/open-lambda/hooks","issue_events_url":"https://api.github.com/repos/open-lambda/open-lambda/issues/events{/number}","events_url":"https://api.github.com/repos/open-lambda/open-lambda/events","assignees_url":"https://api.github.com/repos/open-lambda/open-lambda/assignees{/user}","branches_url":"https://api.github.com/repos/open-lambda/open-lambda/branches{/branch}","tags_url":"https://api.github.com/repos/open-lambda/open-lambda/tags","blobs_url":"https://api.github.com/repos/open-lambda/open-lambda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-lambda/open-lambda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-lambda/open-lambda/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-lambda/open-lambda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-lambda/open-lambda/statuses/{sha}","languages_url":"https://api.github.com/repos/open-lambda/open-lambda/languages","stargazers_url":"https://api.github.com/repos/open-lambda/open-lambda/stargazers","contributors_url":"https://api.github.com/repos/open-lambda/open-lambda/contributors","subscribers_url":"https://api.github.com/repos/open-lambda/open-lambda/subscribers","subscription_url":"https://api.github.com/repos/open-lambda/open-lambda/subscription","commits_url":"https://api.github.com/repos/open-lambda/open-lambda/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-lambda/open-lambda/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-lambda/open-lambda/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-lambda/open-lambda/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-lambda/open-lambda/contents/{+path}","compare_url":"https://api.github.com/repos/open-lambda/open-lambda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-lambda/open-lambda/merges","archive_url":"https://api.github.com/repos/open-lambda/open-lambda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-lambda/open-lambda/downloads","issues_url":"https://api.github.com/repos/open-lambda/open-lambda/issues{/number}","pulls_url":"https://api.github.com/repos/open-lambda/open-lambda/pulls{/number}","milestones_url":"https://api.github.com/repos/open-lambda/open-lambda/milestones{/number}","notifications_url":"https://api.github.com/repos/open-lambda/open-lambda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-lambda/open-lambda/labels{/name}","releases_url":"https://api.github.com/repos/open-lambda/open-lambda/releases{/id}","deployments_url":"https://api.github.com/repos/open-lambda/open-lambda/deployments","created_at":"2016-06-17T18:01:08Z","updated_at":"2019-04-24T14:59:56Z","pushed_at":"2019-04-22T02:56:28Z","git_url":"git://github.com/open-lambda/open-lambda.git","ssh_url":"git@github.com:open-lambda/open-lambda.git","clone_url":"https://github.com/open-lambda/open-lambda.git","svn_url":"https://github.com/open-lambda/open-lambda","homepage":"","size":107467,"stargazers_count":596,"watchers_count":596,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":61,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":13,"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":61,"open_issues":13,"watchers":596,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-lambda/open-lambda/pulls/54"},"html":{"href":"https://github.com/open-lambda/open-lambda/pull/54"},"issue":{"href":"https://api.github.com/repos/open-lambda/open-lambda/issues/54"},"comments":{"href":"https://api.github.com/repos/open-lambda/open-lambda/issues/54/comments"},"review_comments":{"href":"https://api.github.com/repos/open-lambda/open-lambda/pulls/54/comments"},"review_comment":{"href":"https://api.github.com/repos/open-lambda/open-lambda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-lambda/open-lambda/pulls/54/commits"},"statuses":{"href":"https://api.github.com/repos/open-lambda/open-lambda/statuses/4621ca3ec6a2f92ad849886c30e2ca9b677a8da7"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":79,"deletions":8,"changed_files":2}}
other: {"actor":{"display_login":"gtbai"}}