202407311627 goreplay 使用
202407311627 goreplay 使用
goreplay 架构图

录制
./gor --input-raw :2014 --output-file=requests.gor
./gor --input-raw :2014 --output-stdout --output-http-track-response --prettify-http --input-raw-track-response
./gor --input-raw :2014 --output-http-track-response --input-raw-track-response --output-file=requests.gor
Tracking responses
By defaultinput-rawdoes not intercept responses, only requests. You can turn response tracking using--input-raw-track-responseoption.
When enable you will be able to access response information in middleware and output-file.
回放
gor --input-file requests.gor --output-http="http://localhost:8081"
参考
../Omnivore/2024-07-31/回放线上流量利器-GoReplay - CharyGao - 博客园
../Omnivore/2024-07-31/Capturing and replaying traffic · buger-goreplay Wiki
../Omnivore/2024-07-31/性能工具之 Goreplay 安装及入门使用-腾讯云开发者社区-腾讯云