-
Bug Report:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
These are three separate issues that unfortunately all hit at once. Here are the explanations and workarounds: Issue 1:
|
Beta Was this translation helpful? Give feedback.
These are three separate issues that unfortunately all hit at once. Here are the explanations and workarounds:
Issue 1:
worker.nralways 0This is a Gunicorn 24.x regression/change, not a Uvicorn bug. In Gunicorn 24+,
worker.nrwas changed to only be set correctly forSyncWorkerandGeventWorker. For custom worker classes (whichUvicornWorkeris),nrdefaults to 0.Workaround — assign GPU index based on spawn order using a shared counter: