Skip to content

Refactor distribution optimizer - #734

Merged
fpetkovski merged 1 commit into
thanos-io:mainfrom
fpetkovski:distribution-points-refactor
Sep 1, 2026
Merged

fpetkovski merged 1 commit into
thanos-io:mainfrom
fpetkovski:distribution-points-refactor

Conversation

@fpetkovski

@fpetkovski fpetkovski commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

The commit refactors the distributed optimizer to work according to #483:

  1. Classify each subtree as non-distributive, distributable as-is, or distributable through an aggregation, avg, or absent rewrite. A parent can absorb only children that are distributable as-is.
  2. Select the roots of maximal distributable subtrees. These are nodes with a distribution strategy whose parent has none.
  3. Replace each selected subtree with the remote plan for its strategy.

The commit refactors the distributed optimizer to work according to thanos-io#483:

1. Classify each subtree as non-distributive, distributable as-is, or distributable through an aggregation, avg, or absent rewrite. A parent can absorb only children that are distributable as-is.
2. Select the roots of maximal distributable subtrees. These are nodes with a distribution strategy whose parent has none.
3. Replace each selected subtree with the remote plan for its strategy.

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
@fpetkovski
fpetkovski force-pushed the distribution-points-refactor branch from 3ee72d5 to 476c28d Compare August 31, 2026 16:42
@fpetkovski
fpetkovski marked this pull request as ready for review August 31, 2026 16:44
@fpetkovski
fpetkovski merged commit 674b63a into thanos-io:main Sep 1, 2026
7 checks passed
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