-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
How to disable server-side compression via configuration? #5590
Comments
Can you explain a bit why you want to disable compression support? Also, do you want to be able to control this per- |
Compression/decompression has an impact on CPU usage, and this is particularly relevant for deployments on Kubernetes (slightly related semi-random blog post: https://medium.com/omio-engineering/cpu-limits-and-aggressive-throttling-in-kubernetes-c5b20bd8a718). The general use-case is that if you are modeling the CPU/memory usage of a service the presence of compression/decompression introduces great variability there; a slightly more advanced scenario is where you would allow a proxy or service mesh to use dedicated hardware functionality to handle compression/decompression rather than having the Go services do it themselves. The reasoning is similar as of why we have nowadays TLS termination outside of the services.
I didn't check the current implementation but I assume that some form of negotiation is happening (and client is not "blindly" sending compressed requests / accepting compressed responses); I was thinking of |
Thanks for the additional information.
Unless you disagree, in which case feel free to comment, let's merge this issue with #2786. |
I have seen from https://github.com/grpc/grpc-go/blob/master/Documentation/compression.md that the capability to configure server-side decompressor/compressort support has been marked as legacy.
Going forward, is there a way to disable server-side gRPC compression support, for example via configuration?
Something like:
The text was updated successfully, but these errors were encountered: