Skip to content
Data McFly.
← All writing

I Cut Our Hosting Bill From $285 to $150 in an Afternoon

Roger Stringer · November 27, 2026

Most of the servers on my hosting account were sized on the day I launched them. Then I stopped looking.

The account runs on Fly.io and holds about 40 apps. Some are client production work. Six are AI agents that run around the clock. Plenty are experiments I spun up to test an idea. None of it was broken, and every month it quietly cost more than it needed to.

My estimate for the monthly burn was about $285. I say estimate because the platform's API doesn't expose a spend figure (it showed a $0 credit balance, which helped no one), so I rebuilt the number from list prices and what was actually running.

The bill you stopped reading

This is normal, and it isn't small. Flexera's 2026 State of the Cloud survey of more than 750 cloud decision-makers found that respondents estimate 29% of their cloud spend is wasted, up for the first time in 5 years. Flexera sells cloud cost tools, and that's a self-reported guess.

The measured numbers are worse. Cast AI analyzed clusters at more than 2,100 organizations across AWS, Google Cloud and Azure and found average CPU use of 10% and memory use of 23% in 2024. Cast AI sells the fix, so discount accordingly. Even generously rounded, 10% means you're renting a whole floor and working out of the closet.

Datadog's numbers point the same way. In its cost report, 83% of container costs were tied to idle resources. That's AWS data from companies already paying Datadog to watch their bill, so it's a sample of people who care.

The reason it happens is boring. Someone picks a server size at launch, usually bigger than needed because a crash at launch is worse than a big invoice. The app ships. The size becomes permanent.

Measure before you cut

The tempting move is to go down the list and shrink everything that looks big. That's how you take down a production app on a Tuesday.

I had an AI assistant pull 7 days of memory peaks for every app from the platform's built-in metrics. Peaks, because an app that averages 400 MB and spikes to 2 GB once a day still needs 2 GB. Then I looked at CPU and request counts next to them.

That split is the 70/30 split in miniature. The assistant did the mechanical part: collect numbers for 40 apps, line them up against what each one was sized for. I did the part that needs judgment: which of these can bend, which ones a client depends on, and what breaks if I'm wrong.

For pricing I used Fly's list rates: roughly $0.69 per shared CPU per month, about $5 per GB of memory per month, and about $0.15 per GB of storage.

What I changed

5 of the 6 AI agents dropped from 4 GB to 2 GB. Each was sized at 2 CPUs and 4 GB, about $21 a month. Their 7-day peaks were 1,182 MB, 1,041, 1,040, 1,047 and 858 MB. None of them had used even a third of its memory all week. That's about $10 a month each, $50 in total.

4 of those agents now sleep when idle. They shut down when there's no traffic and wake when a request comes in. The catch: anything they did on a timer or by polling stops while they're asleep. That's fine for an agent that only answers requests. It's a quiet failure for one that runs on a schedule.

A client's production app went from 3 machines to 2. Each had 2 GB and the app used about 490 MB and 2% CPU. I kept 2 machines so one can fail without an outage. That saved about $11 a month.

Another production app went from 2 machines to 1. It peaked at 445 MB with about 1% CPU and roughly 37 requests an hour. That's another $11 a month. The tradeoff is real: no backup machine, and a brief blip when it restarts. For this app's traffic, that's a fair trade. For a checkout page, it wouldn't be.

A small app dropped from 1 GB to 512 MB and now sleeps when idle. It peaked at 319 MB and saw about 10 requests an hour.

I deleted 4 things outright. An orphaned app with a 3 GB storage volume, created in September and never attached to anything, plus 3 database apps that nothing used. Storage bills whether or not anything reads it.

About 20 older apps were already asleep. They cost nothing while asleep, but they'll wake and bill if anything hits their URL, so they stay on the list to watch.

What I left alone

The sixth agent peaked at 2,055 MB. On 2 GB it would have run out of memory and crashed. It stays at 4 GB. Without the measurement, it would have gone down with the other 5, because on paper they all looked identical.

Two workflow-automation instances also stayed put. They run scheduled jobs, so sleeping would break them, and one peaked at 1.5 GB of its 2 GB. A CMS at 1 GB using about 475 MB stayed too. It has a data volume attached, and saving a few dollars there isn't worth the risk to the data.

That's the part most cost-cutting skips. Every cut needs a reason, and so does every server you decide to keep.

The new estimate is about $150 a month if the sleeping apps stay asleep and about $210 if everything wakes at once. Either way it's well under $285.

Your servers were sized by a guess on launch day. Spend an afternoon replacing the guess with a number.