Giter Club home page Giter Club logo

Comments (4)

tsenart avatar tsenart commented on May 18, 2024

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.

haoyehaoye avatar haoyehaoye commented on May 18, 2024

@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.

tsenart avatar tsenart commented on May 18, 2024

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.

haoyehaoye avatar haoyehaoye commented on May 18, 2024

understood, thanks!

from vegeta.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.