Clearing out expired ObjectChanges can cause HTTP worker memory consumption to balloon #6056
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
NetBox version
v2.10.6
Python version
3.8
Steps to Reproduce
time
is before the cutoff, then the memory required to load all those objects before deleting them will cause the HTTP worker process to use a lot of memory, potentially causing all manner of unpleasantness.Expected Behavior
Preferably, log trimming would be moved out of the HTTP service path altogether, because running a potentially expensive query (only sometimes) when you're trying to respond quickly to HTTP requests is a great way to make your p99 stats look really bad. At the very least, though, the query needs to be a straight-up
DELETE FROM ... WHERE ...
, rather than a load-then-delete.Observed Behavior
Much memory. Very OOM.
The text was updated successfully, but these errors were encountered: