Перейти к содержанию
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

Скопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.

Как использовать

Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.

Готовое сообщение для вставки

Используй этот скилл, чтобы помочь мне: https://github.com/google/skills/blob/main/skills/cloud/google-cloud-filestore-autoscale/SKILL.md Прочитай файл SKILL.md по этой ссылке и следуй его инструкциям в моей задаче.
Хотите, чтобы ваш ИИ сам находил такие скиллы?Установите бесплатный MCP Skillpedia: одна строка, и перед каждой задачей он ищет среди 15 000+ скиллов.Установить за 1 минуту →

Пример запроса к вашему ИИ

“Проверь мои общие папки 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, роль просмотра мониторинга для метрик ёмкости и роль пользователя MCP-инструмента, если используются MCP-инструменты.

Пороги действуют на все проекты?

Пользовательские пороги действуют на все проекты в текущей сессии.

Он может уменьшить папку?

Да. Он может уменьшить размер, чтобы сэкономить, а также увеличить его.

Подробности

Оригинальное описание автора

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
Обновлён
02.11.2026

Полезен ли этот скилл?

0

Войдите , чтобы голосовать.

Комментарии

  • …

Другие скиллы из этого репозитория

Похожие скиллы