Class BufferDebloater
java.lang.Object
org.apache.flink.runtime.throughput.BufferDebloater
Class for automatic calculation of the buffer size based on the current throughput and
configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionBufferDebloater(String owningTaskName, int gateIndex, long targetTotalTime, int startingBufferSize, int maxBufferSize, int minBufferSize, int bufferDebloatThresholdPercentages, long numberOfSamples) BufferDebloater(String owningTaskName, int gateIndex, long targetTotalTime, int maxBufferSize, int minBufferSize, int bufferDebloatThresholdPercentages, long numberOfSamples) -
Method Summary
Modifier and TypeMethodDescriptionintrecalculateBufferSize(long currentThroughput, int buffersInUse)
-
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
-
getLastBufferSize
public int getLastBufferSize() -
getLastEstimatedTimeToConsumeBuffers
-