-
Notifications
You must be signed in to change notification settings - Fork 790
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
Migrate LMDB database to RocksDB with new CLI command #2979
Migrate LMDB database to RocksDB with new CLI command #2979
Conversation
Mainnet migration at ~55M blocks:
Second one produced a message "There was an error migrating" but everything seems fine after migrating, investigating. |
22GB from 21GB data.ldb. 29 minutes on i7-4970K and SATA SSD. 16GB RAM |
Worked nicely for me on V22DB11, even without being fully synced (had ~1.7M blocks), took ~5 minutes to convert. First launch afterwards was still LMDB, but then I realized I needed to update my config-node.toml. Should this be done by default for v22+? I'm assuming RocksDB will be the preferred production backend `[node.rocksdb] Whether to use the RocksDB backend for the ledger database.type:boolenable = true` |
Successful on 22DB11, 4 minutes. [email protected], 16GB, 1TB sata SSD. Ledger 5.8GB to 3.5GB. Ubuntu 20.04.2 |
This adds a new CLI command
--migrate_database_lmdb_to_rocksdb
which takes the LMDB database, deletes the RocksDB folder if it exists and creates an equivalent RocksDB ledger.This adds the necessary parallel for loops for the required tables, should be rebased after #2950 is in.