-
Notifications
You must be signed in to change notification settings - Fork 0
/
loadgen_s3.log
205 lines (197 loc) · 17.4 KB
/
loadgen_s3.log
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
Initialize Loadgenerator
NAME STATUS ROLES AGE VERSION
gke-gke1-default-pool-8dfeafcb-6cn3 Ready <none> 23d v1.13.7-gke.8
gke-gke1-default-pool-8dfeafcb-l7rx Ready <none> 2d1h v1.13.7-gke.8
gke-gke1-default-pool-8dfeafcb-s6dz Ready <none> 23d v1.13.7-gke.8
gke-gke1-default-pool-8dfeafcb-w69j Ready <none> 23d v1.13.7-gke.8
apiVersion: v1
kind: Pod
metadata:
name: loadgen
spec:
terminationGracePeriodSeconds: 5
restartPolicy: Always
initContainers:
- name: wait-frontend
image: alpine:3.6
command: ['sh', '-c', 'set -x; apk add --no-cache curl &&
until timeout -t 2 curl -f "http://${FRONTEND_ADDR}"; do
echo "waiting for http://${FRONTEND_ADDR}";
sleep 2;
done;']
env:
- name: FRONTEND_ADDR
value: "frontend:80"
containers:
- name: main
# image: docker.io/edwardro22/loadgen:latest
image: gcr.io/google-samples/microservices-demo/loadgenerator:v0.1.1
env:
- name: FRONTEND_ADDR
value: "frontend:80"
- name: USERS
value: "100"
# resources:
# requests:
# cpu: 300m
# memory: 256Mi
# limits:
# cpu: 500m
# memory: 512Mi
pod/loadgen created
NAME READY STATUS RESTARTS AGE
adservice-5db678b487-f6mvl 1/1 Running 0 2d
cartservice-5bc4df97b-vsxrj 1/1 Running 207 15d
checkoutservice-54d8dd7449-gxhz6 1/1 Running 1 16d
currencyservice-954d8c5f-b76fb 1/1 Running 1 16d
emailservice-8c4984b5c-wcccr 1/1 Running 4039 16d
frontend-66dd5f88f9-npmzb 1/1 Running 8 16d
loadgen 0/1 Init:0/1 0 0s
paymentservice-5684b97df7-6lkp7 1/1 Running 2 16d
productcatalogservice-59c4dc775c-hk48v 1/1 Running 0 2d1h
recommendationservice-86c8cbd4dd-b28zl 1/1 Running 2 16d
redis-cart-65bf66b8fd-vcv5v 1/1 Running 0 2d1h
shippingservice-7dfd7b6fcc-rbdjh 1/1 Running 0 16d
wait for pod to initialize
pod is not Running sleep for 3s
pod is not Running sleep for 3s
NAME READY STATUS RESTARTS AGE
adservice-5db678b487-f6mvl 1/1 Running 0 2d
cartservice-5bc4df97b-vsxrj 1/1 Running 207 15d
checkoutservice-54d8dd7449-gxhz6 1/1 Running 1 16d
currencyservice-954d8c5f-b76fb 1/1 Running 1 16d
emailservice-8c4984b5c-wcccr 1/1 Running 4039 16d
frontend-66dd5f88f9-npmzb 1/1 Running 8 16d
loadgen 1/1 Running 0 7s
paymentservice-5684b97df7-6lkp7 1/1 Running 2 16d
productcatalogservice-59c4dc775c-hk48v 1/1 Running 0 2d1h
recommendationservice-86c8cbd4dd-b28zl 1/1 Running 2 16d
redis-cart-65bf66b8fd-vcv5v 1/1 Running 0 2d1h
shippingservice-7dfd7b6fcc-rbdjh 1/1 Running 0 16d
Harvest logs from pod
./loadgen.sh: 21: ./loadgen.sh: [[: not found
+ locust --host=http://frontend:80 --no-web -c 100
[2019-07-27 17:04:42,118] loadgen/INFO/locust.main: Starting Locust 0.8.1
[2019-07-27 17:04:42,119] loadgen/INFO/locust.runners: Hatching and swarming 100 clients at the rate 1 clients/s...
Name # reqs # fails Avg Min Max | Median req/s
--------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------
Total 0 0(0.00%) 0.00
Name # reqs # fails Avg Min Max | Median req/s
--------------------------------------------------------------------------------------------------------------------------------------------
GET / 2 0(0.00%) 123 120 127 | 120 0.00
GET /product/2ZYFJ3GM2N 1 0(0.00%) 50 50 50 | 50 0.00
GET /product/66VCHSJNUP 1 0(0.00%) 43 43 43 | 43 0.00
--------------------------------------------------------------------------------------------------------------------------------------------
Total 4 0(0.00%) 0.00
Name # reqs # fails Avg Min Max | Median req/s
--------------------------------------------------------------------------------------------------------------------------------------------
GET / 4 0(0.00%) 122 118 127 | 120 1.00
GET /product/2ZYFJ3GM2N 2 0(0.00%) 48 47 50 | 47 1.00
GET /product/66VCHSJNUP 1 0(0.00%) 43 43 43 | 43 0.00
POST /setCurrency 1 0(0.00%) 52 52 52 | 52 0.00
--------------------------------------------------------------------------------------------------------------------------------------------
Total 8 0(0.00%) 2.00
Name # reqs # fails Avg Min Max | Median req/s
--------------------------------------------------------------------------------------------------------------------------------------------
GET / 6 0(0.00%) 119 112 127 | 120 1.00
GET /cart 1 0(0.00%) 42 42 42 | 42 0.00
POST /cart 1 0(0.00%) 60 60 60 | 60 0.00
GET /product/2ZYFJ3GM2N 2 0(0.00%) 48 47 50 | 47 0.33
GET /product/66VCHSJNUP 1 0(0.00%) 43 43 43 | 43 0.33
GET /product/9SIQT8TOJO 2 0(0.00%) 43 43 43 | 43 0.00
POST /setCurrency 1 0(0.00%) 52 52 52 | 52 0.33
--------------------------------------------------------------------------------------------------------------------------------------------
Total 14 0(0.00%) 2.00
Name # reqs # fails Avg Min Max | Median req/s
--------------------------------------------------------------------------------------------------------------------------------------------
GET / 8 0(0.00%) 115 98 127 | 120 1.00
GET /cart 3 0(0.00%) 38 36 42 | 37 0.20
POST /cart 1 0(0.00%) 60 60 60 | 60 0.20
GET /product/2ZYFJ3GM2N 2 0(0.00%) 48 47 50 | 47 0.40
GET /product/66VCHSJNUP 1 0(0.00%) 43 43 43 | 43 0.20
GET /product/9SIQT8TOJO 3 0(0.00%) 43 43 43 | 43 0.20
POST /setCurrency 2 0(0.00%) 73 52 94 | 52 0.20
--------------------------------------------------------------------------------------------------------------------------------------------
Total 20 0(0.00%) 2.40
Name # reqs # fails Avg Min Max | Median req/s
--------------------------------------------------------------------------------------------------------------------------------------------
GET / 10 0(0.00%) 114 98 127 | 110 1.00
GET /cart 3 0(0.00%) 38 36 42 | 37 0.38
POST /cart 4 0(0.00%) 81 60 138 | 64 0.12
POST /cart/checkout 1 0(0.00%) 345 345 345 | 340 0.00
GET /product/1YMWWN1N4O 1 0(0.00%) 66 66 66 | 66 0.00
GET /product/2ZYFJ3GM2N 2 0(0.00%) 48 47 50 | 47 0.25
GET /product/66VCHSJNUP 1 0(0.00%) 43 43 43 | 43 0.12
GET /product/9SIQT8TOJO 3 0(0.00%) 43 43 43 | 43 0.38
GET /product/L9ECAV7KIM 2 0(0.00%) 48 36 61 | 36 0.00
GET /product/LS4PSXUNUM 1 0(0.00%) 40 40 40 | 40 0.00
GET /product/OLJCESPC7Z 1 0(0.00%) 71 71 71 | 71 0.00
POST /setCurrency 2 0(0.00%) 73 52 94 | 52 0.25
--------------------------------------------------------------------------------------------------------------------------------------------
Total 31 0(0.00%) 2.50
Name # reqs # fails Avg Min Max | Median req/s
--------------------------------------------------------------------------------------------------------------------------------------------
GET / 12 0(0.00%) 120 98 199 | 110 1.00
GET /cart 3 0(0.00%) 38 36 42 | 37 0.33
POST /cart 5 0(0.00%) 77 60 138 | 64 0.22
POST /cart/checkout 3 0(0.00%) 455 345 573 | 450 0.11
GET /product/1YMWWN1N4O 1 0(0.00%) 66 66 66 | 66 0.00
GET /product/2ZYFJ3GM2N 2 0(0.00%) 48 47 50 | 47 0.22
GET /product/66VCHSJNUP 2 0(0.00%) 41 40 43 | 40 0.11
GET /product/9SIQT8TOJO 3 0(0.00%) 43 43 43 | 43 0.33
GET /product/L9ECAV7KIM 2 0(0.00%) 48 36 61 | 36 0.11
GET /product/LS4PSXUNUM 2 0(0.00%) 47 40 55 | 40 0.11
GET /product/OLJCESPC7Z 1 0(0.00%) 71 71 71 | 71 0.00
POST /setCurrency 3 0(0.00%) 84 52 108 | 94 0.22
--------------------------------------------------------------------------------------------------------------------------------------------
Total 39 0(0.00%) 2.78
Name # reqs # fails Avg Min Max | Median req/s
--------------------------------------------------------------------------------------------------------------------------------------------
GET / 14 0(0.00%) 120 98 199 | 110 1.00
GET /cart 3 0(0.00%) 38 36 42 | 37 0.30
POST /cart 6 0(0.00%) 85 60 138 | 64 0.40
POST /cart/checkout 3 0(0.00%) 455 345 573 | 450 0.30
GET /product/0PUK6V6EV0 2 0(0.00%) 46 42 51 | 42 0.00
GET /product/1YMWWN1N4O 1 0(0.00%) 66 66 66 | 66 0.10
GET /product/2ZYFJ3GM2N 3 0(0.00%) 45 39 50 | 47 0.10
GET /product/66VCHSJNUP 2 0(0.00%) 41 40 43 | 40 0.10
GET /product/6E92ZMYYFZ 1 0(0.00%) 38 38 38 | 38 0.00
GET /product/9SIQT8TOJO 3 0(0.00%) 43 43 43 | 43 0.30
GET /product/L9ECAV7KIM 3 0(0.00%) 67 36 106 | 61 0.20
GET /product/LS4PSXUNUM 3 0(0.00%) 51 40 59 | 55 0.10
GET /product/OLJCESPC7Z 1 0(0.00%) 71 71 71 | 71 0.10
POST /setCurrency 4 0(0.00%) 80 52 108 | 69 0.30
--------------------------------------------------------------------------------------------------------------------------------------------
Total 49 0(0.00%) 3.30
Currency logs:
POST /setCurrency 1 0(0.00%) 52 52 52 | 52 0.00
POST /setCurrency 1 0(0.00%) 52 52 52 | 52 0.33
POST /setCurrency 2 0(0.00%) 73 52 94 | 52 0.20
POST /setCurrency 2 0(0.00%) 73 52 94 | 52 0.25
POST /setCurrency 3 0(0.00%) 84 52 108 | 94 0.22
POST /setCurrency 4 0(0.00%) 80 52 108 | 69 0.30
NAME STATUS ROLES AGE VERSION
gke-gke1-default-pool-8dfeafcb-6cn3 Ready <none> 23d v1.13.7-gke.8
gke-gke1-default-pool-8dfeafcb-l7rx Ready <none> 2d1h v1.13.7-gke.8
gke-gke1-default-pool-8dfeafcb-s6dz Ready <none> 23d v1.13.7-gke.8
gke-gke1-default-pool-8dfeafcb-w69j Ready <none> 23d v1.13.7-gke.8
Deleting pod
pod "loadgen" deleted
NAME READY STATUS RESTARTS AGE
adservice-5db678b487-f6mvl 1/1 Running 0 2d1h
cartservice-5bc4df97b-vsxrj 1/1 Running 207 15d
checkoutservice-54d8dd7449-gxhz6 1/1 Running 1 16d
currencyservice-954d8c5f-b76fb 1/1 Running 1 16d
emailservice-8c4984b5c-wcccr 1/1 Running 4039 16d
frontend-66dd5f88f9-npmzb 1/1 Running 8 16d
paymentservice-5684b97df7-6lkp7 1/1 Running 2 16d
productcatalogservice-59c4dc775c-hk48v 1/1 Running 0 2d1h
recommendationservice-86c8cbd4dd-b28zl 1/1 Running 2 16d
redis-cart-65bf66b8fd-vcv5v 1/1 Running 0 2d1h
shippingservice-7dfd7b6fcc-rbdjh 1/1 Running 0 16d
NAME STATUS ROLES AGE VERSION
gke-gke1-default-pool-8dfeafcb-6cn3 Ready <none> 23d v1.13.7-gke.8
gke-gke1-default-pool-8dfeafcb-l7rx Ready <none> 2d1h v1.13.7-gke.8
gke-gke1-default-pool-8dfeafcb-s6dz Ready <none> 23d v1.13.7-gke.8
gke-gke1-default-pool-8dfeafcb-w69j Ready <none> 23d v1.13.7-gke.8