code: func GetAppsResources(apps schema.AppList) (totalCpus, totalMem int64) {
  	cpusSpecified := false
  	for i := range apps {
  		ra := &apps[i]
  		app := ra.App
  		mem, cpus := findResources(app.Isolators)
  		cpusSpecified = cpusSpecified || cpus != 0
  		totalCpus += cpus
  		totalMem += mem
  	}
  	// In case when number of specified cpus is greater than
  	// number or when cpus aren't specified, we set number
  	// of logical cpus as a limit.
  	availableCpus := int64(runtime.NumCPU())
  	if !cpusSpecified || totalCpus > availableCpus {
  		totalCpus = availableCpus
  	}
  
  	// Add an overhead for the VM system
  	totalMem += systemMemOverhead
  
  	// Always ensure we have at least the minimum RAM needed
  	if totalMem < minMem {
  		totalMem = minMem
  	}
  
  	return totalCpus, totalMem
  }
docs: // GetAppsResources returns values specified by user in pod-manifest.
  // Function expects a podmanifest apps.
  // Return aggregate quantity of mem (in MB) and cpus.