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

import: increase default region-split-size to 512 MiB #4347

Merged

Conversation

kennytm
Copy link
Contributor

@kennytm kennytm commented Mar 11, 2019

Signed-off-by: kennytm kennytm@gmail.com

What have you changed? (mandatory)

This makes the SST size to upload larger, which reduces the number of SST
files needed to ingested, and improve overall speed.

What are the type of the changes? (mandatory)

  • Improvement (change which is an improvement to an existing feature)

How has this PR been tested? (mandatory)

Tested manually using a data set with size 6.5 TB

Does this PR affect documentation (docs) update? (mandatory)

No (config for importer isn't documented in this repo 🤔)

Does this PR affect tidb-ansible update? (mandatory)

Yes (will be filed separately, together with Lightning changes)

Refer to a related PR or issue link (optional)

Part 1/7 split off from #4245

Benchmark result if necessary (optional)

Add a few positive/negative examples (optional)

This makes the SST size to upload larger, which reduces the number of SST
files needed to ingested, and improve overall speed.

Signed-off-by: kennytm <kennytm@gmail.com>
@AndreMouche AndreMouche added the sig/raft Component: Raft, RaftStore, etc. label Mar 11, 2019
Copy link
Contributor

@huachaohuang huachaohuang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Connor1996 Connor1996 merged commit cc70ef3 into tikv:master Mar 12, 2019
@kennytm kennytm deleted the importer-01-increase-region-split-size branch March 12, 2019 04:39
kennytm added a commit to kennytm/tikv that referenced this pull request Mar 13, 2019
This makes the SST size to upload larger, which reduces the number of SST
files needed to ingested, and improve overall speed.

Signed-off-by: kennytm <kennytm@gmail.com>
huachaohuang pushed a commit that referenced this pull request Mar 14, 2019
* import: increase default region-split-size to 512 MiB (#4347)

This makes the SST size to upload larger, which reduces the number of SST
files needed to ingested, and improve overall speed.

Signed-off-by: kennytm <kennytm@gmail.com>

* import: store the intermediate SST files on disk instead of memory (#4348)

* import: store the intermediate SST files on disk instead of memory

The bottle-neck of Importer is in SST ingestion on the TiKV side, not
disk I/O. Storing these SST in RAM will just increase the chance Importer
getting killed by OOM.

Signed-off-by: kennytm <kennytm@gmail.com>

* import: fix #4257, restrict memory usage by RocksDB (#4350)

* import: put index and filter in block cache to restrict memory usage

Signed-off-by: Lonng <chris@lonng.org>
Signed-off-by: kennytm <kennytm@gmail.com>

* import: wait after split before scatter (#4352)

Signed-off-by: kennytm <kennytm@gmail.com>
sticnarf pushed a commit to sticnarf/tikv that referenced this pull request Oct 27, 2019
This makes the SST size to upload larger, which reduces the number of SST
files needed to ingested, and improve overall speed.

Signed-off-by: kennytm <kennytm@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/raft Component: Raft, RaftStore, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants