Recording temporary files from Google Cloud Function

Is it possible to write a local container file system from a Google cloud feature? AWS Lambda allows you to write to / tmp:

Q: What if I need disk space for my AWS Lambda feature?
Each Lambda function receives 500 MB of volatile disk space in its own / tmp directory.

Is there something equivalent in GCF?

+11
source share
1 answer

Yes, / tmp is the built-in memory. From https://cloud.google.com/functions/pricing :

Local disk

Cloud functions provide access to the local disk mount point (/ tmp), which is known as the "tmpfs" volume, in which the data recorded in the volume is stored in memory. There is no special fee associated with this. however, writing data to the / tmp mount point will consume the memory resources provided for this function.

+19
source

Source: https://habr.com/ru/post/1015659/


All Articles