Steve Wilhelm
Steve Wilhelm

Reputation: 6270

Practical limits of Cedar's Ephemeral Filesystem on Heroku

Can anyone provide insight into the practical limits in terms of the number of files and maximum size of dyno created files (individually and in total) a Cedar based Heroku application can support.

Upvotes: 14

Views: 3392

Answers (2)

John Beynon
John Beynon

Reputation: 37507

I've never run into a problem with any of my apps but they say slug size should be less than 200Mb, details here. You can't write any files to the filesystem except tmp which isn't guaranteed to be shared between your dynos so you have to write it out to Amazon S3 or such like.

Don't forget though, uploading a file will consume a dyno whilst the upload is taking place

Upvotes: 0

Steve Wilhelm
Steve Wilhelm

Reputation: 6270

Contacted Heroku support.

They claim there are no hard limits on number of files or size of files stored on the ephmeral filesystem.

In practice, if a dyno uses up the available RAM and / or CPU resources managing the files, the dyno will be killed and restarted which will effectively destroy the files.

Upvotes: 8

Related Questions