Skip to content

Conversation

sourenaraya
Copy link

Add support for tmpfs mounts.

Why tmpfs at all?

In some cases tmpfs volume is much faster than anonymous volume. For example, on my machine postgres is so I/O bound, that mounting tmpfs to pgdata speeds things up up to 250% 🤕.

Bind mount directory inside /tmp would do, right?

Yes, but it is less convenient. I would have to create directory beforehand and remove it afterwards. And tox can't do that. Or, at least, i am not aware how.

Where is tests?

I am open for the ideas, how one would test tmpfs volume mount.
For now i added tmpfs volume to the healthcheck-custom container.

@sourenaraya
Copy link
Author

welp, tests failed because of deprecated image, just like on my local machine. Any suggestions?

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

Successfully merging this pull request may close these issues.

1 participant