Hi,
We’re using Torizon OS with containers for a few years. One thing bothered me the whole time, and that’s what I’m looking for advice on:
All metadata of the containers is written to the eMMC by the Docker engine. That means on each state change of a container (e.g. start/stop), something is written.
Because health checks are basically just another container to start on each check, they can become write intensive (with a 5s interval, we got several GBs written to eMMC per day).
Nowadays all our containers are defined as read-only, health checks are managed on application level, and we don’t care about having Docker metadata kept across power cycles (except for container images and the docker-compose definition). But still, on each start of the system, several MBs are written.
Do you have any advice on Torizon OS (6.8 or greater) to get rid completely of all writes to eMMC from the Docker engine by, e.g. moving only non-container image overlays to an ephemeral place (tmpfs, although limited)?
Moving Docker data to external storage (SD card) could be an option (as written in How to Store Docker Data on an External Storage Device (USB/SD Card) | Toradex Developer Center ), but a) it will probably break the OTA/Offline update mechanism from the Torizon cloud and b) we use the SD card for other things
Thanks for hints and ideas,
BR
Lukas