milvus/mishards/__init__.py
2019-09-18 14:50:36 +08:00

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)