News for hackers. Stuff that matters.
Re:Serverless Horrors by voidwtf on Wednesday February 28, 2024 @02:12AM (#39534962)
That's my favorite thing about all these services. None of them have an equivalent of a stop-loss. They'll notify you IF you setup an alert, but that's it. Often times the alerts are way after the damage is done, with some billable metrics often lagging in reporting/alerting by hours. The default should be safe with easy options to increase the limits.
Re:Serverless Horrors by hamoodhabibi on Wednesday February 28, 2024 @02:57AM (#39535248)
oooh i really like that stop loss example. having a netlify serverless website is basically selling a put option without receiving any premium.
Re:Serverless Horrors by yccs27 on Wednesday February 28, 2024 @06:51AM (#39536715)
The premium is the website itself ;D Still, potentially unlimited costs is wayy too much risk.
Re:Serverless Horrors by jonasdegendt on Wednesday February 28, 2024 @07:31AM (#39537030)
Selling a put has a fixed downside, so perhaps selling a naked call would be more appropriate? Unlimited loss potential! :^)
Re:Serverless Horrors by fragmede on Wednesday February 28, 2024 @08:02AM (#39537298)
You can totally build a GCP function that will tear down your site if a billing alert hits the pubsub bus, but you can also set billing caps for a bunch of the APIs.
Re:Serverless Horrors by reustle on Wednesday February 28, 2024 @08:16AM (#39537440)
Why not add it directly into the interface where you configure the site to begin with? It's a pretty reasonable ask.
Re:Serverless Horrors by fragmede on Wednesday February 28, 2024 @08:22AM (#39537519)
I don't really know although I can make up an answer but it contradicts

> None of them have an equivalent of a stop-loss.

Cynically, it's because they want to take your money. Practically, it's because a company that breaks your thing because you didn't pay, even if you asked it to, just isn't going to be a popular move.

Re:Serverless Horrors by swader999 on Wednesday February 28, 2024 @08:28AM (#39537588)
It takes real leadership to back a product feature like this. That's why.
Re:Serverless Horrors by moduspol on Wednesday February 28, 2024 @08:44AM (#39537792)
It's probably quite difficult to boil it down to something as simple as an "off" switch that'll limit costs for them, meaningfully work for all services, not be abused, not be confusing, and not result in the customers that actually make you money accidentally getting important things shut off unexpectedly under predictable circumstances.

It's probably easier to make it so they can set up alerts and have a human on their end evaluate what steps are worth taking to cut costs while maintaining important availability.

Re:Serverless Horrors by ghaff on Wednesday February 28, 2024 @08:53AM (#39537909)
From what I can tell Azure has more robust stop-loss options. But business considerations for the provider aside, there are absolutely tradeoffs between reliably limiting your spend and avoiding taking a business down because of a legitimate spike.
Re:Serverless Horrors by voidpointer on Wednesday February 28, 2024 @03:10PM (#39542876)
Absolutely but that tradeoff should be for the customer to make.
Re:Serverless Horrors by remram on Wednesday February 28, 2024 @07:35PM (#39545296)
What you're saying is that I can build a cost control function, not that GCP has one.
Re:Serverless Horrors by fragmede on Thursday February 29, 2024 @02:11AM (#39547062)
Yes. GP's claim is there is no stop procedure. just because it's not a simple toggle switch doesn't mean it's not there.
Re:Serverless Horrors by Netcob on Wednesday February 28, 2024 @08:18AM (#39537453)
I remember trying AWS Glacier as a broke university student, thinking it was a cheap way to back up my data. I was wrong.

A decade later I played around with AWS, set up a free 1-core VPS. It was fine for a year or so (I ended up not using it at all), and suddenly I got a bill. It wasn't much, but it reminded me how these services make it very hard to be aware of your bills until you get them.

I was trying out Azure recently, and I found it too confusing to make any sort of quick risk assessment.

It's clearly just for people for whom "What's the worst that could happen?" is always a rethorical question.

Re:Serverless Horrors by seized on Wednesday February 28, 2024 @01:05PM (#39541585)
Glacier IS a cheap way to backup data, in fact the cheapest of you ignore the scam "$200 for life" type things. It's about $1 per TB per month.

It's not cheap to restore though, at about $90 minimum per TB.

So it's best as part of a 3-2-1 system, not for frequent restores.

Re:Serverless Horrors by jmathai on Wednesday February 28, 2024 @10:01AM (#39538795)
Lambda and GCP Cloud Functions do have cost controls. You can specify the maximum number of instances that can be spun up at any given point.

I think the UX can make it more friendly to specify the types of traffic and cost you’re expecting but most erroneous spikes are the result of a customer misconfiguration or a legitimate spike in traffic.

It’s the former which are problematic for customers. They can request a credit and we (GCP) try and accommodate.

It’s not a feature designed for profit. But it also tends to fall below the cut line for prioritization to fix. But it’s in the backlog and doesn’t go unnoticed.

(Former PM on GCP Cloud Functions)

Re:Serverless Horrors by sroussey on Wednesday February 28, 2024 @12:23PM (#39540997)
Do users setup cost controls before activating the service? Or is this something they need to know how to do and do on their own?
Re:Serverless Horrors by jmathai on Wednesday February 28, 2024 @01:08PM (#39541624)
Separate from billing, the product-native cost controls which prevent over-consumption is configured at the resource level.

gcloud run deploy ..... --max-instances=N

Re:Serverless Horrors by fragmede on Wednesday February 28, 2024 @10:17PM (#39546094)
What you really want is prepaid instead of post-paid billing. Charge up the account with $100, and stop working and delete my data if that gets hit, with an auto renew option to recharge some amount every month.
Re:Serverless Horrors by voidwtf on Wednesday February 28, 2024 @10:30PM (#39546136)
That seems a little reductive. I don’t think it’s unreasonable to say, my current spend is ~13k a month. I should be able to set a 20k cap, such that non fixed billable like bandwidth or map tiles get paused while someone determines whether we’d like to proceed at that rate. There is a not so fine line between scaling for a rush/event and a resume generating event.
Re:Serverless Horrors by fragmede on Thursday February 29, 2024 @02:09AM (#39547051)
Okay, fine, that's what I want. :)