weaveworks / scope

Monitoring, visualisation & management for Docker & Kubernetes
https://www.weave.works/oss/scope/
Apache License 2.0
5.86k stars 714 forks source link

Stop reporting dead containers once they are past a certain age #3211

Open bboreham opened 6 years ago

bboreham commented 6 years ago

Sparked by a user report of high CPU usage from the Scope probe, which was linked to there being lots of dead containers on that node. At present, Scope reports all Docker containers, alive or dead, and if the situation was that your container just died, then you'd probably want to know about it - the status code, etc.

However, some time later, it's probably less interesting. Life goes on.

rade commented 6 years ago

How long? Enough to enable investigation after a long weekend, so about 4 days?

bboreham commented 5 years ago

Just had another one, with 21,000 dead containers, which were all between 2 and 3 days dead.