-
Notifications
You must be signed in to change notification settings - Fork 166
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
Add documentation to address when to set PRODUCTION_MODE: "true"
#111
Comments
Should production mode be 'true' by default instead of 'false'? Most people running openBalena aren't debugging / developing. Maybe some food for thought 🙂 |
Today found that api crashed by OOM:
and not restarted, because PRODUCTION_MODE is false by default and supervisor doesn't restart if exit code I agree with @bartversluijs that it should be production by default. Also docs should mention somewhere for available env vars and where to modify them. |
I don't think defaulting to production mode is desirable at this point, considering openBalena isn't supposed to be used in production yet. Apart from restart behaviour, another change this would cause is silencing almost all output from services (definitely the API, maybe others too) which is typically useful for debugging and/or reporting issues. For example, you wouldn't really see that your instance goes OOM without having to dig in much deeper.
This is the way to do it 👍 Alternatively, you can selectively override this (or any other |
We've had a few users address openbalena API crashes by setting
PRODUCTION_MODE: "true"
to force restarts.https://forums.balena.io/t/api-container-crashing/273784
https://forums.balena.io/t/openbalena-crash-error-getaddrinfo-enotfound-api-github-com/285697
Not sure if this is just a hack/workaround, or if we want to address this in documentation, since both users and support agents have tried to find a link or context on the variable.
The text was updated successfully, but these errors were encountered: