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

scheduler server add leader elect #196

Merged

Conversation

lengrongfu
Copy link
Member

@lengrongfu lengrongfu commented Mar 13, 2024

Cureent kube-scheduler and scheduler-extender can't run more than one pod because they do not use leader election, This PR adds leaderElect to controller kube-scheduler and hami-scheduler servers, whether use leader election. default: use helm .Release.Namespace value to set leader-elect-resource-namespace.

Fixes: #195

Test:

  • Start two scheduler pods; only one pod can execute the scheduler flow.
    image

  • Start three use gpu pods that can running success.
    image

@lengrongfu lengrongfu requested a review from archlitchi March 14, 2024 09:21
@lengrongfu lengrongfu marked this pull request as draft March 16, 2024 01:25
@lengrongfu lengrongfu force-pushed the feat/add-leader-elect-param branch from 3c0ea1f to a55741e Compare April 12, 2024 03:50
@lengrongfu lengrongfu marked this pull request as ready for review April 12, 2024 03:50
@lengrongfu lengrongfu force-pushed the feat/add-leader-elect-param branch from a55741e to c4556c9 Compare April 12, 2024 03:51
@lengrongfu
Copy link
Member Author

@archlitchi @wawa0210 PTAL

@lengrongfu lengrongfu force-pushed the feat/add-leader-elect-param branch from c4556c9 to 0a85cbc Compare April 22, 2024 04:09
@lengrongfu lengrongfu force-pushed the feat/add-leader-elect-param branch from 0a85cbc to d472283 Compare April 22, 2024 06:32
@archlitchi archlitchi merged commit e4a4600 into Project-HAMi:master Apr 22, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

scheduler add leader-elect param
2 participants