Greeting Incognito Validators,
As you know, we are preparing to release new database modes, including Archive, Batch, and Lite. In addition, there will be another feature called FFStorage, which stores raw blocks in file-type system. For more details, please look at our new database mode introduction.
Note: only Archive/Batch and disabled FFStorage are compatible with old databases, otherwise, you have to resync the database. The bootstrap file will be provided later.
The beta production branch is at production-newdb
1. For the command-line users, build the incognito binary from the source code:
-
Database mode can be configured by flag:
--sync-mode [archive | batchcommit | lite ]
-
FFstorage can be enabled with :
--ffstorage
Example of using Archive and enabled FFStorage from the command line
./incognito --nodemode "auto" --sync-mode archive --ffstorage --discoverpeersaddress "mainnet-bootnode.incognito.org:9330" --miningkeys "your-validator-key" --datadir "./path/to/data" --listen "0.0.0.0:9334" --externaladdress "0.0.0.0:9334" --norpcauth --rpclisten "0.0.0.0:9335" --loglevel "debug"
Command to run Fullnode
./incognito --nodemode "relay" --relayshards "all" --sync-mode archive --ffstorage --listen "0.0.0.0:9334" --externaladdress "0.0.0.0:9433" --datadir "./data" --discoverpeersaddress "mainnet-bootnode.incognito.org:9330" --norpcauth --rpclisten "0.0.0.0:9334" --loglevel debug
2. For docker user:
-
Add 2 environment vars
DBMODE=[archive | batchcommit | lite]
andFFSTORAGE=true
-
Auto reload script can be download in inc_node_installer_beta.sh (modify variables DBMODE & FFSTORAGE prior to running).
Example of using Lite and enabled FFStorage from our docker repo
$ wget https://raw.githubusercontent.com/incognitochain/incognito-chain/dev/newdb-mode-prod/bin/inc_node_installer_beta.sh
$ nano inc_node_installer_beta.sh
## Then changing the DBMODE value you want as mentioned above
$ chmod +x inc_node_installer_beta.sh
$ sudo ./inc_node_installer_beta.sh ## then follow the interactive guide
$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
efae9b4c993b incognitochain/incognito-mainnet:10220418_newdb_1 "/bin/bash run_incog…" 9 seconds ago Up 8 seconds 0.0.0.0:8334->8334/tcp, 0.0.0.0:9433->9433/tcp archive_fftrue_inc_mainnet_0
Check the running log (optional)
2022-04-19 04:28:33.622 statedb.go:106 [INF] StateDB log: Init database CONSENSUSDB mode: rebuild:21b463e3b52f6201c0ad6c991be0485b6ef8c092e64583ffa655cc1b171fe856-0 pivot:21b463e3b52f6201c0ad6c991be0485b6
ef8c092e64583ffa655cc1b171fe856--1
2022-04-19 04:28:33.624 statedb.go:106 [INF] StateDB log: Init database TXDB mode:archive rebuild:21b463e3b52f6201c0ad6c991be0485b6ef8c092e64583ffa655cc1b171fe856-0 pivot:21b463e3b52f6201c0ad6c991be0485b6
ef8c092e64583ffa655cc1b171fe856--1
2022-04-19 04:28:33.624 statedb.go:106 [INF] StateDB log: Init database FEATUREDB mode:archive rebuild:21b463e3b52f6201c0ad6c991be0485b6ef8c092e64583ffa655cc1b171fe856-0 pivot:21b463e3b52f6201c0ad6c991be0
485b6ef8c092e64583ffa655cc1b171fe856--1
2022-04-19 04:28:33.624 statedb.go:106 [INF] StateDB log: Init database REWARDDB mode:archive rebuild:21b463e3b52f6201c0ad6c991be0485b6ef8c092e64583ffa655cc1b171fe856-0 pivot:21b463e3b52f6201c0ad6c991be04
85b6ef8c092e64583ffa655cc1b171fe856--1
2022-04-19 04:28:33.624 statedb.go:106 [INF] StateDB log: Init database SLASHDB mode:archive rebuild:21b463e3b52f6201c0ad6c991be0485b6ef8c092e64583ffa655cc1b171fe856-0 pivot:21b463e3b52f6201c0ad6c991be048
5b6ef8c092e64583ffa655cc1b171fe856--1
Note on usage:
Although these features are already tested in several environments, it is not battle-tested yet.
We recommend that node operators should run at least 1 node with a production branch. In case of bug or db corruption of the beta branch, you can clone and revert to the production branch.