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: add max_input_sstable_size #483

Merged
merged 5 commits into from
Dec 16, 2022

Conversation

jiacai2050
Copy link
Contributor

@jiacai2050 jiacai2050 commented Dec 15, 2022

Which issue does this PR close?

Part of #408

Rationale for this change

The target of #408 plan to limit output sst file, but there is no easy way to tell how large the output file will be, so
this PR use another strategy: limit total input size.

What changes are included in this PR?

When pick files for compaction, add a new limit: max_input_sstable_size,
it will control total input file size to compact.

For now, we can custom it via environment variables, such as

export CERESDB_MAX_INPUT_SSTABLE_SIZE=1G

Are there any user-facing changes?

No

How does this change test

New unit test test_size_tiered_picker

@jiacai2050 jiacai2050 changed the title add max_input_sstable_size feat: add max_input_sstable_size Dec 15, 2022
Copy link
Member

@ShiKaiWi ShiKaiWi left a comment

Choose a reason for hiding this comment

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

LGTM

@jiacai2050 jiacai2050 merged commit 22f18f9 into apache:main Dec 16, 2022
@jiacai2050 jiacai2050 deleted the fix-max-compact-size branch December 16, 2022 01:54
chunshao90 pushed a commit to chunshao90/ceresdb that referenced this pull request May 15, 2023
* add max_input_sstable_size

* add unit test

* fix unit test

* remove max input size from table options

* read from env
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