How much file system space do apps have?

I have an app that processes files and uploads them to some bucket. After processing, the files are deleted from the OS temp folder.

Since the app doesn’t have an associated volume, I assumed these files would be downloaded to memory. But when I look at the metrics it just looks like the usual Node usage. There is no change when files are downloaded to the filesystem.

So I’m guessing these files are actually downloaded to the SSD? And if so, how much can I use?

Try running the following command:

fly ssh console -C df

Look for the line where the last column is a single slash. On that line there is a column that shows the number of available 1K blocks.


From one of the machines:

# output from df -H
Filesystem                Size      Used Available Use% Mounted on
devtmpfs                100.6M         0    100.6M   0% /dev
/dev/vda                  7.8G    531.8M      6.9G   7% /
shm                     110.6M         0    110.6M   0% /dev/shm
tmpfs                   110.6M         0    110.6M   0% /sys/fs/cgroup

NVMe, yes (:

/dev/vda (mounted as rootfs /) is VM’s ephemeral disk (see above) where the app’s docker file must inflate in to. df -H tells me, I’ve got around 7G out of the total 8Gs free.

1 Like

I see this

Filesystem           1K-blocks      Used Available Use% Mounted on
devtmpfs                489236         0    489236   0% /dev
/dev/vda               8191416   1511548   6244056  19% /
shm                     499396         0    499396   0% /dev/shm
tmpfs                   499396         0    499396   0% /sys/fs/cgroup

But surely I can’t use like 8TB?



I mean, I won’t even occupy 2GB. My files are max 500MB but in some rare occasion I could be processing a couple of files concurrently.

I just want to be certain I’m not breaking any rules here.

You are reading this correctly. You are not breaking any rules. The only caveat is that the amount of available space isn’t something that is advertised or guaranteed forever. If you want a guarantee, use a volume, otherwise, enjoy it while it lasts!

1 Like

Presumably another caveat is that it’s shared? i.e. if Pier’s ‘machine’ and mine are allocated to the same …machine then if he decides to use ~8TB to prove a point then suddenly I can’t use any more than I have already?

It’s 8GB. :slight_smile: (Edited because I’m not actually sure it’s not a thin volume)

1 Like

Ha, that makes a lot more sense. I didn’t even think to check that calculation for some reason :sweat_smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.