in hardlimit mode, softlimit memory/2
@@ -57,6 +57,7 @@ func makeResourceSetting(cpu float64, memory int64, cpuMap types.CPUMap, softlim
} else {
resource.Memory = memory
resource.MemorySwap = memory
+ resource.MemoryReservation = memory / 2
}
return resource
}
