S3 General Purpose Bucket GET/HEAD Limit Raised to 11,000 Requests per Second, So I Tried Sending 17,000 Requests per Second with Go

S3 General Purpose Bucket GET/HEAD Limit Raised to 11,000 Requests per Second, So I Tried Sending 17,000 Requests per Second with Go

Amazon S3 general purpose buckets now support at least 11,000 GET/HEAD requests per second per prefix, up from 5,500. With a Go S3 client on a new bucket's single prefix, we confirmed 17,000 GET requests per second.
2026.11.23

This page has been translated by machine translation. View original

Introduction

On November 20, 2026, there was an update to Amazon S3 general purpose buckets that increases the number of GET/HEAD requests that can be processed per second.

https://aws.amazon.com/about-aws/whats-new/2026/11/amazon-s3-increases-read-request-rate/

For general purpose buckets, GET/HEAD went from the previous 5,500 requests/second to at least 11,000 requests/second per partitioned prefix.

In this article, I prepared an S3 client in Go, sent GET requests to a single prefix of a new bucket, and confirmed that it can handle 11,000 requests/second or more.

Test Environment

  • Region: Tokyo (ap-northeast-1)
  • aws-cli on the working machine: 2.42.1
  • Load source: m9g.2xlarge (8 vCPU, 32 GiB, arm64)
  • OS: Amazon Linux 2023
  • Network: From a public subnet in the default VPC, via IGW
  • Bucket: Newly created, default settings
  • Objects: 1,000 objects of 1 KB, single prefix
  • Go used for the build: 1.27.4
  • aws-sdk-go-v2: v1.48.0
  • aws-sdk-go-v2/service/s3: v1.116.0
  • golang.org/x/time: v0.16.0

Increasing the Rate Until It Exceeds 11,000 Requests/Second

I raised the target rate every minute and kept sending load until it went beyond 11,000 requests/second.

Preparing the Objects

I created 1,000 objects of 1 KB (1,024 bytes) and placed them under the single prefix load/.

mkdir load && for i in $(seq -f '%04g' 0 999); do head -c 1024 /dev/urandom > load/obj-$i; done
aws s3 cp load s3://<バケット名>/load/ --recursive

Implementing the S3 Client

I implemented in Go an S3 client that sends GETs at 11,000 requests/second or more. Every second, it records the number of successes, the number of 503s, and the number of other errors to a CSV. SDK retries are disabled. The keys to fetch are chosen randomly from the 1,000 keys, and the number of concurrently running workers is 1,500.

The target rate is raised every minute. At the end of each minute, it calculates (number of 503s + number of other errors) / total number of requests, and proceeds as follows.

  • Less than 1%: raise the target by 1,000 requests/second in the next minute
  • 1% or more: do not raise it, measure one more minute at the same rate, and finish if it is 1% or more again

The time and rate at which the first 503 was received are output to the log at the end of the run.

Full text of main.go and go.mod

main.go

// s3loadgen-ramp: 単一プレフィックスへ GET を送り、1 分ごとに目標レートを段階的に上げる。
// 各分の終わりに (503 + その他のエラー) / 全リクエスト を計算し、しきい値未満なら次の分で目標を上げる。
// しきい値以上なら上げずに次の 1 分を同じレートで測り、なおしきい値以上なら終了する。
// SDK のリトライは無効にし、503 (SlowDown) を隠さずに数える。
package main

import (
	"context"
	"errors"
	"flag"
	"fmt"
	"io"
	"math/rand"
	"net/http"
	"os"
	"sync"
	"sync/atomic"
	"time"

	"github.com/aws/aws-sdk-go-v2/aws"
	awshttp "github.com/aws/aws-sdk-go-v2/aws/transport/http"
	"github.com/aws/aws-sdk-go-v2/config"
	"github.com/aws/aws-sdk-go-v2/service/s3"
	"golang.org/x/time/rate"
)

type counters struct {
	ok       atomic.Int64
	slowdown atomic.Int64
	other    atomic.Int64
	latUsSum atomic.Int64 // 成功した GET の所要時間(マイクロ秒)の合計
}

func main() {
	bucket := flag.String("bucket", "", "bucket name")
	prefix := flag.String("prefix", "load/", "key prefix")
	nkeys := flag.Int("keys", 1000, "number of objects under prefix")
	start := flag.Float64("start", 3000, "GET/s in the first minute")
	step := flag.Float64("step", 1000, "GET/s added after each healthy minute")
	maxMin := flag.Int("max-minutes", 15, "maximum minutes (including hold minutes)")
	threshold := flag.Float64("threshold", 0.01, "error ratio (503 + other) / total that stops the ramp")
	workers := flag.Int("workers", 1500, "concurrent workers")
	region := flag.String("region", "ap-northeast-1", "region")
	out := flag.String("out", "per-second.csv", "per-second CSV")
	dec := flag.String("decisions", "per-minute.csv", "per-minute decision CSV")
	flag.Parse()

	ctx := context.Background()
	httpClient := awshttp.NewBuildableClient().WithTransportOptions(func(tr *http.Transport) {
		tr.MaxIdleConns = 6000
		tr.MaxIdleConnsPerHost = 6000
		tr.MaxConnsPerHost = 0
	})
	cfg, err := config.LoadDefaultConfig(ctx,
		config.WithRegion(*region),
		config.WithHTTPClient(httpClient),
		config.WithRetryer(func() aws.Retryer { return aws.NopRetryer{} }),
	)
	if err != nil {
		fmt.Fprintln(os.Stderr, "config:", err)
		os.Exit(1)
	}
	cli := s3.NewFromConfig(cfg)

	f, err := os.Create(*out)
	if err != nil {
		fmt.Fprintln(os.Stderr, "create:", err)
		os.Exit(1)
	}
	defer f.Close()
	fmt.Fprintln(f, "sec,utc,minute,target_rps,ok,slowdown_503,other_err,avg_ok_latency_ms")

	df, err := os.Create(*dec)
	if err != nil {
		fmt.Fprintln(os.Stderr, "create:", err)
		os.Exit(1)
	}
	defer df.Close()
	fmt.Fprintln(df, "minute,target_rps,ok,slowdown_503,other_err,error_ratio,decision")

	curRate := *start
	limiter := rate.NewLimiter(rate.Limit(curRate), 200)
	var c counters
	var first503Nanos atomic.Int64 // 最初の 503 を受け取った時刻(UnixNano)
	var first503Rate atomic.Int64  // そのときの目標レート
	var curRateAtomic atomic.Int64
	curRateAtomic.Store(int64(curRate))
	var errPrints atomic.Int64

	runCtx, cancel := context.WithCancel(ctx)
	defer cancel()

	var wg sync.WaitGroup
	for i := 0; i < *workers; i++ {
		wg.Add(1)
		go func(seed int64) {
			defer wg.Done()
			rnd := rand.New(rand.NewSource(seed))
			for {
				if err := limiter.Wait(runCtx); err != nil {
					return
				}
				key := fmt.Sprintf("%sobj-%04d", *prefix, rnd.Intn(*nkeys))
				t0 := time.Now()
				reqCtx, rc := context.WithTimeout(runCtx, 10*time.Second)
				resp, err := cli.GetObject(reqCtx, &s3.GetObjectInput{Bucket: bucket, Key: &key})
				if err == nil {
					_, err = io.Copy(io.Discard, resp.Body)
					resp.Body.Close()
				}
				rc()
				if err == nil {
					c.ok.Add(1)
					c.latUsSum.Add(time.Since(t0).Microseconds())
					continue
				}
				var re *awshttp.ResponseError
				if errors.As(err, &re) && re.HTTPStatusCode() == http.StatusServiceUnavailable {
					c.slowdown.Add(1)
					if first503Nanos.CompareAndSwap(0, time.Now().UnixNano()) {
						first503Rate.Store(curRateAtomic.Load())
					}
				} else {
					if runCtx.Err() == nil && errPrints.Add(1) <= 20 {
						fmt.Fprintln(os.Stderr, "error:", err)
					}
					c.other.Add(1)
				}
			}
		}(int64(i) + time.Now().UnixNano())
	}

	begin := time.Now()
	tick := time.NewTicker(time.Second)
	defer tick.Stop()

	var minOK, minSD, minOT int64
	prevHold := false
	minute := 1
	stopReason := "max-minutes"
loop:
	for sec := 1; ; sec++ {
		limiter.SetLimit(rate.Limit(curRate))
		<-tick.C
		ok := c.ok.Swap(0)
		sd := c.slowdown.Swap(0)
		ot := c.other.Swap(0)
		lat := c.latUsSum.Swap(0)
		avg := 0.0
		if ok > 0 {
			avg = float64(lat) / float64(ok) / 1000.0
		}
		fmt.Fprintf(f, "%d,%s,%d,%.0f,%d,%d,%d,%.2f\n", sec, time.Now().UTC().Format("2006-01-02T15:04:05Z"), minute, curRate, ok, sd, ot, avg)
		if sec%10 == 0 {
			f.Sync()
		}
		minOK += ok
		minSD += sd
		minOT += ot
		if sec%60 != 0 {
			continue
		}
		total := minOK + minSD + minOT
		ratio := 0.0
		if total > 0 {
			ratio = float64(minSD+minOT) / float64(total)
		}
		decision := ""
		next := curRate
		switch {
		case ratio < *threshold:
			prevHold = false
			next = curRate + *step
			decision = "raise"
		case !prevHold:
			prevHold = true
			decision = "hold"
		default:
			decision = "stop"
		}
		if decision != "stop" && minute >= *maxMin {
			decision += "(last)"
		}
		fmt.Fprintf(df, "%d,%.0f,%d,%d,%d,%.4f,%s\n", minute, curRate, minOK, minSD, minOT, ratio, decision)
		df.Sync()
		f.Sync()
		minOK, minSD, minOT = 0, 0, 0
		if decision == "stop" {
			stopReason = "error-ratio>=threshold twice"
			break loop
		}
		if minute >= *maxMin {
			break loop
		}
		minute++
		curRate = next
		curRateAtomic.Store(int64(curRate))
	}
	cancel()
	wg.Wait()
	if n := first503Nanos.Load(); n != 0 {
		fmt.Printf("first_503: utc=%s target_rps=%d\n", time.Unix(0, n).UTC().Format("2006-01-02T15:04:05.000Z"), first503Rate.Load())
	} else {
		fmt.Println("first_503: none")
	}
	fmt.Printf("done: stop=%s elapsed=%s last_minute=%d\n", stopReason, time.Since(begin).Round(time.Second), minute)
}

go.mod

module s3loadgen

go 1.27.4

require (
	github.com/aws/aws-sdk-go-v2 v1.48.0
	github.com/aws/aws-sdk-go-v2/config v1.33.21
	github.com/aws/aws-sdk-go-v2/service/s3 v1.116.0
	golang.org/x/time v0.16.0
)

require (
	github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.27 // indirect
	github.com/aws/aws-sdk-go-v2/credentials v1.21.3 // indirect
	github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.9 // indirect
	github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.12 // indirect
	github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.12 // indirect
	github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.12 // indirect
	github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.25 // indirect
	github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.11.13 // indirect
	github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.12 // indirect
	github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.20.12 // indirect
	github.com/aws/aws-sdk-go-v2/service/signin v1.14.0 // indirect
	github.com/aws/aws-sdk-go-v2/service/sso v1.39.5 // indirect
	github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.5 // indirect
	github.com/aws/aws-sdk-go-v2/service/sts v1.53.0 // indirect
	github.com/aws/smithy-go v1.28.9 // indirect
)

Save the two files in the same directory and build.

go mod tidy && GOOS=linux GOARCH=arm64 go build -o s3loadgen .

How the Load Was Applied

I created the bucket new and started the load about 2 minutes after creation.

./s3loadgen -bucket <バケット名> -prefix load/ -keys 1000 -start 3000 -step 1000 -max-minutes 15 -threshold 0.01 -workers 1500 -region ap-northeast-1 -out per-second.csv -decisions per-minute.csv

Results per Minute

There were 8,999,805 successful GETs over 15 minutes. There were 0 503s and 0 other errors.

Elapsed (min) Target (/s) Average successes (/s) Min Max 503 (count)
1 3,000 3,002.5 2,991 3,150 0
2 4,000 3,999.6 3,969 4,011 0
3 5,000 4,999.5 4,970 5,010 0
4 6,000 5,999.5 5,976 6,013 0
5 7,000 6,999.6 6,977 7,010 0
6 8,000 7,999.4 7,961 8,012 0
7 9,000 8,999.6 8,974 9,012 0
8 10,000 9,999.5 9,974 10,020 0
9 11,000 10,999.6 10,973 11,017 0
10 12,000 11,999.5 11,966 12,013 0
11 13,000 12,999.6 12,970 13,032 0
12 14,000 13,999.6 13,979 14,025 0
13 15,000 14,999.8 14,979 15,017 0
14 16,000 15,999.5 15,970 16,021 0
15 17,000 16,999.9 16,970 17,029 0

CPU of the Load Source

I recorded vmstat at 10-second intervals and aggregated it per minute (6 samples). CPU is the percentage across all 8 vCPUs.

Elapsed (min) Target (/s) user avg (%) system avg (%) idle avg (%) idle min (%) Interrupts (/s)
1 3,000 5.0 1.0 94.2 93 41,382
2 4,000 6.0 1.3 92.5 91 51,924
3 5,000 9.5 1.7 89.3 88 58,688
4 6,000 10.0 2.0 87.8 85 64,736
5 7,000 10.0 2.2 87.8 86 71,826
6 8,000 14.8 2.3 82.8 80 75,843
7 9,000 14.3 2.8 83.2 82 80,950
8 10,000 17.0 2.7 80.0 77 87,237
9 11,000 17.5 2.8 79.2 77 92,856
10 12,000 20.3 3.2 76.5 75 97,819
11 13,000 20.8 3.5 75.8 73 102,849
12 14,000 21.8 3.7 74.3 72 108,077
13 15,000 24.0 4.0 72.2 71 110,863
14 16,000 25.7 3.8 70.3 69 115,706
15 17,000 27.7 4.2 68.2 66 117,956

Summary

In this measurement, we confirmed that no errors occurred with GETs at 17,000 requests/second on a single prefix of a new bucket.

Following the 2018 update, S3 can now handle even more requests.

https://dev.classmethod.jp/articles/amazon-s3-announces-increased-request-rate-performance/

The limit of 3,500 requests/second for writes (PUT/COPY/POST/DELETE) remains the same as before, but we can expect GET/HEAD throttling to become less likely to occur.

In particular, if you have been distributing prefixes to avoid GET/HEAD throttling, I recommend checking the effect of this update.

Share this article

AWSのお困り事はクラスメソッドへ