goreplay简单使用方法

//捕获服务器流量到本地
sudo ./gor --input-raw :8082 --output-file=requests.gor

//从本地文件回放流量
./gor --input-file requests_0.gor --output-http="http://172.16.106.237:8082"

//实时将流量请求打印到终端
sudo ./gor --input-raw :8082 --output-stdout

//复制流量实时转发到另一台服务器
sudo ./gor --input-raw :8082 --output-http="http://172.16.106.237:8082"

//放大流量
./gor --input-file "requests.gor|200%" --output-http="http://172.16.106.237:8082"

//缩小流量
./gor --input-file "requests.gor|20%" --output-http="http://172.16.106.237:8082"

  

posted @ 2023-04-19 09:58  ☞@_@  阅读(40)  评论(0编辑  收藏  举报