sre-ci-robot aee61973fb [automated] Bump milvus version to v2.4.13-hotfix (#36947) 5 天之前
..
sql b79687687d Replace segment index file path with index file id within segment index meta (#19866) 2 年之前
3rdparty_build.sh 70bc0e4538 enhance: add skip 3rdparty env var (#35736) 1 月之前
OWNERS 12f50cb22c [skip ci]Update OWNERS files (#11898) 2 年之前
README.md 241c71fdde enhance: use docker compose instead of docker-compose (#35208) 2 月之前
antlr-4.13.2-complete.jar d1060c0e05 enhance: Update antlr version and refine parsing not in (#36745) 1 周之前
azure_build.sh 5f00bad4b8 fix: link with install path's libblob-chunk-manager (#29496) 9 月之前
check_cpp_fmt.sh 375190e76e fix: cpp format check not work (#30767) 8 月之前
check_proto_product.sh fd974df09f OTEL integration in cpp (#22175) 1 年之前
collect_arrow_dep.sh 5ad89ff4e8 Add offline build logic for arrow dependency (#17266) 2 年之前
core_build.sh a05a37a583 enhance: GCS native support (GCS implemented using Google Cloud Storage libraries) (#36214) 3 周之前
devcontainer.sh 241c71fdde enhance: use docker compose instead of docker-compose (#35208) 2 月之前
docker_image_find_tag.sh 251ffea494 [skip ci] Update the comments (#9633) 3 年之前
download_milvus_proto.sh a1232fafda feat: Major compaction (#33620) 4 月之前
generate_proto.sh 2c9bb4dfa3 feat: Support stats task to sort segment by PK (#35054) 1 月之前
gofmt.sh 533f0ddf6d Add amazonlinux image, prepare to remove Centos7 image, remove openblas image (#26368) 1 年之前
install_deps.sh 7bf68d8657 enhance: upgrade conan version (#35215) 2 月之前
install_deps_embd.sh c9d9940918 Remove Ubuntu18.04 support (#24666) 1 年之前
install_deps_msys.sh 7bf68d8657 enhance: upgrade conan version (#35215) 2 月之前
install_milvus.sh 75da36d1aa enhance: enable asan for milvus (#35627) 2 月之前
package_windows.sh 3cd28420f1 Support compile under windows (#15786) 2 年之前
run_cpp_codecov.sh 265453f400 enhance: [skip e2e]revert back to original way to archive, upload and download (#30248) 8 月之前
run_cpp_unittest.sh d10aa4626f enhance: [skip e2e] add make run-test-cpp with support for filter gtest (#35829) 1 月之前
run_docker.sh 241c71fdde enhance: use docker compose instead of docker-compose (#35208) 2 月之前
run_go_codecov.sh 63f0154dfb fix: enable milvus.yaml check (#34567) 2 月之前
run_go_unittest.sh 14051fed7d enhance: streaming service client (#34656) 2 月之前
run_intergration_test.sh 1cd15d9322 test: support segment release in integration test (#31190) 6 月之前
setenv.sh 42db013a7b Support llvm17 on MacOS (#27582) 1 年之前
standalone_embed.sh aee61973fb [automated] Bump milvus version to v2.4.13-hotfix (#36947) 5 天之前
start_cluster.sh 56d7225673 fix: Add LD_LIBRARY_PATH when local start milvus (#29287) 10 月之前
start_standalone.sh 56d7225673 fix: Add LD_LIBRARY_PATH when local start milvus (#29287) 10 月之前
stop.sh 6ce98cf542 Fix sript stop unable to find milvus process (#27957) 1 年之前
stop_graceful.sh 0c69f48ba4 refine stop order (#28016) 11 月之前
update-api-version.sh 93ee113c12 Fix update-api-version.sh for master branch (#24773) 1 年之前

README.md

Compile and install milvus cluster

Environment

OS: Ubuntu 20.04
go:1.21
cmake: >=3.18
gcc: 7.5

Install dependencies

Install compile dependencies

$ sudo apt install -y g++ gcc make libssl-dev zlib1g-dev libboost-regex-dev \
    libboost-program-options-dev libboost-system-dev libboost-filesystem-dev \
    libboost-serialization-dev python3-dev libboost-python-dev libcurl4-openssl-dev gfortran libtbb-dev
$ export GO111MODULE=on
$ go get github.com/golang/protobuf/protoc-gen-go@v1.3.2

Install OpenBlas library

install using apt

sudo apt install -y libopenblas-dev

or build from source code

$ wget https://github.com/xianyi/OpenBLAS/archive/v0.3.9.tar.gz && \
$ tar zxvf v0.3.9.tar.gz && cd OpenBLAS-0.3.9 && \
$ make TARGET=CORE2 DYNAMIC_ARCH=1 DYNAMIC_OLDER=1 USE_THREAD=0 USE_OPENMP=0 FC=gfortran CC=gcc COMMON_OPT="-O3 -g -fPIC" FCOMMON_OPT="-O3 -g -fPIC -frecursive" NMAX="NUM_THREADS=128" LIBPREFIX="libopenblas" INTERFACE64=0 NO_STATIC=1 && \
$ make PREFIX=/usr install

Compile

Generate the go files from proto file

$ make check-proto-product

Check code specifications

$ make verifiers

Compile milvus

$ make milvus

Install docker-compose

refer: https://docs.docker.com/compose/install/

$ sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
$ sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
$ docker-compose --version
$ docker compose --version

Start service

Start third-party service:

$ cd [milvus project path]/deployments/docker/cluster
$ docker-compose up -d
$ docker compose up -d

Start milvus cluster:

$ cd [milvus project path]
$ ./scripts/start_cluster.sh

Run unittest

Run all unittest including go and cpp cases:

$ make unittest

You also can run go unittest only:

$ make test-go

Run cpp unittest only:

$ make test-cpp

Run code coverage

Run code coverage including go and cpp:

$ make codecov

You also can run go code coverage only:

$ make codecov-go

Run cpp code coverage only:

$ make codecov-cpp