美好的一天。我有 config.conf 文件作为 TRON Fullnode.jar 版本 GreatVoyage-v4.7.1.1(Pittacus) 的配置。我在fullnode中使用lite模式。我有两个问题:
我在 config.conf 文件中为我的数据库使用此配置:
storage {
db.version = 2,
db.engine = "LEVELDB",
db.sync = false,
db.directory = "/tron-database",
index.directory = "/tron-index",
transHistory.switch = "off",
#default = {
# maxOpenFiles = 100
#}
#defaultM = {
# maxOpenFiles = 500
#}
#defaultL = {
# maxOpenFiles = 1000
#}
properties = [
# {
# name = "account",
# path = "storage_directory_test",
# createIfMissing = true,
# paranoidChecks = true,
# verifyChecksums = true,
# compressionType = 1, # compressed with snappy
# blockSize = 4096, # 4 KB = 4 * 1024 B
# writeBufferSize = 10485760, # 10 MB = 10 * 1024 * 1024 B
# cacheSize = 10485760, # 10 MB = 10 * 1024 * 1024 B
# maxOpenFiles = 100
# },
# {
# name = "account-index",
# path = "storage_directory_test",
# createIfMissing = true,
# paranoidChecks = true,
# verifyChecksums = true,
# compressionType = 1, # compressed with snappy
# blockSize = 4096, # 4 KB = 4 * 1024 B
# writeBufferSize = 10485760, # 10 MB = 10 * 1024 * 1024 B
# cacheSize = 10485760, # 10 MB = 10 * 1024 * 1024 B
# maxOpenFiles = 100
# },
]
needToUpdateAsset = true
# dbsettings is needed when using rocksdb as the storage implement (db.version=2 and db.engine="ROCKSDB").
# we'd strongly recommend that do not modify it unless you know every item's meaning clearly.
dbSettings = {
levelNumber = 7
# compactThreads = 32
blocksize = 64 # n * KB
maxBytesForLevelBase = 256 # n * MB
maxBytesForLevelMultiplier = 10
level0FileNumCompactionTrigger = 4
targetFileSizeBase = 256 # n * MB
targetFileSizeMultiplier = 1
}
# backup settings when using rocks db as the storage implement (db.version=2 and db.engine="ROCKSDB").
# if you want to use the backup plugin, please confirm set the db.version=2 and db.engine="ROCKSDB" above.
backup = {
enable = true # indicate whether enable the backup plugin
propPath = "prop.properties" # record which bak directory is valid
bak1path = "/tron-backup/database" # you must set two backup directories to prevent application halt unexpected(e.g. kill -9).
bak2path = "/tron-backup2/database"
frequency = 1000 # indicate backup db once every 10000 blocks processed.
}
}
可能有些误解,2023 年 5 月的完整账本的大小为 1.5T。目前比较多这个。想要将大小限制为 50G 是什么意思?