-
Notifications
You must be signed in to change notification settings - Fork 115
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
Experiment with uvloop in the Gunicorn worker #6023
Draft
pedro-psb
wants to merge
1
commit into
pulp:main
Choose a base branch
from
pedro-psb:experiment-with-uvloop
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Replaced async with uvloop as the Gunicorn worker eventloop. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we consider adding this as an optional dependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Personally I would prefer to merge this as an optional feature.
Maybe do some discourse post to invite people to give it a try and provide feedback.
And make the default when we are comfortable with that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bmbouter Can we start with that? ^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optional dependencies seem complicated. To me, the containers we build for the community would still have it installed because I don't think we want to ship options that then require users to rebuild containers. Pulp (imo) should Just Work™
At that point if it's optional in pulpcore, but still in 100% of the officially supported install method we'd do better just to keep it simple.
I'm fine with whatever you all decide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My problem is not having strong evidence. I believe it will be fine (not break things) and improve performance, but I would like a bit more than that before shipping it widely. And also to justify to the build team why we are adding more deps.
I have a proposal which I prefer (over adding as optional and hoping someone will opt-in and provide feedback):
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with all of that ^ FWIW.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this idea because it'll produce some real-world analysis. We can evaluate it first in the staging environment.
To do this we'll need the patch to be applied to this repo. Also have the usage of it enabled/disabled on the presence of an environment variable. If the env var is set use it, if the env var is non-existant don't. That will be the safest because then we can apply the patch and anywhere it goes it'll not break anything.
Then @dkliban or @decko can set the env var in the deployment repo (another repo with other contributors perms that are kind of hard to adjust). Also they can add uvloop to the container build file.
@pedro-psb could you open a patch like that? Feel free to message with us more about it, we'd like to help make it easy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The containers are not the only way we ship pulp. That argument just does not work for me. OTOH more (hard) dependencies increase the possibility for random breakages by dependencies of dependencies interfering with each other.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I can submit the patch.