delimitrou / DeathStarBench

Open-source benchmark suite for cloud microservices
Apache License 2.0
726 stars 401 forks source link

Hotel Reservation not working for Kubernetes HTTP workload generator #262

Open XiangyuG opened 1 year ago

XiangyuG commented 1 year ago

When I try to run the HTTP workload generator according to the README file in https://github.com/delimitrou/DeathStarBench/tree/master/hotelReservation/kubernetes,

cd /root/DeathStarBench/hotelReservation
./wrk -D exp -t 2 -c 2 -d 30 -L -s ./wrk2_lua_scripts/mixed-workload_type_1.lua http://frontend.hotel-res.svc.cluster.local:5000 -R 2 

It shows that ./wrk file is not found. After reading through the file, I found that there is only wrk2 file without any executable scripts inside. I am wondering whether I do something wrong on my side or I should follow another instruction?

Many thanks.

przmk0 commented 1 year ago

@XiangyuG did you compile wrk2? please run make all in wrk2 directory and see if executable is produced

XiangyuG commented 1 year ago

@przmk0 Thanks for your suggestion. I am trying to make all in wrk2 directory and it shows me the error in the figure below. I am using MacOS version 12.5.1 with Intel chip. I think I have already installed all the dependencies. Do I need to migrate to other OS platforms to make everything?

image
lepidopterane-atsmith commented 1 year ago

I am also running into something similar on my 10.12.6 macOS.

Save LuaJIT bytecode: luajit -b[options] input output
  -l        Only list bytecode.
  -s        Strip debug info (default).
  -g        Keep debug info.
  -n name   Set module name (default: auto-detect from input name).
  -t type   Set output file type (default: auto-detect from output name).
  -a arch   Override architecture for object files (default: native).
  -o os     Override OS for object files (default: native).
  -e chunk  Use chunk string as input.
  --        Stop handling options.
  -         Use stdin as input and/or stdout as output.

File types: c h obj o raw (default)
make: *** [obj/bytecode.o] Error 1
Red-GV commented 8 months ago

@XiangyuG @lepidopterane-atsmith Not sure if you both are still stuck with getting a wrk2 client for Kubernetes, but there is now a working Docker image that can be leveraged to use the workload generator.