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

ConfigMap informer should only watch --asm-configmap-based-config-nam… #1780

Merged
merged 1 commit into from
Aug 12, 2022

Conversation

bowei
Copy link
Member

@bowei bowei commented Aug 12, 2022

ConfigMap informer should only watch --asm-configmap-based-config-namespace

This avoids making total ConfigMap size part of the scalability
profile of the controller.

Testing: Manual

  • hack/run-local-glbc.sh --enable-asm-config-map-config
    -v=3 --asm-configmap-based-config-namespace=default
  • Created ConfigMaps in default namespace.
  • Observed only updates to the default namespace ConfigMaps were being
    observed in the controller.

Notes

One interesting thing to note is that watching kube-system has a
non-trivial amount of constant activity due to leader election leases.
This can cause CPU usage if there are a large number of components
running leader election using the same namespace.

…espace

This avoids making total ConfigMap size part of the scalability
profile of the controller.

Testing: Manual

- hack/run-local-glbc.sh --enable-asm-config-map-config \
-v=3 --asm-configmap-based-config-namespace=default
- Created ConfigMaps in `default` namespace.
- Observed only updates to the default namespace ConfigMaps were being
observed in the controller.

Notes

One interesting thing to note is that watching kube-system has a
non-trivial amount of constant activity due to leader election leases.
This can cause CPU usage if there are a large number of components
running leader election using the same namespace.
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 12, 2022
@bowei
Copy link
Member Author

bowei commented Aug 12, 2022

/assign @spencerhance @swetharepakula

@k8s-ci-robot
Copy link
Contributor

@bowei: GitHub didn't allow me to assign the following users: spencerhance.

Note that only kubernetes members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

In response to this:

/assign @spencerhance @swetharepakula

Instructions 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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 12, 2022
@swetharepakula
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 12, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bowei, swetharepakula

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:
  • OWNERS [bowei,swetharepakula]

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

@k8s-ci-robot k8s-ci-robot merged commit 099c1e3 into kubernetes:master Aug 12, 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. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants