-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
60 lines (55 loc) · 2.54 KB
/
docker-compose.yml
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
56
57
58
59
60
version: "3.8"
services:
file_server:
container_name: file-server
build:
context: file_server/
ports:
- "1234:1234"
deploy:
resources:
limits:
memory: 128M
cpus: "0.25"
replicas: 1
volumes:
- ./.fileserver/data:/tmp/
# Add more container definitions below
# LOAD TESTER:
# This container is for convenience and does not count against your resource cap.
# Comment this out if you want to manually run load tests from the `load_test` directory.
go_load_tester:
container_name: load-tester
build:
context: go_load_test/
environment:
- FILE_SERVER_HOST=file_server # Point this to your application middleware
- FILE_SERVER_PORT=1234 # Point this to your application middleware (port will change)
- FILE_SERVER_PROTO=http # Point this to your application middleware
- FILE_SERVER_PATH_PREFIX=api/fileserver
- REQUESTS_PER_SECOND=1 # Base requests/sec the load test will begin on.
- SEED_GROWTH_AMOUNT=1 # Every second, this many more requests will be scheduled
- ENABLE_REQUEST_RAMP=true # If true, every 1 minute, your seed growth rate doubles
- ENABLE_FILE_RAMP=true # If true, every 15 seconds the max possible file size written increases by 50%
- RANDOMLY_UPLOAD_LARGE_FILES=true # If true, 1 out of every 100 files uploaded will be > 100MB in size
- MAX_FILE_COUNT=3000 # Recommend 2-5x total REQUESTS_PER_SECOND (consider seed in this calculation)
- MAX_FILE_SIZE=1024 # 1KB, but could be set to ANYTHING in live tests
- TERM=xterm-256color
volumes:
- ./.fileserver/data:/tmp/ # Error logs are written to this data dir under load_test.log
depends_on:
- file_server
# python_load_tester:
# container_name: load-tester
# build:
# context: python_load_test/
# environment:
# - FILE_SERVER_ADDR=http://file_server:1234 # Point this to your application middleware (port will change)
# - REQUESTS_PER_SECOND=500
# - MAX_FILE_COUNT=3000 # Recommend 2-5x REQUESTS_PER_SECOND
# - MAX_FILE_SIZE=1024 # 1KB, but could be set to ANYTHING in live tests
# - TERM=xterm-256color
# volumes:
# - ./.fileserver/data:/tmp/ # Error logs are written to this data dir under load_test.log
# depends_on:
# - file_server