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

simulator: add case about import data #1263

Merged
merged 12 commits into from Jan 17, 2019

Conversation

Projects
None yet
3 participants
@nolouch
Copy link
Member

commented Oct 10, 2018

What problem does this PR solve?

Add a case about import data. This case used to evaluate the region and leader distribution of a table when importing data.

What is changed and how it works?

simulate import data to different table with different speed.

Check List

Tests

  • Unit test
  • Manual test (add detailed scripts or steps below)

The output like:

INFO[0060] leader distribute (table2) [store 1]:37.50% [store 2]:5.56% [store 4]:20.83% [store 5]:4.17% [store 6]:4.17% [store 7]:2.78% [store 8]:19.44% [store 9]:5.56% 
INFO[0060] peer distribute (table2) [store 1]:21.46% [store 2]:7.31% [store 4]:20.09% [store 5]:7.76% [store 6]:8.22% [store 7]:6.39% [store 8]:22.37% [store 9]:6.39% 

@nolouch nolouch requested review from disksing and rleungx Oct 10, 2018

@nolouch nolouch force-pushed the nolouch:simulate-import branch from 6a49777 to 5629efc Oct 10, 2018

Show resolved Hide resolved tools/pd-simulator/simulator/raft_test.go Outdated
Show resolved Hide resolved tools/pd-simulator/simulator/raft_test.go Outdated
Show resolved Hide resolved tools/pd-simulator/simulator/cases/import_data.go Outdated
Show resolved Hide resolved tools/pd-simulator/simulator/cases/import_data.go Outdated
Show resolved Hide resolved tools/pd-simulator/simulator/raft.go
Show resolved Hide resolved tools/pd-simulator/simulator/raft.go Outdated
Show resolved Hide resolved tools/pd-simulator/simulator/raft.go Outdated

@nolouch nolouch force-pushed the nolouch:simulate-import branch from 4d69e23 to 61d6777 Oct 11, 2018

Show resolved Hide resolved tools/pd-simulator/simulator/raft.go
Show resolved Hide resolved tools/pd-simulator/simulator/raft.go Outdated
Show resolved Hide resolved tools/pd-simulator/simulator/cases/import_data.go Outdated

@nolouch nolouch force-pushed the nolouch:simulate-import branch from aa92a14 to 38e55a0 Oct 11, 2018

@nolouch nolouch force-pushed the nolouch:simulate-import branch 4 times, most recently from a2f9f0f to f493159 Oct 12, 2018

@nolouch nolouch force-pushed the nolouch:simulate-import branch from f493159 to 63a2c52 Oct 12, 2018

@nolouch

This comment has been minimized.

Copy link
Member Author

commented Oct 16, 2018

PTAL

@disksing

This comment has been minimized.

Copy link
Member

commented Nov 1, 2018

LGTM.

nolouch added some commits Dec 28, 2018

fix
Signed-off-by: nolouch <nolouch@gmail.com>
@nolouch

This comment has been minimized.

Copy link
Member Author

commented Jan 2, 2019

/run-unit-test

@nolouch

This comment has been minimized.

Copy link
Member Author

commented Jan 2, 2019

PTAL

@rleungx

rleungx approved these changes Jan 8, 2019

@disksing disksing merged commit 955da5d into pingcap:master Jan 17, 2019

5 checks passed

ci/circleci Your tests passed on CircleCI!
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
idc-jenkins-ci/build Jenkins job succeeded.
Details
jenkins-ci-pd/build Jenkins job succeeded.
Details
license/cla Contributor License Agreement is signed.
Details

@nolouch nolouch deleted the nolouch:simulate-import branch Jan 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.