Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GCE Use Cloud Storage Bucket as Mounted Drive

Is there a way to mount a storage bucket to an instance so it can be used by the webserver as storage? If not, how can I add more storage to the instance without adding another persistent disk with an OS?

like image 607
user3035181 Avatar asked Mar 29 '14 08:03

user3035181


1 Answers

Aside from attaching a new persistent disk, you could also use a number of FUSE based utilities to mount either a Google Cloud Storage or AWS S3 bucket as a local disk.

s3fs: *Can work with Google Cloud or AWS *Bucket can be mounted on multiple systems at same time *Files are stored as objects on the bucket, so the files can be manipulated externally *A con is that it can be a little bit slow if you have a lot of files

S3QL: *Can work with Google Cloud or AWS *Bucket can be mounted on one system *Files are stored in a proprietary format, can't be manipulated outside of the mounted filesystem *Much faster than s3fs for many files *Doesn't handle network connectivity issues so well (manual fsck and remount if you lose network).

Hope this helps.

like image 102
j k Avatar answered Oct 06 '22 01:10

j k