Skip to content

Commit

Permalink
[FLINK-24553][core] Changed buffer debloat default configuration valu…
Browse files Browse the repository at this point in the history
…es to more optimal
  • Loading branch information
akalash authored and pnowojski committed Nov 1, 2021
1 parent 003df21 commit 4377612
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</tr>
<tr>
<td><h5>taskmanager.network.memory.buffer-debloat.period</h5></td>
<td style="word-wrap: break-word;">500 ms</td>
<td style="word-wrap: break-word;">200 ms</td>
<td>Duration</td>
<td>The minimum period of time after which the buffer size will be debloated if required. The low value provides a fast reaction to the load fluctuation but can influence the performance.</td>
</tr>
Expand All @@ -52,7 +52,7 @@
</tr>
<tr>
<td><h5>taskmanager.network.memory.buffer-debloat.threshold-percentages</h5></td>
<td style="word-wrap: break-word;">50</td>
<td style="word-wrap: break-word;">25</td>
<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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
</tr>
<tr>
<td><h5>taskmanager.memory.min-segment-size</h5></td>
<td style="word-wrap: break-word;">1 kb</td>
<td style="word-wrap: break-word;">256 bytes</td>
<td>MemorySize</td>
<td>Minimum possible size of memory buffers used by the network stack and the memory manager. ex. can be used for automatic buffer size adjustment.</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
</tr>
<tr>
<td><h5>taskmanager.network.memory.buffer-debloat.period</h5></td>
<td style="word-wrap: break-word;">500 ms</td>
<td style="word-wrap: break-word;">200 ms</td>
<td>Duration</td>
<td>The minimum period of time after which the buffer size will be debloated if required. The low value provides a fast reaction to the load fluctuation but can influence the performance.</td>
</tr>
Expand All @@ -89,7 +89,7 @@
</tr>
<tr>
<td><h5>taskmanager.network.memory.buffer-debloat.threshold-percentages</h5></td>
<td style="word-wrap: break-word;">50</td>
<td style="word-wrap: break-word;">25</td>
<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>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</tr>
<tr>
<td><h5>taskmanager.memory.min-segment-size</h5></td>
<td style="word-wrap: break-word;">1 kb</td>
<td style="word-wrap: break-word;">256 bytes</td>
<td>MemorySize</td>
<td>Minimum possible size of memory buffers used by the network stack and the memory manager. ex. can be used for automatic buffer size adjustment.</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public class TaskManagerOptions {
public static final ConfigOption<MemorySize> MIN_MEMORY_SEGMENT_SIZE =
key("taskmanager.memory.min-segment-size")
.memoryType()
.defaultValue(MemorySize.parse("1kb"))
.defaultValue(MemorySize.parse("256"))
.withDescription(
"Minimum possible size of memory buffers used by the network stack and the memory manager. "
+ "ex. can be used for automatic buffer size adjustment.");
Expand Down Expand Up @@ -534,7 +534,7 @@ public class TaskManagerOptions {
public static final ConfigOption<Duration> BUFFER_DEBLOAT_PERIOD =
ConfigOptions.key("taskmanager.network.memory.buffer-debloat.period")
.durationType()
.defaultValue(Duration.ofMillis(500))
.defaultValue(Duration.ofMillis(200))
.withDescription(
"The minimum period of time after which the buffer size will be debloated if required. "
+ "The low value provides a fast reaction to the load fluctuation but can influence the performance.");
Expand Down Expand Up @@ -574,7 +574,7 @@ public class TaskManagerOptions {
public static final ConfigOption<Integer> BUFFER_DEBLOAT_THRESHOLD_PERCENTAGES =
ConfigOptions.key("taskmanager.network.memory.buffer-debloat.threshold-percentages")
.intType()
.defaultValue(50)
.defaultValue(25)
.withDescription(
"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.");
Expand Down

0 comments on commit 4377612

Please sign in to comment.