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:
| Signal | Component | Metric |
|---|---|---|
| Memory near the plan line, OOM kills, 503 errors | PHP | PHP metrics |
| Size near the plan line | Storage | Web storage |
| Size near the plan line | MySQL | MySQL storage |
| Monthly total near the plan | Traffic | Traffic |
| Memory near the plan line, jobs OOM kills | Jobs | Jobs 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
Related
Each component has unique scaling considerations:
- PHP scaling - Memory, CPU, and concurrency
- MySQL scaling - Storage, memory, and query performance
- Traffic scaling - Bandwidth and request limits
- Web storage scaling - Disk space and I/O performance
- Jobs scaling - Background processing capacity
- Backup scaling - Independent of performance needs