Containers and tmpfs

Hi @ejohnso49,

Is it better to create our own tmpfs volume or can I use an existing one?

What do you mean by an existing one?
I believe it’s fine to create and manage your own tmpfs volume so you have full control over it.

Actually, there might be an alternative solution for your problem. Have you considered streaming the logs to cloud / outside of the device?

You can subscribe to the logs for a device. Here’s relevant documentation: Interacting with the balena Supervisor - Balena Documentation

There is also a forum thread where my teammate explains it further.

Btw, our in-house developed balenaFin addresses this SD card wear issue as explained in this blog post. Maybe you’d find it attractive to consider addressing your problem as well.

We are tracking that inconsistent behaviour of the /tmp directory in our internal system. I took your interest in that as well so we could update this thread when there is progress. I also asked internally to see if we have any plans to resolve it anytime soon.

Cheers…