mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
15 lines
478 B
Python
15 lines
478 B
Python
import settings
|
|
from connections import ConnectionMgr
|
|
connect_mgr = ConnectionMgr()
|
|
|
|
from service_founder import ServiceFounder
|
|
discover = ServiceFounder(namespace=settings.SD_NAMESPACE,
|
|
conn_mgr=connect_mgr,
|
|
pod_patt=settings.SD_ROSERVER_POD_PATT,
|
|
label_selector=settings.SD_LABEL_SELECTOR,
|
|
in_cluster=settings.SD_IN_CLUSTER,
|
|
poll_interval=settings.SD_POLL_INTERVAL)
|
|
|
|
from server import Server
|
|
grpc_server = Server(conn_mgr=connect_mgr)
|