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

Capture Provider memory footprint with releases #151

Closed
plumbis opened this issue Jan 20, 2023 · 2 comments
Closed

Capture Provider memory footprint with releases #151

plumbis opened this issue Jan 20, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@plumbis
Copy link

plumbis commented Jan 20, 2023

What problem are you facing?

Each provider release adds more coverage and more CRDs. This increases the memory footprint of the kube-apiserver.

It's not obvious what the impact of a new provider or upgraded provider is going to have on an existing apiserver since we don't publish memory footprints.

How could Upjet help solve your problem?

When new providers are released they should include a captured kube-apiserver memory footprint (i.e., kubectl top pods). This came out of an issue seen with upbound/provider-aws where changing provider versions exhausted the memory on an undersized apiserver.

v0.27.0

kubectl top pod kube-apiserver-kubecontroller-01 -n kube-system
NAME                               CPU(cores)   MEMORY(bytes)
kube-apiserver-kubecontroller-01   70m          3120Mi

v0.17.0

kubectl top pod kube-apiserver-kubecontroller-01 -n kube-system
NAME                               CPU(cores)   MEMORY(bytes)
kube-apiserver-kubecontroller-01   89m          1668Mi
@plumbis plumbis added the enhancement New feature or request label Jan 20, 2023
@mjnovice
Copy link

Hey @plumbis we are facing something similar when we are trying to run multiple crossplane pods in vcluster environments. Is there a way we can have accountability on why the memory consumption is so high ? Do let me know your thoughts ? Thanks.

@jeanduplessis
Copy link
Collaborator

jeanduplessis commented Jan 16, 2024

This issue outdated after the adoption of the Provider Family architecture, https://github.com/crossplane/crossplane/blob/master/design/design-doc-smaller-providers.md, which was introduced in Upjet v0.9.0.

The use of the large monolithic provider packages for AWS, GCP and Azure is discouraged as the Kubernetes API server does not handle the large number of CRDs efficiently yet.

@jeanduplessis jeanduplessis closed this as not planned Won't fix, can't repro, duplicate, stale Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants