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

Refactor scheduler server #1911

Merged
merged 1 commit into from
Mar 5, 2022
Merged

Refactor scheduler server #1911

merged 1 commit into from
Mar 5, 2022

Conversation

yahoNanJing
Copy link
Contributor

Which issue does this PR close?

Closes #1908.

Rationale for this change

Reorganize the scheduler contents for better code review and easy feature additions.

What changes are included in this PR?

The following separate mod are extracted from the scheduler contents:

  • external_scaler, for exposing scheduler internal metrics
  • grpc, for grpc service

Are there any user-facing changes?

Copy link
Contributor

@thinkharderdev thinkharderdev left a comment

Choose a reason for hiding this comment

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

Looks great!

}
let mut num_tasks = 0;
loop {
info!("Go inside fetching task loop");
Copy link
Contributor

Choose a reason for hiding this comment

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

realize you didn't add this here, but can we change this to debug level? could add a lot of noise to the logs

@alamb
Copy link
Contributor

alamb commented Mar 5, 2022

Rather than allow PRs to accumulate, I'll merge them in as they seem uncontroversial and have been reviewed. We can always continue reorganizing as we move forward.

Thanks @yahoNanJing for the code and @thinkharderdev for the review

@alamb
Copy link
Contributor

alamb commented Mar 5, 2022

cc @realno @liukun4515

@alamb alamb merged commit bb64680 into apache:master Mar 5, 2022
@liukun4515
Copy link
Contributor

cc @realno @liukun4515

I go through this pull request, and it's just split the code into some separated files.
looks good to me.

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.

[Ballista] Refactor ballista scheduler server
5 participants