Autoscaling Configuration

Autoscaling Configuration

Guides an AI agent to configure autoscaling for Kubernetes, VMs and serverless workloads using metrics, schedules and custom indicators.

Skill files8 files

references/

scripts/

templates/

SKILL.md100 lines
1
---
2
name: autoscaling-configuration
3
description: >
4
Configure autoscaling for Kubernetes, VMs, and serverless workloads based on
5
metrics, schedules, and custom indicators.
6
---
7
8
# Autoscaling Configuration
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
Implement autoscaling strategies to automatically adjust resource capacity based on demand, ensuring cost efficiency while maintaining performance and availability.
21
22
## When to Use
23
24
- Traffic-driven workload scaling
25
- Time-based scheduled scaling
26
- Resource utilization optimization
27
- Cost reduction
28
- High-traffic event handling
29
- Batch processing optimization
30
- Database connection pooling
31
32
## Quick Start
33
34
Minimal working example:
35
36
```yaml
37
# hpa-configuration.yaml
38
apiVersion: autoscaling/v2
39
kind: HorizontalPodAutoscaler
40
metadata:
41
name: myapp-hpa
42
namespace: production
43
spec:
44
scaleTargetRef:
45
apiVersion: apps/v1
46
kind: Deployment
47
name: myapp
48
minReplicas: 2
49
maxReplicas: 20
50
metrics:
51
- type: Resource
52
resource:
53
name: cpu
54
target:
55
type: Utilization
56
averageUtilization: 70
57
- type: Resource
58
resource:
59
name: memory
60
target:
61
type: Utilization
62
// ... (see reference guides for full implementation)
63
```
64
65
## Reference Guides
66
67
Detailed implementations in the `references/` directory:
68
69
| Guide | Contents |
70
|---|---|
71
| [Kubernetes Horizontal Pod Autoscaler](references/kubernetes-horizontal-pod-autoscaler.md) | Kubernetes Horizontal Pod Autoscaler |
72
| [AWS Auto Scaling](references/aws-auto-scaling.md) | AWS Auto Scaling |
73
| [Custom Metrics Autoscaling](references/custom-metrics-autoscaling.md) | Custom Metrics Autoscaling |
74
| [Autoscaling Script](references/autoscaling-script.md) | Autoscaling Script |
75
| [Monitoring Autoscaling](references/monitoring-autoscaling.md) | Monitoring Autoscaling |
76
77
## Best Practices
78
79
### ✅ DO
80
81
- Set appropriate min/max replicas
82
- Monitor metric aggregation window
83
- Implement cooldown periods
84
- Use multiple metrics
85
- Test scaling behavior
86
- Monitor scaling events
87
- Plan for peak loads
88
- Implement fallback strategies
89
90
### ❌ DON'T
91
92
- Set min replicas to 1
93
- Scale too aggressively
94
- Ignore cooldown periods
95
- Use single metric only
96
- Forget to test scaling
97
- Scale below resource needs
98
- Neglect monitoring
99
- Deploy without capacity tests
100

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 13,702 prompts

More by @OpenSourceBuffGuy

See all
Suited man enters glowing elevator, floor display at 13 prompt image

Suited man enters glowing elevator, floor display at 13

Writes a 30-second Korean mystery thriller in which a man's elevator opens onto an impossible floor 0, with scene beats, cinematography and sound design.

video-prompt, seedance, horror, thriller, short-film, cinematic, multi-shot, timed-beats, character-consistency, camera-movement, sound-effects, guardrails, structured-output, photorealistic, korea, night-scene, symmetry, moody, for-filmmakers, long-form, advanced, film-noir

Anime candy hero character sheet with turnarounds prompt image

Anime candy hero character sheet with turnarounds

Lays out a 16:9 anime hero-shooter character sheet for a candy-themed armored defender, with turnarounds, equipment panels and a colour palette.

video-prompt, character-sheet, character-design, anime, concept-art, game-assets, video-games, sci-fi, robots, white-background, multi-panel, vibrant-colors, kawaii, character-consistency, structured-output, text-rendering, widescreen, long-form, for-artists, for-designers, game-development, futuristic

Girl rides a bicycle past a summer shop prompt image

Girl rides a bicycle past a summer shop

Directs a 10-second nostalgic hand-drawn animated clip of a young girl in a straw hat riding a red bicycle past a summer shop, with timed shots and one spoken line.

video-prompt, animation, anime, timed-beats, multi-shot, lip-sync, character-consistency, summer, illustration, guardrails, negative-prompt, widescreen, camera-movement, tracking-shot, vintage, cozy, storyboard, family-friendly, short-film, minimax

Reviews

Loading reviews…

Discussion

Loading comments…