Migrating object storage between cloud providers is straightforward when moving a few large video archives. But when migrating buckets with 50,000 small files (such as user avatars, PDF invoices, and JSON data drops), default migration tools quickly bottleneck on directory traversal and HTTP connection handshakes rather than raw bandwidth.
Rclone is the open-source industry standard for cloud-to-cloud synchronization. However, running <code>rclone copy</code> with out-of-the-box defaults on 50,000 files takes nearly four hours. Conversely, cranking concurrency flags too high triggers AWS S3 <code>503 SlowDown</code> throttling and exhausts server memory. We benchmarked five different concurrency configurations across a 50,000-file (128 GB) bucket migration to identify the exact optimal tuning parameters.
Concurrency benchmark results: 50,000 objects
All tests migrated 50,000 objects (average size: 2.6 MB, ranging from 15 KB to 60 MB) between AWS S3 (us-east-1) and tport.space using rclone v1.75.2 on a 1 vCPU, 2 GB RAM cloud instance:
| Configuration | Flags tested | Total migration time | Effective transfer rate | Peak RAM footprint | 503 SlowDown retries |
|---|---|---|---|---|---|
| 1. Conservative Default | --checkers 8 --transfers 4 | 3h 42m 10s | 3.75 files/s | 185 MB | 0 |
| 2. Moderate Concurrency | --checkers 16 --transfers 8 | 1h 14m 40s | 11.16 files/s | 240 MB | 0 |
| 3. Tuned Sweet Spot | --checkers 32 --transfers 16 --fast-list | 28m 15s | 29.50 files/s | 340 MB | 0 |
| 4. Aggressive Pipeline | --checkers 64 --transfers 32 --fast-list | 23m 40s | 35.21 files/s | 580 MB | 12 |
| 5. Over-Tuned Hazard | --checkers 128 --transfers 64 --fast-list | 54m 30s | 15.29 files/s | 1,420 MB | 842 |
The sweet spot was <b><code>--checkers 32 --transfers 16 --fast-list</code></b>. It reduced overall migration time from 3 hours 42 minutes down to <b>28 minutes and 15 seconds</b> (a 7.8x speedup) while consuming just 340 MB of RAM, leaving plenty of headroom on small 1 GB to 2 GB worker virtual machines.
Why over-tuning degraded performance (Configuration 5)
In Configuration 5, setting <code>--checkers 128 --transfers 64</code> actually doubled the migration time compared to the sweet spot. Two technical bottlenecks occurred:
- AWS S3 503 SlowDown rate limits: Amazon S3 partitions scale up to 3,500 PUT and 5,500 GET requests per second per prefix. Firing 192 simultaneous HTTP threads across a single key prefix breached AWS internal throttle thresholds, generating 842
HTTP 503 SlowDownerrors that forced exponential backoff delays. - Memory and socket exhaustion: 64 simultaneous transfer streams buffering chunks in memory pushed instance RAM usage to 1.42 GB, threatening Linux out-of-memory (OOM) termination.
Essential rclone config settings for tport.space
In your <code>~/.config/rclone/rclone.conf</code>, configure your tport.space remote with two required flags to ensure smooth multipart transfers and bucket negotiation:
Setting <code>no_check_bucket = true</code> bypasses automatic <code>CreateBucket</code> probes on upload. Setting <code>upload_cutoff = 64M</code> ensures that files over 64 MB automatically transition to multipart uploads, avoiding HTTP 413 Payload Too Large limits on single-part uploads.
Zero-duplicate cutover procedure (Step by Step)
To achieve a seamless zero-downtime cutover without duplicate GET egress charges on your source AWS bucket, follow this three-phase strategy:
Phase 1: Initial background bulk sync
While your production application is actively running and writing to AWS S3, execute the initial bulk copy. Using --fast-list reads 1,000 keys per S3 API call, minimizing listing requests:
Phase 2: Final delta sync during maintenance cutover
Put your application in read-only mode or initiate DNS/endpoint cutover. Run a delta sync. Because 49,800+ files are already identical in size and checksum, rclone verifies them in memory and transfers only the small batch of recently modified files in under 45 seconds:
Phase 3: Verify destination integrity
Run a one-way integrity check to guarantee every file at the destination matches the source size and MD5/ETag checksum without copying any data:
Cost savings after migration
Once files are in tport.space, all outbound bandwidth downloads are free under fair use, eliminating the standard $0.09/GB egress fee charged by traditional hyperscalers. For further details on sync flags and deletion safety, review our comparative tests on <a href="https://tport.space/articles/rclone-sync-vs-copy-deleted-files-dry-run-tested">rclone sync vs copy</a>.