{"action":"created","comment":{"url":"https://api.github.com/repos/apache/flink/pulls/comments/74864046","id":74864046,"diff_hunk":"@@ -0,0 +1,47 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with the License.  You may obtain a copy of the License at\n+ *\n+ *     http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+package org.apache.flink.runtime.clusterframework.types;\n+\n+import java.io.Serializable;\n+\n+public class ResourceProfile implements Serializable {\n+\n+\tprivate static final long serialVersionUID = -784900073893060124L;\n+\n+\t/** How many cpu cores are needed, use double so we can specify cpu like 0.1 */\n+\tprivate final double cpuCores;\n+\n+\t/** How many memory in mb are needed */\n+\tprivate final long memoryInMB;","path":"flink-runtime/src/main/java/org/apache/flink/runtime/clusterframework/types/ResourceProfile.java","position":36,"original_position":31,"commit_id":"e9144aa40c15ff964b82ca200685fdbb62741c77","original_commit_id":"36d4a158e971f93ef26bec209c3dfac23cd0d8dc","user":{"login":"KurtYoung","id":955396,"avatar_url":"https://avatars.githubusercontent.com/u/955396?v=3","gravatar_id":"","url":"https://api.github.com/users/KurtYoung","html_url":"https://github.com/KurtYoung","followers_url":"https://api.github.com/users/KurtYoung/followers","following_url":"https://api.github.com/users/KurtYoung/following{/other_user}","gists_url":"https://api.github.com/users/KurtYoung/gists{/gist_id}","starred_url":"https://api.github.com/users/KurtYoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KurtYoung/subscriptions","organizations_url":"https://api.github.com/users/KurtYoung/orgs","repos_url":"https://api.github.com/users/KurtYoung/repos","events_url":"https://api.github.com/users/KurtYoung/events{/privacy}","received_events_url":"https://api.github.com/users/KurtYoung/received_events","type":"User","site_admin":false},"body":"added","created_at":"2016-08-16T01:24:11Z","updated_at":"2016-08-16T01:24:11Z","html_url":"https://github.com/apache/flink/pull/2370#discussion_r74864046","pull_request_url":"https://api.github.com/repos/apache/flink/pulls/2370","_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/comments/74864046"},"html":{"href":"https://github.com/apache/flink/pull/2370#discussion_r74864046"},"pull_request":{"href":"https://api.github.com/repos/apache/flink/pulls/2370"}}},"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/2370","id":81260419,"html_url":"https://github.com/apache/flink/pull/2370","diff_url":"https://github.com/apache/flink/pull/2370.diff","patch_url":"https://github.com/apache/flink/pull/2370.patch","issue_url":"https://api.github.com/repos/apache/flink/issues/2370","number":2370,"state":"open","locked":false,"title":"[FLINK-4373] [cluster management] Introduce SlotID, AllocationID, Res…","user":{"login":"KurtYoung","id":955396,"avatar_url":"https://avatars.githubusercontent.com/u/955396?v=3","gravatar_id":"","url":"https://api.github.com/users/KurtYoung","html_url":"https://github.com/KurtYoung","followers_url":"https://api.github.com/users/KurtYoung/followers","following_url":"https://api.github.com/users/KurtYoung/following{/other_user}","gists_url":"https://api.github.com/users/KurtYoung/gists{/gist_id}","starred_url":"https://api.github.com/users/KurtYoung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KurtYoung/subscriptions","organizations_url":"https://api.github.com/users/KurtYoung/orgs","repos_url":"https://api.github.com/users/KurtYoung/repos","events_url":"https://api.github.com/users/KurtYoung/events{/privacy}","received_events_url":"https://api.github.com/users/KurtYoung/received_events","type":"User","site_admin":false},"body":"For the new version of cluster management, we need some more basic data structures:\r\n\r\n* SlotID: Identifier of one single slot located in a task executor\r\n\r\n* AllocationID: Slot allocation identifier, created by the JobManager when requesting a slot, constant across re-tries. Used to identify responses by the ResourceManager and to identify deployment calls towards the TaskManager that was allocated from.\r\n\r\n* ResourceProfile: The resource profile of the desired slot (currently only cpu cores and memory are supported","created_at":"2016-08-15T01:04:17Z","updated_at":"2016-08-16T01:24:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eec5e3893704d165edf5adfd2cc226712955ade8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/flink/pulls/2370/commits","review_comments_url":"https://api.github.com/repos/apache/flink/pulls/2370/comments","review_comment_url":"https://api.github.com/repos/apache/flink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flink/issues/2370/comments","statuses_url":"https://api.github.com/repos/apache/flink/statuses/e9144aa40c15ff964b82ca200685fdbb62741c77","head":{"label":"alibaba:flink-4373","ref":"flink-4373","sha":"e9144aa40c15ff964b82ca200685fdbb62741c77","user":{"login":"alibaba","id":1961952,"avatar_url":"https://avatars.githubusercontent.com/u/1961952?v=3","gravatar_id":"","url":"https://api.github.com/users/alibaba","html_url":"https://github.com/alibaba","followers_url":"https://api.github.com/users/alibaba/followers","following_url":"https://api.github.com/users/alibaba/following{/other_user}","gists_url":"https://api.github.com/users/alibaba/gists{/gist_id}","starred_url":"https://api.github.com/users/alibaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alibaba/subscriptions","organizations_url":"https://api.github.com/users/alibaba/orgs","repos_url":"https://api.github.com/users/alibaba/repos","events_url":"https://api.github.com/users/alibaba/events{/privacy}","received_events_url":"https://api.github.com/users/alibaba/received_events","type":"Organization","site_admin":false},"repo":{"id":65431038,"name":"flink","full_name":"alibaba/flink","owner":{"login":"alibaba","id":1961952,"avatar_url":"https://avatars.githubusercontent.com/u/1961952?v=3","gravatar_id":"","url":"https://api.github.com/users/alibaba","html_url":"https://github.com/alibaba","followers_url":"https://api.github.com/users/alibaba/followers","following_url":"https://api.github.com/users/alibaba/following{/other_user}","gists_url":"https://api.github.com/users/alibaba/gists{/gist_id}","starred_url":"https://api.github.com/users/alibaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alibaba/subscriptions","organizations_url":"https://api.github.com/users/alibaba/orgs","repos_url":"https://api.github.com/users/alibaba/repos","events_url":"https://api.github.com/users/alibaba/events{/privacy}","received_events_url":"https://api.github.com/users/alibaba/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alibaba/flink","description":"Mirror of Apache Flink","fork":true,"url":"https://api.github.com/repos/alibaba/flink","forks_url":"https://api.github.com/repos/alibaba/flink/forks","keys_url":"https://api.github.com/repos/alibaba/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alibaba/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alibaba/flink/teams","hooks_url":"https://api.github.com/repos/alibaba/flink/hooks","issue_events_url":"https://api.github.com/repos/alibaba/flink/issues/events{/number}","events_url":"https://api.github.com/repos/alibaba/flink/events","assignees_url":"https://api.github.com/repos/alibaba/flink/assignees{/user}","branches_url":"https://api.github.com/repos/alibaba/flink/branches{/branch}","tags_url":"https://api.github.com/repos/alibaba/flink/tags","blobs_url":"https://api.github.com/repos/alibaba/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alibaba/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alibaba/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/alibaba/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alibaba/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/alibaba/flink/languages","stargazers_url":"https://api.github.com/repos/alibaba/flink/stargazers","contributors_url":"https://api.github.com/repos/alibaba/flink/contributors","subscribers_url":"https://api.github.com/repos/alibaba/flink/subscribers","subscription_url":"https://api.github.com/repos/alibaba/flink/subscription","commits_url":"https://api.github.com/repos/alibaba/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/alibaba/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/alibaba/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/alibaba/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/alibaba/flink/contents/{+path}","compare_url":"https://api.github.com/repos/alibaba/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alibaba/flink/merges","archive_url":"https://api.github.com/repos/alibaba/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alibaba/flink/downloads","issues_url":"https://api.github.com/repos/alibaba/flink/issues{/number}","pulls_url":"https://api.github.com/repos/alibaba/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/alibaba/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/alibaba/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alibaba/flink/labels{/name}","releases_url":"https://api.github.com/repos/alibaba/flink/releases{/id}","deployments_url":"https://api.github.com/repos/alibaba/flink/deployments","created_at":"2016-08-11T02:17:59Z","updated_at":"2016-08-15T10:18:17Z","pushed_at":"2016-08-16T01:23:55Z","git_url":"git://github.com/alibaba/flink.git","ssh_url":"git@github.com:alibaba/flink.git","clone_url":"https://github.com/alibaba/flink.git","svn_url":"https://github.com/alibaba/flink","homepage":null,"size":89273,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"apache:flip-6","ref":"flip-6","sha":"363f07cc4d0f452cd9479a704703ae59e8d450c6","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":20587599,"name":"flink","full_name":"apache/flink","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/flink","description":"Mirror of Apache Flink","fork":false,"url":"https://api.github.com/repos/apache/flink","forks_url":"https://api.github.com/repos/apache/flink/forks","keys_url":"https://api.github.com/repos/apache/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/flink/teams","hooks_url":"https://api.github.com/repos/apache/flink/hooks","issue_events_url":"https://api.github.com/repos/apache/flink/issues/events{/number}","events_url":"https://api.github.com/repos/apache/flink/events","assignees_url":"https://api.github.com/repos/apache/flink/assignees{/user}","branches_url":"https://api.github.com/repos/apache/flink/branches{/branch}","tags_url":"https://api.github.com/repos/apache/flink/tags","blobs_url":"https://api.github.com/repos/apache/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/flink/languages","stargazers_url":"https://api.github.com/repos/apache/flink/stargazers","contributors_url":"https://api.github.com/repos/apache/flink/contributors","subscribers_url":"https://api.github.com/repos/apache/flink/subscribers","subscription_url":"https://api.github.com/repos/apache/flink/subscription","commits_url":"https://api.github.com/repos/apache/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/flink/contents/{+path}","compare_url":"https://api.github.com/repos/apache/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/flink/merges","archive_url":"https://api.github.com/repos/apache/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/flink/downloads","issues_url":"https://api.github.com/repos/apache/flink/issues{/number}","pulls_url":"https://api.github.com/repos/apache/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/flink/labels{/name}","releases_url":"https://api.github.com/repos/apache/flink/releases{/id}","deployments_url":"https://api.github.com/repos/apache/flink/deployments","created_at":"2014-06-07T07:00:10Z","updated_at":"2016-08-16T00:14:45Z","pushed_at":"2016-08-16T01:23:57Z","git_url":"git://github.com/apache/flink.git","ssh_url":"git@github.com:apache/flink.git","clone_url":"https://github.com/apache/flink.git","svn_url":"https://github.com/apache/flink","homepage":null,"size":120183,"stargazers_count":1501,"watchers_count":1501,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":997,"mirror_url":"git://git.apache.org/flink.git","open_issues_count":131,"forks":997,"open_issues":131,"watchers":1501,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/2370"},"html":{"href":"https://github.com/apache/flink/pull/2370"},"issue":{"href":"https://api.github.com/repos/apache/flink/issues/2370"},"comments":{"href":"https://api.github.com/repos/apache/flink/issues/2370/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flink/pulls/2370/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flink/pulls/2370/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flink/statuses/e9144aa40c15ff964b82ca200685fdbb62741c77"}}}}
{"actor":{"display_login":"KurtYoung"}}