Skip to content

Commit 7db36b7

Browse files
rock-gitketor
authored andcommitted
[chore][store] Adjust stop.sh script.
1 parent 8c3363d commit 7db36b7

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

scripts/stop.sh

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,25 +27,26 @@ SERVER_NUM=${FLAGS_server_num}
2727

2828
source $mydir/deploy_func.sh
2929

30-
for ((i=1; i<=$SERVER_NUM; ++i)); do
31-
if [ ${FLAGS_use_pgrep} -ne 0 ]; then
32-
echo "use_pgrep > 0, use pgrep to get pid"
33-
process_no=$(pgrep -f "${BASE_DIR}.*dingodb_server.*${FLAGS_role}" -U `id -u` | xargs)
3430

35-
if [ "${process_no}" != "" ]; then
36-
echo "pid to kill: ${process_no}"
37-
if [ ${FLAGS_force} -eq 0 ]
38-
then
39-
kill ${process_no}
40-
else
41-
kill -9 ${process_no}
42-
fi
31+
if [ ${FLAGS_use_pgrep} -ne 0 ]; then
32+
echo "use_pgrep > 0, use pgrep to get pid"
33+
process_no=$(pgrep -f "${BASE_DIR}.*dingodb_server.*${FLAGS_role}" -U `id -u` | xargs)
34+
35+
if [ "${process_no}" != "" ]; then
36+
echo "pid to kill: ${process_no}"
37+
if [ ${FLAGS_force} -eq 0 ]
38+
then
39+
kill ${process_no}
4340
else
44-
echo "not exist ${FLAGS_role} process"
41+
kill -9 ${process_no}
4542
fi
4643
else
47-
echo "use PID file to get pid"
44+
echo "not exist ${FLAGS_role} process"
45+
fi
46+
else
47+
echo "use PID file to get pid"
4848

49+
for ((i=1; i<=$SERVER_NUM; ++i)); do
4950
program_dir=$BASE_DIR/dist/${FLAGS_role}${i}
5051
pid_file=${program_dir}/log/pid
5152

@@ -71,8 +72,7 @@ for ((i=1; i<=$SERVER_NUM; ++i)); do
7172
else
7273
echo "PID file not found: $pid_file"
7374
fi
74-
fi
75-
76-
done
75+
done
76+
fi
7777

7878
echo "Finish..."

src/vector/vector_index_hnsw.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ DEFINE_int32(max_hnsw_nlinks_of_region, 4096, "max nlinks of region in HSNW");
4646
DEFINE_int64(hnsw_need_save_count, 10000, "hnsw need save count");
4747
DEFINE_uint32(hnsw_max_init_max_elements, 100000, "hnsw max init max elements");
4848

49-
DEFINE_uint32(hnsw_max_elements_amplification_multiple, 12, "hnsw max elements amplification multiple");
49+
DEFINE_uint32(hnsw_max_elements_amplification_multiple, 1, "hnsw max elements amplification multiple");
5050

5151
DECLARE_int64(vector_max_batch_count);
5252

0 commit comments

Comments
 (0)