Skip to content

Commit d3f6b3e

Browse files
branch-4.0: [feat](tools) Add RocksDB storage engine support for fdb_ctl #60235 (#60289)
Cherry-picked from #60235 Co-authored-by: walter <[email protected]>
1 parent f9a2592 commit d3f6b3e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tools/fdb/fdb_ctl.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ fi
5252

5353
# TODO verify config
5454

55+
FDB_STORAGE_ENGINE=${FDB_STORAGE_ENGINE:-"ssd"}
5556
FDB_CLUSTER_DESC=${FDB_CLUSTER_DESC:-"doris-fdb"}
5657

5758
# A dir to provide FDB binary pkgs
@@ -432,7 +433,7 @@ function start() {
432433
echo "Try create database in fdb ${fdb_mode}"
433434

434435
"${FDB_HOME}/fdbcli" -C "${FDB_HOME}/conf/fdb.cluster" \
435-
--exec "configure new ${fdb_mode} ssd" ||
436+
--exec "configure new ${fdb_mode} ${FDB_STORAGE_ENGINE}" ||
436437
"${FDB_HOME}/fdbcli" -C "${FDB_HOME}/conf/fdb.cluster" --exec "status" ||
437438
(echo "failed to start fdb, please check that all nodes have same FDB_CLUSTER_ID" &&
438439
exit 1)

tools/fdb/fdb_vars.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,13 @@ FDB_PORT=4500
6767

6868
# Define the FoundationDB version
6969
# shellcheck disable=2034
70-
FDB_VERSION="7.1.38"
70+
FDB_VERSION="7.3.69"
71+
72+
# Define the FoundationDB storage engine. Allowed:
73+
# - ssd: sqlite engine
74+
# - ssd-rocksdb-v1: rocksdb engine
75+
# shellcheck disable=2034
76+
FDB_STORAGE_ENGINE="ssd-rocksdb-v1"
7177

7278
# Users who run the fdb processes, default is the current user
7379
# shellcheck disable=2034

0 commit comments

Comments
 (0)