-
輸出到控制檯
./goreplay --input-raw :8080 --output-stdout -
輸出到服務器
./goreplay --input-raw :8080 --output-http="http://localhost:8080" -
保存到文件
./goreplay --input-raw :8080 --output-file=requests.gor
./goreplay --input-file requests.gor --output-http="http://localhost:8080" -
啓用會話識別:
--recognize-tcp-sessionsGoReplay不會跟蹤響應,您可以使用--output-http-track-response
5 性能測試
./goreplay --input-file "requests.gor|200%" --input-file-loop --output-http="http://localhost:8080"
請求重寫
goreplay --input-raw :8080 --output-stdout --http-allow-url /homepage/v1/check --http-rewrite-url /homepage/v1/check:/homepage/v2/check