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

Improve access to member-cluster resources that use pb/json protocol … #4936

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wangxf1987
Copy link
Contributor

@wangxf1987 wangxf1987 commented May 13, 2024

…and allow users to set qps, burst values.

What type of PR is this?

/kind feature
What this PR does / why we need it:
In the large cluster, reasonable qps and burst values need to be set when accessing resources. to improve speed to resources.And use the pb/jsion protocol to improve the communication speed of sub-clusters for resources.

We design a compatibiity processing. when a null pointer is passed in qps and burst are not set.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

In the large cluster, reasonable qps and burst values need to be set when accessing resources. to improve speed to resources.And use the pb/jsion protocol to improve the communication speed of sub-clusters for resources.

@karmada-bot karmada-bot added the kind/feature Categorizes issue or PR as related to a new feature. label May 13, 2024
@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign xishanyongye-chang after the PR has been reviewed.
You can assign the PR to them by writing /assign @xishanyongye-chang in a comment when ready.

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

@karmada-bot karmada-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label May 13, 2024
Signed-off-by: wangxiaofei67 <wangxiaofei67@jd.com>
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 42.10526% with 11 lines in your changes are missing coverage. Please review.

Project coverage is 53.17%. Comparing base (3232c52) to head (f4c8fc5).
Report is 76 commits behind head on master.

Files Patch % Lines
pkg/util/membercluster_client.go 31.25% 5 Missing and 6 partials ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4936      +/-   ##
==========================================
+ Coverage   53.05%   53.17%   +0.11%     
==========================================
  Files         250      252       +2     
  Lines       20396    20520     +124     
==========================================
+ Hits        10822    10911      +89     
- Misses       8855     8884      +29     
- Partials      719      725       +6     
Flag Coverage Δ
unittests 53.17% <42.10%> (+0.11%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@wangxf1987
Copy link
Contributor Author

/retest

@karmada-bot
Copy link
Collaborator

@wangxf1987: Cannot trigger testing until a trusted user reviews the PR and leaves an /ok-to-test message.

In response to this:

/retest

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.

@RainbowMango
Copy link
Member

Just retested it manually. Sorry for the inconvenience.

The /retest command is not working now, but we are working on it.

Another way to retrigger the test is to rebase PR and force push again.

@zhzhuang-zju
Copy link
Contributor

/retest

Copy link
Contributor

@zhzhuang-zju zhzhuang-zju left a comment

Choose a reason for hiding this comment

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

@wangxf1987 You may need to rebase first to bring in the changes in the master branch over time

@@ -19,8 +19,10 @@ package util
import (
"context"
"fmt"
"k8s.io/apimachinery/pkg/runtime"
Copy link
Contributor

Choose a reason for hiding this comment

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

you need to sort the import

@@ -227,6 +229,25 @@ func BuildClusterConfig(clusterName string,
}
}

if clusterConfig.ContentType != "" {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can it be split into two functions to solve the problem of excessive circle complexity?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants