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

api: add a new scheduler to balance the regions of the given key range #8988

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

pass ut

d0cfc2d
Select commit
Loading
Failed to load commit list.
Open

api: add a new scheduler to balance the regions of the given key range #8988

pass ut
d0cfc2d
Select commit
Loading
Failed to load commit list.
Codecov / codecov/patch failed Jan 14, 2025 in 0s

63.00% of diff hit (target 74.91%)

View this Pull Request on Codecov

63.00% of diff hit (target 74.91%)

Annotations

Check warning on line 320 in pkg/mcs/scheduling/server/cluster.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/mcs/scheduling/server/cluster.go#L319-L320

Added lines #L319 - L320 were not covered by tests

Check warning on line 40 in pkg/schedule/schedulers/balance_key_range.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/schedule/schedulers/balance_key_range.go#L39-L40

Added lines #L39 - L40 were not covered by tests

Check warning on line 47 in pkg/schedule/schedulers/balance_key_range.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/schedule/schedulers/balance_key_range.go#L46-L47

Added lines #L46 - L47 were not covered by tests

Check warning on line 100 in pkg/schedule/schedulers/balance_key_range.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/schedule/schedulers/balance_key_range.go#L88-L100

Added lines #L88 - L100 were not covered by tests

Check warning on line 127 in pkg/schedule/schedulers/balance_key_range.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/schedule/schedulers/balance_key_range.go#L126-L127

Added lines #L126 - L127 were not covered by tests

Check warning on line 144 in pkg/schedule/schedulers/balance_key_range.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/schedule/schedulers/balance_key_range.go#L143-L144

Added lines #L143 - L144 were not covered by tests

Check warning on line 558 in pkg/schedule/schedulers/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/schedule/schedulers/init.go#L557-L558

Added lines #L557 - L558 were not covered by tests

Check warning on line 565 in pkg/schedule/schedulers/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/schedule/schedulers/init.go#L564-L565

Added lines #L564 - L565 were not covered by tests

Check warning on line 569 in pkg/schedule/schedulers/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/schedule/schedulers/init.go#L568-L569

Added lines #L568 - L569 were not covered by tests

Check warning on line 573 in pkg/schedule/schedulers/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/schedule/schedulers/init.go#L572-L573

Added lines #L572 - L573 were not covered by tests

Check warning on line 577 in pkg/schedule/schedulers/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/schedule/schedulers/init.go#L576-L577

Added lines #L576 - L577 were not covered by tests

Check warning on line 581 in pkg/schedule/schedulers/init.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

pkg/schedule/schedulers/init.go#L580-L581

Added lines #L580 - L581 were not covered by tests

Check warning on line 111 in server/api/scheduler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/api/scheduler.go#L109-L111

Added lines #L109 - L111 were not covered by tests

Check warning on line 115 in server/api/scheduler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/api/scheduler.go#L113-L115

Added lines #L113 - L115 were not covered by tests

Check warning on line 123 in server/api/scheduler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/api/scheduler.go#L121-L123

Added lines #L121 - L123 were not covered by tests

Check warning on line 129 in server/api/scheduler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/api/scheduler.go#L127-L129

Added lines #L127 - L129 were not covered by tests

Check warning on line 134 in server/api/scheduler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

server/api/scheduler.go#L132-L134

Added lines #L132 - L134 were not covered by tests

Check warning on line 436 in tools/pd-ctl/pdctl/command/scheduler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

tools/pd-ctl/pdctl/command/scheduler.go#L434-L436

Added lines #L434 - L436 were not covered by tests

Check warning on line 441 in tools/pd-ctl/pdctl/command/scheduler.go

See this annotation in the file changed.

@codecov codecov / codecov/patch

tools/pd-ctl/pdctl/command/scheduler.go#L439-L441

Added lines #L439 - L441 were not covered by tests