I am getting a 503 error...from a maxed S3 limit?

My site is getting a 503 "Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later."

I am on the free tier and I knew S3 put requests were approaching the 2,000 max.

In fact I went and checked and it is 100%.

But with no bad credit…would they just stop the service rather than let me pay the extra?

How can I allow payments? Or is there another reason? Am i in a sandbox too?

Your service would continue unless your account has been blocked

If you can login. Then this is a technical issue with your setup.

Ok cool - thanks! I’ll roll back some versions!

You’ll get this if you’re exceeding partition throughput. S3 will repartition if you are using a good prefix, per recommendations, but it’s not instantaneous. We get this every year on our load test bucket when we do a full peak load test where we ramp up to peak volume x3 in 15 minutes. We just ask support to pre-partition our bucket when we hit it and we’re good again.

Of course, if you’re not using a good prefix, then…

S3 returns 503 errors when telling you to slow down. Typically when making thousands of requests per second.

https://aws.amazon.com/premiumsupport/knowledge-center/http-5xx-errors-s3/

Are you sure S3 is returning the error here and not your own service?

Oh my - not even sure what a “prefix” is! I am just a webdev who has set things up and is about to take on help from fiverr for the many future small/big steps… aws is like another world! Cheers for the heads up though!

Cheers - was my own making i believe… a .config i just threw in to try and fix something (getting outta my depth here) must have made a little mess… running a ELB so i tried a little trick from StackO and cancelled the EC2 instance and re-deployed the ELB and it restarted perfectly! Learnt my lesson - leave AWS to the experts!

What do you mean with a “good prefix”? The need to randomize the prefix name no longer applies since 2018 according to AWS: https://aws.amazon.com/about-aws/whats-new/2018/07/amazon-s3-announces-increased-request-rate-performance/

So what defines a good prefix? (Serious question, not intended to be snarky)

Huh, TIL. I knew they increased the per-partition performance with that announcement, but I completely missed the last paragraph somehow. Interesting. Thanks for calling that out.

So, my guess is, you can still scale faster than the S3 algos scale out your partitions, if you’re creating synthetic load or have a really crazy spike in traffic, but there’s no correlation to prefix anymore.

See the other comment, I’m wrong about the prefix being a determination in the scale out algorithm.

As for what a prefix is, remember S3 isn’t a file system, it’s an object store. So, you store your data in objects and you name them. The object name is the entire key, which can have ‘path like’ delimiters in it to give you the impression of a file system hierarchy. The key is split into three (?) parts, prefix and suffix and whatever is left in the middle. It just means ‘the first bit of your key’ / ‘the last bit of your key’ / anything else left in the middle. That’s all, it’s just related to the complete object name, not what you would think of as your ‘file name’ or ‘directory path’ - those are just abstractions on top of S3 for convenience.

I am having the same issue.

My request rate/second is around 300. But there are times during the day when I start receiving 503 slow down errors…

Any idea how to prevent it?