zhijiangW commented on a change in pull request #8704: [FLINK-12812][runtime] 
Set resource profiles for task slots
URL: https://github.com/apache/flink/pull/8704#discussion_r299390967
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/shuffle/ShuffleEnvironment.java
 ##########
 @@ -171,4 +171,11 @@ ShuffleIOOwnerContext createShuffleIOOwnerContext(
        boolean updatePartitionInfo(
                ExecutionAttemptID consumerID,
                PartitionInfo partitionInfo) throws IOException, 
InterruptedException;
+
+       /**
+        * Gets total memory size for network buffers in bytes.
+        *
+        * @return network memory size in bytes.
+        */
+       long getMemorySize();
 
 Review comment:
   Actually we considered this issue in 
[FLINK-12110](https://issues.apache.org/jira/browse/FLINK-12110). 
   I guess we might also need to know the memory type besides size, because we 
could not make an assumption of direct memory as now based on pluggable shuffle 
service.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to