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

[question] Support for docker tmpfs mounts #3589

Closed
cetex opened this issue Nov 27, 2017 · 11 comments
Closed

[question] Support for docker tmpfs mounts #3589

cetex opened this issue Nov 27, 2017 · 11 comments

Comments

@cetex
Copy link

cetex commented Nov 27, 2017

We currently run a job which requires tmpfs for temporary storage (it writes around 5GB of data from one process every few seconds and reads it back multiple times into other processes, anything else than tmpfs is too slow, even zram is too slow and causes too much overhead)

I can't figure out if it's possible to tell the docker driver to mount a new volume of type tmpfs into the container right now, it seems like it's not possible as you only support "Volume type mounts" which i guess means predefined docker-volumes only?

I'd like nomad to support creating a tmpfs mount at a specified path in the container. The options i've found for doing this with docker are:

docker run --mount type=tmpfs,destination=/app ...
docker run --tmpfs /app ...

Potentially, extending the docker mounts support with a "type" flag and passing that through to the docker daemon should work well?

@chelseakomlo
Copy link
Contributor

Hi, thanks for the feature request. Generic tmpfs support is in our future roadmap but is not currently enabled. See related ticket #3021.

Keeping this issue open to track future development- let us know if anything else comes up in the future.

@filipochnik
Copy link
Contributor

What's the status of this feature? I was looking into implementing this.
@chelseakomlo what do you mean by "generic tmpfs support"?

@chelseakomlo
Copy link
Contributor

Hey, thanks for the question. This is still in our future backlog.

By generic tmpfs support, we mean that users in the future will be able to create tmpfs mountpoints beyond only /secrets(which is what is currently supported).

@filipochnik
Copy link
Contributor

But we are still talking only about the docker driver, right?

Will you accept a PR for this? If it doesn't interfere with your work I'd be happy give it a shot.

@schmichael
Copy link
Member

@filipochnik I'm afraid we won't accept docker-only PRs for additional tmpfs support. It will be part of a larger cross-driver volumes effort in the coming months that will require scheduling changes. In particular we'll need the scheduler to account for additional memory allocated to the tmpfs.

Sorry for the bad news! We know our lack of generic volume management is a big pain point for some users and will be getting to it soon!

@filipochnik
Copy link
Contributor

@schmichael Gotcha!
I was actually looking for a feature to contribute, I don't have an immediate use case for this personally. Anyway, thanks for answering :)

@schmichael
Copy link
Member

@filipochnik Oh! Well in that case I'll do some digging and see if there are any fun issues in our backlog! :)

@filipochnik
Copy link
Contributor

Awesome, thanks!

@Miserlou
Copy link

What's the status of this? This feature is useful to me.

@schmichael
Copy link
Member

@Miserlou Coming in 0.9! Sorry for being slow to update the issue. Lots landing lately, and we've been updating issues and the changelog asynchronously.

See #4924 for details.

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants