-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(checker): Do not fetch extra metric data before lastCheckTimestamp
lastCheck.Timestamp denotes a most recent point in time when a trigger was checked. While checking trigger, we are interested only in metric points after lastCheck.Timestamp, because all previous points should have been checked during the previous check. There is no obvious reason to fetch more historical data points. At least, there is no test that shows why we should do that. Why is this bad? Because we don't have any limits on TTL value set by user. Trying to fetch 1e15 metric points from a data source leads to OOM death of all checker instances. Close #190
- Loading branch information
Showing
2 changed files
with
5 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters