Skip to content

Commit

Permalink
Experiment with uvloop in the Gunicorn worker
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-psb committed Nov 14, 2024
1 parent aa0dfe2 commit 2b57798
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pulpcore/content/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class PulpcoreContentApplication(PulpcoreGunicornApplication):
def load_app_specific_config(self):
self.set_option("default_proc_name", "pulpcore-content", enforced=True)
self.set_option("worker_class", "aiohttp.GunicornWebWorker", enforced=True)
self.set_option("worker_class", "aiohttp.GunicornUVLoopWebWorker", enforced=True)

def load(self):
import pulpcore.content
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ redis>=4.3,<5.2.1
tablib<3.6.0
url-normalize>=1.4.3,<=1.4.3
uuid6>=2023.5.2,<=2024.7.10
uvloop>=0.21.0,<0.22
whitenoise>=5.0,<6.9.0
yarl>=1.8,<1.17.2

0 comments on commit 2b57798

Please sign in to comment.