Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Amazon S3 503 SlowDown: reduce your request rate, and how to back off and spread the load

Technical article
Cloud

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

When a backup or upload to Amazon S3 fails with the error code SlowDown, S3 is asking the client to send fewer requests. The S3 API Reference lists the code as "Code: SlowDown", with the description "Reduce your request rate." and "HTTP Status Code: 503 Slow Down". AWS describes these responses as temporary while S3 scales to a new request rate, and the AWS SDKs retry them automatically. A client that does not use an AWS SDK needs its own retry logic, which the design patterns page says to implement for HTTP 503. The work is to prove whether one prefix is taking all the traffic, then lower the concurrency or ramp the load up gradually.

What the error means

The Amazon S3 User Guide says S3 "supports at least 3,500 PUT/COPY/POST/DELETE or 11,000 GET/HEAD requests per second per partitioned prefix and automatically scales to higher request rates as your traffic grows". A prefix is the first characters of an object key name. The guide adds that the forward slash is not special, so folder-like paths do not by themselves raise the limit.

Scaling takes time: "Scaling of partitioned prefixes happens gradually and is not instantaneous. While Amazon S3 is scaling to your new higher request rate, you might see some 503 (Slow Down) errors. These errors resolve when the scaling is complete." A prefix that "previously received little or no traffic" can return 503 until S3 has scaled for it. The design patterns page names a second figure: "typically sustained rates of over 5,000 requests per second to a small number of objects" can bring 503 slowdown responses.

Bucket owners are not charged for these responses. The billing page says "Bucket owners aren't billed for HTTP 5XX server error responses, such as HTTP 503 Slow Down errors."

AWS's pages show no date and no version range for these figures. Check the current pages if a limit matters to a design.

Likely causes

Cause What you see How to confirm
A burst of requests to a prefix that had little traffic 503s at the start of a run that fade within the run The 5xx count rises at the start, then falls
A sustained rate near or above the per-prefix figures 503s throughout the run, always the same prefix Request counts per prefix from server access logs approach or exceed 3,500 writes or 11,000 reads per second
All keys share one prefix, for example one dated folder One prefix takes every request Access logs show one common key path
Too many parallel workers in the client Errors grow when workers are added The client's concurrency setting, such as the AWS CLI max_concurrent_requests, default 10
The client gives up too early The run fails although a retry would succeed The retry settings allow few attempts

Prove the cause before changing anything

All of this reads only.

  1. Count the 503s. The performance guidelines name three options: Amazon CloudWatch request metrics, which "include a metric for 5xx status responses"; the 503 error count in the advanced metrics of S3 Storage Lens; and S3 server access logging, which lets you filter the requests that received 503 responses. The page adds that monitoring "can often gain valuable insights into which prefixes, keys, or buckets are getting the most throttling requests". The pages show no commands for these three options, so use the console or your logging tooling.

  2. Read the client's own settings. For the AWS CLI, the S3 configuration page names max_concurrent_requests (default 10) and max_queue_size. Open the s3 section of ~/.aws/config and see whether the values are raised.

cat ~/.aws/config

A good result shows no override or a modest number. A bad result shows a high value such as 40 or 100.

  1. Read the retry settings. The AWS SDKs and Tools page lists AWS_MAX_ATTEMPTS and max_attempts with a default of 3, "one initial request and up to two retries", and AWS_RETRY_MODE with the default standard. Those values belong to the behaviour that, in the page's words, "requires opting in until it becomes the default behavior" by setting AWS_NEW_RETRIES_2026=true. Without that setting the SDK uses its earlier behaviour, and the page gives no default number of attempts for it. The design patterns page also says the AWS SDKs have a "default of 3 attempts per request".
printenv AWS_MAX_ATTEMPTS AWS_RETRY_MODE AWS_NEW_RETRIES_2026

An empty result means none of these is set in the shell, so the SDK's own default applies. If the file ~/.aws/config has a max_attempts or retry_mode key, that value applies instead of the default.

  1. Compare keys. If sequential names such as log-2026-12-01.txt and log-2026-12-02.txt all begin with the same characters, they share a prefix.

Fix

AWS gives five measures on the design patterns page: spread requests over several prefixes by adding "a character from a hash of the key name to the beginning" of the name, retry with exponential backoff, monitor 5xx metrics, "gradually increase your traffic over time", and use multiple connections. Key names are chosen by the application. If the backup runs through the AWS CLI or an AWS SDK, the settings below apply: the s3 section of ~/.aws/config affects the aws s3 commands only, and AWS_MAX_ATTEMPTS affects programs built on an AWS SDK or the AWS CLI. A tool with its own S3 client has its own concurrency and retry settings; look for them in that tool's documentation.

Lower the client's parallel requests

First save the current state:

cp -p ~/.aws/config ~/.aws/config.2026-12-02

Risk: the next command changes the AWS CLI's S3 transfer concurrency for the default profile, which slows every aws s3 transfer run by that user.

Set a lower number of concurrent requests:

aws configure set default.s3.max_concurrent_requests 5

To undo it: restore the saved file, then read it back.

cp -p ~/.aws/config.2026-12-02 ~/.aws/config
cat ~/.aws/config

If the save command reported "No such file or directory", there was no config file before the change, so there is no saved copy to restore. Set the value to the page's default of 10 instead, then read the file:

aws configure set default.s3.max_concurrent_requests 10
cat ~/.aws/config

Allow more retries

First save the current state:

env | grep -E '^AWS_(MAX_ATTEMPTS|RETRY_MODE)=' > retry-env-before.txt

An empty file means neither variable is set in this shell.

Risk: the next command raises the number of attempts per request for programs started from this shell. A throttled run takes longer, and the retries add requests while S3 is already asking for fewer.

Set six attempts, which is one initial request and up to five retries. The retry page's description of attempts applies to the behaviour enabled with AWS_NEW_RETRIES_2026=true; the page gives no attempt count for the earlier behaviour, so check what your SDK version does with this variable:

export AWS_MAX_ATTEMPTS=6

To undo it: read retry-env-before.txt. If it has an AWS_MAX_ATTEMPTS= line, export that value again. If it has no such line, remove the variable and read it back:

unset AWS_MAX_ATTEMPTS
printenv AWS_MAX_ATTEMPTS

The second command prints nothing when the variable is gone.

Ramp up and spread

Start new jobs at a modest rate and raise it over days. The design patterns page says to "gradually increase your traffic over time rather than immediately jumping to peak rates". For applications that write their own key names, add the hash character at the start so keys spread over a stable set of prefixes, for example 16 prefixes from one hexadecimal digit.

Example (illustrative): nas01 runs a backup tool against backup-bucket-example with 40 workers, each sending about 100 PUT requests a second into one prefix, daily/2026-12-02/. That is 40 x 100 = 4,000 writes a second against a baseline of 3,500, an excess of 500, and the prefix is new, so S3 is still scaling it. The access logs show 503s on that prefix only. With 20 workers the load is 20 x 100 = 2,000 writes a second, below 3,500; the 503s that remain at the start of the run fade as the prefix scales, and the retries absorb them.

Confirm the fix

  1. The 5xx or 503 count in the metric or log you used in step 1 falls to near zero after the first minutes of a run.
  2. The job finishes without a failed object.
  3. The run time is acceptable. If it is not, raise the rate in steps and watch the 503 count after each step.

What to watch afterwards

  • Keep the 5xx metric on a dashboard or alert. A new job, a first full backup or a restore test can create a sudden rate.
  • Watch the first run of any new prefix, such as a new dated folder per day.
  • If a workload uses SSE-KMS, the performance pages point to the AWS KMS quotas for the supported request rates.
  • Request costs are a separate question; see Object storage bill for backups: request charges and minimum object sizes.

Risks and limits

  • These commands have not been run or lab-tested.
  • AWS's pages show no date. The retry page's behaviour needs AWS_NEW_RETRIES_2026=true until AWS makes it the default.
  • S3-compatible services, including other vendors' object stores, have their own limits and messages. AWS's pages describe only Amazon S3.
  • More retries do not raise the limit. They only wait it out.
  • The design patterns page also advises using multiple connections for throughput. Lowering concurrency trades speed for fewer 503s, so raise it again in steps once the prefix has scaled.

Sources