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

Compactor: Support disable block viewer UI #5723

Merged
merged 1 commit into from Sep 27, 2022
Merged

Conversation

wanjunlei
Copy link
Contributor

@wanjunlei wanjunlei commented Sep 26, 2022

Signed-off-by: wanjunlei wanjunlei@kubesphere.io

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Add a new flag --web.disable for compactor, users can disable the block viewer UI of compactor using this flag

Verification

Run the compactor without --web.disable and access the URL localhost:19092, the bucket UI works.
Run the compactor with --web.disable and access the URL localhost:19092, it returns 404 page not found.

Signed-off-by: wanjunlei <wanjunlei@kubesphere.io>
@yeya24
Copy link
Contributor

yeya24 commented Sep 27, 2022

Thanks for the pr. @wanjunlei What's the goal of this change? Do you want to disable the UI only?
I see you disable both the UI and the API now. Probably we can keep the API.

@wanjunlei
Copy link
Contributor Author

Thanks for the pr. @wanjunlei What's the goal of this change? Do you want to disable the UI only? I see you disable both the UI and the API now. Probably we can keep the API.

The goal of this change is to reduce resource consumption, so I disable both the UI and the API.

Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

LGTM

@matej-g
Copy link
Collaborator

matej-g commented Sep 27, 2022

I'm not against this change in principle, but I'm wondering how many resources does turning it off saves 🤔. Do we have any numbers?

@yeya24
Copy link
Contributor

yeya24 commented Sep 27, 2022

Right now we don't have a way to change the interval of fetching metadata and it is hardcoded to 1m, which might be a little bit short. Considering a lot of users actually don't need a UI.

Another use case I can think of is about the delete and no compact marker on the UI. For security purpose I guess some users don't want to expose it.

@matej-g
Copy link
Collaborator

matej-g commented Sep 27, 2022

Thanks @yeya24 for the explanation, then it makes sense to add this 👍

@matej-g matej-g merged commit 28ad853 into thanos-io:main Sep 27, 2022
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.

None yet

3 participants