Skip to content

docs(s3_v2): document s3_max_concurrent_uploads and s3_batch_file_upload - #1478

Merged
yucheng-berri merged 5 commits into
mainfrom
litellm_s3_v2_bounded_uploads
Sep 24, 2026
Merged

yucheng-berri merged 5 commits into
mainfrom
litellm_s3_v2_bounded_uploads

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds the two new optional s3_callback_params shipped in BerriAI/litellm#41258 to the s3_v2 config example in docs/proxy/logging.md: s3_max_concurrent_uploads (default 16, bounds simultaneous PUTs per flush to avoid S3 503 SlowDown) and s3_batch_file_upload (opt in, writes each flush as one .jsonl file per object key prefix instead of one object per request, with the caveat that per request cold storage lookup does not work in that mode)

Explains where the 16 default comes from so it does not read as a magic number: a full DEFAULT_S3_BATCH_SIZE (512) queue has to drain inside DEFAULT_S3_FLUSH_INTERVAL_SECONDS (10s), and at a pessimistic 300ms per PUT that needs 512 * 0.3 / 10 = 15.4 in flight uploads. The paragraph also notes the limit is per uvicorn worker and points high volume deployments at s3_batch_file_upload instead of raising the bound

Also adds the DEFAULT_S3_MAX_CONCURRENT_UPLOADS env var to the reference table in docs/proxy/config_settings.md. The litellm documentation check (tests/documentation_tests/test_env_keys.py) requires every os.getenv name to appear in these docs, so this PR needs to merge before #41258 can go green

Resolves LIT-7800

Link to Devin session: https://app.devin.ai/sessions/cf92245d91a5424faa91369ee0d975d6
Open in Devin Desktop: https://app.devin.ai/desktop/session/cf92245d91a5424faa91369ee0d975d6?variant=devin
Requested by: @yucheng-berri

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@vercel

vercel Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
litellm Ready Ready Preview Sep 24, 2026 7:24am UTC

Request Review

devin-ai-integration Bot and others added 3 commits September 23, 2026 08:36
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…d storage override

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@yucheng-berri
yucheng-berri enabled auto-merge (squash) September 24, 2026 07:23
@yucheng-berri
yucheng-berri merged commit 54aba45 into main Sep 24, 2026
4 checks passed
@yucheng-berri
yucheng-berri deleted the litellm_s3_v2_bounded_uploads branch September 24, 2026 07:24

This branch was previously deployed

1 inactive deployment
Preview — 23dd8179 Deployed Sep 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant