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

feat(object_store): use http1 by default #5204

Merged
merged 5 commits into from Dec 12, 2023

Conversation

wjones127
Copy link
Member

Which issue does this PR close?

Closes #5194.

Rationale for this change

This makes object store performance less surprising, by making the defaults the more performant options.

What changes are included in this PR?

Makes HTTP1_ONLY the default mode.

Are there any user-facing changes?

This is a breaking change to defaults. However, user code generally will not need to change.

@wjones127 wjones127 added the api-change Changes to the arrow API label Dec 11, 2023
@github-actions github-actions bot added the object-store Object Store Interface label Dec 11, 2023
@wjones127 wjones127 marked this pull request as ready for review December 12, 2023 00:39
Copy link
Contributor

@tustvold tustvold left a comment

Choose a reason for hiding this comment

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

Looks good to me, I've removed the breaking change as whilst it is potentially user-visible no spec compliant HTTP/2 implementation can not support HTTP/1

self.http2_only = true.into();
self
}

/// Use http2 if supported, otherwise use http1.
pub fn with_either_http1_http2(mut self) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
pub fn with_either_http1_http2(mut self) -> Self {
pub fn with_http2(mut self) -> Self {

Perhaps?

Would also be good to add an option for this

//! Google Cloud Storage supports both HTTP/2 and HTTP/1. HTTP/1 is used by default
//! because it allows much higher throughput in our benchmarks (see
//! [#5194](https://github.com/apache/arrow-rs/issues/5194)). HTTP/2 can be
//! enabled by setting [crate::ClientConfigKey::Http2Only] to true.
Copy link
Contributor

Choose a reason for hiding this comment

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

Perhaps could add a key for HTTP2 to allow auto-upgrade if supported?

Copy link
Member Author

Choose a reason for hiding this comment

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

I realized the easier advice is just to set Http1Only to false.

@tustvold tustvold removed the api-change Changes to the arrow API label Dec 12, 2023
@wjones127 wjones127 merged commit 2a84e85 into apache:master Dec 12, 2023
13 checks passed
@wjones127 wjones127 deleted the feat/http1-default branch December 12, 2023 17:11
@tustvold tustvold added the api-change Changes to the arrow API label Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-change Changes to the arrow API object-store Object Store Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Single object store has limited throughput on GCS
2 participants