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

invalid cheaper value: must be lower than processes #34

Closed
aclowkey opened this issue Jul 22, 2018 · 4 comments
Closed

invalid cheaper value: must be lower than processes #34

aclowkey opened this issue Jul 22, 2018 · 4 comments

Comments

@aclowkey
Copy link

aclowkey commented Jul 22, 2018

I'm using a custom uwsgi.ini file. And when I run it on this flask version of the image I'm getting:

invalid cheaper value: must be lower than processes
...
root@46f39eb48cf2:/opt/app# printenv | grep UWSGI
UWSGI_CHEAPER=2
UWSGI_PROCESSES=10

@aclowkey
Copy link
Author

I think these values are discarded completely.
Once I added the values back to the uwsgi it fixed the issue.
33ee9b1#diff-0aaae9c4760d1637b13a4453d8d327f3

@aclowkey
Copy link
Author

My uwsgi had processes=1, and the default is cheaper=2.
So I geuss this is the cause. Changing my uwsgi cheaper=0 solved this.

@tiangolo
Copy link
Owner

tiangolo commented Sep 8, 2018

Do you have a public repo that I can use to reproduce the issue?

@tiangolo
Copy link
Owner

I assume you were able to solve your problem and I'll close this issue now. But feel free to add more comments or let me know if you think it should be re-opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants