Improve performance characteristic of selinux metric emission#138981
Improve performance characteristic of selinux metric emission#138981gnufied wants to merge 1 commit into
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gnufied The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
/sig storage |
|
/kind bug |
| // GetConflicts returns the current set of active conflicts (both directions, symmetric pairs). | ||
| func (c *volumeCache) GetConflicts(logger klog.Logger) []Conflict { |
There was a problem hiding this comment.
how does this change relate to "costly comparisons during selinux metric emission"?
There was a problem hiding this comment.
hmm, I thought it is pretty obvious. GetConflicts simply returns only cached conflicts. No comparisons, no iterating through list of pods and volumes. We do trade some memory usage for improved performance in metric collection path.
|
/test help |
|
/test pull-kubernetes-e2e-gce-storage-selinux |
|
/retest |
Avoid costly comparisons during selinux metric emission.