This repository was archived by the owner on Apr 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose-locust.yml
More file actions
55 lines (49 loc) · 1.51 KB
/
docker-compose-locust.yml
File metadata and controls
55 lines (49 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ---------------------------------------------------------------------------- #
# Performance Tests
#
# Steps:
#
# 1. Start the app as usual.
#
# 2. Run: docker compose -f docker-compose-locust.yml up --quiet-pull
#
# 3. Go to: http://localhost:8089
#
# 4. Indicate number of total users and hatch rate (>0) and press "start".
#
# ---------------------------------------------------------------------------- #
networks:
internal:
name: ${NETWORK_NAME}
external: true
services:
locust-master:
image: locustio/locust
environment: &locust_env
BASE_HOST: http://${NETWORK_DOMAIN}
AETHER_KERNEL_TOKEN: ${KERNEL_ADMIN_TOKEN}
AETHER_KERNEL_URL: http://${NETWORK_DOMAIN}/kernel
# Task priorities
CREATE_PROJECT_PRIORITY: ${TEST_CREATE_PROJECT:-2}
CREATE_SUBMISSION_PRIORITY: ${TEST_CREATE_SUBMISSION:-100}
HEALTH_CHECK_PRIORITY: ${TEST_HEALTH_CHECK:-2}
VIEW_PROJECTS_PRIORITY: ${TEST_VIEW_PROJECTS:-5}
volumes: &locust_volumes
- ./tests/performance:/mnt/locust
ports:
- 8089:8089
command: -f /mnt/locust/locustfile.py --master
networks:
- internal
extra_hosts:
- ${NETWORK_DOMAIN}:${NETWORK_NGINX_IP}
locust-worker:
image: locustio/locust
environment: *locust_env
volumes: *locust_volumes
scale: ${TEST_WORKERS:-5}
command: -f /mnt/locust/locustfile.py --worker --master-host locust-master
networks:
- internal
extra_hosts:
- ${NETWORK_DOMAIN}:${NETWORK_NGINX_IP}