mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-12 12:17:47 +08:00
feat: implement per-account inflight request limits and dynamic recommended concurrency calculation.
This commit is contained in:
@@ -460,10 +460,17 @@ Response:
|
||||
"in_use": 1,
|
||||
"total": 4,
|
||||
"available_accounts": ["a@example.com"],
|
||||
"in_use_accounts": ["b@example.com"]
|
||||
"in_use_accounts": ["b@example.com"],
|
||||
"max_inflight_per_account": 2,
|
||||
"recommended_concurrency": 8
|
||||
}
|
||||
```
|
||||
|
||||
Field notes:
|
||||
|
||||
- `max_inflight_per_account`: per-account in-flight limit (default `2`, override via env)
|
||||
- `recommended_concurrency`: suggested client concurrency, dynamically computed as `account_count * max_inflight_per_account`
|
||||
|
||||
### `POST /admin/accounts/test`
|
||||
|
||||
Request fields:
|
||||
|
||||
Reference in New Issue
Block a user