数据库服务化
This commit is contained in:
parent
cd35153bde
commit
83331a914b
0
test/milvus/.milvus.db.lock
Normal file
0
test/milvus/.milvus.db.lock
Normal file
88
test/milvus/conf/config.json
Normal file
88
test/milvus/conf/config.json
Normal file
@ -0,0 +1,88 @@
|
||||
{
|
||||
"filesroot": "$[workdir]$/files",
|
||||
"milvus_db": "$[workdir]$/milvus.db",
|
||||
"logger": {
|
||||
"name": "llmengine",
|
||||
"levelname": "info",
|
||||
"logfile": "$[workdir]$/logs/llmengine.log"
|
||||
},
|
||||
"website": {
|
||||
"paths": [
|
||||
["$[workdir]$/wwwroot", ""]
|
||||
],
|
||||
"client_max_size": 10000,
|
||||
"host": "0.0.0.0",
|
||||
"port": 8886,
|
||||
"coding": "utf-8",
|
||||
"indexes": [
|
||||
"index.html",
|
||||
"index.ui"
|
||||
],
|
||||
"startswiths": [
|
||||
{
|
||||
"leading": "/idfile",
|
||||
"registerfunction": "idfile"
|
||||
},
|
||||
{
|
||||
"leading": "/v1/connection",
|
||||
"registerfunction": "connection"
|
||||
},
|
||||
{
|
||||
"leading": "/v1/createcollection",
|
||||
"registerfunction": "createcollection"
|
||||
},
|
||||
{
|
||||
"leading": "/v1/deletecollection",
|
||||
"registerfunction": "deletecollection"
|
||||
},
|
||||
{
|
||||
"leading": "/v1/insertdocument",
|
||||
"registerfunction": "insertdocument"
|
||||
},
|
||||
{
|
||||
"leading": "/v1/deletedocument",
|
||||
"registerfunction": "deletedocument"
|
||||
},
|
||||
{
|
||||
"leading": "/v1/deleteknowledgebase",
|
||||
"registerfunction": "deleteknowledgebase"
|
||||
},
|
||||
{
|
||||
"leading": "/v1/fusedsearchquery",
|
||||
"registerfunction": "fusedsearchquery"
|
||||
},
|
||||
{
|
||||
"leading": "/v1/searchquery",
|
||||
"registerfunction": "searchquery"
|
||||
},
|
||||
{
|
||||
"leading": "/v1/listuserfiles",
|
||||
"registerfunction": "listuserfiles"
|
||||
},
|
||||
{
|
||||
"leading": "/v1/listallknowledgebases",
|
||||
"registerfunction": "listallknowledgebases"
|
||||
},
|
||||
{
|
||||
"leading": "/docs",
|
||||
"registerfunction": "docs"
|
||||
}
|
||||
],
|
||||
"processors": [
|
||||
[".tmpl", "tmpl"],
|
||||
[".app", "app"],
|
||||
[".ui", "bui"],
|
||||
[".dspy", "dspy"],
|
||||
[".md", "md"]
|
||||
],
|
||||
"rsakey_oops": {
|
||||
"privatekey": "$[workdir]$/conf/rsa_private_key.pem",
|
||||
"publickey": "$[workdir]$/conf/rsa_public_key.pem"
|
||||
},
|
||||
"session_max_time": 3000,
|
||||
"session_issue_time": 2500,
|
||||
"session_redis_notuse": {
|
||||
"url": "redis://127.0.0.1:6379"
|
||||
}
|
||||
}
|
||||
}
|
||||
0
test/milvus/logs/llmengine.log
Normal file
0
test/milvus/logs/llmengine.log
Normal file
BIN
test/milvus/milvus.db
Normal file
BIN
test/milvus/milvus.db
Normal file
Binary file not shown.
2
test/milvus/start.sh
Executable file
2
test/milvus/start.sh
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
CUDA_VISIBLE_DEVICES=7 /share/vllm-0.8.5/bin/python -m llmengine.db_service -p 8886 Milvus
|
||||
12
test/milvus/stop.sh
Normal file
12
test/milvus/stop.sh
Normal file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
PORT=8886
|
||||
PID=$(lsof -t -i:$PORT)
|
||||
|
||||
if [ -n "$PID" ]; then
|
||||
echo "找到端口 $PORT 的进程: PID=$PID"
|
||||
kill -9 $PID
|
||||
echo "已终止端口 $PORT 的进程"
|
||||
else
|
||||
echo "未找到端口 $PORT 的进程"
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user