mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
Use debug logging for scheduler internals
We currently log an error if preemption is unable to find a suitable set of allocations to preempt. This commit changes that to debug level since not finding preemptable allocations is not an error condition.
This commit is contained in:
@@ -243,7 +243,7 @@ OUTER:
|
||||
|
||||
netPreemptions := preemptor.PreemptForNetwork(ask, netIdx)
|
||||
if netPreemptions == nil {
|
||||
iter.ctx.Logger().Named("binpack").Error("preemption not possible ", "network_resource", ask)
|
||||
iter.ctx.Logger().Named("binpack").Debug("preemption not possible ", "network_resource", ask)
|
||||
netIdx.Release()
|
||||
continue OUTER
|
||||
}
|
||||
@@ -307,7 +307,7 @@ OUTER:
|
||||
|
||||
netPreemptions := preemptor.PreemptForNetwork(ask, netIdx)
|
||||
if netPreemptions == nil {
|
||||
iter.ctx.Logger().Named("binpack").Error("preemption not possible ", "network_resource", ask)
|
||||
iter.ctx.Logger().Named("binpack").Debug("preemption not possible ", "network_resource", ask)
|
||||
netIdx.Release()
|
||||
continue OUTER
|
||||
}
|
||||
@@ -352,7 +352,7 @@ OUTER:
|
||||
devicePreemptions := preemptor.PreemptForDevice(req, devAllocator)
|
||||
|
||||
if devicePreemptions == nil {
|
||||
iter.ctx.Logger().Named("binpack").Error("preemption not possible", "requested_device", req)
|
||||
iter.ctx.Logger().Named("binpack").Debug("preemption not possible", "requested_device", req)
|
||||
netIdx.Release()
|
||||
continue OUTER
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user