Skip to content

simulator: add case about import data#1263

Merged
disksing merged 12 commits intotikv:masterfrom
nolouch:simulate-import
Jan 17, 2019
Merged

simulator: add case about import data#1263
disksing merged 12 commits intotikv:masterfrom
nolouch:simulate-import

Conversation

@nolouch
Copy link
Copy Markdown
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% 

@nolouch nolouch requested review from disksing and rleungx October 10, 2018 07:29
Comment thread tools/pd-simulator/simulator/raft_test.go Outdated
Comment thread tools/pd-simulator/simulator/raft_test.go Outdated
Comment thread tools/pd-simulator/simulator/cases/import_data.go Outdated
Comment thread tools/pd-simulator/simulator/cases/import_data.go Outdated
Comment thread tools/pd-simulator/simulator/raft.go Outdated
Comment thread tools/pd-simulator/simulator/raft.go Outdated
Comment thread tools/pd-simulator/simulator/raft.go Outdated
Comment thread tools/pd-simulator/simulator/raft.go Outdated
Comment thread tools/pd-simulator/simulator/raft.go Outdated
Comment thread tools/pd-simulator/simulator/cases/import_data.go Outdated
@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
Copy Markdown
Contributor Author

nolouch commented Oct 16, 2018

PTAL

@disksing
Copy link
Copy Markdown
Contributor

disksing commented Nov 1, 2018

LGTM.

@nolouch
Copy link
Copy Markdown
Contributor Author

nolouch commented Jan 2, 2019

/run-unit-test

@nolouch
Copy link
Copy Markdown
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