milvus/tests/benchmark
Cai Yudong 84110d2684 Add tests/benchmark and tests/python_test using new python SDK
Signed-off-by: Cai Yudong <yudong.cai@zilliz.com>
2021-02-25 17:35:36 +08:00
..
assets Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
ci Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
executors Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
handlers Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
results Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
runners Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
scheduler Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
suites Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
task Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
__init__.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
client.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
docker_runner.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
docker_utils.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
helm_utils.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
k8s_runner.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
local_runner.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
locust_file.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
locust_flush_task.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
locust_get_entity_task.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
locust_insert_task.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
locust_search_task.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
locust_task.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
locust_tasks.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
locust_test.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
locust_user.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
main.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
mix_task.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
operation.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
parser.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
README.md Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
requirements.txt Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
runner.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
search_task.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
test_loop.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00
utils.py Add tests/benchmark and tests/python_test using new python SDK 2021-02-25 17:35:36 +08:00

Quick start

Description

This project is used to test performance/reliability/stability for milvus server

  • Test cases can be organized with yaml
  • Test can run with local mode or helm mode

Usage:

pip install requirements.txt

if using local mode, the following libs is optional

pymongo==3.10.0

kubernetes==10.0.1

Demos

  1. Local test

    python3 main.py --local --host=*.* --port=19530 --suite=suites/gpu_search_performance_random50m.yaml

Definitions of test suites

Testers need to write test suite config if adding a customizised test into the current test framework

  1. search_performance: the test typealso we havebuild_performance,insert_performance,accuracy,stability,search_stability
  2. tables: list of test cases
  3. The following fields are in the table field
    • server: run host
    • milvus: config in milvus
    • collection_name: currently support one collection
    • run_count: search count
    • search_params: params of query

Test result

Test result will be uploaded if tests run in helm mode, and will be used to judge if the test run pass or failed