public class TieredStorageConfiguration extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TieredStorageConfiguration.Builder
The builder for
TieredStorageConfiguration . |
Constructor and Description |
---|
TieredStorageConfiguration(String remoteStorageBasePath,
int tieredStorageBufferSize,
int minBuffersPerGate,
int minBuffersPerResultPartition,
int memoryTierExclusiveBuffers,
int diskTierExclusiveBuffers,
int remoteTierExclusiveBuffers,
int accumulatorExclusiveBuffers,
int memoryTierNumBytesPerSegment,
int diskTierNumBytesPerSegment,
int remoteTierNumBytesPerSegment,
float numBuffersTriggerFlushRatio,
java.time.Duration diskIOSchedulerRequestTimeout,
float minReserveDiskSpaceFraction,
boolean memoryDecouplingEnabled,
long poolSizeCheckInterval,
List<TierFactory> tierFactories,
List<Integer> tierExclusiveBuffers) |
Modifier and Type | Method and Description |
---|---|
static TieredStorageConfiguration.Builder |
builder(int tieredStorageBufferSize,
String remoteStorageBasePath) |
static TieredStorageConfiguration.Builder |
builder(String remoteStorageBasePath) |
int |
getAccumulatorExclusiveBuffers()
Get exclusive buffer number of accumulator.
|
java.time.Duration |
getDiskIOSchedulerBufferRequestTimeout()
Maximum time to wait when requesting read buffers from the buffer pool before throwing an
exception in
DiskIOScheduler . |
int |
getDiskTierExclusiveBuffers()
Get exclusive buffer number of disk tier.
|
int |
getDiskTierNumBytesPerSegment()
Get the segment size of disk tier.
|
List<Integer> |
getEachTierExclusiveBufferNum()
Get exclusive buffer number of each tier.
|
boolean |
getMemoryDecouplingEnabled()
Whether the memory is decoupled from job topology.
|
int |
getMemoryTierExclusiveBuffers()
Get exclusive buffer number of memory tier.
|
int |
getMemoryTierNumBytesPerSegment()
Get the segment size of memory tier.
|
int |
getMinBuffersPerGate()
Get the number of minimum buffers per gate.
|
int |
getMinBuffersPerResultPartition()
*
|
float |
getMinReserveDiskSpaceFraction()
Minimum reserved disk space fraction in disk tier.
|
float |
getNumBuffersTriggerFlushRatio()
When the number of buffers that have been requested exceeds this threshold, trigger the
flushing operation in each
TierProducerAgent . |
long |
getPoolSizeCheckInterval()
Get the interval in which the buffer pool size is checked.
|
String |
getRemoteStorageBasePath()
Get the base path on remote storage.
|
int |
getRemoteTierExclusiveBuffers()
Get exclusive buffer number of remote tier.
|
int |
getRemoteTierNumBytesPerSegment()
Get the segment size of remote tier.
|
int |
getTieredStorageBufferSize()
Get the buffer size in tiered storage.
|
List<TierFactory> |
getTierFactories() |
int |
getTotalExclusiveBufferNum()
Get the total exclusive buffer number.
|
public TieredStorageConfiguration(String remoteStorageBasePath, int tieredStorageBufferSize, int minBuffersPerGate, int minBuffersPerResultPartition, int memoryTierExclusiveBuffers, int diskTierExclusiveBuffers, int remoteTierExclusiveBuffers, int accumulatorExclusiveBuffers, int memoryTierNumBytesPerSegment, int diskTierNumBytesPerSegment, int remoteTierNumBytesPerSegment, float numBuffersTriggerFlushRatio, java.time.Duration diskIOSchedulerRequestTimeout, float minReserveDiskSpaceFraction, boolean memoryDecouplingEnabled, long poolSizeCheckInterval, List<TierFactory> tierFactories, List<Integer> tierExclusiveBuffers)
public static TieredStorageConfiguration.Builder builder(String remoteStorageBasePath)
public static TieredStorageConfiguration.Builder builder(int tieredStorageBufferSize, String remoteStorageBasePath)
public String getRemoteStorageBasePath()
public int getTieredStorageBufferSize()
public int getMinBuffersPerGate()
public int getMinBuffersPerResultPartition()
Get the number of minimum buffers per result partition.
public int getMemoryTierExclusiveBuffers()
public int getDiskTierExclusiveBuffers()
public int getRemoteTierExclusiveBuffers()
public int getAccumulatorExclusiveBuffers()
The buffer number is used to compare with the subpartition number to determine the type of
BufferAccumulator
.
If the exclusive buffer number is larger than (subpartitionNum + 1), the accumulator will
use HashBufferAccumulator
. If the exclusive buffer number is equal to or smaller than
(subpartitionNum + 1), the accumulator will use SortBufferAccumulator
public int getMemoryTierNumBytesPerSegment()
public int getDiskTierNumBytesPerSegment()
public int getRemoteTierNumBytesPerSegment()
public float getNumBuffersTriggerFlushRatio()
TierProducerAgent
.public java.time.Duration getDiskIOSchedulerBufferRequestTimeout()
DiskIOScheduler
.public float getMinReserveDiskSpaceFraction()
public boolean getMemoryDecouplingEnabled()
public long getPoolSizeCheckInterval()
public int getTotalExclusiveBufferNum()
public List<Integer> getEachTierExclusiveBufferNum()
public List<TierFactory> getTierFactories()
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.