Bandwidth throttling to simulate different network connection speeds in Gatling tests?

1,360 views
Skip to first unread message

David Luu

unread,
Dec 20, 2013, 2:28:47 PM12/20/13
to gat...@googlegroups.com
I just saw an email discussion of this on JMeter list. Wonder if and what is the Gatling equivalent?

Is it possible to perform load testing in different bandwidth using JMeter?

Yes. Look for the lines below in jmeter.properties file.
# Define characters per second > 0 to emulate slow connections
#httpclient.socket.http.cps=0
#httpclient.socket.https.cps=0
If you want to load different bandwidths, configure each JMeter slave with different values. 

Stéphane Landelle

unread,
Dec 20, 2013, 4:58:14 PM12/20/13
to gat...@googlegroups.com
Currently no.


2013/12/20 David Luu <mang...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Floris Kraak

unread,
Dec 20, 2013, 5:07:44 PM12/20/13
to gat...@googlegroups.com
That's kinda lame though.

We're currently doing a few things with linux's built-in queue discipline support. You can do a *lot* with that. Quite a lot more than just limiting bandwith.
For the record, bandwith is nowhere near as important to response times as latency and/or packet loss is. Limit bandwith and you will still have a fairly fast site if it doesn't use overly large files. Add a bit of latency however and you'll quickly find that whatever amount of time you add gets multiplied by a fair amount, depending on your site and whether you are using SPDY or not.
--
REALITY.SYS corrupted. Reboot Universe? (Y/N/Q)

Ioannis Mavroukakis

unread,
Dec 20, 2013, 7:28:43 PM12/20/13
to gat...@googlegroups.com
+10. This is something that's squarely not in the domain of the tool. You can simulate world+dog conditions with HTB, with random perturbations such as packet loss, delays etc. It's absolutely lovely.

Floris Kraak

unread,
Dec 21, 2013, 6:20:11 AM12/21/13
to gat...@googlegroups.com

I wouldn't go that far.  It doesn't hurt to offer some kind of interface or at least a help page for it. Being able to control everything that happens in a test from a single interface is really nice, including this kind of stuff.

Ioannis Mavroukakis

unread,
Dec 21, 2013, 6:58:45 AM12/21/13
to gat...@googlegroups.com
I think it's a completely separate concern and pollutes what's a *load* testing tool, but then again that's my software dev brain talking. 
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/PnKtaDIEAes/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+u...@googlegroups.com.

Floris Kraak

unread,
Dec 21, 2013, 11:02:21 AM12/21/13
to gat...@googlegroups.com


Definitely.  A 'load' test can actually have a lot of different measurement goals and requirements. This isn't even that far off the beaten path.

Performance has a lot of different aspects. When the requirement to be tested is that 99% of all user interactions must complete within a second even on the busiest day of the year on a laggy 3g network, how will you test such a requirement? How will you make such a test predictable and repeatable without somehow tying the 'load' test tool to the tools used to configure your network?

I know that most shops aren't that stringent but as the technology and the profession matures expect a lot more of this sort of thing. A tool like gatling or LR is expected to do more than just put load onto something - there have to be meaningful results that can be related to the real world.

Ioannis Mavroukakis

unread,
Dec 21, 2013, 12:35:42 PM12/21/13
to gat...@googlegroups.com
Look I agree with you, my salient point is that there doesn't need to be a shiny button or property that will tweak HTB or whatever QoS buckets your OS comes with. There's a clear separation of concerns here: The load tool pushes load and measures results. The results are then interpreted according to the condition of the constituent components of the architecture. If you don't have enough intelligent people along the chain to setup the system to mimic your requirements, then we are steering into the previous discussion about "smart" tools not only doing the thinking but doing the doing! :-)

Floris Kraak

unread,
Dec 21, 2013, 1:39:16 PM12/21/13
to gat...@googlegroups.com


There is a difference between tools that try to do the thinking for you and tools that let you automate away the dumb stuff :)

Yes, we have intelligent people.  Doing it the way you propose would work very well for a one-off. But long term, you want to not need a team of specialists for doing something that should be easy to automate away.

David Luu

unread,
Dec 24, 2013, 2:53:22 PM12/24/13
to gat...@googlegroups.com
+1 to Floris's comments. I can understand both sides of the argument, but side against having facilities to automate away the dumb/repetitivie/boilerplate stuff.

Even a wiki will be helpful if nothing integrated into the tool. And for wiki or whatever else, it also doesn't have to be part of Gatling, could be a separate project. Though would be nice to have some support of this however which way in Gatling.

I've not worked in this area, so I could be ignorant, but I would imagine that QoS, bandwidth, and other networking configurations for testing can't possibly be that customized per organization that a general guide to how to configure this stuff for different platforms (*nix, Windows, routers, switches, access points, wifi signal extenders, iOS, Android, etc.) couldn't be documented to help those without a superb intelligent team on hand (not all organizations have the time, luck, and $ to attract such people). I'm sure there are customizations specific to each orgnanization, but there must be some amount of stuff that's also generic. Sharing how to do (and perhaps automating) that generic dumb/repetitive/boilerplate stuff is what's of value.
Reply all
Reply to author
Forward
0 new messages