GCE Use a cloud storage bucket as an installed drive

Is there a way to connect the storage bucket to the instance so that it can be used by the web server as storage? If not, how to add additional storage to the instance without adding another permanent OS drive?

+6
source share
2 answers

You can create a new (larger) Persistent Disk and attach it to your instance as a data disk. This is a very good option because it saves your site data separately from your operating system. For more information about all options, see Permanent Disk Documents .

In your case:

0
source

In addition to attaching a new permanent drive, you can also use many FUSE-based utilities to mount as a local Google Cloud Storage or AWS S3 drive.

s3fs: * Can work with Google Cloud or AWS * The bucket can be installed on several systems at the same time * Files are stored as objects in a bucket, so files can be manipulated from the outside * Con, that it can be a little slow if you have a lot of files

S3QL: * Can work with Google Cloud or AWS * Bucket can be installed on one system * Files are stored in a proprietary format, cannot be processed outside the mounted file system * Much faster than s3fs for many files * Does not cope well with problems network connection (manually fsck and remount if you lose the network).

Hope this helps.

+2
source

All Articles