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

use standalone tcp for health checker #459

Merged

Conversation

Iceber
Copy link
Member

@Iceber Iceber commented Nov 17, 2022

Signed-off-by: Iceber Gu wei.cai-nat@daocloud.io

What type of PR is this?

/kind feature

What this PR does / why we need it:
When client-go creates any number of Clients with the same configuration, such as certificates, it reuses the same TCP connection.
https://github.com/kubernetes/kubernetes/blob/3f823c0daa002158b12bfb2d53bcfe433516659d/staging/src/k8s.io/client-go/transport/transport.go#L54

This results in the cluster health check interface using the same TCP connection as the resource synchronized informer, which may cause TCP blocking and increased health check latency if a large number of informers are started for the first time.
We add a feature gate - HealthCheckerWithStandaloneTCP to allow users to use a standalone tcp for health checks

./clustersynchro-manager --feature-gates=HealthCheckerWithStandaloneTCP=true

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@clusterpedia-bot
Copy link

Hi @Iceber,
Thanks for your pull request!
If the PR is ready, use the /auto-cc command to assign Reviewer to Review.
We will review it shortly.

Details

Instructions for interacting with me using comments are available here.
If you have questions or suggestions related to my behavior, please file an issue against the gh-ci-bot repository.

@clusterpedia-bot clusterpedia-bot added the kind/feature New feature label Nov 17, 2022
@Iceber
Copy link
Member Author

Iceber commented Nov 17, 2022

@cleverhu PTAL

@Iceber Iceber force-pushed the health_checker_with_standalone_tcp branch from 963b109 to 5106527 Compare November 17, 2022 08:23
@Iceber Iceber changed the title use alone tcp for health checker use standalone tcp for health checker Nov 17, 2022
@Iceber Iceber closed this Nov 17, 2022
@Iceber Iceber reopened this Nov 17, 2022
@Iceber Iceber force-pushed the health_checker_with_standalone_tcp branch from 5106527 to e37da13 Compare November 17, 2022 09:38
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
@Iceber Iceber force-pushed the health_checker_with_standalone_tcp branch from e37da13 to d08c4b3 Compare November 17, 2022 09:44
@cleverhu
Copy link

/LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants