You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "huwh (via GitHub)" <gi...@apache.org> on 2023/06/16 06:14:47 UTC
[GitHub] [flink] huwh commented on a diff in pull request #22674: [FLINK-32201][runtime]Automatically determine if the shuffle descriptor needs to be offloaded by the blob server based on the number of ShuffleDescriptor edges.
huwh commented on code in PR #22674:
URL: https://github.com/apache/flink/pull/22674#discussion_r1231819871
##########
flink-runtime/src/main/java/org/apache/flink/runtime/deployment/CachedShuffleDescriptors.java:
##########
@@ -104,4 +119,30 @@ public void markPartitionFinished(IntermediateResultPartition resultPartition) {
checkNotNull(
resultPartitionIdToIndex.get(resultPartition.getPartitionId()))));
}
+
+ private boolean shouldOffload(ShuffleDescriptorAndIndex[] shuffleDescriptorsToSerialize) {
+ return shuffleDescriptorsToSerialize.length * numConsumers
Review Comment:
In some scenarios, there may only be a few new shuffleDescriptors to serialize, so it is more efficient to use Akka to transfer them directly.
--
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.
To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org