-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Description:
The current throttler system in iDDS lacks enforcement and intelligent rate limiting:
Missing Features:
- Dynamic rate limiting based on system load
- Token bucket / sliding window algorithms
- Priority queue for request ordering
- Per-User and Per-VO rate limits
- Backpressure handling with auto-scaling
- 429 Too Many Requests responses
Current Gap:
throttlers.py only has basic add/get operations. No enforcement logic exists to actually limit requests based on configured thresholds.
What Needs to be Done:
- Add rate limiter enforcer in Clerk agent
- Implement token bucket algorithm
- Create priority queue management
- Support per-VO/user limits from database
- Add rate limit headers to API responses
- Detect system overload and reject gracefully
Why It Matters:
Essential for multi-tenant production systems to prevent resource exhaustion and ensure fair resource allocation across users and organizations.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels