Skip to content

Commit a738591

Browse files
retlehsclaude
andcommitted
Increase R2 upload concurrency to 50
Memory was the bottleneck, not concurrency. Now that files are streamed from disk, 50 workers should be safe on 4GB. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e079777 commit a738591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/deploy/r2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func SyncToR2(ctx context.Context, cfg config.R2Config, buildDir, buildID, previ
8888
// Upload all files under the release prefix (parallel, streaming from disk).
8989
var uploaded, copied atomic.Int64
9090
g, gCtx := errgroup.WithContext(ctx)
91-
g.SetLimit(20)
91+
g.SetLimit(50)
9292

9393
for _, relPath := range filePaths {
9494
relPath := relPath

0 commit comments

Comments
 (0)