Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(compaction): support trivial move multi ssts #20284

Merged
merged 15 commits into from
Feb 6, 2025

Conversation

Li0k
Copy link
Contributor

@Li0k Li0k commented Jan 23, 2025

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

This PR improves the trival-move picker algorithm to support trivial-move tasks with multiple ssts.

Checklist

  • I have written necessary rustdoc comments.
  • I have added necessary unit tests and integration tests.
  • I have added test labels as necessary.
  • I have added fuzzing tests or opened an issue to track them.
  • My PR contains breaking changes.
  • My PR changes performance-critical code, so I will run (micro) benchmarks and present the results.
  • My PR contains critical fixes that are necessary to be merged into the latest release.

Documentation

  • My PR needs documentation updates.
Release note

Copy link

gru-agent bot commented Jan 23, 2025

This pull request has been modified. If you want me to regenerate unit test for any of the files related, please find the file in "Files Changed" tab and add a comment @gru-agent. (The github "Comment on this file" feature is in the upper right corner of each file in "Files Changed" tab.)

@Li0k
Copy link
Contributor Author

Li0k commented Jan 27, 2025

Compaction Test q13

v2.2.0-rc.1:
[[https://grafana.test.risingwave-cloud.xyz/d/EpkBw5W4k/risingwave-dev-dashboard?orgId=1&var-da[…]var-pod=$__all&var-component=$__all&var-table=$__all](https://grafana.test.risingwave-cloud.xyz/d/EpkBw5W4k/risingwave-dev-dashboard?orgId=1&var-datasource=f2ad7358-1f42-73f7-8dc9-a4517433b212&from=2025-01-26T09:03:29.668Z&to=2025-01-26T09:56:31.064Z&var-namespace=compaction-test-20250126-090007&timezone=browser&var-instance=benchmark-risingwave&var-pod=$__all&var-component=$__all&var-table=$__all)](https://grafana.test.risingwave-cloud.xyz/d/EpkBw5W4k/risingwave-dev-dashboard?orgId=1&var-datasource=f2ad7358-1f42-73f7-8dc9-a4517433b212&from=2025-01-27T08:41:53.274Z&to=2025-01-27T09:44:49.136Z&var-namespace=compaction-test-20250127-083707&timezone=browser&var-instance=benchmark-risingwave&var-pod=$__all&var-component=$__all&var-table=$__all)

branch:
[https://grafana.test.risingwave-cloud.xyz/d/EpkBw5W4k/risingwave-dev-dashboard?from=2025-01-2[…]var-pod=$__all&var-component=$__all&var-table=$__all](https://grafana.test.risingwave-cloud.xyz/d/EpkBw5W4k/risingwave-dev-dashboard?orgId=1&var-datasource=f2ad7358-1f42-73f7-8dc9-a4517433b212&from=2025-01-27T04:17:37.780Z&to=2025-01-27T05:13:55.209Z&var-namespace=compaction-test-20250127-041331&timezone=browser&var-instance=benchmark-risingwave&var-pod=$__all&var-component=$__all&var-table=$__all)

  • batch ssts

image

  • delta log num

v2.2.0-rc.1
image

branch
image

  • write stop

v2.2.0-rc.1
image

branch
image

  • pending bytes

v2.2.0-rc.1
image

branch
image

  • trivial-move count

v2.2.0-rc.1
image

branch
image

  • meta cpu usage

v2.2.0-rc.1
image

branch
image

  • source throughput

v2.2.0-rc.1
image

branch
image

The optimisation branch seems to have suffered from a more severe write-stop

Copy link
Contributor

@zwang28 zwang28 left a comment

Choose a reason for hiding this comment

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

LGTM

}

// reset overlap_info
overlap_info.clear();
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: call create_overlap_info is equivalent to the new method clear.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

create_overlap_info has an additional box memory allocation overhead, but this is more intuitive. The semantics of clear are a bit unclean, but both work for me.

Li0k added 2 commits February 6, 2025 17:39
…nto li0k/storage_support_trivial_move_multi_sst
@Li0k Li0k added this pull request to the merge queue Feb 6, 2025
Merged via the queue into main with commit c9ca12e Feb 6, 2025
34 of 35 checks passed
@Li0k Li0k deleted the li0k/storage_support_trivial_move_multi_sst branch February 6, 2025 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants