Skip to content

[Tech Request]: Storage Optimization Policy Zoo #10208

Closed

Description

@fengttt

Is there an existing issue for the same feature request?

  • I have checked the existing issues.

Is your feature request related to a problem?

Storage Optimization Policy is extremely important and difficult.
We need a framework that we can set the policy on a workload and run/test/experiment/improve.

Describe the feature you'd like

#6955 will move storage optimization from DN to CN. Assume a CN received an request, CN need to choose candidate blocks, merge/sort them and write it out.

How to choose these blocks, and how much to merge is highly tricky. We want to parametrize the policy and make it easy to test and tune. This policy parametrization probably need to be associated with each table.

alter table XXX set storage_optimization_policy =
-- a json string, something like
'{"policy": "greedy", "merge_size": 32}'; -- greedy, whatever that means, 32G per merge

or other things like '{"policy": "smallest_first", "merge_blocks": 128} -- try to merge merge smallest 128 s3 objs

Describe implementation you've considered

DN will monitor changes to a table. When deemed necessary, fire up a storage optimization request.

One CN will pick it up (could be a few dedicated CN for whole DN), and choose blocks to merge according to the storage policy of the table (or default). Choose target blocks, run merge. One merge request from DN may trigger a series of merges. However it has to release resource after a few merges to other tables.

This is about enable this framework. Exactly policy and parameters, there will be many many implementations and experiments.

Documentation, Adoption, Use Case, Migration Strategy

No response

Additional information

No response

Activity

  1. added
    priority/p0
    on Jun 24, 2023
  2. added this to the 1.0.0 milestone on Jun 24, 2023
  3. fengttt commented on Jul 6, 2023

    @fengttt
    ContributorAuthor

    Related, #9867, #9883, #10294

  4. modified the milestones: 1.0.0, 1.1.0 on Aug 18, 2023
  5. 9 remaining items

  6. modified the milestones: 1.3.0-Backlog, 1.3.0 on Jul 2, 2024
  7. modified the milestones: 2.0.0, 2.1.0 on Oct 14, 2024
  8. modified the milestones: 2.1.0, 2506 on Apr 24, 2025
  9. modified the milestones: MO-2506, MO-2508 on Jul 23, 2025
  10. modified the milestones: MO-2508, Backlog on Feb 3, 2026
  11. XuPeng-SH commented on Aug 1, 2026

    @XuPeng-SH
    Contributor

    done

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

Metadata

Metadata

Assignees

Labels

area/performancearea/storageattention/dev-design-requiredattention/long-termkind/tech-requestpriority/p0source/dev

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions