1. Cloud Storage FUSE (gcsfuse)
Best for: read-mostly access to a bucket from Compute Engine or GKE, at no extra cost
Cloud Storage FUSE is Google's open-source (Apache 2.0) FUSE adapter that mounts a bucket as a local file system on Linux, Compute Engine, GKE or on-premises machines. The tool is free; you pay for the Cloud Storage storage, operations and network transfer it generates. Its file cache keeps what you read on local SSD, a persistent disk or tmpfs, and with the cache on, parallel downloads fetch large files with several workers, which Google says can make model loads up to nine times faster. It offers close-to-open consistency.
Strengths
- Supported by Google, on Compute Engine, on GKE through the Cloud Storage FUSE CSI driver, and on-premises
- File cache with parallel downloads (on by default from version 2.12 when the file cache is enabled);
cache-file-for-range-readfetches the whole file on a first random read, which helps repeated Parquet scans - Streaming writes, the default since version 3.0, upload new files sequentially without staging them on disk
- Hierarchical-namespace buckets give atomic folder renames and 40,000 initial object reads per second, against 5,000 for flat buckets
Tradeoffs
- Changing an existing file reuploads the whole object; no hard links and no file locking, so Google calls it unsuitable for version control repositories
- Two mounts writing the same object: the first flush wins, and Google recommends against it
- The cache belongs to one gcsfuse process on one machine and isn't kept across unmounts, so each VM warms its own copy
- POSIX permissions don't apply; access is controlled by IAM. Google notes that caching reduces consistency and recommends read-only mounts when you cache