Skip to content

Commit

Permalink
[fix][chores] Fix capacity conf change.
Browse files Browse the repository at this point in the history
Signed-off-by: Ketor <[email protected]>
  • Loading branch information
ketor committed May 24, 2024
1 parent dc77cf4 commit 334017a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 0 additions & 2 deletions conf/document-gflags.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
--conf=./conf/document.yaml
-coor_url=file://./conf/coor_list
-ip2hostname=false
-min_system_disk_capacity_free_ratio=$DEFAULT_MIN_SYSTEM_DISK_CAPACITY_FREE_RATIO$
-min_system_memory_capacity_free_ratio=$DEFAULT_MIN_SYSTEM_MEMORY_CAPACITY_FREE_RATIO$
-max_short_value_in_write_cf=8
-document_max_batch_count=1024
-braft_use_align_hearbeat=true
Expand Down
2 changes: 0 additions & 2 deletions conf/index-gflags.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
--conf=./conf/index.yaml
-coor_url=file://./conf/coor_list
-ip2hostname=false
-min_system_disk_capacity_free_ratio=$DEFAULT_MIN_SYSTEM_DISK_CAPACITY_FREE_RATIO$
-min_system_memory_capacity_free_ratio=$DEFAULT_MIN_SYSTEM_MEMORY_CAPACITY_FREE_RATIO$
-omp_num_threads=1
-vector_operation_parallel_thread_num=16
-max_hnsw_memory_size_of_region=2147483648
Expand Down
2 changes: 0 additions & 2 deletions conf/store-gflags.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
--conf=./conf/store.yaml
-coor_url=file://./conf/coor_list
-ip2hostname=false
-min_system_disk_capacity_free_ratio=$DEFAULT_MIN_SYSTEM_DISK_CAPACITY_FREE_RATIO$
-min_system_memory_capacity_free_ratio=$DEFAULT_MIN_SYSTEM_MEMORY_CAPACITY_FREE_RATIO$
-max_short_value_in_write_cf=8
-braft_use_align_hearbeat=true
-bdb_env_cache_size_gb=8
Expand Down
12 changes: 10 additions & 2 deletions scripts/deploy_func.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,23 @@ function deploy_store() {
echo "cp $srcpath/conf/${role}-gflags.conf $dstpath/conf/gflags.conf"
cp $srcpath/conf/${role}-gflags.conf $dstpath/conf/gflags.conf
sed -i 's,\$DEFAULT_REPLICA_NUM\$,'"$DEFAULT_REPLICA_NUM"',g' $dstpath/conf/gflags.conf
sed -i 's,\$DEFAULT_MIN_SYSTEM_DISK_CAPACITY_FREE_RATIO\$,'"$DEFAULT_MIN_SYSTEM_DISK_CAPACITY_FREE_RATIO"',g' $dstpath/conf/gflags.conf
sed -i 's,\$DEFAULT_MIN_SYSTEM_MEMORY_CAPACITY_FREE_RATIO\$,'"$DEFAULT_MIN_SYSTEM_MEMORY_CAPACITY_FREE_RATIO"',g' $dstpath/conf/gflags.conf
if [ ${DINGODB_ENABLE_LITE} = "1" ];then
echo "" >> $dstpath/conf/gflags.conf
echo "-enable_lite=true" >> $dstpath/conf/gflags.conf
echo "enable_lite is set"
else
echo "enable-lite is not set"
fi
if [ ${DEFAULT_MIN_SYSTEM_DISK_CAPACITY_FREE_RATIO} ];then
echo "" >> $dstpath/conf/gflags.conf
echo "-min_system_disk_capacity_free_ratio=${DEFAULT_MIN_SYSTEM_DISK_CAPACITY_FREE_RATIO}" >> $dstpath/conf/gflags.conf
echo "-min_system_disk_capacity_free_ratio=${DEFAULT_MIN_SYSTEM_DISK_CAPACITY_FREE_RATIO}"
fi
if [ ${DEFAULT_MIN_SYSTEM_MEMORY_CAPACITY_FREE_RATIO} ];then
echo "" >> $dstpath/conf/gflags.conf
echo "-min_system_memory_capacity_free_ratio=${DEFAULT_MIN_SYSTEM_MEMORY_CAPACITY_FREE_RATIO}" >> $dstpath/conf/gflags.conf
echo "-min_system_memory_capacity_free_ratio=${DEFAULT_MIN_SYSTEM_MEMORY_CAPACITY_FREE_RATIO}"
fi
fi
fi

Expand Down

0 comments on commit 334017a

Please sign in to comment.