> ## Documentation Index
> Fetch the complete documentation index at: https://docs.healops.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Right Sizing

> Optimize resource allocation based on actual usage patterns

Right-Sizing in Tracer optimizes scientific compute by using actual CPU and RAM usage from previous runs rather than static rules or guesswork. After each workflow execution, Tracer analyzes per-step utilization and compares it with current cloud instance pricing to recommend the most cost-efficient instance for the next run.

<img src="https://mintcdn.com/healopsai/T9o1T7rG7JiKZdpz/images/Rightsizing.png?fit=max&auto=format&n=T9o1T7rG7JiKZdpz&q=85&s=b63a68757fee5b9d9c6b226d62a8fc04" alt="Rightsizing" width="1990" height="1018" data-path="images/Rightsizing.png" />

Tracer uses statistical models to predict RAM requirements and account for variability, minimizing memory-related failures that AWS’s native tools cannot anticipate. The system detects idle CPU, excess memory headroom, and under-provisioned configurations, then maps each workflow to an instance type that fits both performance and cost.

As more runs complete, recommendations become increasingly accurate, lowering compute spend, reducing over-provisioning, and preventing failures caused by mis-sized infrastructure.
