Comprehensive guide on cloud rightsizing showing how to match resources to real usage across multi-cloud environments.

Most cloud bills reflect what engineers guessed a workload might need at launch. They rarely reflect what that system actually uses today. Cloud rightsizing closes that gap. It aligns your provisioned capacity, performance tiers, and service SKUs with your real measured load. This process goes far beyond shrinking idle virtual machines. For example, it covers block storage IOPS, managed database tiers, platform gateways, and Kubernetes pod requests. When you match resources to real demand across AWS, Azure, and Google Cloud, you stop paying for empty headroom. Instead, you keep the exact buffer your applications need to run safely.

Key takeaways

  • Evaluate utilization over a 14- to 30-day window using the 95th or 99th percentile rather than simple averages.
  • Rightsize across four core layers: compute instances and serverless, storage IOPS and tiers, managed platform services, and Kubernetes clusters.
  • Check four dimensions before shrinking any virtual machine: CPU, memory, disk throughput, and network bandwidth.
  • Verify resource owners, service limits, and recovery needs before making changes, because billing data alone cannot prove a change is safe.

What cloud rightsizing means and why overprovisioning persists

Cloud rightsizing is the practice of matching a resource’s allocated size, generation, or tier to its measured demand. Many teams treat capacity tuning as a synonym for downsizing virtual machines. However, modern cloud bills spread waste across many layers. A disk can have too many provisioned IOPS. Similarly, a platform gateway can reserve capacity units that traffic never reaches. A Kubernetes pod can also request three times the memory it uses.

Overprovisioning persists because incentives favor safety over cost at launch. When a team deploys a new service, nobody knows its exact traffic pattern. As a result, engineers add a safety margin. Next, the platform team adds a cluster buffer. Finally, default templates pick middle-of-the-road tiers. Once the service works in production, nobody touches it. An incident hurts an engineer’s week, whereas a noisy cloud bill goes to finance month after month.

Vendor pricing models also build overprovisioning into the defaults. Some older storage types tie disk performance to disk capacity. Consequently, you must buy extra gigabytes just to get faster throughput. Other platform services bundle enterprise network features with higher traffic limits. Because of this, you must separate capacity waste from feature dependencies before you change anything.

How to prioritize your rightsizing backlog

Do not start with the riskiest changes. Instead, sort your backlog by how easy a change is to reverse and whether it causes downtime:

  1. Zero-downtime configuration and tier changes: Start with upgrades that keep performance flat while dropping the unit price. For example, migrate AWS EBS volumes from gp2 to gp3 or step down an Azure Premium SSD performance tier without shrinking the disk.
  2. Empty or idle platform wrappers: Next, look for containers of cost that do no real work. An Azure App Service plan with no active sites or a Lambda function that only pays for data transfer are quick wins.
  3. Generation upgrades and family shifts: Move previous-generation instances to newer generations of the same size and vendor. Usually, this needs only a brief restart during a maintenance window.
  4. Capacity downsizing on active workloads: Finally, tackle VM downsizing, database DTU reductions, and Kubernetes request adjustments. These require careful metric checks across CPU, memory, and I/O before you act.

Reading utilisation: peaks, percentiles and headroom

If you size a production server to its average usage, you will eventually cause an outage. Suppose a database runs at 15% CPU overnight and 85% CPU for three hours every afternoon. Its daily average is around 25%. If you cut that machine in half based on the average, afternoon traffic will hit 100% CPU and time out.

Instead, rightsize using peaks and percentiles over a full business cycle. Collect at least 14 to 30 days of metrics from Amazon CloudWatch, Azure Monitor, or Google Cloud Monitoring. This window captures weekly batch jobs and regular traffic waves. If your business has heavy end-of-month processing, include a month-end close in your sample.

Why the 95th percentile beats the average

The 95th percentile (P95) shows the value that your usage stays at or below for 95% of the measured time. In a 30-day window (720 hours), P95 drops the top 36 hours of brief spikes and shows your sustained high-water mark. The 99th percentile (P99) is even stricter. Specifically, it drops only the top 7.2 hours in a month.

Use the absolute peak (maximum) when you size hard limits where hitting the ceiling causes a crash, such as memory usage. Conversely, use P95 or P99 for elastic resources like CPU, disk IOPS, or database DTUs. In those cases, a two-minute spike during a deployment can wait in a short queue without hurting users.

Leaving the right headroom

Never aim for 100% utilization after a change. Instead, target a safe buffer above your P95 or peak metric. That extra space is your headroom. It absorbs sudden traffic bursts, background garbage collection, and failover loads if a sibling node goes down.

Batch jobs and development environments need very little headroom. If a nightly ETL job takes four minutes longer during a peak, nobody notices. On the other hand, customer-facing APIs and stateful databases need generous headroom above their P95 load. This buffer prevents tail latency from climbing when traffic surges.

Compute: VM sizes, instance generations and serverless

Compute usually makes up the largest line item in AWS Cost Explorer, Azure Cost Management, and the Google Cloud Billing export. Rightsizing compute means looking at the hardware generation, the four resource bottlenecks of a virtual machine, and the cost drivers of serverless workloads.

Previous Generation Instances: Move EC2 to Newer Types

Cloud providers release new processor generations every year or two. Often, an on-demand EC2 instance from an older generation costs more per hour than its direct replacement in a newer generation with the same series, size, and CPU vendor. For example, an older general-purpose or compute-optimized instance might sit on aging hardware while a newer equivalent offers better price-performance.

Check your AWS Cost and Usage Report (CUR) for older instance families. Before you switch the instance type, verify driver support for enhanced networking (ENA) and NVMe storage on your current AMI. Our full guide on moving EC2 to newer instance types walks through the compatibility checks and rollout steps.

Compute Engine Rightsizing: Pick a Smaller Machine Type

When a Google Cloud Compute Engine VM runs with a low CPU peak, a smaller machine type in the same family often fits the workload. However, CPU is only one piece of the puzzle. Memory, disk throughput, and network egress limits also scale with the machine size.

Billing data and default hypervisor graphs cannot show guest memory usage unless you install the Google Cloud Ops Agent. Therefore, before you move to a smaller machine type, check all four metrics in Cloud Monitoring. Furthermore, remember that Google Cloud ties maximum Persistent Disk IOPS and network bandwidth to the vCPU count of the VM. Our deep dive into Compute Engine rightsizing explains how to verify these four limits and use custom machine types when CPU and memory needs do not match standard ratios.

AWS Lambda Costs: Graviton, Free Tier and Data Transfer

Serverless functions look cheap per call, yet three hidden patterns drive up AWS Lambda bills. First, examine your free-tier headroom. AWS gives every account an always-free monthly allowance of requests and compute GB-seconds. If your total workload stays inside that allowance, tweaking memory sizes will not change your bill.

Second, look at your processor architecture mix. Functions running on x86 often cost more per GB-second than identical workloads compiled for Arm-based AWS Graviton2 processors, assuming they have no binary dependencies locking them to x86. Third, inspect functions in Cost Explorer whose only charge is data transfer. When a function generates zero compute charges because it sits inside the free tier, but still racks up a bill, cross-AZ or internet data transfer is the real culprit. Read our article on AWS Lambda costs for steps to test Graviton migrations and cut transfer fees.

AWS Glue Costs: Data Catalog Requests and Job DPU Usage

AWS Glue bills split into two common traps: metadata request overages and heavy Data Processing Unit (DPU) concentration. Under AWS Glue Pricing, the Glue Data Catalog stores the first million objects and handles the first million requests each month for free. Beyond that allowance, AWS charges $1.00 per 100,000 objects stored and $1.00 per million requests. Chatty crawlers, frequent Spark metadata checks, and open table formats that query partition metadata repeatedly can push requests well past the free tier.

On the compute side, a handful of ETL jobs usually dominate your total DPU-hours. Many teams leave Spark jobs on the default worker count or pick memory-heavy worker types (like G.2X or G.4X) for simple transforms. Check CloudWatch job metrics to see how many executors actually stay active. Our dedicated guide on AWS Glue costs shows how to quiet down catalog requests and scale down over-allocated DPUs.

Storage performance: disk types, tiers and provisioned IOPS

Block storage waste hides in your bill because capacity and performance are often billed separately—or worse, bundled together in inflexible tiers. You do not need to delete data or shrink volumes to rightsize storage performance. Instead, match the disk’s IOPS and throughput settings to what the application actually reads and writes.

gp2 to gp3: Migrate EBS Volumes Without Losing Performance

On AWS, older gp2 General Purpose SSD volumes tie performance directly to disk size. A gp2 volume gets 3 IOPS per GB, meaning you have to provision a larger volume just to get higher baseline IOPS. By contrast, gp3 decouples storage performance from capacity. Every gp3 volume includes a flat baseline of 3,000 IOPS and 125 MB/s throughput at no extra cost, and carries a lower base price per GB than gp2.

If you have gp2 volumes that need 3,000 IOPS or less, migrating them to gp3 lowers the monthly cost immediately. For larger gp2 volumes above 1 TB that earn more than 3,000 baseline IOPS, you can still migrate to gp3 and explicitly provision the extra IOPS and throughput to match the old gp2 ceiling, usually for less money. Best of all, AWS EBS Elastic Volumes lets you switch from gp2 to gp3 online without detaching the disk or restarting the EC2 instance. See our gp2 to gp3 migration article for the exact IOPS math and CLI checks.

Premium SSD Performance Tiers: Stop Paying for Unused IOPS

In Azure, Premium SSD (v1) managed disks tie your baseline IOPS and throughput to fixed disk size tiers, such as P30 (1 TiB, 5,000 IOPS, 200 MB/s) or P40 (2 TiB, 7,500 IOPS, 250 MB/s). Sometimes an engineer raises a disk’s performance tier—for example, running a 512 GiB P20 disk at the P30 or P40 performance tier—to handle a one-time migration or seasonal event, and forgets to lower it afterward.

Similarly, teams often provision a huge disk just to get the higher tier’s IOPS, even though P95 disk IOPS in Azure Monitor sit well within a smaller tier’s limit. If a Premium SSD is running an elevated performance tier above its real use, you can step the performance tier back down to the disk’s native size baseline online without shrinking capacity. Our guide on Azure Premium SSD performance tiers explains how to check disk queue depth and adjust tiers safely.

Premium SSD v2 and Ultra Disks: Right-Size Provisioned IOPS

Azure Premium SSD v2 and Ultra Disks work differently from standard Premium SSDs. As detailed in Microsoft’s Azure Disk Storage architecture documentation, both disk types let you provision capacity, IOPS, and throughput independently, and they bill you separately for the IOPS and MB/s you allocate. Specifically, Premium SSD v2 includes a free baseline of 3,000 IOPS and 125 MB/s, charging you for everything provisioned above those numbers.

When teams migrate databases to Premium SSD v2 or Ultra Disks, they frequently dial in huge IOPS and throughput reserves “just in case.” If Azure Monitor shows that the disk’s 95th-percentile IOPS and throughput sit far below the provisioned limits over a 30-day window, you are paying every hour for unused performance reservation. You can lower provisioned IOPS and throughput dynamically without downtime, though Azure limits how many performance adjustments you can make within a 24-hour window. Follow our spoke guide on rightsizing Premium SSD v2 and Ultra Disks to tune these numbers safely.

Platform services: databases, App Service, API Management and gateways

Managed platform-as-a-service (PaaS) offerings simplify operations, but they bundle compute, memory, and networking into fixed tiers or capacity units. Overprovisioning here usually takes two forms: paying for empty hosting plans, or running high-priced tiers whose throughput and feature limits your traffic never touches.

App Service Plan Costs: Empty Plans and Oversized Tiers

Azure App Service bills you for the underlying App Service Plan, not for the individual web apps inside it. An App Service plan incurs hourly charges as long as it exists, even if it has zero sites deployed on it or if every site inside it is stopped. Developers often delete or stop a test app while leaving the hosting plan running in the background.

Even when active apps are present, the plan’s SKU (such as Premium v3 P2v3 or P3v3) often sits well above the workload’s 95th-percentile CPU and memory consumption in Azure Monitor. Before you delete an empty plan or scale down an oversized tier, verify whether any deployment slots, WebJobs, or VNet integration rules depend on that plan. Read our App Service plan cost guide for a complete pre-change checklist.

API Management Tiers: Right-Size Azure APIM to Its Traffic

Azure API Management (APIM) offers distinct tiers—such as Developer, Basic, Standard, and Premium (along with v2 tiers)—that carry steep price steps. Many teams deploy Standard or Premium tiers expecting rapid API traffic growth, yet their actual request rate stays low enough for a Basic or lower-cost tier.

However, request throughput is only half the story with APIM. Higher tiers also unlock critical enterprise features, including Virtual Network (VNet) injection, multi-region deployment, and higher cache sizes. Billing data in Azure Cost Management shows the tier charge, and Azure Monitor shows the request rate, but neither proves whether your architecture relies on a higher-tier feature. Our article on rightsizing Azure APIM details how to audit active features before stepping down a tier.

Azure SQL DTU: Scale Down Databases Sized Above Their Use

In the Azure SQL Database DTU purchasing model, a Database Transaction Unit (DTU) blends CPU, memory, and data I/O into a single capacity score across Basic, Standard (S0 through S12), and Premium tiers. When a database’s configured DTU objective sits far above its measured P95 DTU consumption over a full business cycle, you are overpaying for idle database headroom.

Before you lower the service objective to a smaller tier, check two hidden constraints: maximum database storage size and maximum concurrent workers/sessions. Sometimes a database sits at 10% DTU usage on a high Standard tier simply because its data volume exceeds the storage cap of the lower tier. Our Azure SQL DTU rightsizing guide shows how to check storage limits and scale down during a maintenance window.

Application Gateway Cost: Lower Reserved Capacity Units

According to Microsoft’s Azure Application Gateway v2 documentation, the v2 SKU (Standard_v2 and WAF_v2) bills a fixed hourly base fee plus a variable charge for Capacity Units. Each capacity unit covers up to 2,500 persistent connections, 2.22 Mbps of throughput, or a set amount of TLS compute. Furthermore, each gateway instance handles at least 10 capacity units.

When you configure a high manual instance count—or set a high minimum instance count in autoscale mode—you reserve and pay for those baseline capacity units 24/7, even when traffic drops to zero. Compare your gateway’s configured minimum instances against the Current Capacity Units metric in Azure Monitor. Lowering the minimum instance floor lets autoscale scale in during quiet hours while still scaling out when traffic peaks. See our Application Gateway cost article for the exact autoscale math and scale-out latency rules.

Kubernetes: pod requests and node pools

Kubernetes adds a second layer of abstraction to cloud rightsizing. You pay the cloud provider for the underlying cluster nodes (or pod resource requests in serverless modes), while your application containers consume only a fraction of what those requests reserve.

GKE Cost Optimization: Node Pools and Autopilot Requests

In Google Kubernetes Engine (GKE), overprovisioning happens differently depending on whether you run Standard or Autopilot clusters:

  • Standard mode node pools: In Standard clusters, you pay for the Compute Engine VMs in your node pools. Overprovisioning occurs when a node pool keeps more nodes running than its scheduled pods actually request—often because cluster autoscaler is disabled, minimum node counts are set too high, or PodDisruptionBudgets block node scale-down.
  • Autopilot mode pod requests: In Autopilot clusters, Google manages the nodes and bills you directly for the vCPU, memory, and ephemeral storage your pods request in their YAML manifests. If an Autopilot workload requests 4 vCPUs and 16 GiB of memory, but its P95 usage in Cloud Monitoring is 0.5 vCPU and 2 GiB, you pay for the entire 4 vCPUs and 16 GiB regardless of real usage.

Fixing GKE waste requires aligning pod requests with real container metrics first, and then letting the node pool (or Autopilot billing) shrink to match. Our full guide on GKE cost optimization covers Vertical Pod Autoscaler (VPA) recommendations, minimum node settings, and safe manifest updates.

Change safely and verify the result

Never delete, resize, or downgrade a cloud resource based on billing data alone. Your AWS Cost and Usage Report, Azure Cost Management export, and Google Cloud Billing export are financial ledgers. They tell you what a resource cost and how many hours it ran. However, billing data cannot prove why a resource was sized that way, whether a standby failover depends on it, or what happens when you shrink it.

Before you execute any change from your rightsizing backlog, complete four verification steps:

  1. Identify the owner and workload role: Check resource tags, deployment repositories, and service catalogs to find the engineering team that owns the resource. Confirm whether the resource is an active production node, a disaster-recovery warm standby, or a batch worker waiting for a quarterly run.
  2. Check non-metric dependencies and quotas: Verify whether the current tier or size is required for a non-compute reason. For example, check if an Azure APIM service uses VNet integration, if an Azure SQL database needs its current tier for storage capacity rather than DTUs, or if a VM size is pinned to meet network bandwidth or local disk IOPS ceilings.
  3. Confirm recovery needs and rollback paths: Take a snapshot or backup before modifying stateful resources. Note whether the change runs online (like AWS EBS gp2 to gp3 or Azure Premium SSD v2 IOPS changes) or triggers a restart (like EC2 or Compute Engine instance resizing). Schedule restarts inside an approved maintenance window and keep the Terraform or CLI rollback command ready.
  4. Investigate anomalies before acting: Anything that looks strange in the metrics needs further investigation before you touch it. For instance, investigate why a Lambda function has high data transfer with zero compute charges, why an AWS Glue catalog request count is growing week over week, or why an App Service plan sits empty. Fix the root cause in code or automation so the waste does not come right back.

After you apply a change, verify the result in two places. First, watch your provider’s performance metrics (CPU, memory, disk queue depth, and application latency) over the next 24 to 72 hours to confirm the tighter headroom causes no throttling. Second, check your daily cost export three days later to verify that the billing SKU and daily run rate dropped as expected.

Cloud rightsizing with Binadox: from usage data to optimization

Finding oversized resources manually across multiple cloud accounts means jumping between billing exports and performance dashboards for every service type. Binadox is a cloud cost visibility and optimization tool that connects your usage and billing data to surface specific rightsizing issues automatically.

Across compute, storage, platform services, and Kubernetes, Binadox flags these specific findings for your team to verify and act on:

  • Compute and serverless:
    • A newer instance type would do the same for less (on-demand EC2 instances where a newer generation in the same series, size, and vendor costs less).
    • A virtual machine is larger than its load and A smaller machine type fits this virtual machine (Compute Engine VMs whose peak load fits into a smaller machine type in the same family).
    • AWS Lambda workload activity within the free tier, AWS Lambda architecture and compute mix, and AWS Lambda is charged for data transfer only.
    • AWS Glue Data Catalog allowance and paid overage, AWS Glue Data Catalog requests are growing, and AWS Glue DPU usage is concentrated.
  • Storage performance:
    • A gp2 volume would cost less as gp3 (EBS volumes that can move to gp3 while keeping their current IOPS and throughput).
    • A Premium SSD disk runs a performance tier above its use.
    • A Premium SSD v2 disk is provisioned far above its use and An Ultra disk is provisioned far above its use.
  • Platform tiers and gateways:
    • An App Service plan runs with no site on it, or every site stopped and An App Service plan’s size sits above its use.
    • An API Management tier sits above its request rate.
    • A database’s DTU objective sits far above its use.
    • An Application Gateway reserves more capacity units than it uses.
  • Kubernetes:
    • A GKE node pool keeps more nodes than its pods request and An Autopilot workload requests more than it uses.

Conclusion

Effective cloud rightsizing is not a one-time purge where you guess which servers can survive on half their RAM. Instead, it is an engineering discipline based on 95th-percentile metrics, sensible headroom, and a clear understanding of how cloud vendors bundle performance with capacity. After all, paying for 50,000 provisioned IOPS on a database disk that peaks at 1,200 IOPS does not make your queries run any faster; it just makes your monthly invoice heavier.

Start with the safest, zero-downtime wins in your backlog, such as storage tier adjustments and empty hosting plans. Next, work your way toward VM sizing, database tiers, and Kubernetes pod requests using the spoke guides introduced above. Verify the owner, check the hidden feature limits, and let real usage data—not launch-day anxiety—decide what you provision.

Stop paying for idle headroom across your multi-cloud infrastructure and start a free trial today or book a demo to see how Binadox automatically surfaces hidden savings.