From 4c5a898e9a1f0485c63b8bbcca19526f0b4cc9f6 Mon Sep 17 00:00:00 2001 From: "cai.zhang" Date: Sat, 20 Feb 2021 11:15:19 +0800 Subject: [PATCH] Add masterservice docker Signed-off-by: cai.zhang --- .../Regression/PythonRegression.groovy | 2 +- build/docker/deploy/proxynode/Dockerfile | 16 +- build/docker/deploy/proxyservice/Dockerfile | 16 +- cmd/distributed/components/data_service.go | 6 +- .../distributed/dataservice/paramtable.go | 48 ++++++ internal/distributed/proxynode/service.go | 2 +- internal/proto/commonpb/common.pb.go | 157 +++++++++--------- scripts/build_docker.sh | 11 ++ scripts/run_docker.sh | 31 ++++ 9 files changed, 204 insertions(+), 85 deletions(-) create mode 100644 internal/distributed/dataservice/paramtable.go create mode 100755 scripts/build_docker.sh create mode 100755 scripts/run_docker.sh diff --git a/.jenkins/modules/Regression/PythonRegression.groovy b/.jenkins/modules/Regression/PythonRegression.groovy index be3370ccc5..a9ed80a4e9 100644 --- a/.jenkins/modules/Regression/PythonRegression.groovy +++ b/.jenkins/modules/Regression/PythonRegression.groovy @@ -36,7 +36,7 @@ try { throw exc } finally { dir ('build/docker/deploy') { - sh 'docker-compose -p ${DOCKER_COMPOSE_PROJECT_NAME} ps | tail -n +3 | awk \'{ print $1 }\' | ( while read arg; do docker logs -t $arg > $arg.log 2>&1; done )' + sh 'docker-compose -p ${DOCKER_COMPOSE_PROJECT_NAME} ps -a | tail -n +3 | awk \'{ print $1 }\' | ( while read arg; do docker logs -t $arg > $arg.log 2>&1; done )' archiveArtifacts artifacts: "**.log", allowEmptyArchive: true sh 'docker-compose -p ${DOCKER_COMPOSE_PROJECT_NAME} down --rmi all -v || true' } diff --git a/build/docker/deploy/proxynode/Dockerfile b/build/docker/deploy/proxynode/Dockerfile index 8f6d28d8c4..7d7b8112f7 100644 --- a/build/docker/deploy/proxynode/Dockerfile +++ b/build/docker/deploy/proxynode/Dockerfile @@ -9,7 +9,17 @@ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under the License. -FROM alpine:3.12.1 +FROM milvusdb/milvus-distributed-dev:amd64-ubuntu18.04-latest AS openblas + +#FROM alpine +FROM ubuntu:bionic-20200921 + +RUN apt-get update && apt-get install -y --no-install-recommends libtbb-dev gfortran + +COPY --from=openblas /usr/lib/libopenblas-r0.3.9.so /usr/lib/ + +RUN ln -s /usr/lib/libopenblas-r0.3.9.so /usr/lib/libopenblas.so.0 && \ + ln -s /usr/lib/libopenblas.so.0 /usr/lib/libopenblas.so COPY ./bin/proxynode /milvus-distributed/bin/proxynode @@ -19,6 +29,10 @@ ENV LD_LIBRARY_PATH=/milvus-distributed/lib:$LD_LIBRARY_PATH:/usr/lib COPY ./configs/ /milvus-distributed/configs/ +COPY ./lib/ /milvus-distributed/lib/ + +ENV LD_LIBRARY_PATH=/milvus-distributed/lib:$LD_LIBRARY_PATH:/usr/lib + WORKDIR /milvus-distributed/ CMD ["./bin/proxynode"] diff --git a/build/docker/deploy/proxyservice/Dockerfile b/build/docker/deploy/proxyservice/Dockerfile index 3ab4530fbc..39fb5dd1cf 100644 --- a/build/docker/deploy/proxyservice/Dockerfile +++ b/build/docker/deploy/proxyservice/Dockerfile @@ -9,7 +9,17 @@ # is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express # or implied. See the License for the specific language governing permissions and limitations under the License. -FROM alpine:3.12.1 +FROM milvusdb/milvus-distributed-dev:amd64-ubuntu18.04-latest AS openblas + +#FROM alpine +FROM ubuntu:bionic-20200921 + +RUN apt-get update && apt-get install -y --no-install-recommends libtbb-dev gfortran + +COPY --from=openblas /usr/lib/libopenblas-r0.3.9.so /usr/lib/ + +RUN ln -s /usr/lib/libopenblas-r0.3.9.so /usr/lib/libopenblas.so.0 && \ + ln -s /usr/lib/libopenblas.so.0 /usr/lib/libopenblas.so COPY ./bin/proxyservice /milvus-distributed/bin/proxyservice @@ -19,6 +29,10 @@ ENV LD_LIBRARY_PATH=/milvus-distributed/lib:$LD_LIBRARY_PATH:/usr/lib COPY ./configs/ /milvus-distributed/configs/ +COPY ./lib/ /milvus-distributed/lib/ + +ENV LD_LIBRARY_PATH=/milvus-distributed/lib:$LD_LIBRARY_PATH:/usr/lib + WORKDIR /milvus-distributed/ CMD ["./bin/proxyservice"] diff --git a/cmd/distributed/components/data_service.go b/cmd/distributed/components/data_service.go index 1205db71a5..6ca63d786b 100644 --- a/cmd/distributed/components/data_service.go +++ b/cmd/distributed/components/data_service.go @@ -3,12 +3,10 @@ package components import ( "context" "errors" - "fmt" "log" "time" ms "github.com/zilliztech/milvus-distributed/internal/distributed/masterservice" - "github.com/zilliztech/milvus-distributed/internal/masterservice" "github.com/zilliztech/milvus-distributed/internal/msgstream" "github.com/zilliztech/milvus-distributed/internal/proto/internalpb2" @@ -24,8 +22,8 @@ type DataService struct { func NewDataService(ctx context.Context, factory msgstream.Factory) (*DataService, error) { service := dataservice.NewGrpcService(ctx, factory) - masterservice.Params.Init() - client, err := ms.NewGrpcClient(fmt.Sprintf("%s:%d", masterservice.Params.Address, masterservice.Params.Port), 30*time.Second) + dataservice.Params.Init() + client, err := ms.NewGrpcClient(dataservice.Params.MasterAddress, 30*time.Second) if err != nil { return nil, err } diff --git a/internal/distributed/dataservice/paramtable.go b/internal/distributed/dataservice/paramtable.go new file mode 100644 index 0000000000..2af61acbaa --- /dev/null +++ b/internal/distributed/dataservice/paramtable.go @@ -0,0 +1,48 @@ +package dataservice + +import ( + "os" + "sync" + + "github.com/zilliztech/milvus-distributed/internal/util/paramtable" +) + +type ParamTable struct { + paramtable.BaseTable + + MasterAddress string +} + +var Params ParamTable +var once sync.Once + +func (pt *ParamTable) Init() { + once.Do(func() { + pt.BaseTable.Init() + pt.initParams() + pt.LoadFromEnv() + }) +} + +func (pt *ParamTable) initParams() { + pt.initMasterAddress() +} + +func (pt *ParamTable) LoadFromEnv() { + masterAddress := os.Getenv("MASTER_ADDRESS") + if masterAddress != "" { + pt.MasterAddress = masterAddress + } +} + +func (pt *ParamTable) initMasterAddress() { + masterHost, err := pt.Load("master.address") + if err != nil { + panic(err) + } + port, err := pt.Load("master.port") + if err != nil { + panic(err) + } + pt.MasterAddress = masterHost + ":" + port +} diff --git a/internal/distributed/proxynode/service.go b/internal/distributed/proxynode/service.go index 6a3ce066f4..b04ac95d97 100644 --- a/internal/distributed/proxynode/service.go +++ b/internal/distributed/proxynode/service.go @@ -168,7 +168,7 @@ func (s *Server) init() error { log.Println("set master client ...") dataServiceAddr := Params.DataServiceAddress - log.Println("data service address ...") + log.Println("data service address ...", dataServiceAddr) s.dataServiceClient = grpcdataservice.NewClient(dataServiceAddr) err = s.dataServiceClient.Init() if err != nil { diff --git a/internal/proto/commonpb/common.pb.go b/internal/proto/commonpb/common.pb.go index 2135d3a97f..860f794266 100644 --- a/internal/proto/commonpb/common.pb.go +++ b/internal/proto/commonpb/common.pb.go @@ -123,6 +123,7 @@ const ( IndexState_INPROGRESS IndexState = 2 IndexState_FINISHED IndexState = 3 IndexState_FAILED IndexState = 4 + IndexState_DELETED IndexState = 5 ) var IndexState_name = map[int32]string{ @@ -131,6 +132,7 @@ var IndexState_name = map[int32]string{ 2: "INPROGRESS", 3: "FINISHED", 4: "FAILED", + 5: "DELETED", } var IndexState_value = map[string]int32{ @@ -139,6 +141,7 @@ var IndexState_value = map[string]int32{ "INPROGRESS": 2, "FINISHED": 3, "FAILED": 4, + "DELETED": 5, } func (x IndexState) String() string { @@ -652,81 +655,81 @@ func init() { func init() { proto.RegisterFile("common.proto", fileDescriptor_555bd8c177793206) } var fileDescriptor_555bd8c177793206 = []byte{ - // 1205 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x55, 0xdd, 0x8e, 0xdb, 0x44, - 0x14, 0x6e, 0x7e, 0x76, 0xb3, 0x3e, 0x49, 0xb3, 0xb3, 0xb3, 0x7f, 0x01, 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b, 0x4d, 0x8d, - 0xb3, 0x70, 0x8f, 0xb2, 0xe2, 0xbe, 0xd2, 0xd4, 0x8c, 0x8a, 0x77, 0xc0, 0x90, 0xeb, 0xfe, 0xb5, - 0x76, 0x7e, 0xfe, 0xce, 0x5b, 0xe3, 0x50, 0x5c, 0x2d, 0x06, 0xf2, 0x85, 0x38, 0x7b, 0x1a, 0x46, - 0x51, 0xf8, 0x54, 0xb0, 0xe1, 0xd5, 0x59, 0xfa, 0x7a, 0xdc, 0x1a, 0x85, 0x5c, 0x24, 0xe1, 0x60, - 0x21, 0xd8, 0xe8, 0x2c, 0x9c, 0x09, 0x96, 0xcc, 0x82, 0xe8, 0x4c, 0x3d, 0x29, 0x67, 0xe9, 0x93, - 0x32, 0x1f, 0x0c, 0x36, 0x95, 0xfd, 0xfa, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x22, 0x65, 0x7d, - 0x40, 0x35, 0x08, 0x00, 0x00, + // 1214 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x55, 0xcb, 0x6e, 0xdb, 0x46, + 0x17, 0x8e, 0x2e, 0xb6, 0xcc, 0x23, 0x45, 0x1e, 0x8f, 0x6f, 0xfa, 0xff, 0xba, 0x45, 0xe0, 0x55, + 0x60, 0x20, 0x76, 0xd1, 0x02, 0xed, 0x2a, 0x40, 0x65, 0x72, 0x64, 0x13, 0xa1, 0x48, 0x65, 0x48, + 0xa5, 0x49, 0xbb, 0x20, 0x28, 0x69, 0x22, 0xb3, 0xa2, 0x44, 0x95, 0x33, 0x4a, 0xa2, 0xac, 0xfb, + 0x00, 0x6d, 0x9e, 0xa3, 0x05, 0x7a, 0x6f, 0x1f, 0xa1, 0xf7, 0x75, 0x1f, 0xa1, 0x0f, 0xd0, 0x1b, + 0xda, 0x4d, 0x31, 0x43, 0x52, 0x22, 0x8a, 0x74, 0xc7, 0xf3, 0x9d, 0x39,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8, 0x2c, 0x9c, 0x09, 0x96, + 0xcc, 0x82, 0xe8, 0x4c, 0xbd, 0x2f, 0x67, 0xe9, 0xfb, 0x32, 0x1f, 0x0c, 0x36, 0x55, 0xfc, 0xea, + 0x3f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x87, 0x60, 0x0f, 0x2d, 0x42, 0x08, 0x00, 0x00, } diff --git a/scripts/build_docker.sh b/scripts/build_docker.sh new file mode 100755 index 0000000000..c3abc2619f --- /dev/null +++ b/scripts/build_docker.sh @@ -0,0 +1,11 @@ +cd ../build/docker/deploy/ + +docker-compose build --build-arg https_proxy=http://wakanda:Fantast1c@192.168.2.28:3339 master +docker-compose build --build-arg https_proxy=http://wakanda:Fantast1c@192.168.2.28:3339 proxyservice +docker-compose build --build-arg https_proxy=http://wakanda:Fantast1c@192.168.2.28:3339 proxynode +docker-compose build --build-arg https_proxy=http://wakanda:Fantast1c@192.168.2.28:3339 indexservice +docker-compose build --build-arg https_proxy=http://wakanda:Fantast1c@192.168.2.28:3339 indexnode +docker-compose build --build-arg https_proxy=http://wakanda:Fantast1c@192.168.2.28:3339 queryservice +docker-compose build --build-arg https_proxy=http://wakanda:Fantast1c@192.168.2.28:3339 dataservice +docker-compose build --build-arg https_proxy=http://wakanda:Fantast1c@192.168.2.28:3339 querynode +docker-compose build --build-arg https_proxy=http://wakanda:Fantast1c@192.168.2.28:3339 datanode diff --git a/scripts/run_docker.sh b/scripts/run_docker.sh new file mode 100755 index 0000000000..be6b0bff43 --- /dev/null +++ b/scripts/run_docker.sh @@ -0,0 +1,31 @@ +cd ../build/docker/deploy/ + +echo "starting master docker" +nohup docker-compose -p milvus-distributed up master > ~/master_docker.log 2>&1 & + +echo "starting proxyservice docker" +nohup docker-compose -p milvus-distributed up proxyservice > ~/proxyservice_docker.log 2>&1 & + +echo "starting proxynode docker" +nohup docker-compose -p milvus-distributed up proxynode > ~/proxynode_docker.log 2>&1 & + +echo "starting indexservice docker" +nohup docker-compose -p milvus-distributed up indexservice > ~/indexservice_docker.log 2>&1 & + +echo "starting indexnode docker" +nohup docker-compose -p milvus-distributed up indexnode > ~/indexnode_docker.log 2>&1 & + +echo "starting queryservice docker" +nohup docker-compose -p milvus-distributed up queryservice > ~/queryservice_docker.log 2>&1 & + +echo "starting dataservice docker" +nohup docker-compose -p milvus-distributed up dataservice > ~/dataservice_docker.log 2>&1 & + +echo "starting querynode1 docker" +nohup docker-compose -p milvus-distributed run -e QUERY_NODE_ID=1 querynode > ~/querynode1_docker.log 2>&1 & + +echo "starting querynode2 docker" +nohup docker-compose -p milvus-distributed run -e QUERY_NODE_ID=2 querynode > ~/querynode2_docker.log 2>&1 & + +echo "starting datanode docker" +nohup docker-compose -p milvus-distributed run -e DATA_NODE_ID=3 datanode > ~/datanode_docker.log 2>&1 &