Skip to content

Commit

Permalink
set rocksdb_disable_wal to false by default (#2236)
Browse files Browse the repository at this point in the history
Co-authored-by: dangleptr <[email protected]>
  • Loading branch information
critical27 and dangleptr authored Jul 17, 2020
1 parent eedd52b commit 26aac4b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion etc/nebula-metad.conf.production
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,4 @@
--data_path=data/meta

############## rocksdb Options ##############
--rocksdb_disable_wal=false
--rocksdb_wal_sync=true
4 changes: 0 additions & 4 deletions etc/nebula-storaged.conf.default
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@
# In order to disable compression for level 0/1, set it to "no:no"
--rocksdb_compression_per_level=

--rocksdb_disable_wal=true

############## rocksdb Options ##############
--rocksdb_disable_wal=true

# rocksdb DBOptions in json, each name and value of option is a string, given as "option_name":"option_value" separated by comma
--rocksdb_db_options={"max_subcompactions":"1","max_background_jobs":"1"}
# rocksdb ColumnFamilyOptions in json, each name and value of option is string, given as "option_name":"option_value" separated by comma
Expand Down
2 changes: 0 additions & 2 deletions etc/nebula-storaged.conf.production
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@
# In order to disable compression for level 0/1, set it to "no:no"
--rocksdb_compression_per_level=

--rocksdb_disable_wal=true

# rocksdb DBOptions in json, each name and value of option is a string, given as "option_name":"option_value" separated by comma
--rocksdb_db_options={"max_subcompactions":"4","max_background_jobs":"4"}
# rocksdb ColumnFamilyOptions in json, each name and value of option is string, given as "option_name":"option_value" separated by comma
Expand Down
1 change: 0 additions & 1 deletion kubernetes/helm/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,6 @@ data:
--engine_type=rocksdb
############## rocksdb Options ##############
--rocksdb_disable_wal=true
# rocksdb DBOptions in json, each name and value of option is a string, given as "option_name":"option_value" separated by comma
--rocksdb_db_options={}
# rocksdb ColumnFamilyOptions in json, each name and value of option is string, given as "option_name":"option_value" separated by comma
Expand Down
2 changes: 1 addition & 1 deletion src/kvstore/RocksEngineConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

// [WAL]
DEFINE_bool(rocksdb_disable_wal,
true,
false,
"Whether to disable the WAL in rocksdb");

DEFINE_bool(rocksdb_wal_sync,
Expand Down

0 comments on commit 26aac4b

Please sign in to comment.