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

Store: Support disable block viewer UI. #5734

Merged
merged 1 commit into from
Sep 29, 2022
Merged

Conversation

wanjunlei
Copy link
Contributor

@wanjunlei wanjunlei commented Sep 28, 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 store, users can disable the block viewer UI of store using this flag.

This pr is similar #5723 , but there are still some differences.
If the compactor running with --web.disable, the block viewer UI and the bucket APIS will be disabled.
If the store running with --web.disable, only the block viewer UI will be disabled.

The reason for this difference is the compactor bucket API uses a separate meta fetcher to sync the block meta, disable the bucket APIS can Reduce resource consumption. The store bucket APIS reuses the mete fetcher of buckets store, no additional resource consumption.

Verification

if !conf.disableWeb {
compactorView := ui.NewBucketUI(logger, conf.webConfig.externalPrefix, conf.webConfig.prefixHeaderName, conf.component)
compactorView.Register(r, ins)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

So you don't want to disable the api this time?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes

Copy link
Contributor

Choose a reason for hiding this comment

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

What's the reason for this? We should be consistent with the compactor change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The reason is that disabling the API will not save more resources.

From a consistency point of view, disabling is also reasonable, I will change it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

yeya24
yeya24 previously approved these changes Sep 28, 2022
@wanjunlei
Copy link
Contributor Author

no new modifications, just to rerun the test

matej-g
matej-g previously approved these changes Sep 28, 2022
Copy link
Collaborator

@matej-g matej-g left a comment

Choose a reason for hiding this comment

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

Looks good 👍 minus conflicting CHANGELOG changes

@matej-g matej-g enabled auto-merge (squash) September 28, 2022 15:18
auto-merge was automatically disabled September 29, 2022 00:56

Head branch was pushed to by a user without write access

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

Looks good 👍 minus conflicting CHANGELOG changes

Resolved

@yeya24 yeya24 enabled auto-merge (squash) September 29, 2022 03:18
@yeya24 yeya24 merged commit c766dfe into thanos-io:main Sep 29, 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.

3 participants