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

Loki: add a run-once flag to the compactor #6281

Merged
merged 2 commits into from
Jun 1, 2022
Merged

Conversation

slim-bean
Copy link
Collaborator

There are a few use cases for running the compactor intentionally to allow it to process and cleanup existing uploaded index files, primarily I'd like it in this case to cleanup after using the migrate tool

This PR adds a new flag and some code to execute the compaction cycle exactly once, it also intentionally does not do any retention related work.

…es with a single manual invocation. Useful when using migrate tool.

Signed-off-by: Edward Welch <[email protected]>
@slim-bean slim-bean requested a review from a team as a code owner June 1, 2022 14:07
Signed-off-by: Edward Welch <[email protected]>
@grafanabot
Copy link
Collaborator

./tools/diff_coverage.sh ../loki-main/test_results.txt test_results.txt ingester,distributor,querier,querier/queryrange,iter,storage,chunkenc,logql,loki

Change in test coverage per package. Green indicates 0 or positive change, red indicates that test coverage for a package fell.

+           ingester	0%
+        distributor	0%
+            querier	0%
+ querier/queryrange	0%
+               iter	0%
+            storage	0%
+           chunkenc	0%
+              logql	0%
+               loki	0%

Copy link
Contributor

@sandeepsukhani sandeepsukhani left a comment

Choose a reason for hiding this comment

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

LGTM

@slim-bean slim-bean merged commit f52fc9d into main Jun 1, 2022
@slim-bean slim-bean deleted the compactor-runonce branch June 1, 2022 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants