Unexpected cross-region data transfer costs during AWS downtime

The recent us-east-1 outage taught us that failover isn’t just about RTO/RPO. Our multi-region setup worked as designed, except for one detail that nobody had thought through. When 80% of traffic routes through us-west-2 but still hits databases in us-east-1, every API call becomes a cross-region data transfer at $0.02/GB.

We incurred $24K in unexpected egress charges in 3 hours. Our monitoring caught the latency spike but missed the billing bomb entirely. Anyone else learn expensive lessons about cross-region data transfer during outages? How have you handled it?


Related discussions:

I’d ask for a credit. Seriously.

We have, we wait to see how it goes

You’ll most likely get it back

Quite aside from the data transfer costs… you do understand that if us-east-1 went completely down, your servers in us-west-2 wouldn’t be able to access the databases there any more, right?

It sounds like you need to revisit your failover plan…

Yeah, the outage proved how fragile our infra is, def revising our failover plan

I helped catch a cross-AZ data transfer issue related to EKS traffic not being “rack” aware, and I helped figure out an S3 API usage spike related to misconfigured compaction of federated Prometheus data causing a huge amount of activity plus knock on data event charges in Cloudtrail.

I also saw a huge NAT cost increase from ArgoCD related to a repo with a bunch of binary data that had been committed years prior and had ballooned the repo up to over a Gig.

There’s little land mines all over the place.

The positive side of surprise bills is that’s it’s easy to quantify the cost of waste that might otherwise be ignored.

I suspect that several Python services are another source of inflated compute costs. That’s the next land mine to dig up…

That also seems a bit chatty for DB access… that’s over a petabyte of data movement. Apart from the cost, you might want to look into general network usage; that’s not going to be great for latency, performance, or DB costs.

That outage resulted in a retry storm that we detected with Pointfive. We’ve contacted AWS for credits but haven’t heard back yet. Your $24K hit is brutal but not uncommon. Cross region egress during failover is a hidden landmine waiting to blow budgets. Set billing alerts at the resource level and consider read replicas in each region to avoid the database cross region calls during outages.

Review failover plan. Seems no other way to optimise spending.

Wtf are you talking to your db in only 3 h? Are streaming videos via your db? :zany_face:

VERY curious how soooo much db traffic can occur in such a short time.

We replicate our data (or restore from backup) and use a local database when we operate from a different region.

BTW, if you transfer data between us-east-1 and us-east-2, data transfer is only 1 cent per GB.

That’s not really multi region fail over then isn’t it.

That’s a very interesting question. $24000 is 1.2 PB of data at $0.02/GB; doing that in 3 hours means almost 1 Tbps, which is a very very busy database.

I wonder if OP was hitting S3 buckets in us-east-1 and not just a database.

I would imagine it’s an aggregate over many databases. Not uncommon for larger organisations to have 10s or 100s of databases.

Why on earth would you thin that?

True, the team responsible for the OP case has to research CRRs in the services that persist the fingers.

Still, there are data costs across regions even using CRRs.

This happens a lot: Now we can deploy a multiregion architecture, then deploy systems X, Y, and Z and forget which ones are critical and which aren’t. Then billing starts to grow like crazy.

The solution is to sit down and discuss with the team which parts of the system we should truly implement in multi-region. The worst part is that this involves not only the infrastructure team but also the business team for assessments, and the development team for refactoring and decoupling the different systems.

It’s not something you can do in a week, it may take months.

In my opinion, I believe the community should build a “multi region first” approach.

Tip: Want to work in multiple regions? Forget Cognito :upside_down_face:

For a honest mistake, especially if there’s no trend of requesting credits. We approve credits all the time. Especially $24K isn’t a big amount.

Yep can second this. They’ll want to see that OP made the necessary architecture or process revisions though so it doesn’t happen again

Still INSANE traffic!