KarmaGYZ commented on a change in pull request #14647:
URL: https://github.com/apache/flink/pull/14647#discussion_r567546171



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/resourcemanager/WorkerResourceSpec.java
##########
@@ -70,6 +71,17 @@ public static WorkerResourceSpec fromTaskExecutorProcessSpec(
                 taskExecutorProcessSpec.getManagedMemorySize());
     }
 
+    public static WorkerResourceSpec fromTotalResourceProfile(
+            final ResourceProfile resourceProfile) {
+        Preconditions.checkNotNull(resourceProfile);
+        return new WorkerResourceSpec(
+                (CPUResource) resourceProfile.getCpuCores(),

Review comment:
       +1, create https://issues.apache.org/jira/browse/FLINK-21220 for it.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to