Case studies

finops

The S3 bill dropped from $20,000 to $1,500 a month

The client was overpaying for AWS: data in an expensive S3 class, oversized instances, an EKS cluster on paid Extended Support and data transfers for partners at its own cost. We went through the bill line by line, removed the causes and set up a daily cost view in Grafana.

Illustration: an S3 bucket and falling cost bars

−92%

Cost of storing data in S3

1 000 USD

Cost of each transfer moved to recipients

Codziennie

Infrastructure cost in Grafana

From this case study you will learn

  • how changing the S3 storage class cut the cost from $20,000 to $1,500 a month
  • why an old Kubernetes version raises the EKS bill
  • how to find data transfer you pay for instead of the recipient
  • what a daily cost dashboard in Grafana shows

The AWS bill grew month after month, and the client did not know which services were behind it. We started with an analysis of where to save, then made the changes one by one and measured the effect of each.

Analysing the bill

We split costs by service, account and environment. For instances we compared the provisioned resources with actual CPU and memory use. We also checked network flows and data transfer, because that line on the invoice is the one that surprises people most.

The analysis pointed to five areas: S3 storage, oversized instances, the Kubernetes version, unused resources and transfer to external parties.

S3: a storage class that fits the data

Chart: monthly S3 cost before and after the storage class change
After the storage class change, the monthly S3 cost fell from $20,000 to $1,500.

Most data in S3 was written once and read rarely, yet it sat in a class meant for frequent access. We moved it to a cheaper storage class chosen for how often the application actually reads it. Lifecycle rules now move new data automatically.

The cost of storing this data fell from $20,000 to $1,500 a month.

Instances and Kubernetes

After measuring, we downsized instances that used only a small part of their resources most of the time, and moved to newer instance generations that give more power for the same price. Only after these changes did we buy Savings Plans, so the commitment would not lock in oversizing.

The EKS cluster ran a Kubernetes version that had left standard support. AWS then charges for Extended Support, several times the standard cluster fee. We upgraded Kubernetes to the latest version and the fee went away.

We also removed resources nobody used: detached volumes, old snapshots, idle load balancers and IP addresses.

Data transfer to partners

The transfer analysis showed that the client shared S3 data with external parties. The bucket did not use Requester Pays, so the client paid for every download of several terabytes, about $1,000 per transfer.

We helped identify who downloaded what and how much. The client moved this cost to the data recipients and now invoices them for it.

Daily cost in Grafana

Grafana dashboard: daily infrastructure cost and budget threshold
Daily infrastructure cost in Grafana with a budget threshold. Illustrative view.

Finally, we set up a Grafana dashboard that shows every day the cost of the whole infrastructure, the forecast for the end of the month, the cost of each service and the saving against the state before the changes. When the daily cost crosses an agreed threshold, an alert goes out.

The client sees the effect of every change the next day, not on the invoice.

Result

The largest saving came from the S3 storage class change: over 92 percent less for that data. On top of that came smaller and newer instances, Savings Plans, leaving Extended Support and transfer paid by the recipients. We describe the same way of working in our FinOps service.

Write to us
Other

Other case studies

A media CDN for Magento: private S3 and CloudFront without moving the shop

A Magento shop with several domains kept product images, manuals and editor files on the application disk. The disk grew to hundreds of gigabytes and blocked scaling. We moved pub/media to a private S3 bucket and served media through CloudFront. The shop itself stayed on its existing server.

An EKS cluster for tens of thousands of pods, upgraded without downtime

We built an Amazon EKS cluster where Karpenter matches EC2 nodes to the load and data lives on EFS and S3. We run tens of thousands of pods on hundreds of nodes there and upgrade the cluster regularly without interrupting the applications.

A Magento shop lost its server together with its only backup

A large Magento shop served around one million customers. Backups ran every day, but they were written to the same server as the shop. When access to the server was lost, the shop and every backup became unavailable at the same time. We describe how we restored the shop and how backups now work in two independent places.

A 1 TB copy and a restore that took several days

The copy was 1 TB. After an outage the team restored the whole disk, while the service only needed a few files to run. Transfer, verification and bringing the machine up took several days. In this case study we describe how we split a start restore from the full image, so the service returns to traffic without waiting for the whole set.

A production database in a container without a persistent volume

The production database ran in a container. A restart, a node drain or a new image left an empty data directory. The application came up. The data did not. In this case study we show why database state cannot live in the image writable layer, and how we arranged a volume, a copy and a restore exercise.

AWS without a landing zone and without cost control

The AWS account grew without a landing zone, without a list of instance types and without a cost trail during the week. The bill arrived only with the invoice, at the end of the month. In this case study we describe how daily reports, threshold alerts and instance-type order went in, and what that did to the bill.