Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functions-framework and tuning gunicorn #302

Open
jgrn307 opened this issue Jan 14, 2024 · 1 comment
Open

functions-framework and tuning gunicorn #302

jgrn307 opened this issue Jan 14, 2024 · 1 comment
Labels
enhancement New feature or request P2 question Further information is requested

Comments

@jgrn307
Copy link

jgrn307 commented Jan 14, 2024

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 ?

@HKWinterhalter HKWinterhalter added enhancement New feature or request question Further information is requested P2 labels Jan 18, 2024
@xSAVIKx
Copy link

xSAVIKx commented Jun 2, 2024

I guess this is the same question/issue I raised here. There's no way to fine tune this unfortunately 😞

@HKWinterhalter HKWinterhalter removed their assignment Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2 question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants