-
Notifications
You must be signed in to change notification settings - Fork 816
chore: make grpc compression configurable for store gateway and alertmanager client #4889
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
Conversation
I think this should be a config as in the other clients , no? |
This seems like an old comment. I am okay with exposing this flag. @alvinlin123 @alanprot WDYT? |
I think all the other clients expose this as a config.. It weird just this one hard code to snappy. I know in theory snappy should not use lots of resources but who knows... |
@alanprot If I am going to expose the compressor as a flag then I might need to expose other fields like max send receive size, etc. If I am going to use https://github.com/cortexproject/cortex/blob/master/pkg/util/grpcclient/grpcclient.go#L40, then seems the default value of |
I updated the code and exposed all grpc configurations as flags. |
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 TLS configuration is not part of the guarantees.
https://cortexmetrics.io/docs/configuration/v1guarantees/
We can change them as needed.
This looks good but needs a CHANGELOG entry and running make doc.
@yeya24 Thanks... Can you fix the lint? |
PR updated. PTAL again @alanprot @friedrichg |
Thanks!! I have 2 comments though.
WDYT? |
aa99eb3
to
2194731
Compare
…gateway client Signed-off-by: Ben Ye <[email protected]>
2194731
to
7e0fed4
Compare
@alanprot @friedrichg |
…llowing to configure the size of the in-memory queue used before flushing chunks to the disk . cortexproject#4889
Signed-off-by: Ben Ye [email protected]
What this PR does:
Enable snappy compression for store gateway and alertmanager gRPC client.
Now I just make it a default, but we can go with flag, too.
Which issue(s) this PR fixes:
Fixes #
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]