R
RunPod10mo ago
papanton

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:
You can attach your network volume to your serverless endpoint under Advanced settings. It gets mounted to the serverless workers at /runpod-volume.
Jump to solution
6 Replies
Solution
ashleyk
ashleyk10mo ago
You can attach your network volume to your serverless endpoint under Advanced settings. It gets mounted to the serverless workers at /runpod-volume.
papanton
papantonOP10mo ago
I see - so I can update the /runpod-volume files and those files can be accessible by other workers correct?
ashleyk
ashleyk10mo ago
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.
flash-singh
flash-singh10mo ago
you can, some users upload fine-tuned models using serverless and consume using another serverless endpoint
Sassy Pantsy
Sassy Pantsy6mo ago
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?
digigoblin
digigoblin6mo ago
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.
Want results from more Discord servers?
Add your server