Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Mount block storage on cloud run?

I know I can mount GCS to cloud run, but can I mount block storage (I think its called Persistent Disk on GCP) on cloud run?

0 4 354
4 REPLIES 4

Not today.

If we were to make this available, what would you use it for?

I am developing a game and I would like to store & edit the players' save files in the cloud. I thought about GCS but I cannot edit the file without downloading it first then uploading it back again, which will be very costly if there were frequent uploads. I could use a file storage but I have heard that block storage can be accessed faster and is more scalable.

So the process is something like this:

  1. The player does an action in the game
  2. An HTTP request is sent to cloud run
  3. cloud run edits the player's save file without downloading it

Thank you, that's super helpful! 

Reading this, what comes up for me is - would using a database work better here? I'm not really sure what goes in these files though.

Block storage is not more scalable in that even in GCE, only 1 VM can typically access a GCE Persistent Disk. 

Thanks for the reply.

Using files (or file-based databases like SQLite) is more convenient in my case because, in some cases, I need to transfer the whole file from the cloud to the player's device, or the opposite: for the player's device to the cloud.