tikv / pd

Placement driver for TiKV
Apache License 2.0
1.03k stars 714 forks source link

tools/simulator: Make simulator work with large scale cluster #8269

Open HuSharp opened 3 weeks ago

HuSharp commented 3 weeks ago

What problem does this PR solve?

separate regions and heartbeat to make simulator work with large scale cluster

Issue Number: Close #5683, Ref #8135

What is changed and how does it work?

support 300 stores with 1000k regions tiup playground nightly --kv.binpath ./pd-simulator --kv=1 --db=0 --kv.config=../conf/simconfig.toml --pd 1

image

image

after adding a node

image image

Check List

Tests

Release note

None.
ti-chi-bot[bot] commented 3 weeks ago

[REVIEW NOTIFICATION]

This pull request has not been approved.

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment. After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review. Reviewer can cancel approval by submitting a request changes review.
ti-chi-bot[bot] commented 3 weeks ago

Skipping CI for Draft Pull Request. If you want CI signal for your change, please convert it to an actual PR. You can still manually trigger a test run with /test all

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 77.29%. Comparing base (41e6376) to head (64f0fad).

:exclamation: Current head 64f0fad differs from pull request most recent head 3553c7d

Please upload reports for the commit 3553c7d to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #8269 +/- ## ========================================== + Coverage 77.25% 77.29% +0.03% ========================================== Files 470 470 Lines 61495 61356 -139 ========================================== - Hits 47511 47424 -87 + Misses 10434 10368 -66 - Partials 3550 3564 +14 ``` | [Flag](https://app.codecov.io/gh/tikv/pd/pull/8269/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tikv) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/tikv/pd/pull/8269/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tikv) | `77.29% <ø> (+0.03%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tikv#carryforward-flags-in-the-pull-request-comment) to find out more.
ti-chi-bot[bot] commented 1 week ago

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from husharp, ensuring that each of them provides their approval before proceeding. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files: - **[OWNERS](https://github.com/tikv/pd/blob/master/OWNERS)** Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment