Skip to content

[FLINK-33653][runtime] Introduce a benchmark for balanced tasks scheduling.#109

Open
RocMarshal wants to merge 5 commits into
apache:masterfrom
RocMarshal:FLINK-33653
Open

[FLINK-33653][runtime] Introduce a benchmark for balanced tasks scheduling.#109
RocMarshal wants to merge 5 commits into
apache:masterfrom
RocMarshal:FLINK-33653

Conversation

@RocMarshal
Copy link
Copy Markdown
Contributor

@RocMarshal RocMarshal commented Oct 23, 2025

  • Do benchmark work for the slot sharing group strategy for AdaptiveScheduler and DefaultScheduler.
  • Do benchmark work for the slot slot request matching strategy for AdaptiveScheduler and DefaultScheduler.
  • Do benchmark work for job throughput in different taskmanager load balance mode for AdaptiveScheduler and DefaultScheduler.

@RocMarshal RocMarshal force-pushed the FLINK-33653 branch 2 times, most recently from 9dadb61 to db8caf0 Compare October 28, 2025 06:38
@RocMarshal RocMarshal force-pushed the FLINK-33653 branch 2 times, most recently from ceabf1c to 8a86e29 Compare November 13, 2025 07:35
@RocMarshal RocMarshal closed this Nov 17, 2025
@RocMarshal RocMarshal reopened this Nov 17, 2025
@RocMarshal RocMarshal marked this pull request as ready for review November 17, 2025 06:08
@RocMarshal
Copy link
Copy Markdown
Contributor Author

Hi, @pnowojski Could you help take a look if you had the free time ? thank you !

import org.apache.flink.runtime.jobmaster.slotpool.SimpleRequestSlotMatchingStrategy;
import org.apache.flink.runtime.jobmaster.slotpool.TasksBalancedRequestSlotMatchingStrategy;
import org.apache.flink.runtime.scheduler.adaptive.allocator.TestingSlot;
import org.apache.flink.runtime.scheduler.loading.DefaultLoadingWeight;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It has been renamed in https://github.com/apache/flink/pull/27333/changesgg so it probably should be:

import org.apache.flink.runtime.scheduler.taskexecload.DefaultTaskExecutionLoad;

private SlotSharingResolverBenchmark benchmark;

public static void main(String[] args) throws RunnerException {
runBenchmark(SlotSharingResolverBenchmark.class);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should pass SlotSharingResolverBenchmarkExecutor.class

private InitSlotSharingStrategyBenchmark benchmark;

public static void main(String[] args) throws RunnerException {
runBenchmark(InitSlotSharingStrategyBenchmark.class);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should pass InitSlotSharingStrategyBenchmarkExecutor.class


@Setup(Level.Trial)
public void setup() throws Exception {
slotMatchingResolver = getSlotMatchingResolver();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slotMatchingResolver gets assigned twice here

}
}

public static ResourceProfile newGrainfinedResourceProfile(int slotIndex) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type: newfineGrainedResourceProfile


private void configAdaptivePartitioner(StreamExecutionEnvironment env) {
Configuration config = new Configuration();
config.set(TaskManagerOptions.TASK_MANAGER_LOAD_BALANCE_MODE, taskManagerLoadBalanceMode);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be set after the MiniCluster has already been created, and in my findings it will be ignored. Moving it to InputBenchmarkFlinkEnvironmentContext should solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants