initial commit
Signed-off-by: Ava Hahn <a.hahn@f5.com>
This commit is contained in:
commit
4ee7c0cc18
13 changed files with 582 additions and 0 deletions
6
kaclient/Dockerfile
Normal file
6
kaclient/Dockerfile
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
FROM archlinux:latest
|
||||
RUN pacman -Syyu --noconfirm
|
||||
RUN pacman -S curl --noconfirm
|
||||
|
||||
COPY run.sh /
|
||||
CMD ["/run.sh"]
|
||||
28
kaclient/run.sh
Executable file
28
kaclient/run.sh
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
#!/bin/bash
|
||||
|
||||
log_request () {
|
||||
return_code=$(curl -Sikl -o /dev/null -w "%{http_code}" $1 2>/dev/null)
|
||||
case ${return_code:0:1} in
|
||||
"4" | "5")
|
||||
echo "query of $1 returned $return_code"
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
while :
|
||||
do
|
||||
log_request "https://kaproxy:8080/0"
|
||||
log_request "https://kaproxy:8080/1"
|
||||
log_request "https://kaproxy:8080/2"
|
||||
log_request "https://kaproxy:8080/3"
|
||||
log_request "https://kaproxy:8080/4"
|
||||
log_request "https://kaproxy:8080/5"
|
||||
log_request "https://kaproxy:8080/6"
|
||||
log_request "https://kaproxy:8080/7"
|
||||
log_request "https://kaproxy:8080/8"
|
||||
log_request "https://kaproxy:8080/9"
|
||||
done
|
||||
|
||||
# TODO: use wrk2 or something to stress test endpoints I dunno
|
||||
Loading…
Add table
Add a link
Reference in a new issue