buger / goreplay

GoReplay is an open-source tool for capturing and replaying live HTTP traffic into a test environment in order to continuously test your system with real data. It can be used to increase confidence in code deployments, configuration changes and infrastructure changes.
https://goreplay.org
Other
18.61k stars 20 forks source link

Gor cannot adjust the number of requests, why? #1108

Open fengnex opened 2 years ago

fengnex commented 2 years ago

As the document says, the following three commands can adjust the number of requests to another instance: sudo ./gor --input-file "requests_0.gor|50%" --output-http "http://localhost:3091" sudo ./gor --input-file "requests_0.gor|200%" --output-http "http://localhost:3091" but all the above commands actually cannot work since the same number of requests are always sent to the instance on port 3091.

btw, it seems that both the following cannot work either, what's the matter? sudo ./gor --input-raw :3090 --output-tcp "http://localhost:3091|50%" sudo ./gor --input-raw :3090 --output-http "http://localhost:3091|200%"

I tested the issue with both gor v1.3.3 and 1.3.1 on centos v7.

fengnex commented 2 years ago

Can anyone provide some ideas or tips on how to obtain the results in the official documents, please?

fengnex commented 2 years ago

Any comment?

fengnex commented 1 year ago

Have found the root cause that generates the above problem and fixed it. Should I submit it into github.com/buger/goreplay?@Leonid Bugaev