Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Practical limits of Cedar's Ephemeral Filesystem on Heroku

Tags:

ruby

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.

like image 765
Steve Wilhelm Avatar asked Jul 05 '11 21:07

Steve Wilhelm


People also ask

How much data can be stored on Heroku?

Maximum storage of 1GB for hobby-dev and 10GB for hobby-basic plans. Maximum of 20 connections. No in-memory cache: The lack of an in-memory cache limits performance, because the data can't be accessed on low-latency storage.

Is Heroku ephemeral?

Heroku has an “ephemeral” hard drive, this means that you can write files to disk, but those files will not persist after the application is restarted. By default Active Storage uses a :local storage option, which uses the local file system to store any uploaded files.

How many requests can Heroku handle?

Build: Users are limited to 75 requests to Heroku Git repos per hour, per app, per user.

What is ephemeral filesystem?

The Heroku filesystem is ephemeral - that means that any changes to the filesystem whilst the dyno is running only last until that dyno is shut down or restarted.


1 Answers

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.

like image 182
Steve Wilhelm Avatar answered Sep 17 '22 22:09

Steve Wilhelm