Skip to content

Commit

Permalink
Merge pull request #42 from junha-ahn/dev
Browse files Browse the repository at this point in the history
Add PebbleDB support
  • Loading branch information
blukat29 authored Jul 29, 2024
2 parents e366db6 + 9f6b2a0 commit e8a0faa
Show file tree
Hide file tree
Showing 54 changed files with 1,012 additions and 56 deletions.
2 changes: 1 addition & 1 deletion blockchain/bench_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ func genDBManagerForTest(dir string, dbType database.DBType) database.DBManager
db := database.NewMemoryDBManager()
return db
} else {
dbc := &database.DBConfig{Dir: dir, DBType: dbType, LevelDBCacheSize: 128, OpenFilesLimit: 128}
dbc := &database.DBConfig{Dir: dir, DBType: dbType, LevelDBCacheSize: 128, PebbleDBCacheSize: 128, OpenFilesLimit: 128}
return database.NewDBManager(dbc)
}
}
2 changes: 1 addition & 1 deletion blockchain/state_migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func createLocalTestDB(t *testing.T) (string, database.DBManager) {
if err != nil {
t.Fatalf("failed to create a database: %v", err)
}
dbc := &database.DBConfig{Dir: dir, DBType: database.LevelDB, LevelDBCacheSize: 128, OpenFilesLimit: 128}
dbc := &database.DBConfig{Dir: dir, DBType: database.LevelDB, LevelDBCacheSize: 128, PebbleDBCacheSize: 128, OpenFilesLimit: 128}
db := database.NewDBManager(dbc)
return dir, db
}
Expand Down
4 changes: 4 additions & 0 deletions build/packaging/linux/bin/kcnd
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,10 @@ __check_option() {
OPTIONS="$OPTIONS --db.leveldb.cache-size $LDBCACHESIZE"
fi

if [ ! -z $PDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.pebbledb.cache-size $PDBCACHESIZE"
fi

if [[ ! -z $NO_DISCOVER ]] && [[ $NO_DISCOVER -eq 1 ]]; then
OPTIONS="$OPTIONS --nodiscover"
fi
Expand Down
4 changes: 4 additions & 0 deletions build/packaging/linux/bin/kend
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,10 @@ __check_option() {
OPTIONS="$OPTIONS --db.leveldb.cache-size $LDBCACHESIZE"
fi

if [ ! -z $PDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.pebbledb.cache-size $PDBCACHESIZE"
fi

if [[ ! -z $SC_MAIN_BRIDGE ]] && [[ $SC_MAIN_BRIDGE -eq 1 ]]; then
OPTIONS="$OPTIONS --mainbridge --mainbridgeport $SC_MAIN_BRIDGE_PORT"
if [[ ! -z $SC_MAIN_BRIDGE_INDEXING ]] && [[ $SC_MAIN_BRIDGE_INDEXING -eq 1 ]]; then
Expand Down
4 changes: 4 additions & 0 deletions build/packaging/linux/bin/kpnd
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ __check_option() {
OPTIONS="$OPTIONS --db.leveldb.cache-size $LDBCACHESIZE"
fi

if [ ! -z $PDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.pebbledb.cache-size $PDBCACHESIZE"
fi

if [[ ! -z $NO_DISCOVER ]] && [[ $NO_DISCOVER -eq 1 ]]; then
OPTIONS="$OPTIONS --nodiscover"
fi
Expand Down
4 changes: 4 additions & 0 deletions build/packaging/linux/bin/kscnd
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ __check_option() {
OPTIONS="$OPTIONS --db.leveldb.cache-size $LDBCACHESIZE"
fi

if [ ! -z $PDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.pebbledb.cache-size $PDBCACHESIZE"
fi

if [[ ! -z $SCSIGNER ]] && [[ $SCSIGNER != "" ]]; then
OPTIONS="$OPTIONS --scsigner $SCSIGNER --unlock $SCSIGNER"
fi
Expand Down
4 changes: 4 additions & 0 deletions build/packaging/linux/bin/ksend
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,10 @@ __check_option() {
OPTIONS="$OPTIONS --db.leveldb.cache-size $LDBCACHESIZE"
fi

if [ ! -z $PDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.pebbledb.cache-size $PDBCACHESIZE"
fi

if [[ ! -z $NO_DISCOVER ]] && [[ $NO_DISCOVER -eq 1 ]]; then
OPTIONS="$OPTIONS --nodiscover"
fi
Expand Down
4 changes: 4 additions & 0 deletions build/packaging/linux/bin/kspnd
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,10 @@ __check_option() {
OPTIONS="$OPTIONS --db.leveldb.cache-size $LDBCACHESIZE"
fi

if [ ! -z $PDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.pebbledb.cache-size $PDBCACHESIZE"
fi

if [[ ! -z $NO_DISCOVER ]] && [[ $NO_DISCOVER -eq 1 ]]; then
OPTIONS="$OPTIONS --nodiscover"
fi
Expand Down
1 change: 1 addition & 0 deletions build/packaging/linux/conf/kcnd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SYNCMODE="full"
VERBOSITY=3
MAXCONNECTIONS=100
# LDBCACHESIZE=10240
# PDBCACHESIZE=10240
REWARDBASE="0x0"

# txpool options setting
Expand Down
1 change: 1 addition & 0 deletions build/packaging/linux/conf/kcnd_kairos.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SYNCMODE="full"
VERBOSITY=3
MAXCONNECTIONS=100
# LDBCACHESIZE=10240
# PDBCACHESIZE=10240
REWARDBASE="0x0"

# txpool options setting
Expand Down
1 change: 1 addition & 0 deletions build/packaging/linux/conf/kpnd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SYNCMODE=full
VERBOSITY=3
MAXCONNECTIONS=200
# LDBCACHESIZE=10240
# PDBCACHESIZE=10240

# txpool options setting
TXPOOL_EXEC_SLOTS_ALL=8192
Expand Down
1 change: 1 addition & 0 deletions build/packaging/linux/conf/kpnd_kairos.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SYNCMODE=full
VERBOSITY=3
MAXCONNECTIONS=200
# LDBCACHESIZE=10240
# PDBCACHESIZE=10240

# txpool options setting
TXPOOL_EXEC_SLOTS_ALL=8192
Expand Down
1 change: 1 addition & 0 deletions build/packaging/linux/conf/kspnd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SYNCMODE=full
VERBOSITY=3
MAXCONNECTIONS=200
# LDBCACHESIZE=10240
# PDBCACHESIZE=10240

# txpool options setting
TXPOOL_EXEC_SLOTS_ALL=8192
Expand Down
1 change: 1 addition & 0 deletions build/packaging/windows/conf/kcn-conf.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set SYNCMODE="full"
set VERBOSITY=3
set MAXCONNECTIONS=100
:: set LDBCACHESIZE=10240
:: set PDBCACHESIZE=10240
set REWARDBASE="0x0"

REM txpool options setting
Expand Down
1 change: 1 addition & 0 deletions build/packaging/windows/conf/kpn-conf.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ set SYNCMODE="full"
set VERBOSITY=3
set MAXCONNECTIONS=200
:: set LDBCACHESIZE=10240
:: set PDBCACHESIZE=10240

REM txpool options setting
set TXPOOL_EXEC_SLOTS_ALL=8192
Expand Down
4 changes: 4 additions & 0 deletions build/packaging/windows/start-kcn.bat
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ IF DEFINED LDBCACHESIZE (
set OPTIONS=%OPTIONS% --db.leveldb.cache-size %LDBCACHESIZE%
)

IF DEFINED PDBCACHESIZE (
set OPTIONS=%OPTIONS% --db.pebbledb.cache-size %PDBCACHESIZE%
)

IF DEFINED REWARDBASE (
set OPTIONS=%OPTIONS% --rewardbase %REWARDBASE%
)
Expand Down
4 changes: 4 additions & 0 deletions build/packaging/windows/start-ken.bat
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ IF DEFINED LDBCACHESIZE (
set OPTIONS=%OPTIONS% --db.leveldb.cache-size %LDBCACHESIZE%
)

IF DEFINED PDBCACHESIZE (
set OPTIONS=%OPTIONS% --db.pebbledb.cache-size %PDBCACHESIZE%
)

IF DEFINED RPC_ENABLE (
IF %RPC_ENABLE%==1 (
set OPTIONS=%OPTIONS% --rpc --rpcapi %RPC_API% --rpcport %RPC_PORT% --rpcaddr %RPC_ADDR% --rpccorsdomain ^
Expand Down
4 changes: 4 additions & 0 deletions build/packaging/windows/start-kpn.bat
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ IF DEFINED LDBCACHESIZE (
set OPTIONS=%OPTIONS% --db.leveldb.cache-size %LDBCACHESIZE%
)

IF DEFINED PDBCACHESIZE (
set OPTIONS=%OPTIONS% --db.pebbledb.cache-size %PDBCACHESIZE%
)

IF DEFINED RPC_ENABLE (
IF %RPC_ENABLE%==1 (
set OPTIONS=%OPTIONS% --rpc --rpcapi %RPC_API% --rpcport %RPC_PORT% --rpcaddr %RPC_ADDR% --rpccorsdomain ^
Expand Down
4 changes: 4 additions & 0 deletions build/rpm/etc/init.d/kcnd
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ if [ ! -z $LDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.leveldb.cache-size $LDBCACHESIZE"
fi

if [ ! -z $PDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.pebbledb.cache-size $PDBCACHESIZE"
fi

if [[ ! -z $NO_DISCOVER ]] && [[ $NO_DISCOVER -eq 1 ]]; then
OPTIONS="$OPTIONS --nodiscover"
fi
Expand Down
4 changes: 4 additions & 0 deletions build/rpm/etc/init.d/kend
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,10 @@ if [ ! -z $LDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.leveldb.cache-size $LDBCACHESIZE"
fi

if [ ! -z $PDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.pebbledb.cache-size $PDBCACHESIZE"
fi

if [[ ! -z $SC_MAIN_BRIDGE ]] && [[ $SC_MAIN_BRIDGE -eq 1 ]]; then
OPTIONS="$OPTIONS --mainbridge --mainbridgeport $SC_MAIN_BRIDGE_PORT"
if [[ ! -z $SC_MAIN_BRIDGE_INDEXING ]] && [[ $SC_MAIN_BRIDGE_INDEXING -eq 1 ]]; then
Expand Down
4 changes: 4 additions & 0 deletions build/rpm/etc/init.d/kpnd
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ if [ ! -z $LDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.leveldb.cache-size $LDBCACHESIZE"
fi

if [ ! -z $PDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.pebbledb.cache-size $PDBCACHESIZE"
fi

if [[ ! -z $NO_DISCOVER ]] && [[ $NO_DISCOVER -eq 1 ]]; then
OPTIONS="$OPTIONS --nodiscover"
fi
Expand Down
4 changes: 4 additions & 0 deletions build/rpm/etc/init.d/kscnd
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ if [ ! -z $LDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.leveldb.cache-size $LDBCACHESIZE"
fi

if [ ! -z $PDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.pebbledb.cache-size $PDBCACHESIZE"
fi

if [[ ! -z $SCSIGNER ]] && [[ $SCSIGNER != "" ]]; then
OPTIONS="$OPTIONS --scsigner $SCSIGNER --unlock $SCSIGNER"
fi
Expand Down
4 changes: 4 additions & 0 deletions build/rpm/etc/init.d/ksend
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ if [ ! -z $LDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.leveldb.cache-size $LDBCACHESIZE"
fi

if [ ! -z $PDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.pebbledb.cache-size $PDBCACHESIZE"
fi

if [[ ! -z $NO_DISCOVER ]] && [[ $NO_DISCOVER -eq 1 ]]; then
OPTIONS="$OPTIONS --nodiscover"
fi
Expand Down
4 changes: 4 additions & 0 deletions build/rpm/etc/init.d/kspnd
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,10 @@ if [ ! -z $LDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.leveldb.cache-size $LDBCACHESIZE"
fi

if [ ! -z $PDBCACHESIZE ]; then
OPTIONS="$OPTIONS --db.pebbledb.cache-size $PDBCACHESIZE"
fi

if [[ ! -z $NO_DISCOVER ]] && [[ $NO_DISCOVER -eq 1 ]]; then
OPTIONS="$OPTIONS --nodiscover"
fi
Expand Down
1 change: 1 addition & 0 deletions build/rpm/etc/kcnd/conf/kcnd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SYNCMODE="full"
VERBOSITY=3
MAXCONNECTIONS=100
# LDBCACHESIZE=10240
# PDBCACHESIZE=10240
REWARDBASE="0x0"

# txpool options setting
Expand Down
1 change: 1 addition & 0 deletions build/rpm/etc/kcnd/conf/kcnd_kairos.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SYNCMODE="full"
VERBOSITY=3
MAXCONNECTIONS=100
# LDBCACHESIZE=10240
# PDBCACHESIZE=10240
REWARDBASE="0x0"

# txpool options setting
Expand Down
1 change: 1 addition & 0 deletions build/rpm/etc/kpnd/conf/kpnd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SYNCMODE=full
VERBOSITY=3
MAXCONNECTIONS=200
# LDBCACHESIZE=10240
# PDBCACHESIZE=10240

# txpool options setting
TXPOOL_EXEC_SLOTS_ALL=8192
Expand Down
1 change: 1 addition & 0 deletions build/rpm/etc/kpnd/conf/kpnd_kairos.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SYNCMODE=full
VERBOSITY=3
MAXCONNECTIONS=200
# LDBCACHESIZE=10240
# PDBCACHESIZE=10240

# txpool options setting
TXPOOL_EXEC_SLOTS_ALL=8192
Expand Down
1 change: 1 addition & 0 deletions build/rpm/etc/kspnd/conf/kspnd.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ SYNCMODE=full
VERBOSITY=3
MAXCONNECTIONS=200
# LDBCACHESIZE=10240
# PDBCACHESIZE=10240

# txpool options setting
TXPOOL_EXEC_SLOTS_ALL=8192
Expand Down
2 changes: 2 additions & 0 deletions cmd/utils/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,8 @@ func (kCfg *KaiaConfig) SetKaiaConfig(ctx *cli.Context, stack *node.Node) {
cfg.EnableDBPerfMetrics = !ctx.Bool(DBNoPerformanceMetricsFlag.Name)
cfg.LevelDBCacheSize = ctx.Int(LevelDBCacheSizeFlag.Name)

cfg.PebbleDBCacheSize = ctx.Int(PebbleDBCacheSizeFlag.Name)

cfg.RocksDBConfig.Secondary = ctx.Bool(RocksDBSecondaryFlag.Name)
cfg.RocksDBConfig.MaxOpenFiles = ctx.Int(RocksDBMaxOpenFilesFlag.Name)
if cfg.RocksDBConfig.Secondary {
Expand Down
1 change: 1 addition & 0 deletions cmd/utils/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ func TestLoadYaml(t *testing.T) {
"db.dynamo.write-capacity": true, // TODO-check after bugfix
"db.dynamo.read-only": true,
"db.leveldb.cache-size": true,
"db.pebbledb.cache-size": true,
"db.no-parallel-write": true,
"db.rocksdb.secondary": true,
"db.rocksdb.cache-size": true,
Expand Down
1 change: 1 addition & 0 deletions cmd/utils/flaggroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ var FlagGroups = []FlagGroup{
Name: "DATABASE",
Flags: []cli.Flag{
LevelDBCacheSizeFlag,
PebbleDBCacheSizeFlag,
SingleDBFlag,
NumStateTrieShardsFlag,
LevelDBCompressionTypeFlag,
Expand Down
16 changes: 16 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,14 @@ var (
EnvVars: []string{"KLAYTN_DB_LEVELDB_NO_BUFFER_POOL", "KAIA_DB_LEVELDB_NO_BUFFER_POOL"},
Category: "DATABASE",
}
PebbleDBCacheSizeFlag = &cli.IntFlag{
Name: "db.pebbledb.cache-size",
Usage: "Size of in-memory cache in Pebble (MiB)",
Value: 768,
Aliases: []string{"migration.src.db.pebbledb.cache-size"},
EnvVars: []string{"KLAYTN_DB_PEBBLE_CACHE_SIZE", "KAIA_DB_PEBBLE_CACHE_SIZE"},
Category: "DATABASE",
}
RocksDBSecondaryFlag = &cli.BoolFlag{
Name: "db.rocksdb.secondary",
Usage: "Enable rocksdb secondary mode (read-only and catch-up with primary node dynamically)",
Expand Down Expand Up @@ -1822,6 +1830,14 @@ var (
EnvVars: []string{"KLAYTN_DB_DST_LEVELDB_COMPRESSION", "KAIA_DB_DST_LEVELDB_COMPRESSION"},
Category: "DATABASE MIGRATION",
}
DstPebbleDBCacheSizeFlag = &cli.IntFlag{
Name: "db.dst.pebbledb.cache-size",
Usage: "Size of in-memory cache in PebbleDB (MiB)",
Value: 768,
Aliases: []string{"migration.dst.db.pebbledb.cache-size"},
EnvVars: []string{"KLAYTN_DB_DST_PEBBLEDB_CACHE_SIZE", "KAIA_DB_DST_PEBBLEDB_CACHE_SIZE"},
Category: "DATABASE MIGRATION",
}
DstNumStateTrieShardsFlag = &cli.UintFlag{
Name: "db.dst.num-statetrie-shards",
Usage: "Number of internal shards of state trie DB shards. Should be power of 2",
Expand Down
3 changes: 2 additions & 1 deletion cmd/utils/nodecmd/chaincmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ func initGenesis(ctx *cli.Context) error {
dbc := &database.DBConfig{
Dir: name, DBType: dbtype, ParallelDBWrite: parallelDBWrite,
SingleDB: singleDB, NumStateTrieShards: numStateTrieShards,
LevelDBCacheSize: 0, OpenFilesLimit: 0, DynamoDBConfig: dynamoDBConfig, RocksDBConfig: rocksDBConfig,
LevelDBCacheSize: 0, PebbleDBCacheSize: 0, OpenFilesLimit: 0,
DynamoDBConfig: dynamoDBConfig, RocksDBConfig: rocksDBConfig,
}
chainDB := stack.OpenDatabase(dbc)

Expand Down
7 changes: 7 additions & 0 deletions cmd/utils/nodecmd/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,13 @@ var flagsWithValues = []struct {
flag: "--db.leveldb.no-buffer-pool",
flagType: FlagTypeBoolean,
},
{
flag: "--db.pebbledb.cache-size",
flagType: FlagTypeArgument,
values: []string{"768"},
wrongValues: commonTwoErrors,
errors: []int{ErrorInvalidValue, ErrorInvalidValue},
},
{
flag: "--db.no-parallel-write",
flagType: FlagTypeBoolean,
Expand Down
4 changes: 4 additions & 0 deletions cmd/utils/nodecmd/migrationcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ func createDBConfigForMigration(ctx *cli.Context) (*database.DBConfig, *database
LevelDBCompression: database.LevelDBCompressionType(ctx.Int(utils.LevelDBCompressionTypeFlag.Name)),
EnableDBPerfMetrics: !ctx.Bool(utils.DBNoPerformanceMetricsFlag.Name),

PebbleDBCacheSize: ctx.Int(utils.PebbleDBCacheSizeFlag.Name),

DynamoDBConfig: &database.DynamoDBConfig{
TableName: ctx.String(utils.DynamoDBTableNameFlag.Name),
Region: ctx.String(utils.DynamoDBRegionFlag.Name),
Expand Down Expand Up @@ -142,6 +144,8 @@ func createDBConfigForMigration(ctx *cli.Context) (*database.DBConfig, *database
LevelDBCompression: database.LevelDBCompressionType(ctx.Int(utils.DstLevelDBCompressionTypeFlag.Name)),
EnableDBPerfMetrics: !ctx.Bool(utils.DBNoPerformanceMetricsFlag.Name),

PebbleDBCacheSize: ctx.Int(utils.DstPebbleDBCacheSizeFlag.Name),

DynamoDBConfig: &database.DynamoDBConfig{
TableName: ctx.String(utils.DstDynamoDBTableNameFlag.Name),
Region: ctx.String(utils.DstDynamoDBRegionFlag.Name),
Expand Down
2 changes: 2 additions & 0 deletions cmd/utils/nodecmd/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ func getConfig(ctx *cli.Context) *database.DBConfig {
LevelDBCompression: database.LevelDBCompressionType(ctx.Int(utils.LevelDBCompressionTypeFlag.Name)),
EnableDBPerfMetrics: !ctx.Bool(utils.DBNoPerformanceMetricsFlag.Name),

PebbleDBCacheSize: ctx.Int(utils.PebbleDBCacheSizeFlag.Name),

DynamoDBConfig: &database.DynamoDBConfig{
TableName: ctx.String(utils.DynamoDBTableNameFlag.Name),
Region: ctx.String(utils.DynamoDBRegionFlag.Name),
Expand Down
2 changes: 2 additions & 0 deletions cmd/utils/nodecmd/testdata/test-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ db:
compression: 0
no-buffer-pool: false
cache-size: 768
pebbledb:
cache-size: 768
dynamo:
table-name: ""
region: ap-northeast-2
Expand Down
Loading

0 comments on commit e8a0faa

Please sign in to comment.