For details, refer to the Performance Guide.
Env file: ./environment/.env
Environment variable | Value | Info |
---|---|---|
IMAGE_TAG | nightly-cpu | Docker image tag you want to start |
REGULA_LICENSE_PATH | ./environment/regula.license | Regula license file location |
CONFIG_FILE_PATH | ./environment/config.yaml | Face API config file location |
Face api service starts with settings specified in config file ./environment/config.yaml
Before starting, you need to set the URL where the locus tests will be launched prometheus config file ./environment/prometheus/config.yml
docker compose --profile cpu|gpu --env-file ./environment/.env up -d
docker compose --env-file ./environment/.env down --remove-orphans
docker compose --env-file ./environment/.env down -v --remove-orphans
Service | Port | Credentials |
---|---|---|
FaceAPI | 41101 | |
Postgres | 5432 | User: regula Password: Regulapasswd#1 DB Name: regula_db |
Minio | 9000 9001 |
User: minioadmin Password: minioadmin |
Grafana | 9091 | User: admin Password: admin |
Milvus attu | 3000 |
It is better to run tests on different computers with face service.
Before starting the test, you need to determine the network bandwidth.
cd speed-test
docker build -t speed-test .
docker run --rm -e FACEAPI_HOST={FACEAPI_HOST} speed-test
FACEAPI_HOST is the URL where the face service is raised.
Env file: ./environment/.env
Environment variable | Value | Info |
---|---|---|
FACEAPI_URL | http://127.0.0.1:41101 | URL where face service is installed |
NUMBER_LOCUST_USERS | 1 | Peak number of concurrent Locust users. |
SCENARIO | UserLiveness | Performance test run script |
docker compose -f locust-docker-compose.yml --env-file ./environment/.env up -d
docker compose -f locust-docker-compose.yml --env-file ./environment/.env down
docker compose -f locust-docker-compose.yml --env-file ./environment/.env down -v
All statistics on the service and locust tests will be in Grafana.