Added a flag conversion protobuf message 'ImageGcConfig'. Review: https://reviews.apache.org/r/64265
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/5c557700 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/5c557700 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/5c557700 Branch: refs/heads/master Commit: 5c5577004de4ff5cea16e0719de0ff08798384ea Parents: 1f164fb Author: Gilbert Song <[email protected]> Authored: Tue Nov 21 16:28:57 2017 -0800 Committer: Gilbert Song <[email protected]> Committed: Wed Dec 6 12:04:19 2017 -0800 ---------------------------------------------------------------------- src/messages/flags.proto | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/5c557700/src/messages/flags.proto ---------------------------------------------------------------------- diff --git a/src/messages/flags.proto b/src/messages/flags.proto index 7ae9ef8..5690914 100644 --- a/src/messages/flags.proto +++ b/src/messages/flags.proto @@ -105,3 +105,20 @@ message ContainerDNSInfo { message SlaveCapabilities { repeated SlaveInfo.Capability capabilities = 1; } + + +// Describe the configuration for container image garbage collection. +message ImageGcConfig { + // The image disk headroom used to calculate the threshold of container + // image store size. Image garbage collection will be triggered automatically + // if the image disk usage reaches that threshold. Please note that the + // headroom value has to be between 0.0 and 1.0. + required double image_disk_headroom = 1; + + // The periodic time interval to check the image store disk usage. Please + // note that the unit of this time interval is 'nanosecond'. + required DurationInfo image_disk_watch_interval = 2; + + // The excluded image list that should not be garbage collected. + repeated Image excluded_images = 3; +}
