-
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
Sidecar/Ruler/Receiver: Add flag to disable upload of debug meta files #3852
Sidecar/Ruler/Receiver: Add flag to disable upload of debug meta files #3852
Conversation
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.
Nice. Let's decide if we want to remove completely or enable optionally.
Can we move this under some flag for now? 🤗 |
Sure. Flag named |
Receiver and Ruler support uploading blocks as well. |
Thank you. I will add flags in them too. |
3967226
to
6e6c0b3
Compare
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.
Nice, some suggestion and idea for next step (:
88c0c8e
to
c00f02c
Compare
@@ -133,6 +134,8 @@ func (sc *shipperConfig) registerFlag(cmd extkingpin.FlagClause) *shipperConfig | |||
cmd.Flag("shipper.upload-compacted", | |||
"If true shipper will try to upload compacted blocks as well. Useful for migration purposes. Works only if compaction is disabled on Prometheus. Do it once and then disable the flag when done."). | |||
Default("false").BoolVar(&sc.uploadCompacted) | |||
cmd.Flag("shipper.upload-debug-meta-files", "If true shipper will upload debug meta files which can be useful for debugging."). | |||
Default("false").BoolVar(&sc.uploadDebubgMetaFiles) |
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.
We are using the value true
by default in a lot of places (tests etc) so why the default is "false"? IMO it makes more sense to have the default as "true" as it will maintain backward compatibility as well.
Looks like we decided to have this opt-in by default (#3852 (comment)). Then maybe let's add an entry in the CHANGELOG.
8166283
to
5df1067
Compare
PR is ready for review 🤗 |
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! Just rebase. I hope we can improve the Upload
someday with optional attributes./parameters.
Thank you for the review :) I will create a follow-up PR for uploader struct. |
We can see that we touch so many things... Given you need to rebase any way, maybe it's worth creating uploader struct... in this PR? (: |
Yes, I agree. To rebase, I have to resolve many merge conflicts. |
If keeping support for use in Cortex was the only reason to keep the flag, I would suggest to simplify the PR, drop the flag and remove support for those debug meta files completely. We can already add support for debug/meta.json file on our own easily, if we really want to. (eg. by having a special bucket that uploads meta.json to two places). |
Hey @hitanshu-mehta. We're going to cut a release candidate soon, is there any chance for you to push this to the finish line? |
Yes, I will be able to do it. I was waiting for the decision on whether we going to completely remove support for debug meta files or not 😅 |
787c618
to
2b1dfb1
Compare
Signed-off-by: Hitanshu Mehta <hitanshu99amehta@gmail.com>
Signed-off-by: Hitanshu Mehta <hitanshu99amehta@gmail.com>
Signed-off-by: Hitanshu Mehta <hitanshu99amehta@gmail.com>
Signed-off-by: Hitanshu Mehta <hitanshu99amehta@gmail.com>
ac0745f
to
0584176
Compare
Signed-off-by: Hitanshu Mehta <hitanshu99amehta@gmail.com>
I guess, failed e2e test is not related. |
I think the only decision to make is to enable this by default or not? @bwplotka @onprem @pracucci @pstibrany |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Let's revisit this. My opinion now is to remove debug metas totally and we don't need a flag. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
Let's get back to this finally. @hitanshu-mehta Are you able to continue this? Thank you! |
@yeya24 Yes. So the final decision is to remove debug meta files completely without any flag. right? |
Yes! Thanks for the patience. |
Signed-off-by: Hitanshu Mehta hitanshu99amehta@gmail.com
Fixes: #3839
Changes
--shipper.upload-debug-meta-files
in sidecar, ruler and receiver.Verification