mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Fix the confusing kubelet logs about imageGC
This commit is contained in:
parent
ba66014fec
commit
613f572caf
@ -297,7 +297,7 @@ func (im *realImageGCManager) GarbageCollect() error {
|
|||||||
usagePercent := 100 - int(available*100/capacity)
|
usagePercent := 100 - int(available*100/capacity)
|
||||||
if usagePercent >= im.policy.HighThresholdPercent {
|
if usagePercent >= im.policy.HighThresholdPercent {
|
||||||
amountToFree := capacity*int64(100-im.policy.LowThresholdPercent)/100 - available
|
amountToFree := capacity*int64(100-im.policy.LowThresholdPercent)/100 - available
|
||||||
glog.Infof("[imageGCManager]: Disk usage on image filesystem is at %d%% which is over the high threshold (%d%%). Trying to free %d bytes", usagePercent, im.policy.HighThresholdPercent, amountToFree)
|
glog.Infof("[imageGCManager]: Disk usage on image filesystem is at %d%% which is over the high threshold (%d%%). Trying to free %d bytes down to the low threshold (%d%%).", usagePercent, im.policy.HighThresholdPercent, amountToFree, im.policy.LowThresholdPercent)
|
||||||
freed, err := im.freeSpace(amountToFree, time.Now())
|
freed, err := im.freeSpace(amountToFree, time.Now())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user