FiloDB
FiloDB copied to clipboard
feat(query): add TenantIngestionMetering query throttle
Pull Request checklist
- [x] The commit(s) message(s) follows the contribution guidelines ?
- [x] Tests for the changes have been added (for bug fixes / features) ?
- [ ] Docs have been added / updated (for bug fixes / features) ?
Current behavior :
TenantIngestionMetering
queries might consistently take longer than the static timeout duration. No timeseries would be published.
New behavior : Adds a throttling subclass to monitor query timeouts. This class adjusts the query frequency and timeout duration according to the count of timeouts in a lookback window.