Skip to content
Snippets Groups Projects
Commit 6c329960 authored by Neda Moeini's avatar Neda Moeini
Browse files

Set workers to the Number of CPU Cores.

parent ac9b297a
No related branches found
No related tags found
1 merge request!216Set workers to the Number of CPU Cores.
Pipeline #85306 passed
......@@ -3,4 +3,4 @@ set -o errexit
set -o nounset
cd /app
python -m uvicorn "gso.main:app" --host "0.0.0.0" --port 8080
python -m uvicorn "gso.main:app" --host "0.0.0.0" --port 8080 --workers 4
  • Karel van Klink :smiley_cat: @karel.vanklink ·
    Owner

    Do we want to add this to upstream?

  • Neda Moeini @neda.moeini ·
    Author Owner

    @karel.vanklink I don't want to merge this yet. I think we'll implement this in another way with Gunicorn and with unicorn workers as suggested in the FastAPI documentation.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment