feat(tools): add boosttools - 8x faster cluster-to-cluster sync tool#35130
Open
uk0 wants to merge 1 commit intotaosdata:mainfrom
Open
feat(tools): add boosttools - 8x faster cluster-to-cluster sync tool#35130uk0 wants to merge 1 commit intotaosdata:mainfrom
uk0 wants to merge 1 commit intotaosdata:mainfrom
Conversation
Implements a native C tool for TDengine cluster data migration using raw_block zero-copy transfer (taos_fetch_raw_block + taos_write_raw_block), achieving ~8x throughput vs taosdump on benchmarks. Key features: - Thread-safe connection pool with configurable capacity - Parallel schema sync (database/supertable/child table replication) - Multi-worker data transfer engine with raw block pipeline - Checkpoint/resume support for interrupted syncs - CLI with time-range filtering, dry-run, schema-only/data-only modes Benchmark (10K tables, 17.5M rows, localhost): taosdump: 336s, 52K rows/s boosttools: 42s, 416K rows/s (8x faster, 0 disk I/O)
Contributor
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
This was referenced Apr 14, 2026
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
boosttools, a high-performance TDengine cluster-to-cluster data sync tool implemented in C, using the nativetaos_fetch_raw_block()+taos_write_raw_block()API for zero-copy block transfer.Solves the problem where
taosdumphangs/crashes when exporting 600K+ child tables and is extremely slow for 100GB+ datasets.Test Environment
Test Dataset
Benchmark dataset (benchdb):
meters(8 data columns + 3 tag columns)voltage(FLOAT),current(FLOAT),power(FLOAT),frequency(INT),temperature(FLOAT),humidity(FLOAT),status(INT),location(BINARY-32)group_id(INT),region(BINARY-16),device_type(BINARY-16)taosBenchmarkwith 16 threadsFull-scale stress dataset (testdb): 600,000 child tables, 1.05 billion rows, 95 GB on disk.
Performance Benchmark (HDD)
taosdump vs boosttools — 10K tables, 17.5M rows
Real-time progress (boosttools):
Disk Type Impact
100GB Projection (HDD)
Why 8x Faster
taos_fetch_raw_blockzero-copy columnar blockstaos_write_raw_blockdirect block injectionArchitecture
Features
--time-start/--time-endfor incremental syncUsage
Files (2,315 lines total)
src/boost.hsrc/main.csrc/conn_pool.csrc/schema_sync.csrc/data_sync.csrc/progress.cMakefileCMakeLists.txtdeploy.shbenchmark.shTest Plan