Scaling ideas

Published

Updated

📦

Right-size plans.

When to scale a component plan up or down, and why code and configuration come first.

The fortrabbit platform offers a high grade of abstraction for booking required hosting resources, aiming to make booking additional resources straightforward. The product catalog is designed in components that can be booked and scaled individually.

Finding the right plan for a website is the job of the web developer.

Scaling and performance

A bigger plan helps only when the component is the bottleneck.

  • The Jobs component can reduce load on other components
  • Increasing traffic can affect resource requirements of other components
  • Code and config has a huge impact on performance

Signals in the metrics

The metrics show which component runs at its limit:

SignalComponentMetric
Memory near the plan line, OOM kills, 503 errorsPHPPHP metrics
Size near the plan lineStorageWeb storage
Size near the plan lineMySQLMySQL storage
Monthly total near the planTrafficTraffic
Memory near the plan line, jobs OOM killsJobsJobs metrics

A slow PHP response time with low memory and few requests points to the code, see backend performance.

Tips

Follow these best practices to right-size your hosting plan and maximize performance without overspending.

  • Turn on autoscaling
  • Start small, scale later
  • Monitor performance to establish baselines before scaling
  • Review and refactor code before scaling resources
  • Book smaller plans for staging environments
  • Book higher plans for production environments

Each component has unique scaling considerations:

Written by humans and AI in collaboration.

AI use & editorial processEdit on GitHub ↗