You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We do not have a simple tool to generate large-scale example archives. For large-scale tests, we need to use dbgen to produce SQL dump and then use TiDB Lightning to import into the cluster. This is very time consuming — for 10T-scale test we need almost 2 days for this preparation step.
Describe the feature you'd like:
We should be able to directly generate the backup archive (create SSTs directly and populate the corresponding backupmeta).
Either we create a dedicated tool (focusing on a few selected schemas, e.g. sysbench or TPC-C), or extend dbgen to create SSTs (hard, since dbgen is schema-less and won't generate indices).
convert to KV pairs via TiDB encoder (maybe hard coded )
sort the index
write out SSTs
We can use gorocksdb to write out SSTs. But in order to usingbr to restore it, we also need generate a backupmeta protobuf file
zhouqiang-cl
changed the title
Create a tool to generate archive for large-scale testing
Design a fast TPCC test data generation tool: Generate TPCC SST data, then use br to complete a quick import
Mar 12, 2020
Feature Request
Describe your feature request related problem:
We do not have a simple tool to generate large-scale example archives. For large-scale tests, we need to use
dbgen
to produce SQL dump and then use TiDB Lightning to import into the cluster. This is very time consuming — for 10T-scale test we need almost 2 days for this preparation step.Describe the feature you'd like:
We should be able to directly generate the backup archive (create SSTs directly and populate the corresponding
backupmeta
).Either we create a dedicated tool (focusing on a few selected schemas, e.g. sysbench or TPC-C), or extend
dbgen
to create SSTs (hard, sincedbgen
is schema-less and won't generate indices).Describe alternatives you've considered:
Teachability, Documentation, Adoption, Migration Strategy:
The text was updated successfully, but these errors were encountered: