tmpfs is a way to have an in-memory filesystem available to the container, so that the application can work on temporary files very fast.
In our case, we need this to work on temporary SQLite database, that need to be serialized as files, but are volatile thus don’t need a fully fledged filesystem, nor can afford its low performance.
tmpfs is supported by docker and AWS ECS:
- https://docs.docker.com/engine/reference/run/ (section TMPFS)
It would be very nice to have a section in
convox.yml that would allow the definition of a tmpfs for a given service. Something like this:
tmpfs: containerPath: /some/path size: 1000 mountOptions: - ro - noatime
Would this be very complicated to implement?