Render scaling

From fanfan-de/anybox · View interactive version

Render scaling is an AI agent skill from the GitHub repository fanfan-de/anybox. Scales Render services—configures autoscaling targets, chooses instance types, sets manual instance counts, and optimizes cost. Use when the user needs to handle more traffic, set up autoscaling, pick the right instance type, reduce costs, or troubleshoot scaling behavior like slow scale-down or stu

How to use this skill

Skill file

Render Scaling

This skill covers how to scale Web Services, Private Services, and Background Workers on Render: manual instance counts, Professional+ autoscaling, plan (instance type) choices, and platform limits. Deeper tables and tuning guidance live under references/.

When to Use

Manual Scaling

Autoscaling

Autoscaling Formula

Render computes a candidate instance count from utilization vs target:

new_instances = ceil(current_instances * (current_utilization / target_utilization))

Scaling Constraints

| Constraint | Behavior |

|------------|----------|

| Per service | Maximum 100 instances |

| Persistent disk | Cannot scale to multiple instances—single instance only |

| Static sites | Not scalable (served by CDN) |

| Cron jobs & Workflows | Scaling model does not apply (different execution model) |

Scale-Down Behavior

Instance Types

Vertical vs Horizontal

| Need | Approach | When |

|------|----------|------|

| More throughput | Horizontal (add instances) | Stateless services, request-based workloads |

| More RAM/CPU per process | Vertical (upgrade plan) | Memory-intensive or single-threaded apps |

| Both | Combine | Right-size plan, then scale out for traffic |

Cost Patterns

Blueprint Configuration

Manual instance count:

numInstances: 3

Autoscaling:

scaling:
  minInstances: 1
  maxInstances: 10
  targetCPUPercent: 70
  targetMemoryPercent: 80

Instance type (plan):

plan: standard

Do not rely on numInstances to cap autoscaling when a scaling block is present—autoscaling takes precedence. Preview behavior for scaling is detailed in references/autoscaling-guide.md.

References

| Topic | File |

|--------|------|

| Plan names, CPU/RAM, flexible vs non-flexible, free tier | references/instance-types.md |

| Enabling autoscaling, targets, min/max, mistakes, previews | references/autoscaling-guide.md |

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.