> ## Documentation Index
> Fetch the complete documentation index at: https://opensre.com/docs/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/tracer/Zoii0t1YA93OdGEZ/images/Rightsizing.png?fit=max&auto=format&n=Zoii0t1YA93OdGEZ&q=85&s=32fe57e5ab3142de5a3790be1827dc56" 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.
