-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
cmd/thanos/store.go
Outdated
if !conf.disableWeb { | ||
compactorView := ui.NewBucketUI(logger, conf.webConfig.externalPrefix, conf.webConfig.prefixHeaderName, conf.component) | ||
compactorView.Register(r, ins) | ||
} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
7c1bb93
to
ee79280
Compare
no new modifications, just to rerun the test |
There was a problem hiding this 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
Head branch was pushed to by a user without write access
Signed-off-by: wanjunlei <wanjunlei@kubesphere.io>
Resolved |
Signed-off-by: wanjunlei wanjunlei@kubesphere.io
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