Skip to content

Commit

Permalink
Add CLI command for better LMDB compaction (#193)
Browse files Browse the repository at this point in the history
* Add CLI command for better LMDB compaction
Docs change for nanocurrency/nano-node#2435
* More --vacuum details
  • Loading branch information
SergiySW authored May 15, 2020
1 parent 98e6ede commit e37a9e5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/commands/command-line-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,20 @@ Clear record history for long term online weight trending
### --peer_clear
Clear cached peers

### --rebuild_database
Rebuild LMDB database with `--vacuum` for best compaction. Requires approximately `data.ldb size * 2` free space on disk.

### --snapshot
Compact database and create snapshot, functions similar to vacuum but does not replace the existing database. Optional `--unchecked_clear`, `--clear_send_ids`, `--online_weight_clear`, `--peer_clear`
Optional `--confirmation_height_clear` in version 19.0+
Compact database and create snapshot, functions similar to vacuum but does not replace the existing database. Optional `--unchecked_clear`, `--clear_send_ids`, `--online_weight_clear`, `--peer_clear`.
Optional `--confirmation_height_clear` in version 19.0+.

### --unchecked_clear
Clear unchecked blocks

### --vacuum
Compact database. If data_path is missing, the database in data directory is compacted. Optional `--unchecked_clear`, `--clear_send_ids`, `--online_weight_clear`, `--peer_clear`
Compact database. If data_path is missing, the database in data directory is compacted. Optional `--unchecked_clear`, `--clear_send_ids`, `--online_weight_clear`, `--peer_clear`.
Optional `--confirmation_height_clear` in version 19.0+.
Optional `--rebuild_database` in version 21.0+. Requires approximately `data.ldb size * 2` free space on disk.

### --validate_blocks
_version 21.0+_ (_version 19.0+_ as `--debug_validate_blocks`)
Expand Down

0 comments on commit e37a9e5

Please sign in to comment.