Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trim unneeded fields stored in informers to reduce memory footprint #6317

Merged
merged 1 commit into from
May 15, 2024

Commits on May 15, 2024

  1. Trim unneeded fields stored in informers to reduce memory footprint

    Unused fields stored in informers can occupy significant memory usage.
    The informer provides a transformer func to allow mutating the objects
    before they are stored, via which we can trim unneeded fields.
    
    In general, managedFields is never used for all types of objects. In
    addition, we trim some unneeded fields from Pod objects given their
    unused fields take the most considerable space.
    
    It can reduce the memory usage of 1k simple Pod by approximately 5m.
    
    Signed-off-by: Quan Tian <quan.tian@broadcom.com>
    tnqn committed May 15, 2024
    Configuration menu
    Copy the full SHA
    278458c View commit details
    Browse the repository at this point in the history