-
Notifications
You must be signed in to change notification settings - Fork 17
Reconsider mounting /tmp as a shared PersistentVolumeClaim #30
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
Comments
This won't be as simple as I thought. The current implementation (adapted from cwltool) copies files /directories into It appears to be implementing the InitialWorkDirRequirement, which allows for writable disposable copies of files/directories. When that feature is used, Worth further discussion, won't be implementing anything immediately. |
When I was porting this code, the I think the best solution to this (and also relates to #31) would be to remove that coupling wherever possible. At some level, the engine does need access to the files to calculate checksums and sizes, but I don't think we should be tightening that coupling. |
We'll want some data to determine how important this is. While we could (in most cases) just use a node-local /tmp directory from an |
On a recent CWL call, I heard about the genesis of this feature (writable files put into tmp) and that it's for large data sets that need to be mutable but perhaps disposable. That doesn't come up in our use cases. Again we'd still need some performance data, but I think the best plan for this feature is to default to using a local |
Related to Duke-GCB/lando#141 |
- Updates KubernetesVolumeBuilder to support a list of named emptyDir volumes - Updates CalrissianCommandLineJob.create_kubernetes_runtime to use an emptyDir volume for '/tmp' inside the container Upon implementation, I don't think this will conflict with any of the special cases mentioned in #30 (writable files being copied into /tmp). These files are copied on the calrissian host and mounted later (via `add_volumes()`). This change will mount the base `/tmp` as an `emptyDir` but additional direct mounts to files placed by calrissian shouldn't be impacted. Fixes #30
Uh oh!
There was an error while loading. Please reload this page.
Currently,
/tmp
in each container is mounted from a subPath of a shared PV. So each container would get its own/tmp
but that would be mounted over a network. As I mentioned in #5 (comment), this is probably counter to what we want and should re-consider.I suggest in #5 (comment) that
tmp
should simply be mounted as a kubernetesemptyDir
.The text was updated successfully, but these errors were encountered: