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

[Feature(compaction, 2.3)]: input-file-caches in compaction; statement show compaction; some refactors #2132

Merged

Conversation

zipper-meng
Copy link
Member

@zipper-meng zipper-meng commented May 18, 2024

Required checklist

  • Sample config files updated (config,meta/config and default config)
  • If there are user-facing changes, the documentation needs to be updated prior to approving the PR( Link )
  • If there are any breaking changes to public APIs, please add the api change label.
  • Signed CLA (if not already signed)

Which issue does this PR close?

Related #.

Rationale for this change

Add config compact_file_cache_size to set the cache size of TSM files.

By default this value is '16M'.

[storage]
## The size of cache for each compacting files
#compact_file_cache_size = "16M"

Add statement SHOW COMPACTION ON NODE <node_id>

public ❯ show compaction on node 1001;
+----------+----------+---------+
| vnode_id | elapsed  | state   |
+----------+----------+---------+
| 3        | 00:00:10 | Running |
+----------+----------+---------+

Merge two script compact.rs and delta_compact.rs.

Are there any user-facing changes?

Support to show running compactions by statement SHOW COMPACTION ON NODE <node_id>.

roseboy-liu
roseboy-liu previously approved these changes May 21, 2024
tskv/src/tsm/reader.rs Outdated Show resolved Hide resolved
@roseboy-liu roseboy-liu merged commit 99e05e6 into cnosdb:LTS/2.3 May 23, 2024
7 checks passed
@zipper-meng
Copy link
Member Author

It's some work to fix #1356.

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.

None yet

2 participants