Class NettyShuffleEnvironmentConfiguration
- java.lang.Object
-
- org.apache.flink.runtime.taskmanager.NettyShuffleEnvironmentConfiguration
-
public class NettyShuffleEnvironmentConfiguration extends Object
Configuration object for the network stack.
-
-
Constructor Summary
Constructors Constructor Description NettyShuffleEnvironmentConfiguration(int numNetworkBuffers, int networkBufferSize, int partitionRequestInitialBackoff, int partitionRequestMaxBackoff, int partitionRequestListenerTimeout, int networkBuffersPerChannel, int floatingNetworkBuffersPerGate, Optional<Integer> maxRequiredBuffersPerGate, Duration requestSegmentsTimeout, boolean isNetworkDetailedMetrics, NettyConfig nettyConfig, String[] tempDirs, BoundedBlockingSubpartitionType blockingSubpartitionType, boolean batchShuffleCompressionEnabled, NettyShuffleEnvironmentOptions.CompressionCodec compressionCodec, int maxBuffersPerChannel, long batchShuffleReadMemoryBytes, int sortShuffleMinBuffers, int sortShuffleMinParallelism, BufferDebloatConfiguration debloatConfiguration, boolean connectionReuseEnabled, int maxOverdraftBuffersPerGate, TieredStorageConfiguration tieredStorageConfiguration)
-
Method Summary
-
-
-
Constructor Detail
-
NettyShuffleEnvironmentConfiguration
public NettyShuffleEnvironmentConfiguration(int numNetworkBuffers, int networkBufferSize, int partitionRequestInitialBackoff, int partitionRequestMaxBackoff, int partitionRequestListenerTimeout, int networkBuffersPerChannel, int floatingNetworkBuffersPerGate, Optional<Integer> maxRequiredBuffersPerGate, Duration requestSegmentsTimeout, boolean isNetworkDetailedMetrics, @Nullable NettyConfig nettyConfig, String[] tempDirs, BoundedBlockingSubpartitionType blockingSubpartitionType, boolean batchShuffleCompressionEnabled, NettyShuffleEnvironmentOptions.CompressionCodec compressionCodec, int maxBuffersPerChannel, long batchShuffleReadMemoryBytes, int sortShuffleMinBuffers, int sortShuffleMinParallelism, BufferDebloatConfiguration debloatConfiguration, boolean connectionReuseEnabled, int maxOverdraftBuffersPerGate, @Nullable TieredStorageConfiguration tieredStorageConfiguration)
-
-
Method Detail
-
numNetworkBuffers
public int numNetworkBuffers()
-
networkBufferSize
public int networkBufferSize()
-
partitionRequestInitialBackoff
public int partitionRequestInitialBackoff()
-
partitionRequestMaxBackoff
public int partitionRequestMaxBackoff()
-
getPartitionRequestListenerTimeout
public int getPartitionRequestListenerTimeout()
-
networkBuffersPerChannel
public int networkBuffersPerChannel()
-
floatingNetworkBuffersPerGate
public int floatingNetworkBuffersPerGate()
-
batchShuffleReadMemoryBytes
public long batchShuffleReadMemoryBytes()
-
sortShuffleMinBuffers
public int sortShuffleMinBuffers()
-
sortShuffleMinParallelism
public int sortShuffleMinParallelism()
-
getRequestSegmentsTimeout
public Duration getRequestSegmentsTimeout()
-
nettyConfig
public NettyConfig nettyConfig()
-
isNetworkDetailedMetrics
public boolean isNetworkDetailedMetrics()
-
getTempDirs
public String[] getTempDirs()
-
isConnectionReuseEnabled
public boolean isConnectionReuseEnabled()
-
getBlockingSubpartitionType
public BoundedBlockingSubpartitionType getBlockingSubpartitionType()
-
isBatchShuffleCompressionEnabled
public boolean isBatchShuffleCompressionEnabled()
-
getDebloatConfiguration
public BufferDebloatConfiguration getDebloatConfiguration()
-
isSSLEnabled
public boolean isSSLEnabled()
-
getCompressionCodec
public NettyShuffleEnvironmentOptions.CompressionCodec getCompressionCodec()
-
getMaxBuffersPerChannel
public int getMaxBuffersPerChannel()
-
getMaxOverdraftBuffersPerGate
public int getMaxOverdraftBuffersPerGate()
-
getTieredStorageConfiguration
public TieredStorageConfiguration getTieredStorageConfiguration()
-
fromConfiguration
public static NettyShuffleEnvironmentConfiguration fromConfiguration(Configuration configuration, MemorySize networkMemorySize, boolean localTaskManagerCommunication, InetAddress taskManagerAddress)
Utility method to extract network related parameters from the configuration and to sanity check them.- Parameters:
configuration
- configuration objectnetworkMemorySize
- the size of memory reserved for shuffle environmentlocalTaskManagerCommunication
- true, to skip initializing the network stacktaskManagerAddress
- identifying the IP address under which the TaskManager will be accessible- Returns:
- NettyShuffleEnvironmentConfiguration
-
-