Skip to content

Commit 011bfbd

Browse files
fixed milvus port conflict issues during deployment (#183)
* [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fixed milvus port conflict issues during deployment * align port for unified retrieval microservice --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 4f34382 commit 011bfbd

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

comps/dataprep/milvus/prepare_doc_milvus.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@
1212
from comps.cores.mega.micro_service import opea_microservices, register_microservice
1313
from comps.cores.proto.docarray import DocPath
1414
from comps.cores.telemetry.opea_telemetry import opea_telemetry
15+
from comps.dataprep.utils import document_loader
1516

16-
current_script_path = os.path.dirname(os.path.abspath(__file__))
17-
parent_dir = os.path.dirname(current_script_path)
18-
sys.path.append(parent_dir)
19-
from utils import document_loader
17+
# current_script_path = os.path.dirname(os.path.abspath(__file__))
18+
# parent_dir = os.path.dirname(current_script_path)
19+
# sys.path.append(parent_dir)
20+
# from utils import document_loader
2021

2122

2223
@register_microservice(

comps/vectorstores/langchain/milvus/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ services:
6666
- ./milvus.yaml:/milvus/configs/milvus.yaml
6767
- ${DOCKER_VOLUME_DIRECTORY:-.}/volumes/milvus:/var/lib/milvus
6868
healthcheck:
69-
test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
69+
test: ["CMD", "curl", "-f", "http://localhost:9092/healthz"]
7070
interval: 30s
7171
start_period: 90s
7272
timeout: 20s
7373
retries: 3
7474
ports:
7575
- "19530:19530"
76-
- "9091:9091"
76+
- "9092:9092"
7777
depends_on:
7878
- "etcd"
7979
- "minio"

comps/vectorstores/langchain/milvus/milvus.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ proxy:
244244
port: # high-level restful api
245245
acceptTypeAllowInt64: true # high-level restful api, whether http client can deal with int64
246246
enablePprof: true # Whether to enable pprof middleware on the metrics port
247-
ip: # if not specified, use the first unicastable address
247+
ip: 0.0.0.0 # if not specified, use the first unicastable address
248248
port: 19530
249249
internalPort: 19529
250250
grpc:

0 commit comments

Comments
 (0)