mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 18:00:08 +00:00
node: memory-mgr: Update log levels and add logs to capture state update
Signed-off-by: Swati Sehgal <swsehgal@redhat.com>
This commit is contained in:
parent
34fd61a3ef
commit
07d83acce5
@ -344,7 +344,7 @@ func (m *manager) removeStaleState() {
|
|||||||
for podUID := range assignments {
|
for podUID := range assignments {
|
||||||
for containerName := range assignments[podUID] {
|
for containerName := range assignments[podUID] {
|
||||||
if _, ok := activeContainers[podUID][containerName]; !ok {
|
if _, ok := activeContainers[podUID][containerName]; !ok {
|
||||||
klog.InfoS("RemoveStaleState removing state", "podUID", podUID, "containerName", containerName)
|
klog.V(2).InfoS("RemoveStaleState removing state", "podUID", podUID, "containerName", containerName)
|
||||||
m.policyRemoveContainerByRef(podUID, containerName)
|
m.policyRemoveContainerByRef(podUID, containerName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -352,7 +352,7 @@ func (m *manager) removeStaleState() {
|
|||||||
|
|
||||||
m.containerMap.Visit(func(podUID, containerName, containerID string) {
|
m.containerMap.Visit(func(podUID, containerName, containerID string) {
|
||||||
if _, ok := activeContainers[podUID][containerName]; !ok {
|
if _, ok := activeContainers[podUID][containerName]; !ok {
|
||||||
klog.InfoS("RemoveStaleState removing state", "podUID", podUID, "containerName", containerName)
|
klog.V(2).InfoS("RemoveStaleState removing state", "podUID", podUID, "containerName", containerName)
|
||||||
m.policyRemoveContainerByRef(podUID, containerName)
|
m.policyRemoveContainerByRef(podUID, containerName)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
@ -94,6 +94,7 @@ func (s *stateMemory) SetMemoryAssignments(assignments ContainerMemoryAssignment
|
|||||||
defer s.Unlock()
|
defer s.Unlock()
|
||||||
|
|
||||||
s.assignments = assignments.Clone()
|
s.assignments = assignments.Clone()
|
||||||
|
klog.V(5).InfoS("Updated Memory assignments", "assignments", assignments)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Delete deletes corresponding Blocks from ContainerMemoryAssignments
|
// Delete deletes corresponding Blocks from ContainerMemoryAssignments
|
||||||
|
Loading…
Reference in New Issue
Block a user