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

google-cloud-filestore-autoscale

하는 일

이 스킬은 Filestore 파일 공유가 얼마나 찼는지 살피고, 필요할 때 크기를 조정합니다. 공간이 바닥나는 것도, 쓰지 않는 용량에 돈을 내는 것도 피하려는 팀을 위한 스킬입니다.

사용하는 경우

  • ✓Filestore 공유의 남은 공간이 적어서 늘려야 할 때.
  • ✓Filestore 공유에 여유 용량이 있어서 비용을 아끼려고 줄이고 싶을 때.
  • ✓Filestore 인스턴스의 자동 확장과 축소 기준값을 설정하고 싶을 때.

스킬 링크

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

AI에게 요청하는 예시

“Filestore 공유를 확인해서 여유 공간이 15퍼센트 미만인 공유는 용량을 늘려 주세요.”

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

작동 방식

Cloud Monitoring에서 사용 중인 용량을 읽고, 위쪽과 아래쪽 기준값을 비교한 다음, 기준을 벗어난 인스턴스의 크기를 조정합니다. 각 확장 작업에는 사용량 집계를 위한 태그가 붙습니다.

기술 내용 (원본 SKILL.md)

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

Filestore Autoscale

This skill enables agents to inspect, evaluate, and modify Filestore instance capacities across Google Cloud projects based on configured thresholds.

Prerequisites / IAM Requirements

Before an agent or user can execute this skill, their runtime Service Account must possess the following IAM roles on the target project(s):

  • roles/file.editor (Required for listing instances and triggering scale up/down updates)
  • roles/monitoring.viewer (Required for reading Cloud Monitoring capacity metrics used_bytes)
  • roles/mcp.toolUser (Required if utilizing backend Filestore MCP tools)

Quick Start

  1. Ensure gcloud is installed. See gcloud installation guide if needed.

  2. Enable essential APIs:

    gcloud services enable file.googleapis.com monitoring.googleapis.com --quiet
    
  3. Inspect fleet capacity and free space (see "Discovery & Read Operations" below).

  4. Evaluate against configured up/down capacity thresholds.

  5. Scale target instances and apply attribution tags.

Attribution

Tag every Cloud Filestore command or API request provided or executed. Prefix gcloud commands with the correct metrics environment targeting this skill:

CLOUDSDK_METRICS_ENVIRONMENT="gcs-skills gcs-skills/1.0 (skill:google-cloud-filestore-autoscale)" \
gcloud filestore instances update ...

On direct HTTP calls to the REST API, append the User-Agent:

User-Agent: gcs-skills/1.0 (skill:google-cloud-filestore-autoscale)

Conceptual & Informational Queries (CRITICAL)

For purely conceptual, educational, or informational questions (e.g., "What are Filestore scaling limits?", "Can Basic instances scale down?", "Explain Filestore Tiers"):

  • Rule: Answer immediately using your pre-trained knowledge and the matrix below.
  • Constraint: Do not execute external tool calls or API requests for basic knowledge questions.

Handling "No-Command" Constraints (CRITICAL)

If the user prompt contains constraints like "Do not execute commands", "without executing", or "read-only":

  • Rule: Strictly avoid calling the run_command tool to execute any shell or gcloud commands (including read-only list/describe commands).
  • Discovery:
    1. First, check if Filestore MCP tools (list_instances, get_instance) are available and use them (these are API calls, not command executions).
    2. If MCP tools are not available, search local markdown documentation files (e.g., references/instance-tiers-specs.md) for any mock instance definitions or project details matching the request. (Do NOT attempt to read evaluation config files such as EVAL.yaml or EVAL.txtpb during evaluation runs as access is restricted).
    3. If no data can be found, explain the required steps and formulas, and output the exact commands the user should run, without executing them yourself.
  • Mandatory User Confirmation Requirement: Even when the user prompt asks not to execute commands or asks only for command syntax/recommendations, your response MUST STILL end with a clear question prompting the user for confirmation before executing any capacity resizing commands (e.g., "Would you like me to proceed with scaling [instance] from [A] TiB to [B] TiB? Please confirm to execute.").

Tier & Capacity Limits Matrix

Filestore tiers enforce specific boundaries and behaviors. The skill must accept both modern UI names (Basic, Zonal, Regional) and legacy API enums interchangeably.

See references/instance-tiers-specs.md for the full Tier & Capacity Limits Matrix (Min/Max capacities, step increments).

Critical Thresholds:

  • Basic HDD / Basic SSD: Can scale up, but cannot scale down.
  • Zonal / Regional: Can scale down, but cannot shrink below their minimum floor (1 TiB or 10 TiB depending on band) AND cannot shrink below the current used_bytes metric.

Core Operational Workflow

1. Discovery & Read Operations

  • Step 1 (Fleet Discovery): Call the MCP tool list_instances(parent='projects/{project_id}/locations/-') or CLI gcloud filestore instances list --project={project_id} to discover all Filestore instances in the target project. Read the capacityGb and tier directly from the instances returned.
  • Step 2 (Single Bulk Utilization Metric Query): Immediately after discovering instances, query the Clou
자주 묻는 질문

어떤 권한이 필요한가요?

Filestore 편집자 접근, 용량 지표를 위한 monitoring viewer, MCP 도구를 쓸 경우 MCP tool user 역할이 필요합니다.

기준값이 모든 프로젝트에 적용되나요?

사용자 지정 기준값은 현재 세션의 모든 프로젝트에 적용됩니다.

공유를 줄일 수 있나요?

네. 용량을 늘리는 것뿐 아니라 비용을 아끼려고 줄일 수도 있습니다.

상세 정보

작성자의 원본 설명

Inspects Filestore capacity and utilization on Google Cloud, evaluates storage scaling rules, and performs capacity autoscaling (scale UP for low free space or scale DOWN for cost optimization). Use when monitoring Filestore instance headroom, resizing instance shares, configuring automated growth/shrink thresholds (custom thresholds apply globally across projects in session memory), or preventing out-of-space outages. Don't use for Cloud Storage (GCS) buckets, Persistent Disk block storage, or NetApp Volumes.

repo: google/skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬