Skip to content

Commit

Permalink
[FLINK-17970] Increase default value of cluster.io-pool.size from #co…
Browse files Browse the repository at this point in the history
…res to 4 * #cores

This closes apache#12360.
  • Loading branch information
tillrohrmann committed Jun 2, 2020
1 parent 3bf3f0c commit b416302
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/_includes/generated/cluster_configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<td><h5>cluster.io-pool.size</h5></td>
<td style="word-wrap: break-word;">(none)</td>
<td>Integer</td>
<td>The size of the IO executor pool used by the cluster to execute blocking IO operations (Master as well as TaskManager processes). By default it will use the number of CPU cores (hardware contexts) that the cluster process has access to. Increasing the pool size allows to run more IO operations concurrently.</td>
<td>The size of the IO executor pool used by the cluster to execute blocking IO operations (Master as well as TaskManager processes). By default it will use 4 * the number of CPU cores (hardware contexts) that the cluster process has access to. Increasing the pool size allows to run more IO operations concurrently.</td>
</tr>
<tr>
<td><h5>cluster.registration.error-delay</h5></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<td><h5>cluster.io-pool.size</h5></td>
<td style="word-wrap: break-word;">(none)</td>
<td>Integer</td>
<td>The size of the IO executor pool used by the cluster to execute blocking IO operations (Master as well as TaskManager processes). By default it will use the number of CPU cores (hardware contexts) that the cluster process has access to. Increasing the pool size allows to run more IO operations concurrently.</td>
<td>The size of the IO executor pool used by the cluster to execute blocking IO operations (Master as well as TaskManager processes). By default it will use 4 * the number of CPU cores (hardware contexts) that the cluster process has access to. Increasing the pool size allows to run more IO operations concurrently.</td>
</tr>
<tr>
<td><h5>cluster.registration.error-delay</h5></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class ClusterOptions {
.intType()
.noDefaultValue()
.withDescription("The size of the IO executor pool used by the cluster to execute blocking IO operations (Master as well as TaskManager processes). " +
"By default it will use the number of CPU cores (hardware contexts) that the cluster process has access to. " +
"By default it will use 4 * the number of CPU cores (hardware contexts) that the cluster process has access to. " +
"Increasing the pool size allows to run more IO operations concurrently.");

@Documentation.Section(Documentation.Sections.EXPERT_SCHEDULING)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private static File deriveFlinkHomeDirectoryFromLibDirectory() {
* @return The legal io-executor pool size.
*/
public static int getPoolSize(Configuration config) {
final int poolSize = config.getInteger(ClusterOptions.CLUSTER_IO_EXECUTOR_POOL_SIZE, Hardware.getNumberCPUCores());
final int poolSize = config.getInteger(ClusterOptions.CLUSTER_IO_EXECUTOR_POOL_SIZE, 4 * Hardware.getNumberCPUCores());
Preconditions.checkArgument(poolSize > 0,
String.format("Illegal pool size (%s) of io-executor, please re-configure '%s'.",
poolSize, ClusterOptions.CLUSTER_IO_EXECUTOR_POOL_SIZE.key()));
Expand Down

0 comments on commit b416302

Please sign in to comment.