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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃尡 Introduce a new runnable group for basic servers of the manager #2337

Merged

Conversation

zqzten
Copy link
Member

@zqzten zqzten commented May 22, 2023

This PR introduces a new runnable group for basic servers (health probes, metrics and pprof server) of the manager and make it start before any other runnables. This can resolve the cyclic dependency issue after we changing these servers to runnables.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 22, 2023
@zqzten
Copy link
Member Author

zqzten commented May 22, 2023

cc @sbueringer plz double check if this works under your case, thanks

@sbueringer
Copy link
Member

sbueringer commented May 22, 2023

I'll take a look soon, but I would delay merging it until after the v0.15 release (just because we don't strictly need it ASAP + it is a risk directly before the release)

@vincepri
Copy link
Member

Is there a specific problem we're trying to solve to have the servers in a runnable group?

@zqzten
Copy link
Member Author

zqzten commented May 23, 2023

Is there a specific problem we're trying to solve to have the servers in a runnable group?

Yep, if we don't have them in a specific runnable group, they would be added to the Others runnable group by default, which would be started after the caches are ready. This can lead to this cyclic dependency issue.

In a word, we need to have the servers in a specific runnable group which would be started first (at least before the Caches runnable group) in order to keep the same start order as which before they become Runnables.

@sbueringer
Copy link
Member

sbueringer commented May 23, 2023

I think Vince might be more asking why should it be a runnable vs the current state.

To answer that, @vincepri this goes back to #1943 (comment)

@zqzten zqzten force-pushed the basic_servers_runnable_group branch from 5f9b66d to ad70da2 Compare May 25, 2023 03:05
@zqzten zqzten requested a review from vincepri May 25, 2023 06:11
@sbueringer
Copy link
Member

sbueringer commented Jul 23, 2023

Took me a while to find some time to work on the test. But there's now a PR up to ensure we don't hit deadlocks during manager.Start: #2418

We should probably merge #2418 before this PR

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: vincepri, zqzten

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:

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 28, 2023
@k8s-ci-robot k8s-ci-robot merged commit 1000fac into kubernetes-sigs:main Jul 28, 2023
9 checks passed
@sbueringer
Copy link
Member

/lgtm

@zqzten zqzten deleted the basic_servers_runnable_group branch July 30, 2023 14:30
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/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

4 participants