GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

functions-framework and tuning gunicorn

未关闭
#302 1 条评论 0 个 reaction 已指派 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 摘要。