feat: implement per-account inflight request limits and dynamic recommended concurrency calculation.

This commit is contained in:
CJACK
2026-02-16 16:11:12 +08:00
parent c7ffcd76e6
commit 6a6f380987
9 changed files with 323 additions and 58 deletions

View File

@@ -11,6 +11,14 @@ PORT=5001
# Log level: DEBUG | INFO | WARN | ERROR
LOG_LEVEL=INFO
# Max concurrent inflight requests per account in managed-key mode.
# Default: 2
# Recommended client concurrency is calculated dynamically as:
# account_count * DS2API_ACCOUNT_MAX_INFLIGHT
# So by default it is account_count * 2.
# Alias: DS2API_ACCOUNT_CONCURRENCY
# DS2API_ACCOUNT_MAX_INFLIGHT=2
# ---------------------------------------------------------------
# Admin auth
# ---------------------------------------------------------------