LibrePhotos / librephotos-docker

You can find here the Dockerfiles for the automated build process of LibrePhotos.
MIT License
157 stars 101 forks source link

Improve gunicorn configuration with number of worker > 1 #5

Closed tomamplius closed 2 years ago

tomamplius commented 3 years ago

By default number of worker is 1 : https://docs.gunicorn.org/en/stable/settings.html#worker-processes How set number of worker : https://docs.gunicorn.org/en/stable/design.html#how-many-workers Sample : https://github.com/tomamplius/librephotos-linux/blob/main/ressources/bin/librephotos-backend

quartztester commented 2 years ago

@derneuere Is this issue not solved in the 'librephotos.env'?

# Number of workers, which take care of the request to the api. This setting can dramatically affect the ram usage.
# A positive integer generally in the 2-4 x $(NUM_CORES) range.
# You’ll want to vary this a bit to find the best for your particular workload.
# Each worker needs 800MB of RAM. Change at your own will. Default is 2.
gunniWorkers=2
derneuere commented 2 years ago

I think so too :)