Skip to content

Commit

Permalink
Change config parameter name to comply with what was discussed as par…
Browse files Browse the repository at this point in the history
…t of FLIP-461
  • Loading branch information
XComp committed Jun 27, 2024
1 parent e12edd5 commit 10acb9a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</thead>
<tbody>
<tr>
<td><h5>jobmanager.adaptive-scheduler.max-delay-for-rescale-trigger</h5></td>
<td><h5>jobmanager.adaptive-scheduler.max-delay-for-scale-trigger</h5></td>
<td style="word-wrap: break-word;">(none)</td>
<td>Duration</td>
<td>The maximum time the JobManager will wait with evaluating previously observed events for rescaling (default: 0ms if checkpointing is disabled and %dx of the checkpointing interval if checkpointing is enabled).</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<td>The size of the write buffer of JobEventStore. The content will be flushed to external file system once the buffer is full</td>
</tr>
<tr>
<td><h5>jobmanager.adaptive-scheduler.max-delay-for-rescale-trigger</h5></td>
<td><h5>jobmanager.adaptive-scheduler.max-delay-for-scale-trigger</h5></td>
<td style="word-wrap: break-word;">(none)</td>
<td>Duration</td>
<td>The maximum time the JobManager will wait with evaluating previously observed events for rescaling (default: 0ms if checkpointing is disabled and %dx of the checkpointing interval if checkpointing is enabled).</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</thead>
<tbody>
<tr>
<td><h5>jobmanager.adaptive-scheduler.max-delay-for-rescale-trigger</h5></td>
<td><h5>jobmanager.adaptive-scheduler.max-delay-for-scale-trigger</h5></td>
<td style="word-wrap: break-word;">(none)</td>
<td>Duration</td>
<td>The maximum time the JobManager will wait with evaluating previously observed events for rescaling (default: 0ms if checkpointing is disabled and %dx of the checkpointing interval if checkpointing is enabled).</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -578,8 +578,8 @@ public InlineElement getDescription() {
Documentation.Sections.EXPERT_SCHEDULING,
Documentation.Sections.ALL_JOB_MANAGER
})
public static final ConfigOption<Duration> MAXIMUM_DELAY_FOR_RESCALE_TRIGGER =
key("jobmanager.adaptive-scheduler.max-delay-for-rescale-trigger")
public static final ConfigOption<Duration> MAXIMUM_DELAY_FOR_SCALE_TRIGGER =
key("jobmanager.adaptive-scheduler.max-delay-for-scale-trigger")
.durationType()
.noDefaultValue()
.withDescription(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
import java.util.concurrent.TimeUnit;
import java.util.function.Function;

import static org.apache.flink.configuration.JobManagerOptions.MAXIMUM_DELAY_FOR_RESCALE_TRIGGER;
import static org.apache.flink.configuration.JobManagerOptions.MAXIMUM_DELAY_FOR_SCALE_TRIGGER;
import static org.apache.flink.configuration.JobManagerOptions.MIN_PARALLELISM_INCREASE;
import static org.apache.flink.runtime.executiongraph.ExecutionGraphUtils.isAnyOutputBlocking;

Expand Down Expand Up @@ -245,8 +245,7 @@ public static Settings of(
scalingIntervalMax,
configuration.get(MIN_PARALLELISM_INCREASE),
configuration.get(
MAXIMUM_DELAY_FOR_RESCALE_TRIGGER,
maximumDelayForRescaleTriggerDefault));
MAXIMUM_DELAY_FOR_SCALE_TRIGGER, maximumDelayForRescaleTriggerDefault));
}

private final SchedulerExecutionMode executionMode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void testProperConfiguration() {
configuration.set(JobManagerOptions.SCHEDULER_SCALING_INTERVAL_MIN, scalingIntervalMin);
configuration.set(JobManagerOptions.SCHEDULER_SCALING_INTERVAL_MAX, scalingIntervalMax);
configuration.set(
JobManagerOptions.MAXIMUM_DELAY_FOR_RESCALE_TRIGGER, maximumDelayForRescaleTrigger);
JobManagerOptions.MAXIMUM_DELAY_FOR_SCALE_TRIGGER, maximumDelayForRescaleTrigger);

final DefaultRescaleManager testInstance =
DefaultRescaleManager.Factory.fromSettings(
Expand Down

0 comments on commit 10acb9a

Please sign in to comment.