Optimization Fatigue

Possibly off-topic: Does anyone else feel a bit burnt out on the repeated drive to “optimize”? We’ve made successive passes each time finding good savings (cost and process). However, if you do this long enough the gains you find get smaller and smaller. However, management is still looking for that huge 40% you got the first time around like a junkie chasing the feeling they got from that first hit. Is there any way out?

Once you’ve had enough different eyes look at it (fresh eyes can see new things), there are no easy fixes. From there you have to look at fundamental changes on how your applications operate. If those aren’t palatable you start identifying how much it is costing you to chase those .5%'s left.

who promised 40%?! :joy:

But really this is the case with most optimizations…diminishing returns. You have to know when it’s costing more to change stuff than what you’ll be saving. There’s a line somewhere.

The way out is to show that once you pass that line, it’s costing more than you’re saving.

Start turning off critical services, citing “optimization.” You don’t pay for what you’re not running, after all. Focus will then shift to “reliability.”

It’s like training a dog - diversion vs correction.

At some point management is just going to have to get an answer they might not like.

“It’s not worth it to optimize this further” that’s that.

If they insist. Just let them know what budget you would need to bring on the extra people you need to go full NASA on the problem for a couple years.

Listened to a good talk a while ago that was on the topic of FinDev (I know, I know). The gist of it was, calculate how much it’s going to cost you as a company to implement these cost savings. There’s a time/cost benefit analysis here. You could be making the company more money by developing new features.

40% is right about the price of “we went from no RIs to using RIs” so if that was their first pass at cost-opt, yeah, it may have set a bad precedent

40% was what we got to go from a grossly unoptimized state to some version of sanity. It included simple things like purchasing RIs and turning off old stuff. That was 5 years ago.

First off, every reply here is spot on.

On your point; I feel like I’ve given them that message a bit. The pattern now is to bring in successive consulting firms who’s sales team will always claim they can do better than the last guy. Rinse and repeat for larger disappointment each time.

Fundamental architecture changes are rejected based on risk and cost. Everyone hunts for quick wins but that category of improvement has been strip mined.

Did I mention I’m feeling burnt out. Maybe this is catalyst for resume freshening.

If management are expecting the same wins over and over, then expectations haven’t been set right.

Optimisation is an ongoing task, but it shouldn’t be a big, onerous problem. Once you have done the initial pass or two to trim the problems, you need to implement appropriate controls and guardrails to prevent the bloat reoccurring.

You can’t infinitely reduce costs, and that is not what optimisation means. It is more about maintaining the appropriate level of cost to service value for your offering.

Yeah sucks. Other than compute there’s nothing else to optimize. Dunno what your company does, but in my experience all the spending you can optimize is if you have a “free tier” is costing money, start cutting that off and increasing prices, thats the only way.

Time to leave, yep, any new aws service focused in security or etc, that your management thinks should be used, will just cost more money.

The cost benefit analysis are probably not being made, it should be one layer up : engineer cost x/ features y/ optimization z. You cannot really calculate that unless it’s coming with a higher view of the business, you think it’s useless because it got tiring (with a lot of reason) but they don’t see it. Ive left for less.

While not as sexy as that initial large reduction, I would start to shift the focus on how you can take proactive measures to prevent unoptimized configurations and promote good cloud financial mgmt. Put SCPs in to enforce tags, prevent unwanted/old instance types, deploy the cudos dashboard.

Oh there’s always a lot to optimize apart from compute. Storage is the first candidate, then networking (gateways), then API calls, then stuff like Cognito, Glue, etc.

There’s always room for optimization — you collect low hanging fruits like EC2 instance rightsizing, deleting old snapshots, and enabling Intelligent Tiering everywhere. Then go spot and reservations. And then you get into hardcore stuff like consolidating databases, moving your workloads from EC2 to EKS, etc.

Recently had Glue / Redshift causing $10k of overspend due to an over aggressive rematerialize of a view. There’s always things to optimize in an AWS account. Literally always. It’s how Duckbill Group have a business.

If you’re genuinely getting smaller and smaller returns on investment and management isn’t noticing and wants more, is it possible to highlight this the next time before you start looking for cost optimization?

If you plainly say, for $X in effort (which is doubled for opportunity cost) you’re likely to only save $Y per month. You be the judge as to whether highlighting your time as money is a good or bad idea, but that’s what I would do. Literally do the math for them and they’ll either decide it’s a good business decision (and you’ve set more appropriate expectations) or they’ll see no point in proceeding.

If Twitter can run with only 20% of their microservices, imagine how much WE could save!

I’m planning on using the phrase “full NASA” in a future meeting.

Well stated.

I’ll add that my approach shifted from optimization to refinement.

I keep tabs on the AWS whats-new RSS feed and develop plans to incorporate a few from the constant flood of new features. Those plans are part of an iterative process and do not always result in action. When they do get green-lighted for deployment we proceed slowly, on a controlled basis.

It is far too (intentionally!) “convenient” to enable new gadgets across all accounts and hemorrhage money exponentially lol

In my experience, once you are largely rightsized and optimized, the goal is to establish monitoring and alerts for when resources are not optimized. You can also shift work to education throughout your organization to ensure everyone touching AWS has optimization and efficiency top of mind.

You may also consider talking to AWS for credits for Migrations or Discounts through custom pricing for services you mostly use. AWS is interested in retaining business from their increasingly aggressive competition.