You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by xt...@apache.org on 2024/05/30 06:53:31 UTC
(flink) branch master updated (6ee30947a91 -> 132722e1b43)
This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
from 6ee30947a91 [FLINK-32088][checkpoint] Space control in file merging
new 501370dda7a [FLINK-35461][config] Deprecate options related to hash-based blocking shuffle
new b9d8bb11cf6 [FLINK-35461][config] Deprecate options related to legacy hybrid shuffle
new b60b1e3d2a5 [FLINK-35461][config] Deprecate or update options of floating/exclusive buffer
new 312df35d00b [FLINK-35461][config] Deprecate or update options of shuffle compression
new b25b921b87c [FLINK-35461][config] Deprecate netty options that are not recommended to be used
new e33fb161f1c [FLINK-35461][config] Deprecate taskmanager.network.max-num-tcp-connections
new ac6d7a30f51 [FLINK-35461][config] Deprecate the unnecessary option fine-grained.shuffle-mode.all-blocking
new 132722e1b43 [FLINK-35461][config] Deprecate StreamPipelineOptions that only contains deprecated option
The 8 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../generated/all_taskmanager_network_section.html | 104 +-------------
.../generated/cluster_configuration.html | 6 -
.../generated/expert_scheduling_section.html | 6 -
.../netty_shuffle_environment_configuration.html | 104 +-------------
.../apache/flink/configuration/ClusterOptions.java | 5 +-
.../NettyShuffleEnvironmentOptions.java | 151 +++++++++++++++++----
.../io/network/buffer/NetworkBufferPool.java | 3 +-
.../NettyShuffleEnvironmentConfiguration.java | 24 +++-
.../api/environment/StreamPipelineOptions.java | 3 +
9 files changed, 150 insertions(+), 256 deletions(-)
(flink) 01/08: [FLINK-35461][config] Deprecate options related to hash-based blocking shuffle
Posted by xt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 501370dda7a3be20fb217bf16d91240b3881ce81
Author: sxnan <su...@gmail.com>
AuthorDate: Mon May 27 15:29:50 2024 +0800
[FLINK-35461][config] Deprecate options related to hash-based blocking shuffle
---
.../generated/all_taskmanager_network_section.html | 12 ------------
.../generated/netty_shuffle_environment_configuration.html | 12 ------------
.../flink/configuration/NettyShuffleEnvironmentOptions.java | 11 +++++++++--
3 files changed, 9 insertions(+), 26 deletions(-)
diff --git a/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html b/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
index 0721df06f92..fae3bc786da 100644
--- a/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
+++ b/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
@@ -14,12 +14,6 @@
<td>Boolean</td>
<td>Boolean flag indicating whether the shuffle data will be compressed for batch 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.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.blocking-shuffle.type</h5></td>
- <td style="word-wrap: break-word;">"file"</td>
- <td>String</td>
- <td>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.</td>
- </tr>
<tr>
<td><h5>taskmanager.network.compression.codec</h5></td>
<td style="word-wrap: break-word;">LZ4</td>
@@ -218,12 +212,6 @@
<td>Integer</td>
<td>Minimum number of network buffers required per blocking result partition for sort-shuffle. 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 th [...]
</tr>
- <tr>
- <td><h5>taskmanager.network.sort-shuffle.min-parallelism</h5></td>
- <td style="word-wrap: break-word;">1</td>
- <td>Integer</td>
- <td>Parallelism threshold to switch between sort-based blocking shuffle and hash-based blocking shuffle, which means for batch jobs of smaller parallelism, hash-shuffle will be used and for batch jobs of larger or equal parallelism, sort-shuffle will be used. The value 1 means that sort-shuffle is the default option. Note: For production usage, you may also need to tune 'taskmanager.network.sort-shuffle.min-buffers' and 'taskmanager.memory.framework.off-heap.batch-shuffle.siz [...]
- </tr>
<tr>
<td><h5>taskmanager.network.tcp-connection.enable-reuse-across-jobs</h5></td>
<td style="word-wrap: break-word;">true</td>
diff --git a/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html b/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
index 22b71b6139c..713bc705663 100644
--- a/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
+++ b/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
@@ -32,12 +32,6 @@
<td>Boolean</td>
<td>Boolean flag indicating whether the shuffle data will be compressed for batch 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.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.blocking-shuffle.type</h5></td>
- <td style="word-wrap: break-word;">"file"</td>
- <td>String</td>
- <td>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.</td>
- </tr>
<tr>
<td><h5>taskmanager.network.compression.codec</h5></td>
<td style="word-wrap: break-word;">LZ4</td>
@@ -206,12 +200,6 @@
<td>Integer</td>
<td>Minimum number of network buffers required per blocking result partition for sort-shuffle. 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 th [...]
</tr>
- <tr>
- <td><h5>taskmanager.network.sort-shuffle.min-parallelism</h5></td>
- <td style="word-wrap: break-word;">1</td>
- <td>Integer</td>
- <td>Parallelism threshold to switch between sort-based blocking shuffle and hash-based blocking shuffle, which means for batch jobs of smaller parallelism, hash-shuffle will be used and for batch jobs of larger or equal parallelism, sort-shuffle will be used. The value 1 means that sort-shuffle is the default option. Note: For production usage, you may also need to tune 'taskmanager.network.sort-shuffle.min-buffers' and 'taskmanager.memory.framework.off-heap.batch-shuffle.siz [...]
- </tr>
<tr>
<td><h5>taskmanager.network.tcp-connection.enable-reuse-across-jobs</h5></td>
<td style="word-wrap: break-word;">true</td>
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java b/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
index c69f052aa13..02c048f1445 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
@@ -316,8 +316,11 @@ public class NettyShuffleEnvironmentOptions {
/**
* Parallelism threshold to switch between sort-based blocking shuffle and hash-based blocking
* shuffle.
+ *
+ * @deprecated The hash-based blocking shuffle is deprecated in 1.20 and will be totally removed
+ * in 2.0.
*/
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ @Deprecated
public static final ConfigOption<Integer> NETWORK_SORT_SHUFFLE_MIN_PARALLELISM =
key("taskmanager.network.sort-shuffle.min-parallelism")
.intType()
@@ -455,7 +458,11 @@ public class NettyShuffleEnvironmentOptions {
+ "the \"Insufficient number of network buffers\" exception, while the workloads may suffer performance "
+ "reduction silently.");
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ /**
+ * @deprecated The hash-based blocking shuffle is deprecated in 1.20 and will be totally removed
+ * in 2.0.
+ */
+ @Deprecated
public static final ConfigOption<String> NETWORK_BLOCKING_SHUFFLE_TYPE =
key("taskmanager.network.blocking-shuffle.type")
.stringType()
(flink) 08/08: [FLINK-35461][config] Deprecate StreamPipelineOptions that only contains deprecated option
Posted by xt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 132722e1b43607fe2236ecbbc3ba1faad1ad147f
Author: sxnan <su...@gmail.com>
AuthorDate: Tue May 28 09:41:10 2024 +0800
[FLINK-35461][config] Deprecate StreamPipelineOptions that only contains deprecated option
This closes #24853
---
.../apache/flink/streaming/api/environment/StreamPipelineOptions.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamPipelineOptions.java b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamPipelineOptions.java
index e848479f3b6..e43f3757825 100644
--- a/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamPipelineOptions.java
+++ b/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamPipelineOptions.java
@@ -30,7 +30,10 @@ import org.apache.flink.streaming.api.TimeCharacteristic;
/**
* The {@link ConfigOption configuration options} for job execution. Those are stream specific
* options. See also {@link org.apache.flink.configuration.PipelineOptions}.
+ *
+ * @deprecated This option class is deprecated in 1.20 and will be removed in 2.0.
*/
+@Deprecated
@PublicEvolving
public class StreamPipelineOptions {
(flink) 04/08: [FLINK-35461][config] Deprecate or update options of shuffle compression
Posted by xt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 312df35d00bb0823749df913820561e01f9bcf2d
Author: sxnan <su...@gmail.com>
AuthorDate: Tue May 28 09:22:26 2024 +0800
[FLINK-35461][config] Deprecate or update options of shuffle compression
---
.../generated/all_taskmanager_network_section.html | 8 +-------
.../netty_shuffle_environment_configuration.html | 8 +-------
.../configuration/NettyShuffleEnvironmentOptions.java | 11 ++++++++---
.../NettyShuffleEnvironmentConfiguration.java | 19 +++++++++++++++++--
4 files changed, 27 insertions(+), 19 deletions(-)
diff --git a/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html b/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
index 1cab3c95b51..46090128563 100644
--- a/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
+++ b/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
@@ -8,17 +8,11 @@
</tr>
</thead>
<tbody>
- <tr>
- <td><h5>taskmanager.network.batch-shuffle.compression.enabled</h5></td>
- <td style="word-wrap: break-word;">true</td>
- <td>Boolean</td>
- <td>Boolean flag indicating whether the shuffle data will be compressed for batch 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.</td>
- </tr>
<tr>
<td><h5>taskmanager.network.compression.codec</h5></td>
<td style="word-wrap: break-word;">LZ4</td>
<td><p>Enum</p></td>
- <td>The codec to be used when compressing shuffle data, only "LZ4", "LZO" and "ZSTD" are supported now. Through tpc-ds test of these three algorithms, the results show that "LZ4" algorithm has the highest compression and decompression speed, but the compression ratio is the lowest. "ZSTD" has the highest compression ratio, but the compression and decompression speed is the slowest, and LZO is between the two. Also note that this option is experimental and might be changed in [...]
+ <td>The codec to be used when compressing shuffle data. If it is "NONE", compression is disable. If it is not "NONE", only "LZ4", "LZO" and "ZSTD" are supported now. Through tpc-ds test of these three algorithms, the results show that "LZ4" algorithm has the highest compression and decompression speed, but the compression ratio is the lowest. "ZSTD" has the highest compression ratio, but the compression and decompression speed is the slowest, and LZO is between the two. Also [...]
</tr>
<tr>
<td><h5>taskmanager.network.detailed-metrics</h5></td>
diff --git a/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html b/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
index e80c283fd56..e9446edc23a 100644
--- a/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
+++ b/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
@@ -26,17 +26,11 @@
<td>Boolean</td>
<td>Enable SSL support for the taskmanager data transport. This is applicable only when the global flag for internal SSL (security.ssl.internal.enabled) is set to true</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.batch-shuffle.compression.enabled</h5></td>
- <td style="word-wrap: break-word;">true</td>
- <td>Boolean</td>
- <td>Boolean flag indicating whether the shuffle data will be compressed for batch 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.</td>
- </tr>
<tr>
<td><h5>taskmanager.network.compression.codec</h5></td>
<td style="word-wrap: break-word;">LZ4</td>
<td><p>Enum</p></td>
- <td>The codec to be used when compressing shuffle data, only "LZ4", "LZO" and "ZSTD" are supported now. Through tpc-ds test of these three algorithms, the results show that "LZ4" algorithm has the highest compression and decompression speed, but the compression ratio is the lowest. "ZSTD" has the highest compression ratio, but the compression and decompression speed is the slowest, and LZO is between the two. Also note that this option is experimental and might be changed in [...]
+ <td>The codec to be used when compressing shuffle data. If it is "NONE", compression is disable. If it is not "NONE", only "LZ4", "LZO" and "ZSTD" are supported now. Through tpc-ds test of these three algorithms, the results show that "LZ4" algorithm has the highest compression and decompression speed, but the compression ratio is the lowest. "ZSTD" has the highest compression ratio, but the compression and decompression speed is the slowest, and LZO is between the two. Also [...]
</tr>
<tr>
<td><h5>taskmanager.network.detailed-metrics</h5></td>
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java b/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
index ee344b3560d..af08b80a3ad 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
@@ -90,8 +90,12 @@ public class NettyShuffleEnvironmentOptions {
*
* <p>Note: Data is compressed per buffer and compression can incur extra CPU overhead so it is
* more effective for IO bounded scenario when data compression ratio is high.
+ *
+ * @deprecated This option is deprecated in 1.20 and will be removed in 2.0. Please set the
+ * {@link NettyShuffleEnvironmentOptions#SHUFFLE_COMPRESSION_CODEC} to NONE to disable the
+ * compression.
*/
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ @Deprecated
public static final ConfigOption<Boolean> BATCH_SHUFFLE_COMPRESSION_ENABLED =
key("taskmanager.network.batch-shuffle.compression.enabled")
.booleanType()
@@ -106,13 +110,13 @@ public class NettyShuffleEnvironmentOptions {
/** The codec to be used when compressing shuffle data. */
@Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
- @Experimental
public static final ConfigOption<CompressionCodec> SHUFFLE_COMPRESSION_CODEC =
key("taskmanager.network.compression.codec")
.enumType(CompressionCodec.class)
.defaultValue(CompressionCodec.LZ4)
.withDescription(
- "The codec to be used when compressing shuffle data, only \"LZ4\", \"LZO\" "
+ "The codec to be used when compressing shuffle data. If it is \"NONE\", "
+ + "compression is disable. If it is not \"NONE\", only \"LZ4\", \"LZO\" "
+ "and \"ZSTD\" are supported now. Through tpc-ds test of these "
+ "three algorithms, the results show that \"LZ4\" algorithm has "
+ "the highest compression and decompression speed, but the "
@@ -123,6 +127,7 @@ public class NettyShuffleEnvironmentOptions {
/** Supported compression codec. */
public enum CompressionCodec {
+ NONE,
LZ4,
LZO,
ZSTD
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/NettyShuffleEnvironmentConfiguration.java b/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/NettyShuffleEnvironmentConfiguration.java
index c8fec646ae5..710f2bbbf7e 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/NettyShuffleEnvironmentConfiguration.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/NettyShuffleEnvironmentConfiguration.java
@@ -373,11 +373,26 @@ public class NettyShuffleEnvironmentConfiguration {
BoundedBlockingSubpartitionType blockingSubpartitionType =
getBlockingSubpartitionType(configuration);
- boolean batchShuffleCompressionEnabled =
- configuration.get(NettyShuffleEnvironmentOptions.BATCH_SHUFFLE_COMPRESSION_ENABLED);
CompressionCodec compressionCodec =
configuration.get(NettyShuffleEnvironmentOptions.SHUFFLE_COMPRESSION_CODEC);
+ boolean batchShuffleCompressionEnabled;
+ if (compressionCodec == CompressionCodec.NONE) {
+ batchShuffleCompressionEnabled = false;
+ } else {
+ batchShuffleCompressionEnabled =
+ configuration.get(
+ NettyShuffleEnvironmentOptions.BATCH_SHUFFLE_COMPRESSION_ENABLED);
+
+ if (!batchShuffleCompressionEnabled) {
+ LOG.warn(
+ "Deprecated configuration key {} is used to disable the compression. "
+ + "Please set the {} to \"None\" to disable the compression.",
+ NettyShuffleEnvironmentOptions.BATCH_SHUFFLE_COMPRESSION_ENABLED.key(),
+ NettyShuffleEnvironmentOptions.SHUFFLE_COMPRESSION_CODEC.key());
+ }
+ }
+
int maxNumConnections =
Math.max(
1,
(flink) 05/08: [FLINK-35461][config] Deprecate netty options that are not recommended to be used
Posted by xt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit b25b921b87c0652e73e16a489bc2817f0cbfa1ba
Author: sxnan <su...@gmail.com>
AuthorDate: Tue May 28 09:25:49 2024 +0800
[FLINK-35461][config] Deprecate netty options that are not recommended to be used
---
.../generated/all_taskmanager_network_section.html | 36 ----------------------
.../netty_shuffle_environment_configuration.html | 36 ----------------------
.../NettyShuffleEnvironmentOptions.java | 36 ++++++++++++++++++----
3 files changed, 30 insertions(+), 78 deletions(-)
diff --git a/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html b/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
index 46090128563..57103c7cbcb 100644
--- a/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
+++ b/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
@@ -80,12 +80,6 @@
<td>Integer</td>
<td>The Netty client connection timeout.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.netty.client.numThreads</h5></td>
- <td style="word-wrap: break-word;">-1</td>
- <td>Integer</td>
- <td>The number of Netty client threads.</td>
- </tr>
<tr>
<td><h5>taskmanager.network.netty.client.tcp.keepCount</h5></td>
<td style="word-wrap: break-word;">(none)</td>
@@ -104,36 +98,6 @@
<td>Integer</td>
<td>The time (in seconds) between individual keepalive probes. Note: This will not take effect when using netty transport type of nio with an older version of JDK 8, refer to https://bugs.openjdk.org/browse/JDK-8194298.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.netty.num-arenas</h5></td>
- <td style="word-wrap: break-word;">-1</td>
- <td>Integer</td>
- <td>The number of Netty arenas.</td>
- </tr>
- <tr>
- <td><h5>taskmanager.network.netty.sendReceiveBufferSize</h5></td>
- <td style="word-wrap: break-word;">0</td>
- <td>Integer</td>
- <td>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.</td>
- </tr>
- <tr>
- <td><h5>taskmanager.network.netty.server.backlog</h5></td>
- <td style="word-wrap: break-word;">0</td>
- <td>Integer</td>
- <td>The netty server connection backlog.</td>
- </tr>
- <tr>
- <td><h5>taskmanager.network.netty.server.numThreads</h5></td>
- <td style="word-wrap: break-word;">-1</td>
- <td>Integer</td>
- <td>The number of Netty server threads.</td>
- </tr>
- <tr>
- <td><h5>taskmanager.network.netty.transport</h5></td>
- <td style="word-wrap: break-word;">"auto"</td>
- <td>String</td>
- <td>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.</td>
- </tr>
<tr>
<td><h5>taskmanager.network.partition-request-timeout</h5></td>
<td style="word-wrap: break-word;">10 s</td>
diff --git a/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html b/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
index e9446edc23a..9a81bb09013 100644
--- a/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
+++ b/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
@@ -68,12 +68,6 @@
<td>Integer</td>
<td>The Netty client connection timeout.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.netty.client.numThreads</h5></td>
- <td style="word-wrap: break-word;">-1</td>
- <td>Integer</td>
- <td>The number of Netty client threads.</td>
- </tr>
<tr>
<td><h5>taskmanager.network.netty.client.tcp.keepCount</h5></td>
<td style="word-wrap: break-word;">(none)</td>
@@ -92,36 +86,6 @@
<td>Integer</td>
<td>The time (in seconds) between individual keepalive probes. Note: This will not take effect when using netty transport type of nio with an older version of JDK 8, refer to https://bugs.openjdk.org/browse/JDK-8194298.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.netty.num-arenas</h5></td>
- <td style="word-wrap: break-word;">-1</td>
- <td>Integer</td>
- <td>The number of Netty arenas.</td>
- </tr>
- <tr>
- <td><h5>taskmanager.network.netty.sendReceiveBufferSize</h5></td>
- <td style="word-wrap: break-word;">0</td>
- <td>Integer</td>
- <td>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.</td>
- </tr>
- <tr>
- <td><h5>taskmanager.network.netty.server.backlog</h5></td>
- <td style="word-wrap: break-word;">0</td>
- <td>Integer</td>
- <td>The netty server connection backlog.</td>
- </tr>
- <tr>
- <td><h5>taskmanager.network.netty.server.numThreads</h5></td>
- <td style="word-wrap: break-word;">-1</td>
- <td>Integer</td>
- <td>The number of Netty server threads.</td>
- </tr>
- <tr>
- <td><h5>taskmanager.network.netty.transport</h5></td>
- <td style="word-wrap: break-word;">"auto"</td>
- <td>String</td>
- <td>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.</td>
- </tr>
<tr>
<td><h5>taskmanager.network.partition-request-timeout</h5></td>
<td style="word-wrap: break-word;">10 s</td>
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java b/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
index af08b80a3ad..a0ea6036d91 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
@@ -560,7 +560,11 @@ public class NettyShuffleEnvironmentOptions {
// Netty Options
// ------------------------------------------------------------------------
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ /**
+ * @deprecated It is not recommended to use the option. It is deprecated in 1.20 and will be
+ * totally removed in 2.0.
+ */
+ @Deprecated
public static final ConfigOption<Integer> NUM_ARENAS =
key("taskmanager.network.netty.num-arenas")
.intType()
@@ -568,7 +572,11 @@ public class NettyShuffleEnvironmentOptions {
.withDeprecatedKeys("taskmanager.net.num-arenas")
.withDescription("The number of Netty arenas.");
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ /**
+ * @deprecated It is not recommended to use the option. It is deprecated in 1.20 and will be
+ * totally removed in 2.0.
+ */
+ @Deprecated
public static final ConfigOption<Integer> NUM_THREADS_SERVER =
key("taskmanager.network.netty.server.numThreads")
.intType()
@@ -576,7 +584,11 @@ public class NettyShuffleEnvironmentOptions {
.withDeprecatedKeys("taskmanager.net.server.numThreads")
.withDescription("The number of Netty server threads.");
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ /**
+ * @deprecated It is not recommended to use the option. It is deprecated in 1.20 and will be
+ * totally removed in 2.0.
+ */
+ @Deprecated
public static final ConfigOption<Integer> NUM_THREADS_CLIENT =
key("taskmanager.network.netty.client.numThreads")
.intType()
@@ -584,7 +596,11 @@ public class NettyShuffleEnvironmentOptions {
.withDeprecatedKeys("taskmanager.net.client.numThreads")
.withDescription("The number of Netty client threads.");
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ /**
+ * @deprecated It is not recommended to use the option. It is deprecated in 1.20 and will be
+ * totally removed in 2.0.
+ */
+ @Deprecated
public static final ConfigOption<Integer> CONNECT_BACKLOG =
key("taskmanager.network.netty.server.backlog")
.intType()
@@ -610,7 +626,11 @@ public class NettyShuffleEnvironmentOptions {
"The number of retry attempts for network communication."
+ " Currently it's only used for establishing input/output channel connections");
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ /**
+ * @deprecated It is not recommended to use the option. It is deprecated in 1.20 and will be
+ * totally removed in 2.0.
+ */
+ @Deprecated
public static final ConfigOption<Integer> SEND_RECEIVE_BUFFER_SIZE =
key("taskmanager.network.netty.sendReceiveBufferSize")
.intType()
@@ -620,7 +640,11 @@ public class NettyShuffleEnvironmentOptions {
"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.");
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ /**
+ * @deprecated It is not recommended to use the option. It is deprecated in 1.20 and will be
+ * totally removed in 2.0.
+ */
+ @Deprecated
public static final ConfigOption<String> TRANSPORT_TYPE =
key("taskmanager.network.netty.transport")
.stringType()
(flink) 02/08: [FLINK-35461][config] Deprecate options related to legacy hybrid shuffle
Posted by xt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit b9d8bb11cf6fcfab3a63e5987a93cacd31804e9c
Author: sxnan <su...@gmail.com>
AuthorDate: Mon May 27 15:35:21 2024 +0800
[FLINK-35461][config] Deprecate options related to legacy hybrid shuffle
---
.../generated/all_taskmanager_network_section.html | 18 -------------
.../netty_shuffle_environment_configuration.html | 18 -------------
.../NettyShuffleEnvironmentOptions.java | 30 +++++++++++++++++-----
3 files changed, 23 insertions(+), 43 deletions(-)
diff --git a/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html b/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
index fae3bc786da..4078de37795 100644
--- a/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
+++ b/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
@@ -26,36 +26,18 @@
<td>Boolean</td>
<td>Boolean flag to enable/disable more detailed metrics about inbound/outbound network queue lengths.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.hybrid-shuffle.enable-new-mode</h5></td>
- <td style="word-wrap: break-word;">true</td>
- <td>Boolean</td>
- <td>The option is used to enable the new mode of hybrid shuffle, which has resolved existing issues in the legacy mode. First, the new mode uses less required network memory. Second, the new mode can store shuffle data in remote storage when the disk space is not enough, which could avoid insufficient disk space errors and is only supported when taskmanager.network.hybrid-shuffle.remote.path is configured. The new mode is currently in an experimental phase. It can be set to f [...]
- </tr>
<tr>
<td><h5>taskmanager.network.hybrid-shuffle.memory-decoupling.enabled</h5></td>
<td style="word-wrap: break-word;">false</td>
<td>Boolean</td>
<td>The option is used to make the memory that is used by hybrid shuffle decoupled from the complexity of the job topology and the number of tasks on the task manager. It significantly reduces the chance of the "Insufficient number of network buffers" exception, while the workloads may suffer performance reduction silently.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.hybrid-shuffle.num-retained-in-memory-regions-max</h5></td>
- <td style="word-wrap: break-word;">1048576</td>
- <td>Long</td>
- <td>Controls the max number of hybrid retained regions in memory. Note: This option will be ignored if taskmanager.network.hybrid-shuffle.enable-new-mode is set true. </td>
- </tr>
<tr>
<td><h5>taskmanager.network.hybrid-shuffle.remote.path</h5></td>
<td style="word-wrap: break-word;">(none)</td>
<td>String</td>
<td>The option is used to configure the base path of remote storage for hybrid shuffle. The shuffle data will be stored in remote storage when the disk space is not enough. Note: If the option is configured and taskmanager.network.hybrid-shuffle.enable-new-mode is false, this option will be ignored. If the option is not configured and taskmanager.network.hybrid-shuffle.enable-new-mode is true, the remote storage will be disabled.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.hybrid-shuffle.spill-index-region-group-size</h5></td>
- <td style="word-wrap: break-word;">1024</td>
- <td>Integer</td>
- <td>Controls the region group size(in bytes) of hybrid spilled file data index. Note: This option will be ignored if taskmanager.network.hybrid-shuffle.enable-new-mode is set true.</td>
- </tr>
<tr>
<td><h5>taskmanager.network.max-num-tcp-connections</h5></td>
<td style="word-wrap: break-word;">1</td>
diff --git a/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html b/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
index 713bc705663..df099186eea 100644
--- a/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
+++ b/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
@@ -44,36 +44,18 @@
<td>Boolean</td>
<td>Boolean flag to enable/disable more detailed metrics about inbound/outbound network queue lengths.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.hybrid-shuffle.enable-new-mode</h5></td>
- <td style="word-wrap: break-word;">true</td>
- <td>Boolean</td>
- <td>The option is used to enable the new mode of hybrid shuffle, which has resolved existing issues in the legacy mode. First, the new mode uses less required network memory. Second, the new mode can store shuffle data in remote storage when the disk space is not enough, which could avoid insufficient disk space errors and is only supported when taskmanager.network.hybrid-shuffle.remote.path is configured. The new mode is currently in an experimental phase. It can be set to f [...]
- </tr>
<tr>
<td><h5>taskmanager.network.hybrid-shuffle.memory-decoupling.enabled</h5></td>
<td style="word-wrap: break-word;">false</td>
<td>Boolean</td>
<td>The option is used to make the memory that is used by hybrid shuffle decoupled from the complexity of the job topology and the number of tasks on the task manager. It significantly reduces the chance of the "Insufficient number of network buffers" exception, while the workloads may suffer performance reduction silently.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.hybrid-shuffle.num-retained-in-memory-regions-max</h5></td>
- <td style="word-wrap: break-word;">1048576</td>
- <td>Long</td>
- <td>Controls the max number of hybrid retained regions in memory. Note: This option will be ignored if taskmanager.network.hybrid-shuffle.enable-new-mode is set true. </td>
- </tr>
<tr>
<td><h5>taskmanager.network.hybrid-shuffle.remote.path</h5></td>
<td style="word-wrap: break-word;">(none)</td>
<td>String</td>
<td>The option is used to configure the base path of remote storage for hybrid shuffle. The shuffle data will be stored in remote storage when the disk space is not enough. Note: If the option is configured and taskmanager.network.hybrid-shuffle.enable-new-mode is false, this option will be ignored. If the option is not configured and taskmanager.network.hybrid-shuffle.enable-new-mode is true, the remote storage will be disabled.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.hybrid-shuffle.spill-index-region-group-size</h5></td>
- <td style="word-wrap: break-word;">1024</td>
- <td>Integer</td>
- <td>Controls the region group size(in bytes) of hybrid spilled file data index. Note: This option will be ignored if taskmanager.network.hybrid-shuffle.enable-new-mode is set true.</td>
- </tr>
<tr>
<td><h5>taskmanager.network.max-num-tcp-connections</h5></td>
<td style="word-wrap: break-word;">1</td>
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java b/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
index 02c048f1445..40c69162731 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
@@ -341,8 +341,14 @@ public class NettyShuffleEnvironmentOptions {
// this raw value must be changed correspondingly
"taskmanager.memory.framework.off-heap.batch-shuffle.size"));
- /** Region group size of hybrid spilled file data index. */
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ /**
+ * Region group size of hybrid spilled file data index.
+ *
+ * @deprecated The option is only used in the legacy hybrid shuffle mode. It is deprecated in
+ * 1.20 and will be totally removed in 2.0, as the legacy hybrid shuffle mode will be
+ * removed in 2.0.
+ */
+ @Deprecated
public static final ConfigOption<Integer> HYBRID_SHUFFLE_SPILLED_INDEX_REGION_GROUP_SIZE =
key("taskmanager.network.hybrid-shuffle.spill-index-region-group-size")
.intType()
@@ -355,8 +361,14 @@ public class NettyShuffleEnvironmentOptions {
+ HYBRID_SHUFFLE_NEW_MODE_OPTION_NAME
+ " is set true.");
- /** Max number of hybrid retained regions in memory. */
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ /**
+ * Max number of hybrid retained regions in memory.
+ *
+ * @deprecated The option is only used in the legacy hybrid shuffle mode. It is deprecated in
+ * 1.20 and will be totally removed in 2.0, as the legacy hybrid shuffle mode will be
+ * removed in 2.0.
+ */
+ @Deprecated
public static final ConfigOption<Long> HYBRID_SHUFFLE_NUM_RETAINED_IN_MEMORY_REGIONS_MAX =
key("taskmanager.network.hybrid-shuffle.num-retained-in-memory-regions-max")
.longType()
@@ -413,9 +425,13 @@ public class NettyShuffleEnvironmentOptions {
+ "tasks have occupied all the buffers and the downstream tasks are waiting for the exclusive buffers. The timeout breaks"
+ "the tie by failing the request of exclusive buffers and ask users to increase the number of total buffers.");
- /** The option to enable the new mode of hybrid shuffle. */
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
- @Experimental
+ /**
+ * The option to enable the new mode of hybrid shuffle.
+ *
+ * @deprecated This option is deprecated in 1.20 and will be totally removed in 2.0, as the
+ * legacy hybrid shuffle mode will be removed in 2.0.
+ */
+ @Deprecated @Experimental
public static final ConfigOption<Boolean> NETWORK_HYBRID_SHUFFLE_ENABLE_NEW_MODE =
ConfigOptions.key(HYBRID_SHUFFLE_NEW_MODE_OPTION_NAME)
.booleanType()
(flink) 06/08: [FLINK-35461][config] Deprecate taskmanager.network.max-num-tcp-connections
Posted by xt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit e33fb161f1ceee9b5d5727aaafec7f9078be6836
Author: sxnan <su...@gmail.com>
AuthorDate: Tue May 28 09:47:10 2024 +0800
[FLINK-35461][config] Deprecate taskmanager.network.max-num-tcp-connections
---
.../shortcodes/generated/all_taskmanager_network_section.html | 6 ------
.../generated/netty_shuffle_environment_configuration.html | 6 ------
.../flink/configuration/NettyShuffleEnvironmentOptions.java | 9 +++++++--
3 files changed, 7 insertions(+), 14 deletions(-)
diff --git a/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html b/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
index 57103c7cbcb..3097fddc697 100644
--- a/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
+++ b/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
@@ -32,12 +32,6 @@
<td>String</td>
<td>The option is used to configure the base path of remote storage for hybrid shuffle. The shuffle data will be stored in remote storage when the disk space is not enough. Note: If the option is configured and taskmanager.network.hybrid-shuffle.enable-new-mode is false, this option will be ignored. If the option is not configured and taskmanager.network.hybrid-shuffle.enable-new-mode is true, the remote storage will be disabled.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.max-num-tcp-connections</h5></td>
- <td style="word-wrap: break-word;">1</td>
- <td>Integer</td>
- <td>The maximum number of tpc connections between taskmanagers for data communication.</td>
- </tr>
<tr>
<td><h5>taskmanager.network.memory.buffer-debloat.enabled</h5></td>
<td style="word-wrap: break-word;">false</td>
diff --git a/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html b/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
index 9a81bb09013..6f261df11e5 100644
--- a/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
+++ b/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
@@ -50,12 +50,6 @@
<td>String</td>
<td>The option is used to configure the base path of remote storage for hybrid shuffle. The shuffle data will be stored in remote storage when the disk space is not enough. Note: If the option is configured and taskmanager.network.hybrid-shuffle.enable-new-mode is false, this option will be ignored. If the option is not configured and taskmanager.network.hybrid-shuffle.enable-new-mode is true, the remote storage will be disabled.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.max-num-tcp-connections</h5></td>
- <td style="word-wrap: break-word;">1</td>
- <td>Integer</td>
- <td>The maximum number of tpc connections between taskmanagers for data communication.</td>
- </tr>
<tr>
<td><h5>taskmanager.network.memory.read-buffer.required-per-gate.max</h5></td>
<td style="word-wrap: break-word;">(none)</td>
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java b/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
index a0ea6036d91..bb6e186629a 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
@@ -198,8 +198,13 @@ public class NettyShuffleEnvironmentOptions {
.defaultValue("1gb")
.withDescription("Maximum memory size for network buffers.");
- /** The maximum number of tpc connections between taskmanagers for data communication. */
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ /**
+ * The maximum number of tpc connections between taskmanagers for data communication.
+ *
+ * @deprecated The option is unnecessary. It is deprecated in 1.20 and will be removed and
+ * hard-coded to 1 in 2.0.
+ */
+ @Deprecated
public static final ConfigOption<Integer> MAX_NUM_TCP_CONNECTIONS =
key("taskmanager.network.max-num-tcp-connections")
.intType()
(flink) 03/08: [FLINK-35461][config] Deprecate or update options of floating/exclusive buffer
Posted by xt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit b60b1e3d2a5b609aa3cdcd6fefd7be3cbdb9a612
Author: sxnan <su...@gmail.com>
AuthorDate: Mon May 27 18:24:49 2024 +0800
[FLINK-35461][config] Deprecate or update options of floating/exclusive buffer
---
.../generated/all_taskmanager_network_section.html | 24 ----------
.../netty_shuffle_environment_configuration.html | 24 ----------
.../NettyShuffleEnvironmentOptions.java | 54 ++++++++++++++++++----
.../io/network/buffer/NetworkBufferPool.java | 3 +-
.../NettyShuffleEnvironmentConfiguration.java | 5 +-
5 files changed, 47 insertions(+), 63 deletions(-)
diff --git a/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html b/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
index 4078de37795..1cab3c95b51 100644
--- a/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
+++ b/docs/layouts/shortcodes/generated/all_taskmanager_network_section.html
@@ -74,30 +74,6 @@
<td>Integer</td>
<td>The minimum difference in percentage between the newly calculated buffer size and the old one to announce the new value. Can be used to avoid constant back and forth small adjustments.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.memory.buffers-per-channel</h5></td>
- <td style="word-wrap: break-word;">2</td>
- <td>Integer</td>
- <td>Number of exclusive network buffers for each outgoing/incoming channel (subpartition/input channel) in the credit-based flow control model. For the outgoing channel(subpartition), this value is the effective exclusive buffers per channel. For the incoming channel(input channel), this value is the max number of exclusive buffers per channel, the number of effective exclusive network buffers per channel is dynamically calculated from taskmanager.network.memory.read-buffer.r [...]
- </tr>
- <tr>
- <td><h5>taskmanager.network.memory.floating-buffers-per-gate</h5></td>
- <td style="word-wrap: break-word;">8</td>
- <td>Integer</td>
- <td>Number of floating network buffers 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 channels. The floating buffers can help relieve back-pressure caused by unbalanced data distribution among the subpartitions. For the outgoing gate(result partition), this value is the effective floating buffers per gate. For the incoming gate(input gate), this value is a reco [...]
- </tr>
- <tr>
- <td><h5>taskmanager.network.memory.max-buffers-per-channel</h5></td>
- <td style="word-wrap: break-word;">10</td>
- <td>Integer</td>
- <td>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 sp [...]
- </tr>
- <tr>
- <td><h5>taskmanager.network.memory.max-overdraft-buffers-per-gate</h5></td>
- <td style="word-wrap: break-word;">5</td>
- <td>Integer</td>
- <td>Number of max overdraft network buffers to use for each ResultPartition. The overdraft buffers will be used when the subtask cannot apply to the normal buffers due to back pressure, while subtask is performing an action that can not be interrupted in the middle, like serializing a large record, flatMap operator producing multiple records for one single input record or processing time timer producing large output. In situations like that system will allow subtask to requ [...]
- </tr>
<tr>
<td><h5>taskmanager.network.memory.read-buffer.required-per-gate.max</h5></td>
<td style="word-wrap: break-word;">(none)</td>
diff --git a/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html b/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
index df099186eea..e80c283fd56 100644
--- a/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
+++ b/docs/layouts/shortcodes/generated/netty_shuffle_environment_configuration.html
@@ -62,30 +62,6 @@
<td>Integer</td>
<td>The maximum number of tpc connections between taskmanagers for data communication.</td>
</tr>
- <tr>
- <td><h5>taskmanager.network.memory.buffers-per-channel</h5></td>
- <td style="word-wrap: break-word;">2</td>
- <td>Integer</td>
- <td>Number of exclusive network buffers for each outgoing/incoming channel (subpartition/input channel) in the credit-based flow control model. For the outgoing channel(subpartition), this value is the effective exclusive buffers per channel. For the incoming channel(input channel), this value is the max number of exclusive buffers per channel, the number of effective exclusive network buffers per channel is dynamically calculated from taskmanager.network.memory.read-buffer.r [...]
- </tr>
- <tr>
- <td><h5>taskmanager.network.memory.floating-buffers-per-gate</h5></td>
- <td style="word-wrap: break-word;">8</td>
- <td>Integer</td>
- <td>Number of floating network buffers 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 channels. The floating buffers can help relieve back-pressure caused by unbalanced data distribution among the subpartitions. For the outgoing gate(result partition), this value is the effective floating buffers per gate. For the incoming gate(input gate), this value is a reco [...]
- </tr>
- <tr>
- <td><h5>taskmanager.network.memory.max-buffers-per-channel</h5></td>
- <td style="word-wrap: break-word;">10</td>
- <td>Integer</td>
- <td>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 sp [...]
- </tr>
- <tr>
- <td><h5>taskmanager.network.memory.max-overdraft-buffers-per-gate</h5></td>
- <td style="word-wrap: break-word;">5</td>
- <td>Integer</td>
- <td>Number of max overdraft network buffers to use for each ResultPartition. The overdraft buffers will be used when the subtask cannot apply to the normal buffers due to back pressure, while subtask is performing an action that can not be interrupted in the middle, like serializing a large record, flatMap operator producing multiple records for one single input record or processing time timer producing large output. In situations like that system will allow subtask to requ [...]
- </tr>
<tr>
<td><h5>taskmanager.network.memory.read-buffer.required-per-gate.max</h5></td>
<td style="word-wrap: break-word;">(none)</td>
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java b/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
index 40c69162731..ee344b3560d 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/NettyShuffleEnvironmentOptions.java
@@ -240,8 +240,11 @@ public class NettyShuffleEnvironmentOptions {
* upstream outgoing channel, max(1, configured value) will be used. In other words we ensure
* that, for performance reasons, at least one buffer is used per outgoing channel regardless of
* the configuration.
+ *
+ * @deprecated This option is deprecated in 1.20 and will be removed in 2.0 to simplify the
+ * configuration of network buffers.
*/
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ @Deprecated
public static final ConfigOption<Integer> NETWORK_BUFFERS_PER_CHANNEL =
key("taskmanager.network.memory.buffers-per-channel")
.intType()
@@ -270,8 +273,11 @@ public class NettyShuffleEnvironmentOptions {
/**
* Number of floating network buffers for each outgoing/incoming gate (result partition/input
* gate).
+ *
+ * @deprecated This option is deprecated in 1.20 and will be removed in 2.0 to simplify the
+ * configuration of network buffers.
*/
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ @Deprecated
public static final ConfigOption<Integer> NETWORK_EXTRA_BUFFERS_PER_GATE =
key("taskmanager.network.memory.floating-buffers-per-gate")
.intType()
@@ -379,8 +385,13 @@ public class NettyShuffleEnvironmentOptions {
+ HYBRID_SHUFFLE_NEW_MODE_OPTION_NAME
+ " is set true. ");
- /** Number of max buffers can be used for each output subpartition. */
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ /**
+ * Number of max buffers can be used for each output subpartition.
+ *
+ * @deprecated This option is deprecated in 1.20 and will be removed in 2.0 to simplify the
+ * configuration of network buffers.
+ */
+ @Deprecated
public static final ConfigOption<Integer> NETWORK_MAX_BUFFERS_PER_CHANNEL =
key("taskmanager.network.memory.max-buffers-per-channel")
.intType()
@@ -393,8 +404,13 @@ public class NettyShuffleEnvironmentOptions {
+ " and can be ignored by things like flatMap operators, records spanning multiple buffers or single timer"
+ " producing large amount of data.");
- /** Number of max overdraft network buffers to use for each ResultPartition. */
- @Documentation.Section(Documentation.Sections.ALL_TASK_MANAGER_NETWORK)
+ /**
+ * Number of max overdraft network buffers to use for each ResultPartition.
+ *
+ * @deprecated This option is deprecated in 1.20 and will be removed in 2.0 to simplify the
+ * configuration of network buffers.
+ */
+ @Deprecated
public static final ConfigOption<Integer> NETWORK_MAX_OVERDRAFT_BUFFERS_PER_GATE =
key("taskmanager.network.memory.max-overdraft-buffers-per-gate")
.intType()
@@ -412,9 +428,14 @@ public class NettyShuffleEnvironmentOptions {
+ " process any more records until the overdraft buffers are returned to the pool."
+ " It should be noted that this config option only takes effect for Pipelined Shuffle.");
- /** The timeout for requesting exclusive buffers for each channel. */
- @Documentation.ExcludeFromDocumentation(
- "This option is purely implementation related, and may be removed as the implementation changes.")
+ /**
+ * The timeout for requesting exclusive buffers for each channel.
+ *
+ * @deprecated This option is deprecated in 1.20 and will be removed in 2.0 to simplify the
+ * configuration of network buffers. Please use {@link
+ * NettyShuffleEnvironmentOptions#NETWORK_BUFFERS_REQUEST_TIMEOUT} instead.
+ */
+ @Deprecated
public static final ConfigOption<Long> NETWORK_EXCLUSIVE_BUFFERS_REQUEST_TIMEOUT_MILLISECONDS =
key("taskmanager.network.memory.exclusive-buffers-request-timeout-ms")
.longType()
@@ -425,6 +446,21 @@ public class NettyShuffleEnvironmentOptions {
+ "tasks have occupied all the buffers and the downstream tasks are waiting for the exclusive buffers. The timeout breaks"
+ "the tie by failing the request of exclusive buffers and ask users to increase the number of total buffers.");
+ /** The timeout for requesting buffers for each channel. */
+ @Documentation.ExcludeFromDocumentation(
+ "This option is purely implementation related, and may be removed as the implementation changes.")
+ public static final ConfigOption<Duration> NETWORK_BUFFERS_REQUEST_TIMEOUT =
+ key("taskmanager.network.memory.buffers-request-timeout")
+ .durationType()
+ .defaultValue(Duration.ofMillis(30000L))
+ .withDeprecatedKeys(
+ "taskmanager.network.memory.exclusive-buffers-request-timeout-ms")
+ .withDescription(
+ "The timeout for requesting buffers for each channel. Since the number of maximum buffers and "
+ + "the number of required buffers is not the same for local buffer pools, there may be deadlock cases that the upstream"
+ + "tasks have occupied all the buffers and the downstream tasks are waiting for the exclusive buffers. The timeout breaks"
+ + "the tie by failing the request of exclusive buffers and ask users to increase the number of total buffers.");
+
/**
* The option to enable the new mode of hybrid shuffle.
*
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/NetworkBufferPool.java b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/NetworkBufferPool.java
index 4cacaaa40c9..39d3697e7b9 100755
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/NetworkBufferPool.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/io/network/buffer/NetworkBufferPool.java
@@ -261,8 +261,7 @@ public class NetworkBufferPool
+ " or you may increase the timeout which is %dms by setting the key '%s'.",
getConfigDescription(),
requestSegmentsTimeout.toMillis(),
- NettyShuffleEnvironmentOptions
- .NETWORK_EXCLUSIVE_BUFFERS_REQUEST_TIMEOUT_MILLISECONDS
+ NettyShuffleEnvironmentOptions.NETWORK_BUFFERS_REQUEST_TIMEOUT
.key()));
}
}
diff --git a/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/NettyShuffleEnvironmentConfiguration.java b/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/NettyShuffleEnvironmentConfiguration.java
index d0cb501dd34..c8fec646ae5 100644
--- a/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/NettyShuffleEnvironmentConfiguration.java
+++ b/flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/NettyShuffleEnvironmentConfiguration.java
@@ -368,10 +368,7 @@ public class NettyShuffleEnvironmentConfiguration {
Collections.shuffle(shuffleDirs);
Duration requestSegmentsTimeout =
- Duration.ofMillis(
- configuration.get(
- NettyShuffleEnvironmentOptions
- .NETWORK_EXCLUSIVE_BUFFERS_REQUEST_TIMEOUT_MILLISECONDS));
+ configuration.get(NettyShuffleEnvironmentOptions.NETWORK_BUFFERS_REQUEST_TIMEOUT);
BoundedBlockingSubpartitionType blockingSubpartitionType =
getBlockingSubpartitionType(configuration);
(flink) 07/08: [FLINK-35461][config] Deprecate the unnecessary option fine-grained.shuffle-mode.all-blocking
Posted by xt...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xtsong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit ac6d7a30f51a58ed7224324fc08330f61bc8399c
Author: sxnan <su...@gmail.com>
AuthorDate: Tue May 28 09:39:36 2024 +0800
[FLINK-35461][config] Deprecate the unnecessary option fine-grained.shuffle-mode.all-blocking
---
docs/layouts/shortcodes/generated/cluster_configuration.html | 6 ------
docs/layouts/shortcodes/generated/expert_scheduling_section.html | 6 ------
.../main/java/org/apache/flink/configuration/ClusterOptions.java | 5 ++++-
3 files changed, 4 insertions(+), 13 deletions(-)
diff --git a/docs/layouts/shortcodes/generated/cluster_configuration.html b/docs/layouts/shortcodes/generated/cluster_configuration.html
index 2e4c7ec272c..a54c597c5c9 100644
--- a/docs/layouts/shortcodes/generated/cluster_configuration.html
+++ b/docs/layouts/shortcodes/generated/cluster_configuration.html
@@ -68,12 +68,6 @@
<td><p>Enum</p></td>
<td>Defines whether cluster will handle any uncaught exceptions by just logging them (LOG mode), or by failing job (FAIL mode)<br /><br />Possible values:<ul><li>"LOG"</li><li>"FAIL"</li></ul></td>
</tr>
- <tr>
- <td><h5>fine-grained.shuffle-mode.all-blocking</h5></td>
- <td style="word-wrap: break-word;">false</td>
- <td>Boolean</td>
- <td>Whether to convert all PIPELINE edges to BLOCKING when apply fine-grained resource management in batch jobs.</td>
- </tr>
<tr>
<td><h5>process.jobmanager.working-dir</h5></td>
<td style="word-wrap: break-word;">(none)</td>
diff --git a/docs/layouts/shortcodes/generated/expert_scheduling_section.html b/docs/layouts/shortcodes/generated/expert_scheduling_section.html
index 04c0f78cc12..86682f4fbfd 100644
--- a/docs/layouts/shortcodes/generated/expert_scheduling_section.html
+++ b/docs/layouts/shortcodes/generated/expert_scheduling_section.html
@@ -74,12 +74,6 @@
<td>Integer</td>
<td>Controls the maximum number of execution attempts of each operator that can execute concurrently, including the original one and speculative ones.</td>
</tr>
- <tr>
- <td><h5>fine-grained.shuffle-mode.all-blocking</h5></td>
- <td style="word-wrap: break-word;">false</td>
- <td>Boolean</td>
- <td>Whether to convert all PIPELINE edges to BLOCKING when apply fine-grained resource management in batch jobs.</td>
- </tr>
<tr>
<td><h5>job-event.store.write-buffer.flush-interval</h5></td>
<td style="word-wrap: break-word;">1 s</td>
diff --git a/flink-core/src/main/java/org/apache/flink/configuration/ClusterOptions.java b/flink-core/src/main/java/org/apache/flink/configuration/ClusterOptions.java
index eb2834516e2..1d26f53f5d3 100644
--- a/flink-core/src/main/java/org/apache/flink/configuration/ClusterOptions.java
+++ b/flink-core/src/main/java/org/apache/flink/configuration/ClusterOptions.java
@@ -141,7 +141,10 @@ public class ClusterOptions {
.withDescription(
"The maximum stacktrace depth of TaskManager and JobManager's thread dump web-frontend displayed.");
- @Documentation.Section(Documentation.Sections.EXPERT_SCHEDULING)
+ /**
+ * @deprecated The option is unnecessary. It is deprecated in 1.20 and will be removed in 2.0.
+ */
+ @Deprecated
public static final ConfigOption<Boolean> FINE_GRAINED_SHUFFLE_MODE_ALL_BLOCKING =
ConfigOptions.key("fine-grained.shuffle-mode.all-blocking")
.booleanType()