Skip to content

Commit 506d5ee

Browse files
committed
Demonstrates OOMKilled with current resource limits
1 parent 2efb30e commit 506d5ee

File tree

1 file changed

+24
-11
lines changed

1 file changed

+24
-11
lines changed

test/metrics.yml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ data:
99
curl-format.txt: |-
1010
\n
1111
# ### curl stats ###\n
12-
time_namelookup: %{time_namelookup}\n
13-
time_connect: %{time_connect}\n
14-
time_appconnect: %{time_appconnect}\n
15-
time_pretransfer: %{time_pretransfer}\n
16-
time_redirect: %{time_redirect}\n
17-
time_starttransfer: %{time_starttransfer}\n
12+
time_namelookup %{time_namelookup}\n
13+
time_connect %{time_connect}\n
14+
time_appconnect %{time_appconnect}\n
15+
time_pretransfer %{time_pretransfer}\n
16+
time_redirect %{time_redirect}\n
17+
time_starttransfer %{time_starttransfer}\n
1818
\n
19-
time_total: %{time_total}\n
19+
time_total %{time_total}\n
2020
\n
21-
http_code: %{http_code}\n
22-
content_type: %{content_type}\n
23-
size_download: %{size_download}\n
21+
http_code{url="%{url_effective}"} %{http_code}\n
22+
content_type %{content_type}\n
23+
size_download %{size_download}\n
2424
2525
setup.sh: |-
2626
touch /tmp/testlog
@@ -33,7 +33,20 @@ data:
3333
exec >> /tmp/testlog
3434
exec 2>&1
3535
36-
curl -w "@/test/curl-format.txt" -s --fail-early --max-time $MAX_RESPONSE_TIME http://kafka-0.broker.kafka.svc.cluster.local:5556/metrics
36+
curl -w "@/test/curl-format.txt" -s --max-time $MAX_RESPONSE_TIME \
37+
http://kafka-0.broker.kafka.svc.cluster.local:5556/metrics \
38+
| grep http_code \
39+
| grep 200
40+
41+
curl -w "@/test/curl-format.txt" -s --max-time $MAX_RESPONSE_TIME \
42+
http://zoo-0.zoo.kafka.svc.cluster.local:5556/metrics \
43+
| grep http_code \
44+
| grep 200
45+
46+
curl -w "@/test/curl-format.txt" -s --max-time $MAX_RESPONSE_TIME \
47+
http://pzoo-1.pzoo.kafka.svc.cluster.local:5556/metrics \
48+
| grep http_code \
49+
| grep 200
3750
3851
exit 0
3952

0 commit comments

Comments
 (0)