You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Ильдар <ca...@gmail.com> on 2012/08/02 13:13:06 UTC
Distribute traffic in Jmeter
Hello there,
I have found "Weighted Distribution of tests"
http://grinder.sourceforge.net/g3/tutorial-weight-distribution.html in
Grinder. Also googled but cannot find such feature in Jmeter. Is there
any such feature in Jmeter?
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Distribute traffic in Jmeter
Posted by ZK <st...@gmail.com>.
Hi,
http://jmeter.512774.n5.nabble.com/How-to-Divide-the-users-load-to-different-Thread-Groups-td5714075.html
ZK
--
View this message in context: http://jmeter.512774.n5.nabble.com/Distribute-traffic-in-Jmeter-tp5714174p5714175.html
Sent from the JMeter - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
For additional commands, e-mail: user-help@jmeter.apache.org
Re: Distribute traffic in Jmeter
Posted by Adrian Speteanu <as...@gmail.com>.
Anybody should take a look at the list of the logic controllers and timers
of jmeter. Once you get minimally familiar with them, you will find out
plenty of stuff that you can do with them to control throughput whatever
way you want and you'll probably figure out possible scenarios that are
interesting to test. Its probably one of the strongest and more flexible
aspects of jmeter, throughput generation and control. But its up to you how
to use it.
But be wary about combining too many throughput limiters, it can lead to
complicated scenarios.
--Adrian S
On Thu, Aug 2, 2012 at 5:06 PM, Oliver Lloyd <ol...@hotmail.com>wrote:
> Could you not simplify this with a Random Variable and series of IF
> Controllers? It's not perfect because of the multiple IFs but there's no
> code and it's more readable.
>
>
> http://jmeter.apache.org/usermanual/component_reference.html#Random_Variable
>
> The example below will run Sampler1 30% of the time and Sampler2 the other
> 70% of the time.
>
> Thread Group
> - Random Variable 0 - 10
> - If Controller set to: ${myVar} <= 3
> HTTP Sampler1
> - If Controller set to: ${myVar} > 3
> HTTP Sampler2
>
>
> On 2 Aug 2012, at 12:28, Philippe Mouawad wrote:
>
> > Hello,
> > Answer with Throughput Controller from ZK is also fine, the difference is
> > that with my link you have a guarantee that one of the sampler will be
> > executed if it's a requirement of your test.
> > If it's not, Throughput Controller will do the job.
> >
> > Regards
> > Philippe
> >
> > On Thu, Aug 2, 2012 at 1:23 PM, Philippe Mouawad <
> > p.mouawad@ubik-ingenierie.com> wrote:
> >
> >> Hello,
> >> I think this answers your question:
> >>
> >> -
> >>
> http://www.ubik-ingenierie.com/ubikwiki/index.php?title=JMeter_Switch_Controller_or_How_to_Run_a_sampler_with_a_certain_Percentage
> >>
> >> Regards
> >> Philippe M.
> >> http://www.ubik-ingenierie.com/-Solutions-
> >>
> >>
> >> On Thu, Aug 2, 2012 at 1:13 PM, Ильдар <ca...@gmail.com> wrote:
> >>
> >>> Hello there,
> >>>
> >>> I have found "Weighted Distribution of tests"
> http://grinder.sourceforge.
> >>> **net/g3/tutorial-weight-**distribution.html<
> http://grinder.sourceforge.net/g3/tutorial-weight-distribution.html>in
> Grinder. Also googled but cannot find such feature in Jmeter. Is there
> >>> any such feature in Jmeter?
> >>>
> >>> Thanks!
> >>>
> >>>
> >>>
> >>>
> >>>
> ------------------------------**------------------------------**---------
> >>> To unsubscribe, e-mail: user-unsubscribe@jmeter.**apache.org<
> user-unsubscribe@jmeter.apache.org>
> >>> For additional commands, e-mail: user-help@jmeter.apache.org
> >>>
> >>>
> >>
> >>
> >> --
> >> Cordialement.
> >> Philippe Mouawad.
> >> Ubik-Ingénierie
> >>
> >>
> >>
> >>
> >
> >
> > --
> > Cordialement.
> > Philippe Mouawad.
> > Ubik-Ingénierie
>
>
Re: Distribute traffic in Jmeter
Posted by Oliver Lloyd <ol...@hotmail.com>.
Could you not simplify this with a Random Variable and series of IF Controllers? It's not perfect because of the multiple IFs but there's no code and it's more readable.
http://jmeter.apache.org/usermanual/component_reference.html#Random_Variable
The example below will run Sampler1 30% of the time and Sampler2 the other 70% of the time.
Thread Group
- Random Variable 0 - 10
- If Controller set to: ${myVar} <= 3
HTTP Sampler1
- If Controller set to: ${myVar} > 3
HTTP Sampler2
On 2 Aug 2012, at 12:28, Philippe Mouawad wrote:
> Hello,
> Answer with Throughput Controller from ZK is also fine, the difference is
> that with my link you have a guarantee that one of the sampler will be
> executed if it's a requirement of your test.
> If it's not, Throughput Controller will do the job.
>
> Regards
> Philippe
>
> On Thu, Aug 2, 2012 at 1:23 PM, Philippe Mouawad <
> p.mouawad@ubik-ingenierie.com> wrote:
>
>> Hello,
>> I think this answers your question:
>>
>> -
>> http://www.ubik-ingenierie.com/ubikwiki/index.php?title=JMeter_Switch_Controller_or_How_to_Run_a_sampler_with_a_certain_Percentage
>>
>> Regards
>> Philippe M.
>> http://www.ubik-ingenierie.com/-Solutions-
>>
>>
>> On Thu, Aug 2, 2012 at 1:13 PM, Ильдар <ca...@gmail.com> wrote:
>>
>>> Hello there,
>>>
>>> I have found "Weighted Distribution of tests" http://grinder.sourceforge.
>>> **net/g3/tutorial-weight-**distribution.html<http://grinder.sourceforge.net/g3/tutorial-weight-distribution.html>in Grinder. Also googled but cannot find such feature in Jmeter. Is there
>>> any such feature in Jmeter?
>>>
>>> Thanks!
>>>
>>>
>>>
>>>
>>> ------------------------------**------------------------------**---------
>>> To unsubscribe, e-mail: user-unsubscribe@jmeter.**apache.org<us...@jmeter.apache.org>
>>> For additional commands, e-mail: user-help@jmeter.apache.org
>>>
>>>
>>
>>
>> --
>> Cordialement.
>> Philippe Mouawad.
>> Ubik-Ingénierie
>>
>>
>>
>>
>
>
> --
> Cordialement.
> Philippe Mouawad.
> Ubik-Ingénierie
Re: Distribute traffic in Jmeter
Posted by Philippe Mouawad <p....@ubik-ingenierie.com>.
Hello,
Answer with Throughput Controller from ZK is also fine, the difference is
that with my link you have a guarantee that one of the sampler will be
executed if it's a requirement of your test.
If it's not, Throughput Controller will do the job.
Regards
Philippe
On Thu, Aug 2, 2012 at 1:23 PM, Philippe Mouawad <
p.mouawad@ubik-ingenierie.com> wrote:
> Hello,
> I think this answers your question:
>
> -
> http://www.ubik-ingenierie.com/ubikwiki/index.php?title=JMeter_Switch_Controller_or_How_to_Run_a_sampler_with_a_certain_Percentage
>
> Regards
> Philippe M.
> http://www.ubik-ingenierie.com/-Solutions-
>
>
> On Thu, Aug 2, 2012 at 1:13 PM, Ильдар <ca...@gmail.com> wrote:
>
>> Hello there,
>>
>> I have found "Weighted Distribution of tests" http://grinder.sourceforge.
>> **net/g3/tutorial-weight-**distribution.html<http://grinder.sourceforge.net/g3/tutorial-weight-distribution.html>in Grinder. Also googled but cannot find such feature in Jmeter. Is there
>> any such feature in Jmeter?
>>
>> Thanks!
>>
>>
>>
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: user-unsubscribe@jmeter.**apache.org<us...@jmeter.apache.org>
>> For additional commands, e-mail: user-help@jmeter.apache.org
>>
>>
>
>
> --
> Cordialement.
> Philippe Mouawad.
> Ubik-Ingénierie
>
>
>
>
--
Cordialement.
Philippe Mouawad.
Ubik-Ingénierie
Re: Distribute traffic in Jmeter
Posted by Philippe Mouawad <p....@ubik-ingenierie.com>.
Hello,
I think this answers your question:
-
http://www.ubik-ingenierie.com/ubikwiki/index.php?title=JMeter_Switch_Controller_or_How_to_Run_a_sampler_with_a_certain_Percentage
Regards
Philippe M.
http://www.ubik-ingenierie.com/-Solutions-
On Thu, Aug 2, 2012 at 1:13 PM, Ильдар <ca...@gmail.com> wrote:
> Hello there,
>
> I have found "Weighted Distribution of tests" http://grinder.sourceforge.*
> *net/g3/tutorial-weight-**distribution.html<http://grinder.sourceforge.net/g3/tutorial-weight-distribution.html>in Grinder. Also googled but cannot find such feature in Jmeter. Is there
> any such feature in Jmeter?
>
> Thanks!
>
>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.**apache.org<us...@jmeter.apache.org>
> For additional commands, e-mail: user-help@jmeter.apache.org
>
>
--
Cordialement.
Philippe Mouawad.
Ubik-Ingénierie