taskmanager.network.blocking-shuffle.compression.enabled |
false |
Boolean |
Boolean flag indicating whether the shuffle data will be compressed for blocking shuffle mode. Note that data is compressed per buffer and compression can incur extra CPU overhead, so it is more effective for IO bounded scenario when compression ratio is high. |
taskmanager.network.blocking-shuffle.type |
"file" |
String |
The blocking shuffle type, either "mmap" or "file". The "auto" means selecting the property type automatically based on system memory architecture (64 bit for mmap and 32 bit for file). Note that the memory usage of mmap is not accounted by configured memory limits, but some resource frameworks like yarn would track this memory usage and kill the container once memory exceeding some threshold. Also note that this option is experimental and might be changed future. |
taskmanager.network.detailed-metrics |
false |
Boolean |
Boolean flag to enable/disable more detailed metrics about inbound/outbound network queue lengths. |
taskmanager.network.memory.buffers-per-channel |
2 |
Integer |
Number of exclusive network buffers to use for each outgoing/incoming channel (subpartition/inputchannel) in the credit-based flow control model. It should be configured at least 2 for good performance. 1 buffer is for receiving in-flight data in the subpartition and 1 buffer is for parallel serialization. |
taskmanager.network.memory.floating-buffers-per-gate |
8 |
Integer |
Number of extra network buffers to use for each outgoing/incoming gate (result partition/input gate). In credit-based flow control mode, this indicates how many floating credits are shared among all the input channels. The floating buffers are distributed based on backlog (real-time output buffers in the subpartition) feedback, and can help relieve back-pressure caused by unbalanced data distribution among the subpartitions. This value should be increased in case of higher round trip times between nodes and/or larger number of machines in the cluster. |
taskmanager.network.memory.max-buffers-per-channel |
10 |
Integer |
Number of max buffers that can be used for each channel. If a channel exceeds the number of max buffers, it will make the task become unavailable, cause the back pressure and block the data processing. This might speed up checkpoint alignment by preventing excessive growth of the buffered in-flight data in case of data skew and high number of configured floating buffers. This limit is not strictly guaranteed, and can be ignored by things like flatMap operators, records spanning multiple buffers or single timer producing large amount of data. |
taskmanager.network.netty.client.connectTimeoutSec |
120 |
Integer |
The Netty client connection timeout. |
taskmanager.network.netty.client.numThreads |
-1 |
Integer |
The number of Netty client threads. |
taskmanager.network.netty.num-arenas |
-1 |
Integer |
The number of Netty arenas. |
taskmanager.network.netty.sendReceiveBufferSize |
0 |
Integer |
The Netty send and receive buffer size. This defaults to the system buffer size (cat /proc/sys/net/ipv4/tcp_[rw]mem) and is 4 MiB in modern Linux. |
taskmanager.network.netty.server.backlog |
0 |
Integer |
The netty server connection backlog. |
taskmanager.network.netty.server.numThreads |
-1 |
Integer |
The number of Netty server threads. |
taskmanager.network.netty.transport |
"auto" |
String |
The Netty transport type, either "nio" or "epoll". The "auto" means selecting the property mode automatically based on the platform. Note that the "epoll" mode can get better performance, less GC and have more advanced features which are only available on modern Linux. |
taskmanager.network.request-backoff.initial |
100 |
Integer |
Minimum backoff in milliseconds for partition requests of input channels. |
taskmanager.network.request-backoff.max |
10000 |
Integer |
Maximum backoff in milliseconds for partition requests of input channels. |
taskmanager.network.retries |
0 |
Integer |
The number of retry attempts for network communication. Currently it's only used for establishing input/output channel connections |
taskmanager.network.sort-shuffle.min-buffers |
64 |
Integer |
Minimum number of network buffers required per sort-merge blocking result partition. For production usage, it is suggested to increase this config value to at least 2048 (64M memory if the default 32K memory segment size is used) to improve the data compression ratio and reduce the small network packets. Usually, several hundreds of megabytes memory is enough for large scale batch jobs. Note: you may also need to increase the size of total network memory to avoid the 'insufficient number of network buffers' error if you are increasing this config value. |
taskmanager.network.sort-shuffle.min-parallelism |
2147483647 |
Integer |
Parallelism threshold to switch between sort-merge blocking shuffle and the default hash-based blocking shuffle, which means for batch jobs of small parallelism, the hash-based blocking shuffle will be used and for batch jobs of large parallelism, the sort-merge one will be used. Note: For production usage, if sort-merge blocking shuffle is enabled, you may also need to enable data compression by setting 'taskmanager.network.blocking-shuffle.compression.enabled' to true and tune 'taskmanager.network.sort-shuffle.min-buffers' and 'taskmanager.memory.framework.off-heap.batch-shuffle.size' for better performance. |