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

No requests set for ephemeral storage in mariadb-single deployment #326

Open
britslampe opened this issue Jun 13, 2024 · 2 comments
Open

Comments

@britslampe
Copy link

I found in the mariadb-single deployment where, since the ephemeral storage does not have any requests set, that once deployed it will try to consume too much of the disk storage on the node it is deployed on. This causes DiskPressure and eventually if not mitigated by, for instance, patching in the requests, it will eventually kill the node.

As of now, only cpu and memory requests are defined, something small like 5Gi would be okay to use as default so the pod doesn't try to over consume storage.

requests:
cpu: 10m
memory: 10Mi

e.g. ephemeral-storage: 5Gi

@tobybellwood
Copy link
Member

In the scenario that uncovered this, what is the ephemeral storage being used for - there is persistent storage at /var/lib/mysql for the database, and /tmp is in-memory, so what is being stored and where?

@britslampe
Copy link
Author

In this case, the storage is using a custom path /var/lib/<storage-dir>/* and not the default persistent storage path. The size of /var/lib/mysql is very small, almost negligible.

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