Warn on custom rate limit capacity
boxhock opened this issue · comments
Jonas Hals commented
The RATE_LIMIT_CAPACITY
env var allows node operators to set how many requests the EA can make to the DP.
If this value is misconfigured, it can cause big problems for the EA/node op.
To reduce the likelihood of this happening, we should:
- Warn on EA startup if the configured value is higher than the highest tier from limits.json
- If EA hits 429s while
RATE_LIMIT_CAPACITY
is set, the logs should call out that a custom rate limit capacity is being used
(From shortcut: 51291)