GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

functions-framework and tuning gunicorn

オープン
#302 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement P2 question
主要言語
Python
スター
968
フォーク
128
PR マージ指標
30日以内にマージされた PR はありません

説明

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 ?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。