-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
77 lines (70 loc) · 1.44 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
version: '3'
services:
server:
build:
context: server
args:
- MODEL_NAME=identity
- SERVING_PORT=8500
environment:
- MODEL_NAME=identity
- SERVING_PORT=8500
ports:
- "8500:8500"
wsgi-client:
build:
context: client
args:
- CLIENT_PORT=8000
command:
gunicorn --workers=4 --bind=0.0.0.0:8000 wsgi_client:api
environment:
- MODEL_NAME=identity
- SERVING_HOST=server
- SERVING_PORT=8500
ports:
- "8000:8000"
links:
- server
tornado-client:
build:
context: client
args:
- CLIENT_PORT=8001
command:
python3 tornado_client.py --client_port=8001
environment:
- MODEL_NAME=identity
- SERVING_HOST=server
- SERVING_PORT=8500
ports:
- "8001:8001"
links:
- server
grpc-benchmark:
build:
context: client
command:
python3 grpc_client.py --num_requests=10000 --max_concurrent=10
environment:
- MODEL_NAME=identity
- SERVING_HOST=server
- SERVING_PORT=8500
links:
- server
wsgi-benchmark:
build:
context: client
command:
ab -n 10000 -c 10 http://wsgi-client:8000/prediction
links:
- server
- wsgi-client
tornado-benchmark:
build:
context: client
command:
ab -n 10000 -c 10 http://tornado-client:8001/prediction
links:
- server
- tornado-client