Limiting TCP connections

53 views
Skip to first unread message

adrian...@hushmail.com

unread,
Nov 26, 2015, 7:31:52 AM11/26/15
to Gatling User Group
Hi, 

I'd like to limit TCP connections and make all requests go through these. 

I thought of injecting x amount of users and then looping:

There are two problems I see with this: 

1) I will be unable to control the amount of requests per second without pausing/pacing and throttling
2) The console output keeps printing OK requests of 20 (atOnceUsers(10))

Is there a better way of limiting TCP connections and why do looped requests not appear in the Gatling stdout? 

Many Thanks

Aidy

Stéphane LANDELLE

unread,
Nov 26, 2015, 7:36:44 AM11/26/15
to gat...@googlegroups.com
I'd like to limit TCP connections and make all requests go through these. 
 
What's the rationale?
 
why do looped requests not appear in the Gatling stdout? 

caching?

Stéphane Landelle
GatlingCorp CEO
 

adrian...@hushmail.com

unread,
Nov 26, 2015, 8:09:48 AM11/26/15
to gat...@googlegroups.com
Hi Stéphane,

>> why do looped requests not appear in the Gatling stdout? 
> caching?

Yes, I should have realised that. 

>> I'd like to limit TCP connections and make all requests go through these. 
> What's the rationale?

After further investigation, it seems that there are x number of clients that make API calls with a keep-alive of 45 secs. 

So, I was thinking maybe I inject a new set of users every 45 seconds? 

Many Thanks

Aidy
--
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/d/optout.

Stéphane LANDELLE

unread,
Nov 26, 2015, 8:14:07 AM11/26/15
to gat...@googlegroups.com
After further investigation, it seems that there are x number of clients that make API calls with a keep-alive of 45 secs. 

Are those clients trusted? Even though, keep-alive duration client should never be trusted and servers should quickly close connections after some idle time. IMHO, 45 secs is very (way too) long. I'd use something like 5-15 seconds. 

adrian...@hushmail.com

unread,
Nov 26, 2015, 8:22:54 AM11/26/15
to gat...@googlegroups.com
Hi Stephane,

The clients are internal, but I am struggling on how to model this. It looks as though we may have a batch of requests within each keep-live session. 

Aidy


On 11/26/2015 at 1:14 PM, "Stéphane LANDELLE" <slan...@gatling.io> wrote:
After further investigation, it seems that there are x number of clients that make API calls with a keep-alive of 45 secs. 

Are those clients trusted? Even though, keep-alive duration client should never be trusted and servers should quickly close connections after some idle time. IMHO, 45 secs is very (way too) long. I'd use something like 5-15 seconds. 

--

Stéphane LANDELLE

unread,
Nov 26, 2015, 8:26:01 AM11/26/15
to gat...@googlegroups.com
So your clients are other applications, not browsers?

Stéphane Landelle
GatlingCorp CEO


adrian...@hushmail.com

unread,
Nov 26, 2015, 9:04:27 AM11/26/15
to gat...@googlegroups.com
Yes, it is actually one application and X amount of instances of it. 

Stéphane LANDELLE

unread,
Nov 26, 2015, 9:10:10 AM11/26/15
to gat...@googlegroups.com
So you should share the connection pool.

Stéphane Landelle
GatlingCorp CEO


adrian...@hushmail.com

unread,
Nov 26, 2015, 9:22:19 AM11/26/15
to gat...@googlegroups.com
> So you should share the connection pool.

Thanks, but wouldn't this mean all users share one connection? Would I need to write x number of similar scenarios to simulate x connections?

Stéphane LANDELLE

unread,
Nov 26, 2015, 9:29:47 AM11/26/15
to gat...@googlegroups.com
How do those applications work? Do they use one single connection each? Or do they use a connection pool too?

Stéphane Landelle
GatlingCorp CEO


adrian...@hushmail.com

unread,
Nov 26, 2015, 9:33:35 AM11/26/15
to gat...@googlegroups.com
Each application instance would make a separate connection. 

Stéphane LANDELLE

unread,
Nov 26, 2015, 9:38:26 AM11/26/15
to gat...@googlegroups.com
OK, so you're back with your original solution. And I don't see your points.

Stéphane Landelle
GatlingCorp CEO


adrian...@hushmail.com

unread,
Nov 26, 2015, 10:21:07 AM11/26/15
to gat...@googlegroups.com
> OK, so you're back with your original solution. And I don't see your points.

Thanks Stephane, 

One of the drawbacks of my original solution was that if I make x number of connections and loop, I will only be able to "control" the request rate through pace/pausing and throttling, and I wondered if there was a better way to handle this. 

Stéphane LANDELLE

unread,
Nov 26, 2015, 10:21:46 AM11/26/15
to gat...@googlegroups.com
No :)

Stéphane Landelle
GatlingCorp CEO


r rajitha

unread,
Dec 17, 2015, 1:23:54 PM12/17/15
to Gatling User Group
Hi

my application also having the scenario.As you mentioned can controlling the request rate by pause/throttling .
 which is the best approach  ? throttling or pause
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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+unsubscribe@googlegroups.com.

adrian...@hushmail.com

unread,
Dec 17, 2015, 2:15:21 PM12/17/15
to gat...@googlegroups.com
Hi,

Could you please express your requirements a little more fully as there may be alternative ways to achieve your goal? 
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/d/optout.

--
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/d/optout.

--
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/d/optout.

--
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/d/optout.

--
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/d/optout.

--
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/d/optout.

--
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/d/optout.

--
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/d/optout.

--
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/d/optout.

--
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.
Reply all
Reply to author
Forward
0 new messages