Comments (4)
I understand your use case and I'm thinking how this could fit in while keeping feature creep low. Vegeta already supports specifying the src IP address to use. Why wouldn't you start N instances of Vegeta in parallel, each one with their own src address, collect the results and then report on them? Here is a proof of concept:
for i in {100..110}; do
echo "GET http://server:8080" | vegeta -laddr="10.0.0.$i" -duration=30s -rate=10 > "samples.$i.bin" &
done
wait
vegeta report -input=$(echo samples.*.bin | tr ' ' ,)
from vegeta.
@tsenart
thanks for your suggestion!
I tried to specify source ip by using -laddr, but the following error happened.
Requests [total, rate] 18, 6.35
Duration [total, attack, wait] 2.833074015s, 2.833074015s, 0s
Latencies [mean, 50, 95, 99, max] 0s, 0s, 0s, 0s, 0s
Bytes In [total, mean] 0, 0.00
Bytes Out [total, mean] 0, 0.00
Success [ratio] 0.00%
Status Codes [code:count] 0:18
Error Set:
Get https://abc.com: dial tcp 10.0.0.100:0->182.22.108.203:443: bind: cannot assign requested address
btw, I do not assign 10.0.0.100 to any interface of the server. Is the -laddr must be specified by a assigned ip? not work with fake ip?
Do you have any idea about it?
from vegeta.
btw, I do not assign 10.0.0.100 to any interface of the server. Is the -laddr must be specified by a assigned ip? not work with fake ip?
You need to use IPs that are bound to a network interface. Luckily, creating such IPs is doable. Example: https://www.ostechnix.com/how-to-assign-multiple-ip-addresses-to-single-network-card-in-linux/
from vegeta.
understood, thanks!
from vegeta.
Related Issues (20)
- Prometheus + Grafana Integration not working HOT 3
- Immediately stop vegeta while using go client HOT 4
- Add support for HAProxy ProxyProtocol
- I am getting a lot of HTTP zero in the results, how can I troubleshoot it?
- Latency is not being reported correctly on windows.
- How to change x-axis for the vegeta realtime?
- Why canβt I test this local custom domain name mapping service?
- ipv6 is being used on a client machine when not supported HOT 3
- Can the latest version be published on Go packages? HOT 1
- Officially call json input format JSON Lines? HOT 1
- keepalive flag isnt working HOT 6
- Limiting total number of requests HOT 4
- vegeta unable to write to files with -output
- TCP sockets opened lower than requested number of connections HOT 4
- Running "easyjson": exec: "easyjson": executable file not found in $PATH on ubnutu 22.04 HOT 1
- can vegeta do the performance test to a RPC methond request
- Dynamic Pacing / Rate? HOT 2
- Support curl's --connect-to parameter HOT 1
- Disabling dns cache with dns-ttl doesn't seem to work
- Troubleshoot mTLS certificates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vegeta.