Closed chibenwa closed 5 months ago
Simpler : -XX:+ExitOnOutOfMemoryError
FYI that value gets overrided in all our deployments using tmail-backend as sub-charts (so all of them) depending on what we need exactly, so need to add this flag in other deployment charts as well, or it will be missing.
Tenant-upn: https://ci.linagora.com/linagora/lrs/saas/deployments/tmail/emaily-staging-apps/-/merge_requests/35/diffs Sandbox: https://ci.linagora.com/linagora/lrs/saas/deployments/tmail/sandbox-emaily-apps/-/merge_requests/17 Postgres: https://ci.linagora.com/linagora/lrs/saas/deployments/tmail/postgresql-staging/-/merge_requests/4/diffs?commit_id=fcbb1dae43f24429a03973adaf50e37c311f45b4
I saw it already in cnb deployment chart so nothing to do on it.
-XX:OnOutOfMemoryError=kill -9 %p
A clean kill in case of OOM means K8S would restart the POD. The overall nightmare of OOM management, if ever happen again, would be a bit smoother.
This parameter is stallen from Apache Cassandra.