Storage¶
FLAME has an attached high-performance Weka parallel filesystem built for data-intensive workloads like large-scale model training, connected to the compute nodes with a 400Gbps network fabric. It provides the Kubernetes persistent volumes that your workloads mount using Weka's Container Storage Interface (CSI) driver. This allows data to be moved in and out of GPU memory from storage extremely quickly.
Durability and security
FLAME storage is optimized to feed GPUs as fast as possible to maximize training performance. This comes with tradeoffs in durability and security. In particular, data on FLAME Kubernetes volumes is not backed up and stored unencrypted.
As such, FLAME storage should be understood as scratch space for "hot data" undergoing active compute. It is not an appropriate long-term data storage location. FLAME has a companion long-term storage system, Hearth, which is designed expressly for this.
Your storage volumes¶
A volume is persistent storage that's mounted into a running pod (like a notebook or TrainJob), like plugging in an external hard drive. Files you save there are kept after the notebook session or job ends.
In each workspace you belong to, you get two volumes by
default: your own home directory at /home/ubuntu,1 and a shared volume
at /workspace that every member of the workspace uses.
Both are attached automatically to JupyterHub notebook sessions, Kubernetes Jobs, and Kubeflow TrainJobs. For technical details about how volumes work under the hood, see the Kuberentes reference page.
Save your work under /home/ubuntu or /workspace
Anything written outside these two paths, such as a package installed
system-wide or a file saved to /tmp, is ephemeral, and lost when your session or job
ends.
To install a package persistently, build a custom image.
Home PVC¶
A 100GiB personal space for each workspace member, automatically mounted at
/home/ubuntu. Use it for your own code, notebooks, experiments, and scratch
work.
Your home PVC isn't private
The FLAME permissions model is that workspaces are the only permission boundaries. Everyone in a workspace has equal access to everything in it. This means that any colleagues you share a workspace with can mount, read, and edit your home volume. They have to use manual Kubernetes commands to do this (each user's pods only mount their own home directory by default), but it's possible. This is convenient for sharing work between labmates, but trades off privacy.
If you need a private space that only some members of a research group can access, email URCF support and we can create additional workspaces with different member lists.
See Permissions within a workspace for more details.
Workspace storage¶
A default shared storage volume for all members of a workspace
to collaborate, mounted at /workspace in notebooks and jobs started in that
workspace. Its size is set based on what your PI requested when applying for
FLAME access. Use it for large datasets, shared models, results, and anything
else your group needs to collaborate on.
Custom volumes¶
If you'd like to organize your data differently, for example a separate volume
for one large dataset or one project, you can create additional volumes in your
workspace. A volume is created with a Kubernetes
PersistentVolumeClaim (PVC), so you'll need
kubectl access set up.
For example, you could use the following as imagenet-pvc.yaml file to create a
500GiB volume:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: imagenet
spec:
accessModes: [ReadWriteMany]
resources:
requests:
storage: 500Gi
Apply it with kubectl apply -f imagenet-pvc.yaml, then mount it in a job by
listing it under the pod's volumes and giving it a path under
volumeMounts in a pod definition:
volumes:
- name: imagenet
persistentVolumeClaim:
claimName: imagenet
containers:
- name: train
volumeMounts:
- name: imagenet
mountPath: /data/imagenet
Snapshots¶
FLAME takes automatic snapshots of all of a workspace's storage (every home PVC, the shared workspace PVC, and any custom PVCs) to protect against accidental deletion and overwrites:
| Schedule | Kept for |
|---|---|
| Every hour | 24 hours |
| Every day | 7 days |
| Every week | 5 weeks |
You can't browse snapshots yourself. To recover something, email urcf-support@drexel.edu.
Snapshots aren't backups
Snapshots live on the same storage system as your data and expire after about a month. Anything you need to keep long-term or can't recreate belongs somewhere else too, such as Hearth.
-
The path is
/home/ubuntubecause FLAME's base images are built on Ubuntu, whose default user isubuntu. Your home directory is still mounted at/home/ubuntuif you use a custom image built on a different operating system. That's a little confusing, but it's how it works. ↩