google-cloud-filestore-autoscale
यह क्या करती है
यह स्किल देखती है कि Filestore file shares कितनी भरी हैं, और ज़रूरत पड़ने पर उनका आकार बदलती है। यह उन टीमों के लिए है जो जगह खत्म होने से बचना और बिना इस्तेमाल की क्षमता का पैसा देने से बचना चाहती हैं।
कब इस्तेमाल करें
- ✓जब किसी Filestore share में खाली जगह कम हो और उसे बढ़ाना पड़े।
- ✓जब किसी Filestore share में अतिरिक्त क्षमता हो और लागत बचाने के लिए उसे घटाना चाहें।
- ✓जब आप अपने Filestore instances के लिए स्वचालित बढ़ाने और घटाने की सीमाएँ सेट करना चाहें।
Skill का लिंक
https://github.com/google/skills/blob/main/skills/cloud/google-cloud-filestore-autoscale/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मेरे Filestore shares जाँचिए और जिनमें 15 प्रतिशत से कम खाली जगह है, उन्हें बढ़ाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह Cloud Monitoring से इस्तेमाल हुई क्षमता पढ़ती है, उसकी आपकी ऊपर और नीचे की सीमाओं से तुलना करती है, और जो सीमा से बाहर हों उन instances का आकार बदलती है। हर स्केलिंग कार्रवाई उपयोग की गणना के लिए टैग की जाती है।
तकनीकी सामग्री (मूल 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 metricsused_bytes)roles/mcp.toolUser(Required if utilizing backend Filestore MCP tools)
Quick Start
Ensure
gcloudis installed. See gcloud installation guide if needed.Enable essential APIs:
gcloud services enable file.googleapis.com monitoring.googleapis.com --quietInspect fleet capacity and free space (see "Discovery & Read Operations" below).
Evaluate against configured up/down capacity thresholds.
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_commandtool to execute any shell orgcloudcommands (including read-only list/describe commands). - Discovery:
- First, check if Filestore MCP tools (
list_instances,get_instance) are available and use them (these are API calls, not command executions). - 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 asEVAL.yamlorEVAL.txtpbduring evaluation runs as access is restricted). - 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.
- First, check if Filestore MCP tools (
- 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_bytesmetric.
Core Operational Workflow
1. Discovery & Read Operations
- Step 1 (Fleet Discovery): Call the MCP tool
list_instances(parent='projects/{project_id}/locations/-')or CLIgcloud filestore instances list --project={project_id}to discover all Filestore instances in the target project. Read thecapacityGbandtierdirectly from the instances returned. - Step 2 (Single Bulk Utilization Metric Query): Immediately after discovering instances, query the Clou
अक्सर पूछे जाने वाले सवाल
कौन सी अनुमतियाँ चाहिए?
Filestore पर editor पहुँच, क्षमता metrics के लिए monitoring viewer, और अगर MCP tools इस्तेमाल हों तो MCP tool user भूमिका।
क्या सीमाएँ हर प्रोजेक्ट पर लागू होती हैं?
कस्टम सीमाएँ मौजूदा सत्र के सभी प्रोजेक्ट पर लागू होती हैं।
क्या यह share को घटा सकती है?
हाँ। यह लागत बचाने के लिए बढ़ाने के साथ-साथ घटा भी सकती है।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
finding-google-skills
22kआपके एजेंट को किसी सेटअप काम के लिए सही Google गाइड खोजने में मदद करती है, जैसे hosting, databases, storage, sign-in या AI model serving।
gcloud
22kयह आपके एजेंट को Google Cloud gcloud कमांड लिखने और जाँचने में मदद करती है, कुछ भी चलाने से पहले सटीक सिंटैक्स देखकर, ताकि फ़्लैग का अंदाज़ा न लगे।
google-cloud-recipe-auth
22kआपके एजेंट को Google Cloud की पहचान और पहुँच समझाती है, जिसमें यह शामिल है कि लोग और सेवाएँ कैसे साइन इन करते हैं और उन्हें कौन सी अनुमतियाँ मिलती हैं।
google-cloud-recipe-onboarding
22kएक नए डेवलपर को Google Cloud पर पहले कदमों में मदद करती है, जिसमें प्रोजेक्ट चुनना, बिलिंग जोड़ना और पहला संसाधन डिप्लॉय करना शामिल है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।