-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Heartbeat] The /tmp
folder doesn’t seem to be getting cleaned up
#35646
Comments
Pinging @elastic/uptime (Team:Uptime) |
Quick update, Private Location still running and can see
Which corresponds with the |
Hmmmm, I've just confirmed that file based reload does correctly reload the monitor with delete, I'll keep investigating. Perhaps it is only on agent that this fails (that's much harder to debug) |
@andrewvc heartbeat is not cleaning the unzipped folder for project monitors after every run. Considering it fetches the source for every run, it adds up. It doesn't seem to be an agent issue |
Fixes #35646 by only unpacking project monitors once. This fixes the ever growing temp folder issue and is more efficient to boot. Previously we would call fetch on a monitor source every time it was run, but only cleanup the fetched resource once, when the monitor was unloaded. We now fetch once and cleanup once. This project also fixes the very confusing issue of two files browser/project.go and browser/source/project.go, we have renamed browser/project.go to browser/sourcejob.go which makes reasoning about this change simpler.
Fixes #35646 by only unpacking project monitors once. This fixes the ever growing temp folder issue and is more efficient to boot. Previously we would call fetch on a monitor source every time it was run, but only cleanup the fetched resource once, when the monitor was unloaded. We now fetch once and cleanup once. This project also fixes the very confusing issue of two files browser/project.go and browser/source/project.go, we have renamed browser/project.go to browser/sourcejob.go which makes reasoning about this change simpler. (cherry picked from commit f7111dc)
Fixes #35646 by only unpacking project monitors once. This fixes the ever growing temp folder issue and is more efficient to boot. Previously we would call fetch on a monitor source every time it was run, but only cleanup the fetched resource once, when the monitor was unloaded. We now fetch once and cleanup once. This project also fixes the very confusing issue of two files browser/project.go and browser/source/project.go, we have renamed browser/project.go to browser/sourcejob.go which makes reasoning about this change simpler. (cherry picked from commit f7111dc) Co-authored-by: Andrew Cholakian <[email protected]>
Moving to Done Done as it's been validate by @paulb-elastic and myself. |
We are observing that the
/tmp
folder within the running container of an Elastic Agent being used for a Private Location, is continually growing and may eventually cause the host to fill up.This has been observed with both 8.7.0 and 8.8.0, where
/tmp
is growing ~40MB per day (on an example Private Location running 5 browser monitors, 3 of which run every 5 minutes, 2 of which run every 3 minutes).Looking at
/tmp
on the running container, there are manyelastic-synthetics-unzip-nnnn
subfolders, for example:The text was updated successfully, but these errors were encountered: