| ▲ | jerf 5 hours ago | ||||||||||||||||
It's a harder problem than it looks to strictly enforce it at scale. If you try to enforce it in a centralized system, you've got one system constantly saying "yes they still have money for that" in response to an absolute torrent of billing events. If you bulk those events that bulking creates latency where billing overages could occur. If the systems cache the value, the caching creates latency where overages could occur. If you push the enforcement to the individual services, now you have to be constantly updating those services with the amount of remaining money somehow. I'm not saying it's impossible, I'm just saying it's harder than it looks. Everything is harder than it looks at cloud scale. What I can say is that if you want a simple policy that would encourage the cloud providers to cut through the difficult and at least get some bounds on the problem, pass a law that requires them to offer the user the ability to set a maximum cost and then make it illegal for the services to collect any more than that cost in a month. In some sense that could probably still be argued in court, no matter what terms in the EULA Google or the other cloud providers try to throw at us, there's an irreducible element of fraud here when I say to one of these providers "Hey, I don't want to spend more than $1000 this month", and they come back with a bill for $100,000. I told them what my limit was, using their own system for doing so, why is it my problem that they can just then give me service I have explicitly disclaimed and then consider my contractually obligated to pay for it? The entire point of this limit is basically to give me false and fraudulent comfort that they won't charge me stupid amounts of money. Pass that law and suddenly the clouds will indeed be a lot better at cutting you off rather than charging you extra. There will still be some slop, and the law will need to address fraudulent abuse of this by a customer ("set limit to $10, use services slowly up to $9.90, suddenly spin up vast resources and get as much use as possible before the billing system catches up", though it's not hard to think of ways of countering that at a technical level as well that will be good enough as well), but I think it can be worked through. | |||||||||||||||||
| ▲ | pu_pe 4 hours ago | parent | next [-] | ||||||||||||||||
If it's so hard, how can AWS and Azure offer a cap? | |||||||||||||||||
| |||||||||||||||||
| ▲ | r_lee 4 hours ago | parent | prev [-] | ||||||||||||||||
it's not a hard problem, it's simply that Google doesn't want to introduce, maybe partly due to the fact that they don't want to clean up after orgs that have their prod go down because they forgot to adjust their budgets but for e.g. individual accounts and so on, there's 0 reason to not have it, so it mostly comes down to laziness/incompetence | |||||||||||||||||