Class BufferDebloater

java.lang.Object
org.apache.flink.runtime.throughput.BufferDebloater

public class BufferDebloater extends Object
Class for automatic calculation of the buffer size based on the current throughput and configuration.
  • Constructor Details

    • BufferDebloater

      public BufferDebloater(String owningTaskName, int gateIndex, long targetTotalTime, int maxBufferSize, int minBufferSize, int bufferDebloatThresholdPercentages, long numberOfSamples)
    • BufferDebloater

      public BufferDebloater(String owningTaskName, int gateIndex, long targetTotalTime, int startingBufferSize, int maxBufferSize, int minBufferSize, int bufferDebloatThresholdPercentages, long numberOfSamples)
  • Method Details

    • recalculateBufferSize

      public OptionalInt recalculateBufferSize(long currentThroughput, int buffersInUse)
    • getLastBufferSize

      public int getLastBufferSize()
    • getLastEstimatedTimeToConsumeBuffers

      public Duration getLastEstimatedTimeToConsumeBuffers()