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

Avoid instantiating separate pod store for every object managed by clusterloader attempt #3 #2103

Merged
merged 2 commits into from
Jul 18, 2022

Conversation

mborsz
Copy link
Member

@mborsz mborsz commented Jul 14, 2022

Based on #2056 and #2016

Compared to #2056 it creates a single informer for all WaitForControlledPodsRunning instances (we have 4 such instances in load test) which cuts memory 4x, which makes memory consumption close to what we had before this PR (approx ~10% growth).

To improve cpu usage it performs indexing by ownerReference and uses it as a hint to find pods related to a given controller.

Comparison of resource consumption by pod running a 5k node test:
Cpu

  • With this PR:
    image

  • Baseline:
    image

Memory

  • With this PR:
    image
  • Baseline
    image

So CPU usage is comparable to baseline and memory consumption grows from 10GiB to 12 GiB (16Gi is used as a limit for 5k tests).

/kind feature
/assign @wojtek-t

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. kind/feature Categorizes issue or PR as related to a new feature. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 14, 2022
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 14, 2022
@mborsz mborsz force-pushed the pprof2 branch 3 times, most recently from 2d65767 to 8e0bc3f Compare July 15, 2022 14:03
@mborsz
Copy link
Member Author

mborsz commented Jul 15, 2022

/hold cancel
/retest

I updated the PR description with 5k node test results.
The PR is ready for review.

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 15, 2022
Copy link
Member

@wojtek-t wojtek-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this approach - just added two more technical comments.

…usterloader

Co-authored-by: Wojciech Tyczynski <wojtekt@google.com>
@mborsz
Copy link
Member Author

mborsz commented Jul 18, 2022

PTAL

@wojtek-t
Copy link
Member

/lgtm
/approve

/hold
@mborsz - cancel hold when you will be ready (not sure if you still wanted to run some larger scale tests)

@k8s-ci-robot k8s-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lgtm "Looks good to me", indicates that a PR is ready to be merged. labels Jul 18, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mborsz, wojtek-t

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mborsz
Copy link
Member Author

mborsz commented Jul 18, 2022

/hold cancel

The test results in 5k are already in first comment.
/cc @jupblb

@k8s-ci-robot k8s-ci-robot requested a review from jupblb July 18, 2022 12:08
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 18, 2022
@k8s-ci-robot k8s-ci-robot merged commit e0d84d4 into kubernetes:master Jul 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants