Skip to content

jeremylongshore/tons-of-skills-marketplace / plugins/devops/auto-scaling-configurator/skills/configuring-auto-scaling-policies

configuring-auto-scaling-policies

Verified

Configure use when you need to work with auto-scaling. This skill provides auto-scaling configuration with comprehensive guidance and automation. Trigger with phrases like "configure auto-scaling", "set up elastic scaling", or "implement scaling".

FileKindSize
SKILL.mdskill md4.1 KB
assets/README.mdmarkdown369 B
assets/config_template.yamlconfig3.2 KB
assets/example_aws_scaling_policy.jsonconfig2.1 KB
assets/example_hpa.yamlconfig2.3 KB
references/README.mdmarkdown68 B
scripts/README.mdmarkdown423 B
scripts/generate_config.pyexecutablescript3.6 KB

assets/example_hpa.yaml

View on GitHub
# example_hpa.yaml
# This is an example Kubernetes Horizontal Pod Autoscaler (HPA) configuration file.
# It defines how the number of pods in a deployment or replication controller
# should be automatically scaled based on observed CPU utilization.

apiVersion: autoscaling/v2 # Use autoscaling/v2 for more features (e.g., resource metrics)
kind: HorizontalPodAutoscaler
metadata:
  name: example-hpa # The name of the HPA resource
  namespace: default # The namespace where the HPA should be deployed (example-value if needed)
spec:
  scaleTargetRef: # Defines the target resource to scale
    apiVersion: apps/v1 # API version of the target resource
    kind: Deployment # The type of resource to scale (e.g., Deployment, ReplicationController)
    name: example-deployment # The name of the Deployment to scale (example-value)
  minReplicas: 2 # The minimum number of replicas to maintain
  maxReplicas: 10 # The maximum number of replicas to scale to
  metrics: # Defines the metrics used to trigger scaling
    - type: Resource # Scale based on resource utilization
      resource:
        name: cpu # The resource to monitor (CPU in this case)
        target:
          type: Utilization # Target utilization percentage
          averageUtilization: 70 # Target CPU utilization percentage (e.g., 70%)
    - type: Resource # Scale based on memory utilization
      resource:
        name: memory # The resource to monitor (Memory in this case)
        target:
          type: Utilization # Target utilization percentage
          averageUtilization: 80 # Target Memory utilization percentage (e.g., 80%)
  behavior: # Optional: Define scaling behavior
    scaleUp: # Define scale up behavior
      stabilizationWindowSeconds: 300 # Delay for scaling up after a scaling event
      policies: # Scaling policies (e.g., percentage or fixed number of replicas)
        - type: Percent # Scale up by a percentage
          value: 20 # Percentage increase
          periodSeconds: 60 # Evaluate every 60 seconds
    scaleDown: # Define scale down behavior
      stabilizationWindowSeconds: 300 # Delay for scaling down after a scaling event
      policies: # Scaling policies (e.g., percentage or fixed number of replicas)
        - type: Percent # Scale down by a percentage
          value: 10 # Percentage decrease
          periodSeconds: 60 # Evaluate every 60 seconds
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 323kUpdated Claude CodeCodexVerifiedInstall