func setSandboxResources(hc *dockercontainer.HostConfig) { hc.Resources = dockercontainer.Resources{ MemorySwap: -1, // Always disable memory swap. CPUShares: defaultSandboxCPUshares, // Use docker's default cpu quota/period. } hc.OomScoreAdj = defaultSandboxOOMScore }
func setSandboxResources(hc *dockercontainer.HostConfig) { hc.Resources = dockercontainer.Resources{ MemorySwap: -1, // Always disable memory swap. CPUShares: defaultSandboxCPUshares, // Use docker's default cpu quota/period. } // TODO: Get rid of the dependency on kubelet internal package. hc.OomScoreAdj = qos.PodInfraOOMAdj }
func setSandboxResources(_ *runtimeApi.PodSandboxResources, hc *dockercontainer.HostConfig) { // Ignore the resource requests and limits for now and just use the docker // defaults. // TODO: apply resource limits based on the configuration. hc.Resources = dockercontainer.Resources{ MemorySwap: -1, // Always disable memory swap. CPUShares: defaultSandboxCPUshares, // Use docker's default cpu quota/period. } hc.OomScoreAdj = defaultSandboxOOMScore }