Skip to content

Compress requests and responses for ingest v2 endpoints #5779

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

Merged
merged 5 commits into from
May 29, 2025

Conversation

guilload
Copy link
Member

@guilload guilload commented May 27, 2025

Description

Compress requests and responses for ingest v2 endpoints using builtin tonic compression.

How was this PR tested?

Added unit test

@guilload guilload marked this pull request as ready for review May 27, 2025 15:48
@guilload guilload force-pushed the guilload/ingest-v2-compression branch from d4111fb to 37b08be Compare May 27, 2025 19:21
@guilload guilload requested a review from rdettai May 28, 2025 13:22
@guilload guilload force-pushed the guilload/ingest-v2-compression branch from ba71c84 to a49cbc1 Compare May 28, 2025 19:26
@guilload guilload force-pushed the guilload/ingest-v2-compression branch from a49cbc1 to 9a840f0 Compare May 28, 2025 19:56
Copy link
Collaborator

@rdettai rdettai left a comment

Choose a reason for hiding this comment

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

I think this feature is worth being documented. I can do it in a separate PR if you prefer. I would also add a small comment about the fact that it should be deployed with the compression disabled first in https://quickwit.io/docs/main-branch/operating/upgrades.

#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(rename_all = "lowercase")]
pub enum CompressionAlgorithm {
Gzip,
Copy link
Collaborator

Choose a reason for hiding this comment

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

out of curiosity, when would Gzip be a good choice?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably never. Maybe if the network is crazy slow and/or expensive.

@guilload guilload merged commit 08e0013 into main May 29, 2025
8 checks passed
@guilload guilload deleted the guilload/ingest-v2-compression branch May 29, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants