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

query: add --grpc-compression for enabling compression #5654

Merged
merged 3 commits into from
Aug 30, 2022

Conversation

GiedriusS
Copy link
Member

@GiedriusS GiedriusS commented Aug 29, 2022

Add a new --grpc-compression option that enables gRPC compression.
Snappy works well - I've observed barely any increase in CPU/RAM usage
and the network throughput dropped.

I have also tried zstd with default settings but it increased the
99p quite a bit. Perhaps we could investigate zstd more in the future.

@GiedriusS GiedriusS force-pushed the add_grpc_compression_query branch from 87df299 to e74fa3a Compare August 29, 2022 13:23
fpetkovski
fpetkovski previously approved these changes Aug 29, 2022
Copy link
Contributor

@fpetkovski fpetkovski left a comment

Choose a reason for hiding this comment

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

Nice 👍

Out of curiosity, how much was the throughput drop, and did you get a chance to observe any difference in query performance?

@GiedriusS
Copy link
Member Author

GiedriusS commented Aug 29, 2022

Network usage throughput has dropped by about 2x - from ~50MiB/s to ~25MiB/s. But my servers are not using much, to begin with, due to client-side caching in Rueidis. 😄 99p now sometimes even drops to 2-3 seconds whereas before it never dipped below 5s.

Add a new `--grpc-compression` option that enables gRPC compression.
Snappy works well - I've observed barely any increase in CPU/RAM usage
and the network throughput dropped.

Signed-off-by: Giedrius Statkevičius <[email protected]>
@GiedriusS GiedriusS force-pushed the add_grpc_compression_query branch from aff3dcb to b36ebcd Compare August 29, 2022 14:12
@yeya24
Copy link
Contributor

yeya24 commented Aug 29, 2022

This is a nice improvement! Can you update the changelog as well? Thanks!

Signed-off-by: Giedrius Statkevičius <[email protected]>
@GiedriusS
Copy link
Member Author

Added, PTAL @yeya24

@yeya24 yeya24 enabled auto-merge (squash) August 30, 2022 16:35
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

LGTM

@yeya24 yeya24 merged commit ab275c0 into thanos-io:main Aug 30, 2022
prajain12 pushed a commit to prajain12/thanos that referenced this pull request Sep 6, 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