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
Merged

Conversation

nolouch
Copy link
Contributor

@nolouch nolouch 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% 

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 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 Show resolved Hide resolved
@nolouch nolouch force-pushed the simulate-import branch 4 times, most recently from a2f9f0f to f493159 Compare October 12, 2018 09:07
@nolouch
Copy link
Contributor Author

nolouch commented Oct 16, 2018

PTAL

@disksing
Copy link
Contributor

disksing commented Nov 1, 2018

LGTM.

@nolouch
Copy link
Contributor Author

nolouch commented Jan 2, 2019

/run-unit-test

@nolouch
Copy link
Contributor Author

nolouch commented Jan 2, 2019

PTAL

@disksing disksing merged commit 955da5d into tikv:master Jan 17, 2019
@nolouch nolouch deleted the simulate-import branch January 17, 2019 04:21
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.

3 participants