If memory is specified in config, suggest that for memory allocation

pull/7082/head
Priya Wadhwa 2020-03-17 18:07:48 -07:00
parent 07e8420c2a
commit dd707820fc
1 changed files with 3 additions and 0 deletions

View File

@ -666,6 +666,9 @@ func memoryLimits(drvName string) (int, int, error) {
// suggestMemoryAllocation calculates the default memory footprint in MB
func suggestMemoryAllocation(sysLimit int, containerLimit int) int {
if mem := viper.GetInt(memory); mem != 0 {
return mem
}
fallback := 2200
maximum := 6000