MCPcopy Create free account
hub / github.com/apache/mesos / checkImageDiskUsage

Method checkImageDiskUsage

src/slave/slave.cpp:7693–7700  ·  view source on GitHub ↗

TODO(gilbert): Consider to read the Image GC config dynamically. For now, the Image GC config can only be updated after the agent restarts.

Source from the content-addressed store, hash-verified

7691// For now, the Image GC config can only be updated after the agent
7692// restarts.
7693void Slave::checkImageDiskUsage()
7694{
7695 // TODO(gilbert): Container image gc is supported for docker image
7696 // in Mesos Containerizer for now. Add more image store gc supports
7697 // if necessary.
7698 Future<double>(::fs::usage(flags.docker_store_dir))
7699 .onAny(defer(self(), &Slave::_checkImageDiskUsage, lambda::_1));
7700}
7701
7702
7703void Slave::_checkImageDiskUsage(const Future<double>& usage)

Callers

nothing calls this directly

Calls 2

deferFunction · 0.85
usageFunction · 0.50

Tested by

no test coverage detected