Class HybridShuffleConfiguration
- java.lang.Object
-
- org.apache.flink.runtime.io.network.partition.hybrid.HybridShuffleConfiguration
-
public class HybridShuffleConfiguration extends Object
Configuration for hybrid shuffle mode.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHybridShuffleConfiguration.BuilderBuilder forHybridShuffleConfiguration.static classHybridShuffleConfiguration.SpillingStrategyTypeType ofHsSpillingStrategy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HybridShuffleConfiguration.Builderbuilder(int numSubpartitions, int numBuffersPerRequest)longgetBufferPoolSizeCheckIntervalMs()Check interval of buffer pool's size.java.time.DurationgetBufferRequestTimeout()Maximum time to wait when requesting read buffers from the buffer pool before throwing an exception.floatgetFullStrategyNumBuffersTriggerSpillingRatio()When the number of unSpilled buffers equal to this ratio times pool size, trigger the spilling operation.floatgetFullStrategyReleaseBufferRatio()The proportion of buffers to be released.floatgetFullStrategyReleaseThreshold()When the number of buffers that have been requested exceeds this threshold, trigger the release operation.intgetMaxBuffersReadAhead()Determine how many buffers to read ahead at most for each subpartition to prevent other consumers from starving.intgetMaxRequestedBuffers()longgetNumRetainedInMemoryRegionsMax()Max number of hybrid retained regions in memory.intgetRegionGroupSizeInBytes()Segment size of hybrid spilled file data index.floatgetSelectiveStrategySpillBufferRatio()The proportion of buffers to be spilled.floatgetSelectiveStrategySpillThreshold()When the number of buffers that have been requested exceeds this threshold, trigger the spilling operation.HybridShuffleConfiguration.SpillingStrategyTypegetSpillingStrategyType()GetHybridShuffleConfiguration.SpillingStrategyTypefor hybrid shuffle mode.
-
-
-
Method Detail
-
builder
public static HybridShuffleConfiguration.Builder builder(int numSubpartitions, int numBuffersPerRequest)
-
getSpillingStrategyType
public HybridShuffleConfiguration.SpillingStrategyType getSpillingStrategyType()
GetHybridShuffleConfiguration.SpillingStrategyTypefor hybrid shuffle mode.
-
getMaxRequestedBuffers
public int getMaxRequestedBuffers()
-
getMaxBuffersReadAhead
public int getMaxBuffersReadAhead()
Determine how many buffers to read ahead at most for each subpartition to prevent other consumers from starving.
-
getBufferRequestTimeout
public java.time.Duration getBufferRequestTimeout()
Maximum time to wait when requesting read buffers from the buffer pool before throwing an exception.
-
getSelectiveStrategySpillThreshold
public float getSelectiveStrategySpillThreshold()
When the number of buffers that have been requested exceeds this threshold, trigger the spilling operation. Used byHsSelectiveSpillingStrategy.
-
getSelectiveStrategySpillBufferRatio
public float getSelectiveStrategySpillBufferRatio()
The proportion of buffers to be spilled. Used byHsSelectiveSpillingStrategy.
-
getFullStrategyNumBuffersTriggerSpillingRatio
public float getFullStrategyNumBuffersTriggerSpillingRatio()
When the number of unSpilled buffers equal to this ratio times pool size, trigger the spilling operation. Used byHsFullSpillingStrategy.
-
getFullStrategyReleaseThreshold
public float getFullStrategyReleaseThreshold()
When the number of buffers that have been requested exceeds this threshold, trigger the release operation. Used byHsFullSpillingStrategy.
-
getFullStrategyReleaseBufferRatio
public float getFullStrategyReleaseBufferRatio()
The proportion of buffers to be released. Used byHsFullSpillingStrategy.
-
getBufferPoolSizeCheckIntervalMs
public long getBufferPoolSizeCheckIntervalMs()
Check interval of buffer pool's size.
-
getRegionGroupSizeInBytes
public int getRegionGroupSizeInBytes()
Segment size of hybrid spilled file data index.
-
getNumRetainedInMemoryRegionsMax
public long getNumRetainedInMemoryRegionsMax()
Max number of hybrid retained regions in memory.
-
-