Skip to content

Report distributed tasks in remote benchmarks#462

Open
gabotechs wants to merge 1 commit into
gabrielmusat/stage-metricsfrom
gabrielmusat/report-tasks-in-benchmarks
Open

Report distributed tasks in remote benchmarks#462
gabotechs wants to merge 1 commit into
gabrielmusat/stage-metricsfrom
gabrielmusat/report-tasks-in-benchmarks

Conversation

@gabotechs
Copy link
Copy Markdown
Collaborator

@gabotechs gabotechs commented May 23, 2026

This is one PR from the following stack of PRs:

This PR adds reporting of distributed task counts in remote benchmarks, providing visibility into how tasks are being distributed across workers during benchmark runs. This allows us to better understand the impact of the distributed planner and task distribution strategies on performance.

@gabotechs gabotechs changed the base branch from main to gabrielmusat/factor-out-distributed-recursion May 23, 2026 12:49
@gabotechs gabotechs marked this pull request as ready for review May 23, 2026 12:55
@gabotechs gabotechs mentioned this pull request May 24, 2026
@gabotechs gabotechs force-pushed the gabrielmusat/factor-out-distributed-recursion branch 4 times, most recently from 071dcc0 to b01c6fc Compare May 26, 2026 13:20
Base automatically changed from gabrielmusat/factor-out-distributed-recursion to gabrielmusat/stage-metrics May 26, 2026 13:21
@gabotechs gabotechs force-pushed the gabrielmusat/report-tasks-in-benchmarks branch from f9f778f to 5711027 Compare May 26, 2026 13:21
@gabotechs gabotechs changed the base branch from gabrielmusat/stage-metrics to gabrielmusat/factor-out-distributed-recursion May 26, 2026 13:27
@gabotechs gabotechs changed the base branch from gabrielmusat/factor-out-distributed-recursion to gabrielmusat/factor-out-distributed-recursion-fixed May 26, 2026 13:29
@gabotechs gabotechs changed the base branch from gabrielmusat/factor-out-distributed-recursion-fixed to gabrielmusat/stage-metrics May 26, 2026 13:29
@gabotechs gabotechs force-pushed the gabrielmusat/stage-metrics branch from aedad16 to af69055 Compare May 26, 2026 13:53
@gabotechs gabotechs force-pushed the gabrielmusat/report-tasks-in-benchmarks branch from 5711027 to 3d31017 Compare May 26, 2026 13:53
gabotechs added a commit that referenced this pull request May 26, 2026
… be the same (#427)

This is one PR from the following stack of PRs:
- #427
<- you are here
- #469
- #461
- #462
- #463
- #464
- #432

This is a preparatory step towards:
-
#377

This is an optimization that allows workers to communicate in-memory
avoiding network calls and serialization in case it needs to communicate
to itself.

This optimization shows good improvements if using a small number of
workers, and fades away as more workers are used.

Even if this shows improvements today, it will become very meaningful in
adaptative query execution: there will be times when two consecutive
stages are assigned 1 task each, and as that was done dynamically, we
cannot eagerly do the optimization that collapses those two stages into
one, so instead, we assigned both stages to the same worker, and the
optimization in this PR kicks in, executing the plan fully locally.
@gabotechs gabotechs force-pushed the gabrielmusat/stage-metrics branch from af69055 to 72c7a9e Compare May 26, 2026 18:04
@gabotechs gabotechs force-pushed the gabrielmusat/report-tasks-in-benchmarks branch from 3d31017 to 68c26dc Compare May 26, 2026 18:05
gabotechs added a commit that referenced this pull request May 27, 2026
This is one PR from the following stack of PRs:
- #427
- #469
<- you are here
- #461
- #462
- #463
- #464
- #432

This PR factors out common recursion patterns used in the distributed
planner into reusable helpers, reducing complexity in critical parts of
the codebase. By centralizing recursion logic, we improve code
maintainability and reduce the risk of subtle bugs in recursive tree
traversals.
@gabotechs gabotechs force-pushed the gabrielmusat/stage-metrics branch from 72c7a9e to ff19d23 Compare May 27, 2026 13:17
@gabotechs gabotechs force-pushed the gabrielmusat/stage-metrics branch from ff19d23 to 833a6b8 Compare May 27, 2026 15:26
@gabotechs gabotechs force-pushed the gabrielmusat/report-tasks-in-benchmarks branch from 68c26dc to 14e2ff4 Compare May 27, 2026 15:26
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.

1 participant