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) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“افحص مشاركات Filestore عندي ووسّع أي مشاركة لديها أقل من 15 في المئة مساحة حرة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقرأ السعة المستخدمة من 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 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، ومشاهد مراقبة لمقاييس السعة، ودور مستخدم أداة 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
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
finding-google-skills
22kيساعد وكيلك على إيجاد أدلة Google المناسبة لمهمة إعداد، مثل الاستضافة وقواعد البيانات والتخزين وتسجيل الدخول وتقديم نماذج الذكاء الاصطناعي.
gcloud
22kيساعد وكيلك على كتابة أوامر gcloud الخاصة بـ Google Cloud والتحقق منها، والاطلاع على الصيغة الدقيقة قبل تشغيل أي شيء حتى لا يخمّن الخيارات.
google-cloud-recipe-auth
22kيرشد وكيلك خلال هوية Google Cloud والوصول إليها، بما في ذلك طريقة دخول الأشخاص والخدمات والأذونات التي يحصلون عليها.
google-cloud-recipe-onboarding
22kيرشد مطورًا جديدًا خلال الخطوات الأولى في Google Cloud، ويشمل اختيار المشروع وربط الفوترة ونشر أول مورد.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.