public class HybridShuffleConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HybridShuffleConfiguration.Builder
Builder for
HybridShuffleConfiguration . |
static class |
HybridShuffleConfiguration.SpillingStrategyType
Type of
HsSpillingStrategy . |
Modifier and Type | Method and Description |
---|---|
static HybridShuffleConfiguration.Builder |
builder(int numSubpartitions,
int numBuffersPerRequest) |
long |
getBufferPoolSizeCheckIntervalMs()
Check interval of buffer pool's size.
|
Duration |
getBufferRequestTimeout()
Maximum time to wait when requesting read buffers from the buffer pool before throwing an
exception.
|
float |
getFullStrategyNumBuffersTriggerSpillingRatio()
When the number of unSpilled buffers equal to this ratio times pool size, trigger the
spilling operation.
|
float |
getFullStrategyReleaseBufferRatio()
The proportion of buffers to be released.
|
float |
getFullStrategyReleaseThreshold()
When the number of buffers that have been requested exceeds this threshold, trigger the
release operation.
|
int |
getMaxBuffersReadAhead()
Determine how many buffers to read ahead at most for each subpartition to prevent other
consumers from starving.
|
int |
getMaxRequestedBuffers() |
long |
getNumRetainedInMemoryRegionsMax()
Max number of hybrid retained regions in memory.
|
int |
getRegionGroupSizeInBytes()
Segment size of hybrid spilled file data index.
|
float |
getSelectiveStrategySpillBufferRatio()
The proportion of buffers to be spilled.
|
float |
getSelectiveStrategySpillThreshold()
When the number of buffers that have been requested exceeds this threshold, trigger the
spilling operation.
|
HybridShuffleConfiguration.SpillingStrategyType |
getSpillingStrategyType()
Get
HybridShuffleConfiguration.SpillingStrategyType for hybrid shuffle mode. |
public static HybridShuffleConfiguration.Builder builder(int numSubpartitions, int numBuffersPerRequest)
public HybridShuffleConfiguration.SpillingStrategyType getSpillingStrategyType()
HybridShuffleConfiguration.SpillingStrategyType
for hybrid shuffle mode.public int getMaxRequestedBuffers()
public int getMaxBuffersReadAhead()
public Duration getBufferRequestTimeout()
public float getSelectiveStrategySpillThreshold()
HsSelectiveSpillingStrategy
.public float getSelectiveStrategySpillBufferRatio()
HsSelectiveSpillingStrategy
.public float getFullStrategyNumBuffersTriggerSpillingRatio()
HsFullSpillingStrategy
.public float getFullStrategyReleaseThreshold()
HsFullSpillingStrategy
.public float getFullStrategyReleaseBufferRatio()
HsFullSpillingStrategy
.public long getBufferPoolSizeCheckIntervalMs()
public int getRegionGroupSizeInBytes()
public long getNumRetainedInMemoryRegionsMax()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.