python3 server.py
echo "GET http://k8s-default-ingressp-e96ce33c04-784362442.ap-northeast-1.elb.amazonaws.com" | \
vegeta attack -rate=15/s -duration=3m | vegeta encode | tee result.bin | \
jaggr @count=rps \
hist\[100,200,300,400,500\]:code \
p25,p50,p95:latency | \
jplot code.hist.100+code.hist.200+code.hist.300+code.hist.400+code.hist.500 \
&& cat result.bin | vegeta report
normal one
- Handle SIGTERM
- Edit Dockerfile
CMD python /server.py->CMD ["python", "/server.py"]
- Add Conneciton close header
- Add Prestop hook