mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
core: plumbing to support numa aware scheduling (#18681)
* core: plumbing to support numa aware scheduling * core: apply node resources compatibility upon fsm rstore Handle the case where an upgraded server dequeus an evaluation before a client triggers a new fingerprint - which would be needed to cause the compatibility fix to run. By running the compat fix on restore the server will immediately have the compatible pseudo topology to use. * lint: learn how to spell pseudo
This commit is contained in:
@@ -1163,7 +1163,7 @@ func (tr *TaskRunner) buildTaskConfig() *drivers.TaskConfig {
|
||||
MemoryLimitBytes: memoryLimit * 1024 * 1024,
|
||||
CPUShares: taskResources.Cpu.CpuShares,
|
||||
CpusetCpus: strings.Join(cpusetCpus, ","),
|
||||
PercentTicks: float64(taskResources.Cpu.CpuShares) / float64(tr.clientConfig.Node.NodeResources.Cpu.CpuShares),
|
||||
PercentTicks: float64(taskResources.Cpu.CpuShares) / float64(tr.clientConfig.Node.NodeResources.Processors.Topology.UsableCompute()),
|
||||
},
|
||||
Ports: &ports,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user