-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mimir query engine: add memory consumption per query limit (#8230)
* Make formatting consistent * Initial version of `LimitingPool` * Move to `operator` package * Move `FPoint` and `HPoint` pools next to `LimitingPool` * Add methods for slices of `HPoint` to `LimitingPool` * Use `LimitingPool` everywhere * Move pool to its own package and introduce interface * Move pool interface to `types` package * Add documentation for `err-mimir-max-in-memory-samples-per-query` * Add limit CLI flag and config option * Add (failing) tests * Fix linting warnings * Add another test case * Add more slice types to `LimitedPool`. * Rework limit to use estimated memory consumption, rather than a number of samples * Ensure float and bool slices are cleared. * Update tests to use bytes rather than samples limit * Add limit to list of experimental features * Add changelog entry * Fix linting warning * Fix description of error * Remove unnecessary interface and early enforcement of limit * Fix flag name * Remove unnecessary interface * Remove unused methods * Address PR feedback
- Loading branch information
1 parent
c212608
commit 45a683e
Showing
32 changed files
with
1,101 additions
and
475 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
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
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
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
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
Oops, something went wrong.