Skip to content

Add functionality for custom housekeeping interval per controller type #3738

@sambhav-jain-16

Description

@sambhav-jain-16

Current we have a single interval for all controller's metrics in the housekeeping logic. However, there are cases where we want some metrics to be collected more frequently that the others. If we run all stats with the lowest interval, it is putting a lot of stress on cadvisor and due to unified hierarchy and in turn a single root filesystem lock for all controllers in cgroupv2, the more we read, the more we increase stress of the single lock. This becomes specially evident when there are writes in cgroup directory by other agents.

I propose we can add a functionality to add a per controller housekeeping interval.
From what I know, the current libcontainer library doesn't contain the implementation of getting per controller type metric, I have also raised an issue in the repo opencontainers/cgroups#44 to tackle it.

I'm open to contribute if the maintainers agree to this proposal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions