milvus/tests/python_client/deploy
zhuwenxing 1cf2e14344
Add deploy test (#7539)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2021-09-09 14:32:27 +08:00
..
scripts Add deploy test (#7539) 2021-09-09 14:32:27 +08:00
README.md Add scripts to test deployment by docker-compose (#7448) 2021-09-03 17:15:51 +08:00
requirements.txt Add deploy test (#7539) 2021-09-09 14:32:27 +08:00
run.sh Add deploy test (#7539) 2021-09-09 14:32:27 +08:00
test.sh Add deploy test (#7539) 2021-09-09 14:32:27 +08:00

overview

To test deployment by docker-compose(Both standalone and cluster)

  • re-install milvus to check data persistence
    1. Deploy Milvus
    2. Insert data
    3. Build index
    4. Search
    5. Stop Milvus
    6. Repeat from step #1
  • upgrade milvus to check data compatibility
    1. Deploy Milvus Previous RC)
    2. Insert data
    3. Search
    4. Stop Milvus
    5. Deploy Milvus (Latest RC)
    6. Build index
    7. Search

project structure

.
├── README.md
├── cluster # dir to deploy cluster
│   ├── logs # dir to save logs
│   └──docker-compose.yml
├── standalone # dir to deploy standalone
│   ├── logs # dir to save logs
│   └──docker-compose.yml
├── scripts
│   ├── action_after_upgrade.py
│   ├── action_before_upgrade.py
│   ├── action_reinstall.py
│   └── utils.py
├── test.sh # script to run a single task
└── run.sh # script to run all tasks

usage

Make sure you have installed docker,docker-compose and pymilvus! For different version, you should modify the value of latest_tag, latest_rc_tag and Release. Password of root is needed for deleting volumes dir.

single test task

$ bash test.sh -m ${Mode} -t ${Task} -p ${Password}
# Mode, the mode of milvus deploy. standalone or cluster"
# Task, the task type of test. reinstall or upgrade
# Password, the password of root"

run all tasks

$ bash run.sh -p ${Password}
# Password, the password of root"