developmentseed / eoAPI

[Active Development] Earth Observation API (Metadata, Raster and Vector services)
https://eoapi.dev
MIT License
191 stars 20 forks source link

Enable ability to customize concurrency of gunicorn processes #184

Closed alukach closed 2 months ago

alukach commented 3 months ago

To minimize chatter in the Docker logs, it's nice to be able to disable web concurrency for gunicorn processes.

NOTE: It may be nice to have concurrency be set to 1 by default. I'm assuming the average person running this docker file will be a developer working on their eoAPI solutions locally, when high concurrency is not a strong need.

vincentsarago commented 3 months ago

does web_concurency=1, fall back to being like uvicorn ?

alukach commented 3 months ago

does web_concurency=1, fall back to being like uvicorn ?

@vincentsarago I honestly don't know, what do you exactly mean by "like uvicorn"? My goal is basically just less noisy logs when developing.

vincentsarago commented 3 months ago

I meant that if you set web_concurency=1 it might be the same as using Uvicorn directly instead of Gunicorn

https://github.com/tiangolo/uvicorn-gunicorn-docker?tab=readme-ov-file#web_concurrency