GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

functions-framework and tuning gunicorn

Aperta
#302 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
enhancement P2 question
Lingua principale
Python
Stelle
968
Fork
128
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

First up, I LOVE this package. It's making our development so much faster. One question I had was what would be a "best practice" for developing a DOCKER that we want to tune gunicorn (which I understand functions-framework uses as long as --debug isn't invoked). Say I have a line in my dockerfile:

CMD exec functions-framework --target=mycode

Is there some way to pass along the gunicorn tuning parameters to this statement? If not, what would be the correct way of adjusting e.g. threads and workers. Do I need to replace this entire line with e.g.

CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app ?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.