Skip to content

Latest commit

 

History

History
17 lines (17 loc) · 452 Bytes

README.md

File metadata and controls

17 lines (17 loc) · 452 Bytes

time-puzzle

nginx shows sometimes upstream_response_time larger than request_time

Requirements

  • systemtap
  • openresty must configure with --with-debug --with-dtrace-probes

Run

# start backend-server
cd backend-server
openresty -p `pwd` -c nginx.conf
# start main server
cd ..
openresty -p `pwd` -c nginx.conf
# tracing with systemtap
stap -v -x {main server worker pid} -I tapset stap-scripts/request_time.stp
curl localhost:8080