Github user mxm commented on a diff in the pull request:

    https://github.com/apache/flink/pull/934#discussion_r35635387
  
    --- Diff: 
flink-runtime/src/main/scala/org/apache/flink/runtime/akka/AkkaUtils.scala ---
    @@ -421,4 +421,16 @@ object AkkaUtils {
         val duration = Duration(ConfigConstants.DEFAULT_AKKA_LOOKUP_TIMEOUT)
         new FiniteDuration(duration.toMillis, TimeUnit.MILLISECONDS)
       }
    +
    +  def getFramesize(config: Configuration): Long = config.getString(
    +    ConfigConstants.AKKA_FRAMESIZE,
    +    ConfigConstants.DEFAULT_AKKA_FRAMESIZE).replaceAll("[^\\d.]", 
"").toLong
    +
    +  /**
    +   * @return the threshold (in bytes) above which an object is considered 
too big
    +   *         to transfer using akka. For now this parameter is set to 80% 
of the
    +   *         akka.framesize.
    +   * */
    +  def getLargeAccumulatorThreshold(config: Configuration): Long =
    +    (0.8 * getFramesize(config)).toLong
    --- End diff --
    
    Maybe this should be configurable.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to