@@ -11,19 +11,20 @@ import (
1111// on metrics we have collected from internal use. You can override these values by setting
1212// the corresponding environment variable.
1313var (
14- mi = int64 (1_048_576 ) // 1 MiB in bytes
14+ mi = int64 (1 << 20 ) // 1 MiB in bytes
15+ gi = int64 (1 << 30 ) // 1 GiB in bytes.
1516
16- registryMemoryRequest = * resource .NewQuantity (40 * mi , resource .BinarySI ) // REGISTRY_MEMORY_REQUEST
17- registryMemoryLimit = * resource .NewQuantity (80 * mi , resource .BinarySI ) // REGISTRY_MEMORY_LIMIT
18- registryCPURequest = * resource .NewMilliQuantity (50 , resource .DecimalSI ) // REGISTRY_CPU_REQUEST
17+ registryMemoryRequest = * resource .NewQuantity (128 * mi , resource .BinarySI ) // REGISTRY_MEMORY_REQUEST
18+ registryMemoryLimit = * resource .NewQuantity (512 * mi , resource .BinarySI ) // REGISTRY_MEMORY_LIMIT
19+ registryCPURequest = * resource .NewMilliQuantity (200 , resource .DecimalSI ) // REGISTRY_CPU_REQUEST
1920
20- buildkitdMemoryRequest = * resource .NewQuantity (100 * mi , resource .BinarySI ) // BUILDKITD_MEMORY_REQUEST
21- buildkitdMemoryLimit = * resource .NewQuantity (200 * mi , resource .BinarySI ) // BUILDKITD_MEMORY_LIMIT
22- buildkitdCPURequest = * resource .NewMilliQuantity (50 , resource .DecimalSI ) // BUILDKITD_CPU_REQUEST
21+ buildkitdMemoryRequest = * resource .NewQuantity (256 * mi , resource .BinarySI ) // BUILDKITD_MEMORY_REQUEST
22+ buildkitdMemoryLimit = * resource .NewQuantity (1 * gi , resource .BinarySI ) // BUILDKITD_MEMORY_LIMIT
23+ buildkitdCPURequest = * resource .NewMilliQuantity (800 , resource .DecimalSI ) // BUILDKITD_CPU_REQUEST
2324
24- buildkitdServiceMemoryRequest = * resource .NewQuantity (70 * mi , resource .BinarySI ) // BUILDKITD_SERVICE_MEMORY_REQUEST
25- buildkitdServiceMemoryLimit = * resource .NewQuantity (140 * mi , resource .BinarySI ) // BUILDKITD_SERVICE_MEMORY_LIMIT
26- buildkitdServiceCPURequest = * resource .NewMilliQuantity (50 , resource .DecimalSI ) // BUILDKITD_SERVICE_CPU_REQUEST
25+ buildkitdServiceMemoryRequest = * resource .NewQuantity (128 * mi , resource .BinarySI ) // BUILDKITD_SERVICE_MEMORY_REQUEST
26+ buildkitdServiceMemoryLimit = * resource .NewQuantity (256 * mi , resource .BinarySI ) // BUILDKITD_SERVICE_MEMORY_LIMIT
27+ buildkitdServiceCPURequest = * resource .NewMilliQuantity (200 , resource .DecimalSI ) // BUILDKITD_SERVICE_CPU_REQUEST
2728)
2829
2930func RegistryResources () corev1.ResourceRequirements {
0 commit comments