autoscaling-configuration
Configure autoscaling for Kubernetes, VMs, and serverless workloads based on metrics, schedules, and custom indicators.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o autoscaling-configuration.zip https://jpskill.com/download/21339.zip && unzip -o autoscaling-configuration.zip && rm autoscaling-configuration.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21339.zip -OutFile "$d\autoscaling-configuration.zip"; Expand-Archive "$d\autoscaling-configuration.zip" -DestinationPath $d -Force; ri "$d\autoscaling-configuration.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
autoscaling-configuration.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
autoscaling-configurationフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 7
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
オートスケーリング設定
目次
概要
需要に基づいてリソース容量を自動的に調整するオートスケーリング戦略を実装し、パフォーマンスと可用性を維持しながらコスト効率を確保します。
使用場面
- トラフィック駆動型ワークロードのスケーリング
- 時間ベースのスケジュールスケーリング
- リソース使用率の最適化
- コスト削減
- 高トラフィックイベントの処理
- バッチ処理の最適化
- データベース接続プーリング
クイックスタート
最小限の動作例:
# hpa-configuration.yaml
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: myapp-hpa
namespace: production
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: myapp
minReplicas: 2
maxReplicas: 20
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
- type: Resource
resource:
name: memory
target:
type: Utilization
// ... (完全な実装についてはリファレンスガイドを参照してください)
リファレンスガイド
references/ ディレクトリにある詳細な実装:
| ガイド | 内容 |
|---|---|
| Kubernetes Horizontal Pod Autoscaler | Kubernetes Horizontal Pod Autoscaler |
| AWS Auto Scaling | AWS Auto Scaling |
| Custom Metrics Autoscaling | Custom Metrics Autoscaling |
| Autoscaling Script | Autoscaling Script |
| Monitoring Autoscaling | Monitoring Autoscaling |
ベストプラクティス
✅ 実施すべきこと
- 適切な最小/最大レプリカを設定する
- メトリック集計ウィンドウを監視する
- クールダウン期間を実装する
- 複数のメトリックを使用する
- スケーリング動作をテストする
- スケーリングイベントを監視する
- ピーク負荷に備えて計画する
- フォールバック戦略を実装する
❌ 実施すべきでないこと
- 最小レプリカを1に設定する
- 過度にアグレッシブにスケーリングする
- クールダウン期間を無視する
- 単一のメトリックのみを使用する
- スケーリングテストを忘れる
- リソース要件を下回ってスケーリングする
- 監視を怠る
- 容量テストなしでデプロイする
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Autoscaling Configuration
Table of Contents
Overview
Implement autoscaling strategies to automatically adjust resource capacity based on demand, ensuring cost efficiency while maintaining performance and availability.
When to Use
- Traffic-driven workload scaling
- Time-based scheduled scaling
- Resource utilization optimization
- Cost reduction
- High-traffic event handling
- Batch processing optimization
- Database connection pooling
Quick Start
Minimal working example:
# hpa-configuration.yaml
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: myapp-hpa
namespace: production
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: myapp
minReplicas: 2
maxReplicas: 20
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
- type: Resource
resource:
name: memory
target:
type: Utilization
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Kubernetes Horizontal Pod Autoscaler | Kubernetes Horizontal Pod Autoscaler |
| AWS Auto Scaling | AWS Auto Scaling |
| Custom Metrics Autoscaling | Custom Metrics Autoscaling |
| Autoscaling Script | Autoscaling Script |
| Monitoring Autoscaling | Monitoring Autoscaling |
Best Practices
✅ DO
- Set appropriate min/max replicas
- Monitor metric aggregation window
- Implement cooldown periods
- Use multiple metrics
- Test scaling behavior
- Monitor scaling events
- Plan for peak loads
- Implement fallback strategies
❌ DON'T
- Set min replicas to 1
- Scale too aggressively
- Ignore cooldown periods
- Use single metric only
- Forget to test scaling
- Scale below resource needs
- Neglect monitoring
- Deploy without capacity tests
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,481 bytes)
- 📎 references/autoscaling-script.md (1,284 bytes)
- 📎 references/aws-auto-scaling.md (3,223 bytes)
- 📎 references/custom-metrics-autoscaling.md (1,217 bytes)
- 📎 references/kubernetes-horizontal-pod-autoscaler.md (1,813 bytes)
- 📎 references/monitoring-autoscaling.md (1,384 bytes)
- 📎 scripts/validate-config.sh (427 bytes)