-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Disable HTTP2 by default #9429
Disable HTTP2 by default #9429
Conversation
👷 Deploy request for prefect-docs-preview pending review.Visit the deploys page to approve it
|
Are people encountering this during flow runs? My experience thusfar has been that people are encountering this on the agent only. HTTP2 gives a significant performance boost to orchestration of task runs, I believe. |
I'm going to run our benchmarks against Cloud with and without this change and see what the difference is. |
|
It looks like this has a significant impact for asynchronous tasks
|
With additional rounds
|
Oh wow, that is quite a drastic performance delta. I would love to use HTTP2 for our production workload now after seeing this 😁 Your PR over at httpcore (encode/httpcore#679) would also solve the underlying root cause, correct? |
I really hoped it would just be a small regression — interesting that the stddev is so high and that it only applies to asynchronous tasks, probably something to dig into further there.
Yeah it would. I'm a maintainer over there so hopefully we can get it released soon. |
@trahloff this is resolved upstream. Thanks! |
Example
Running Prefect at scale with a configuration that utilizes HTTP2 leads to known issues that fail the entire flow run.
The currently recommended mitigation is to disable HTTP2 by setting
PREFECT_API_ENABLE_HTTP2=false
.To improve the user experience for new and existing Prefect setups, this PR disables HTTP2 by default without changing any other code.
As soon as httpx finally solves the underlying root cause or we find a different solution, this PR can easily be reverted.
Closes:
httpx.LocalProtocolError
#7442Relates to:
Checklist
<link to issue>
"fix
,feature
,enhancement
,docs
. (no permissions)