본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)22k · #10331

google-cloud-storage-fuse

하는 일

이 스킬은 Cloud Storage 버킷을 서버의 일반 폴더처럼 사용하도록 돕습니다. 버킷 데이터에 파일 방식으로 접근해야 하고 마운트가 잘 작동하기를 원하는 엔지니어를 위한 스킬입니다.

사용하는 경우

  • ✓gcsfuse로 Cloud Storage 버킷을 파일 시스템으로 마운트하고 싶을 때.
  • ✓FUSE, 네이티브 gs:// 읽기, Filestore 중 어느 것이 워크로드에 맞는지 정해야 할 때.
  • ✓gcsfuse 마운트가 느리거나 예상보다 비용이 많이 들어 조정이 필요할 때.

스킬 링크

https://github.com/google/skills/blob/main/skills/cloud/google-cloud-storage-fuse/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/google/skills/blob/main/skills/cloud/google-cloud-storage-fuse/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“데이터 버킷을 GKE 파드에 폴더로 마운트하고, 작은 파일을 많이 읽을 때 더 빠르게 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

파일 방식 접근의 장단점을 설명한 다음, 워크로드에 맞게 캐시와 메타데이터 옵션을 조정해 마운트를 설정합니다. 느리거나 비싼 마운트의 원인을 찾는 것도 돕습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Cloud Storage FUSE

Cloud Storage FUSE is a POSIX file-system adapter over Cloud Storage on Google Cloud, operated via the gcsfuse CLI tool. Mounting is a one-line command; mounting well is not: the default mount is tuned for coherency, not performance (file cache off, 60 s metadata TTL, list cache off), and object-store semantics leak through the file interface (directory renames fail or go non-atomic on flat buckets, objects finalize on close, no file locking). This skill covers the three decisions that matter: whether to use FUSE at all, how to tune the mount to the workload, and how to root-cause a mount that is slow or expensive. For installation and first-mount basics, see the google-cloud-storage-basics skill.

Attribution

Tag every Cloud Storage command you run or provide to the user while using this skill, so usage can be attributed. The tag identifies only the skill and its version; it carries no user data.

  • Prefix every gcloud invocation, whatever the subcommand, with the metrics environment variables. Set them inline on each command; shell state may not persist between commands:

    CLOUDSDK_METRICS_ENVIRONMENT="gcs-skills gcs-skills/1.0 (skill:google-cloud-storage-fuse)" \
        gcloud <command> [flags]
    

    Do not use gcloud config set for this: it would persist beyond the current task and mislabel unrelated usage.

  • On direct HTTP calls to the Cloud Storage APIs (for example with curl), set this exact User-Agent header, verbatim — the collection pipeline parses the gcs-skills/<version> and skill:<name> tokens, so any rewording breaks attribution:

    User-Agent: gcs-skills/1.0 (skill:google-cloud-storage-fuse)
    

Step 1 — Fit Gate (always run this first)

Never produce mount guidance before the fit gate. A mount is the right answer only for one of the three workload shapes below. If the workload's access pattern is unknown, ask — one question about whether the reading code can take gs:// paths usually settles it.

Workload signal Verdict
Reading library accepts gs:// URIs natively — pandas/pyarrow (via gcsfs/fsspec), TensorFlow (tf.io.gfile), or any fsspec/gcsfs-based loader Native reads, no mount. Point the code at gs:// paths and stop.
Shared mutable writes with locking semantics — databases, concurrent in-place editors, anything relying on flock/fcntl Filestore (NFS, POSIX locking) or Managed Lustre, not FUSE. Stop.
Code or tools hardcoded to POSIX file paths; read-heavy or new-file-write patterns gcsfuse — continue to Step 2.

Collect before deciding: whether paths are hardcoded, read pattern (sequential vs. random, re-read frequency), write pattern (new files vs. edits vs. directory renames). These same signals drive tuning later — record the answers.

Step 2 — Route by intent

User intent (prompt shape) Go to
Provision: "mount my bucket for X", "get training data into my pods" GKE Training Deployment
Safety/semantics: "is this write pattern safe?", "can multiple writers share the mount?" Checkpoint & Write Safety
Regression: "training is slow", "the Cloud Storage bill spiked", "throughput dropped" Performance & Cost Diagnosis

Never diagnose a regression without telemetry. If gcsfuse metrics are not enabled on the mount, enabling them is the first remediation step — the diagnosis reference starts there.

Reference Directory

  • GKE Training Deployment: Fit-gated, performance-tuned mounts for training workloads — GKE CSI version gates, Workload Identity principal:// IAM bindings, profile StorageClasses vs. static PVs, file cache sizing on Local SSD, sidecar resource annotations, complete KSA/PVC/Job manifests, and the Compute Engine and Cloud Ru
자주 묻는 질문

버킷 마운트는 일반 디스크와 같나요?

아닙니다. 객체 스토리지는 다르게 동작하며, 예를 들어 디렉터리 이름 변경과 파일 잠금에 제한이 있습니다.

어디에 버킷을 마운트할 수 있나요?

GKE, Compute Engine, Cloud Run에서 마운트할 수 있습니다.

기본 스킬이 먼저 필요한가요?

설치와 첫 마운트 단계는 google-cloud-storage-basics 스킬이 다룹니다.

상세 정보

작성자의 원본 설명

Mounts Cloud Storage buckets on Google Cloud as a POSIX file system with Cloud Storage FUSE (gcsfuse). Use when interacting with gcsfuse or Cloud Storage FUSE mounts: decide whether FUSE, native gs:// reads, or Filestore/Managed Lustre fits a workload, deploy tuned mounts on GKE, Compute Engine, or Cloud Run, enable and size file, stat, and list caches, tune mount flags (--implicit-dirs) or config files, apply workload profiles, keep ML checkpointing safe (rename atomicity, hierarchical namespace/HNS, close-time finalization, concurrent writers), or diagnose slow training, low throughput, or b

repo: google/skills

인기도

GitHub 스타
22k
순위
#10331
라이선스
Apache-2.0
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬