Skip to content

About

A user-space file system for interacting with Google Cloud Storage

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

5,675 Commits

Folders and files

Repository files navigation

gcsfuse

We implement Akeso clients using gcsfuse. We extend the gcsfuse's caching layer to invoke the nested decryption operations when fetching an object from cloud storage, and to re-apply these layers when uploading a modified object.

Below we outline the dependencies, build and run instructions for the master branch. We provide further details and scripts to run the different variants of Akeso later.

  • Dependencies
    • Running gcsfuse requires go and fuse3
    • The required packages can be installed using the command below (note: please skip ./common/install-go.sh if you already have Go installed - as it'll replace the Go on your path, and ./common/install-gcloud.sh if you already have gcloud cli installed):
      ./common/install-dependencies.sh && ./common/install-go.sh && ./common/install-gcloud.sh && source ~/.bashrc
  • Build
    ./smh/make.sh
  • Run
    • Setup Service Account (SA) credentials to access the atp-master bucket. This SA credentials has been configured with read and write access to the atp-master bucket.

      # adjust the service account key path accordingly
      export GOOGLE_APPLICATION_CREDENTIALS=$HOME/downloads/serviceAccount-ae-pets25-alice.json
      gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS
    • Mount the bucket (mounting the bucket allows accessing the contents of cloud storage bucket as a local folder):

      ./smh/mount.sh
    • A Google cloud storage bucket gets mounted into the ./mnt folder where you can write or read files.

    • Unmount the bucket:

      ./smh/umount.sh

Client Strategies

The required configs, scripts, and the code for running the different client strategies are in their separate branches. The instructions for running these strategies are in their corresponding README.md files.

Client Strategy Branch
CSEK akeso-csek
CMEK & CMEK-HSM cmek
Akeso-Keywrap akeso-keywrap
Akeso akeso-nested
Akeso-Strawman akeso-strawman
Original gcsfuse Readme

codecov

Current status

Starting with V1.0, Cloud Storage FUSE is Generally Available and supported by Google, provided that it is used within its documented supported applications, platforms, and limits. Support requests, feature requests, and general questions should be submitted as a support request via Google Cloud support channels or via GitHub here.

Cloud Storage FUSE is open source software, released under the Apache license.

New Cloud Storage FUSE V2

Cloud Storage FUSE V2 provides important stability, functionality, and performance enhancements, including the introduction of a file cache that allows repeat file reads to be served from a local, faster cache storage of choice, such as a Local SSD, Persistent Disk, or even in-memory /tmpfs. The Cloud Storage FUSE file cache makes AI/ML training faster and more cost-effective by reducing the time spent waiting for data, with up to 2.3x faster training time and 3.4x higher throughput observed in training runs. This is especially valuable for multi epoch training and can serve small and random I/O operations significantly faster. The file cache feature is disabled by default and is enabled by passing a directory to 'cache-dir'. See overview of caching for more details.

ABOUT

What is Cloud Storage FUSE?

Cloud Storage FUSE is an open source FUSE adapter that lets you mount and access Cloud Storage buckets as local file systems. For a technical overview of Cloud Storage FUSE, see https://cloud.google.com/storage/docs/gcs-fuse.

Cloud Storage FUSE for machine learning

To learn about the benefits of using Cloud Storage FUSE for machine learning projects, see https://cloud.google.com/storage/docs/gcsfuse-integrations#machine-learning.

Limitations and key differences from POSIX file systems

To learn about limitations and differences between Cloud Storage FUSE and POSIX file systems, see https://cloud.google.com/storage/docs/gcs-fuse#differences-and-limitations.

Pricing for Cloud Storage FUSE

For information about pricing for Cloud Storage FUSE, see https://cloud.google.com/storage/docs/gcs-fuse#charges.

CSI Driver

Using the Cloud Storage FUSE CSI driver, users get the declarative nature of Kubernetes with all infrastructure fully managed by GKE in combination with Cloud Storage. This CSI driver relies on Cloud Storage FUSE to mount Cloud storage buckets as file systems on the GKE nodes, with the Cloud Storage FUSE deployment and management fully handled by GKE, providing a turn-key experience.

Support

Supported operating system and validated ML frameworks

To see supported operating system and ML frameworks that have been validated with Cloud Storage FUSE, see here.

Getting support

You can get support, submit general questions, and request new features by filing issues in GitHub. You can also get support by using one of Google Cloud's official support channels.

See Troubleshooting for common issue handling.

About

A user-space file system for interacting with Google Cloud Storage

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages