doc: [skip e2e] add extraConfig to embed milvus (#34395)

Signed-off-by: ping.liu <ping.liu@zilliz.com>
pull/34334/head
pingliu 2024-07-03 18:20:17 +08:00 committed by GitHub
parent a501fa11c0
commit 8c42f1341d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 1 deletions

View File

@ -23,6 +23,10 @@ advertise-client-urls: http://0.0.0.0:2379
quota-backend-bytes: 4294967296
auto-compaction-mode: revision
auto-compaction-retention: '1000'
EOF
cat << EOF > user.yaml
# Extra config to override default milvus.yaml
EOF
sudo docker run -d \
@ -34,6 +38,7 @@ EOF
-e COMMON_STORAGETYPE=local \
-v $(pwd)/volumes/milvus:/var/lib/milvus \
-v $(pwd)/embedEtcd.yaml:/milvus/configs/embedEtcd.yaml \
-v $(pwd)/user.yaml:/milvus/configs/user.yaml \
-p 19530:19530 \
-p 9091:9091 \
-p 2379:2379 \
@ -54,6 +59,7 @@ wait_for_milvus_running() {
if [ $res -eq 1 ]
then
echo "Start successfully."
echo "To change the default Milvus configuration, add your settings to the user.yaml file and then restart the service."
break
fi
sleep 1
@ -112,11 +118,16 @@ delete() {
fi
sudo rm -rf $(pwd)/volumes
sudo rm -rf $(pwd)/embedEtcd.yaml
sudo rm -rf $(pwd)/user.yaml
echo "Delete successfully."
}
case $1 in
restart)
stop
start
;;
start)
start
;;
@ -127,6 +138,6 @@ case $1 in
delete
;;
*)
echo "please use bash standalone_embed.sh start|stop|delete"
echo "please use bash standalone_embed.sh restart|start|stop|delete"
;;
esac