Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the default storage for Google Cloud Run?

There is not documentation that I can find about the storage that Google Cloud Run has. For example, does it contains few Gigabyte storage as we create a VM? If not, is there a '/tmp' folder that I can put data temporarily into during the request? What's the limitation if available?

If neither of them available, what's the recommendation if I want to save some temporary data while running Cloud Run?

like image 883
lixinso Avatar asked Apr 29 '19 17:04

lixinso


People also ask

What is default storage class in GCP?

If you don't specify a default storage class when you create a bucket, that bucket's default storage class is set to Standard storage.

How many GB is Google Cloud?

The Basic subscription includes 100Gb of storage, the Standard includes 200Gb of storage, and the Premium plan includes 2Tb of storage. The Premium plan also includes VPN services for Android-powered devices. Google Cloud Storage includes a free tier as well. The free tier includes 15Gb of storage.

Where is the Google Cloud stored?

You can use Google Cloud Storage to store data in Google's cloud. Cloud Storage is typically used to store unstructured data. You can add objects of any kind and size, and up to 5 TB. Find Google Cloud Storage in the left side menu of the Google Cloud Platform Console, under Storage.


1 Answers

Cloud Run is a stateless service platform, and does not have any built-in storage mechanism.

Files can be temporarily stored for processing in a container instance, but this storage comes out of the available memory for the service as described in the runtime contract. Maximum memory available to a service is 8 GB.

For persistent storage the recommendation is to integrate with other GCP services that provide storage or databases.

The top services for this are Cloud Storage and Cloud Firestore.

These two are a particularly good match for Cloud Run because they have the most "serverless" compatibility: horizontal scaling to matching the scaling capacity of Cloud Run and the ability to trigger events on state changes to plug into asynchronous, serverless architectures via Cloud Pub/Sub and Cloud Storage's Registering Object Changes and Cloud Functions with Cloud Function Events & Triggers.

like image 171
Grayside Avatar answered Oct 16 '22 15:10

Grayside