kcp icon indicating copy to clipboard operation
kcp copied to clipboard

WIP: ✨ Fix CPU consumption

Open PavitraS opened this issue 1 year ago • 9 comments

Summary

Encountering performance challenges with KCP when dealing with just 100 workspaces. The issues are attributed to

  1. protomodels,
  2. CR CEL validation, and
  3. quota controller.

In an effort to provide a solution, this commit disables the following functionalities:

  1. Disabling openapi.ToProtoModels.
  2. Disabling CR validation expression feature.
  3. Disabling the quota controller.

Related issue(s)

Fixes #3063

Release Notes

TODO: before merge

NONE

PavitraS avatar Dec 18 '23 08:12 PavitraS

Hi @PavitraS. Thanks for your PR.

I'm waiting for a kcp-dev member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

kcp-ci-bot avatar Dec 18 '23 08:12 kcp-ci-bot

/ok-to-test

@PavitraS can you also attach the heap profile here along with a screengrab of the hot paths?

palnabarun avatar Dec 18 '23 09:12 palnabarun

This PR is targeting release-0.21. Can we please propose merging it into main first and then see if we want to back port it?

embik avatar Dec 18 '23 11:12 embik

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign sttts for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

kcp-ci-bot avatar Dec 18 '23 16:12 kcp-ci-bot

/ok-to-test

PavitraS avatar Dec 19 '23 04:12 PavitraS

What are the consequences?

No way to fix the root causes?

sttts avatar Dec 26 '23 12:12 sttts

Issues go stale after 90d of inactivity. After a furter 30 days, they will turn rotten. Mark the issue as fresh with /remove-lifecycle stale.

If this issue is safe to close now please do so with /close.

/lifecycle stale

kcp-ci-bot avatar Apr 22 '24 08:04 kcp-ci-bot

/remove-lifecycle stale

Keeping this open as it is a good reminder of the work to be done.

sttts avatar Apr 23 '24 07:04 sttts

Issues go stale after 90d of inactivity. After a furter 30 days, they will turn rotten. Mark the issue as fresh with /remove-lifecycle stale.

If this issue is safe to close now please do so with /close.

/lifecycle stale

kcp-ci-bot avatar Jul 22 '24 08:07 kcp-ci-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

kcp-ci-bot avatar Aug 21 '24 08:08 kcp-ci-bot

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

/close

kcp-ci-bot avatar Sep 20 '24 08:09 kcp-ci-bot

@kcp-ci-bot: Closed this PR.

In response to this:

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

/close

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.

kcp-ci-bot avatar Sep 20 '24 08:09 kcp-ci-bot