Network Storage Cache
In serverless invocation; is it possible to store files in network storage and have those items be accessible between worker invocations?
Or is the runpod volume directory a copy of the network volume
Solution:Jump to solution
You can attach your network volume to your serverless endpoint under Advanced settings. It gets mounted to the serverless workers at
/runpod-volume
.6 Replies
Solution
You can attach your network volume to your serverless endpoint under Advanced settings. It gets mounted to the serverless workers at
/runpod-volume
.I see - so I can update the /runpod-volume files and those files can be accessible by other workers correct?
Yes, you usually mount your network storage onto a pod and files via a pod into /workspace, you don't usually do it via serverless.
you can, some users upload fine-tuned models using serverless and consume using another serverless endpoint
so I don't really understand - if I want my serverless end-point to have access to the workspace files, everything needs to be under /runpod-volume?
Its mounted as /workspace on pods and /runpod-volume on serverless.
And you obviously need to use a network volume if you want to achieve this.