You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Skye Poier Nott <sk...@F4.ca> on 2008/03/17 18:35:17 UTC

flood random profiletype?

It looks like (contrary to the docs) the only available <profiletype>  
for flood is round_robin.

Does anyone have a patch to support <profiletype>random</profiletype>?

If not, and I write one, would you be interested in the patch?

Thanks,
Skye



Re: flood random profiletype?

Posted by Guy Ferraiolo <gu...@cnet.com>.
Yes, it has to be a requesttemplate.  That allowed it to be a relatively
small patch.

Thanks for trying it.

Guy

On Mon, 2008-03-17 at 13:40 -0700, Skye Poier Nott wrote:
> One thing I've noticed is it doesn't seem to do substitution if you  
> specify:
> 
>          <url>http://${hostname}.example.com/index.html</url>
> 
> but if I use this it works fine:
> 
> 	<url method="GET" requesttemplate="http://${hostname}.example.com/ 
> index.html" />
> 
> I'm not sure if that's intentional.
> 
> Anyway, seems to work great, thanks again!!  Very useful!
> 
> Skye
> 
-- 
Guy Ferraiolo                                   mailto:guyf@CNET.com
Performance Measurement & Analysis              http://CNET.com
CNET                                            tel: 1.908.541.3739
1200 Route 22 East                              fax: 1.908.575.7474
Bridgewater, NJ 08807                           cel: 1.732.618.0250

Re: flood random profiletype?

Posted by Skye Poier Nott <sk...@F4.ca>.
One thing I've noticed is it doesn't seem to do substitution if you  
specify:

         <url>http://${hostname}.example.com/index.html</url>

but if I use this it works fine:

	<url method="GET" requesttemplate="http://${hostname}.example.com/ 
index.html" />

I'm not sure if that's intentional.

Anyway, seems to work great, thanks again!!  Very useful!

Skye


Re: flood random profiletype?

Posted by Guy Ferraiolo <gu...@cnet.com>.
I submitted it as unix text.  Well, I'm glad the patch applies.  Let me
know of any issues.

Guy

On Mon, 2008-03-17 at 13:01 -0700, Skye Poier Nott wrote:
> Nevermind, it works fine.  The patch attachment I downloaded from the  
> list archive with saved as DOS format line endings for some reason  
> even though I'm on a BSD box :P
> 
> Skye
> 
> 
> 
> On 17-Mar-08, at 12:43 PM, Guy Ferraiolo wrote:
> 
> > I did it against an svn checkout from that date, or very close to it.
> > Can you show the actual errors? or a few?
> >
> > Guy
> >
> > On Mon, 2008-03-17 at 12:40 -0700, Skye Poier Nott wrote:
> >> Great, thanks for the link.
> >>
> >> Is there a specific tag I should apply the patch to?  I'm getting a
> >> lot of patch failures applying against HEAD and even the 2007-12-19
> >> version of files (a frequent date in the diff).  eg:
> >>
> >> Patching file flood-orig/flood_round_robin.c using Plan A...
> >> Hunk #1 succeeded at 55 with fuzz 3.
> >> Hunk #2 succeeded at 117 with fuzz 3.
> >> Hunk #3 succeeded at 132 with fuzz 3.
> >> Hunk #4 succeeded at 185 with fuzz 3.
> >> Hunk #5 failed at 238.
> >> Hunk #6 failed at 752.
> >> Hunk #7 succeeded at 874 with fuzz 3.
> >>
> >> Skye
> >>
-- 
Guy Ferraiolo                                   mailto:guyf@CNET.com
Performance Measurement & Analysis              http://CNET.com
CNET                                            tel: 1.908.541.3739
1200 Route 22 East                              fax: 1.908.575.7474
Bridgewater, NJ 08807                           cel: 1.732.618.0250

Re: flood random profiletype?

Posted by Skye Poier Nott <sk...@F4.ca>.
Nevermind, it works fine.  The patch attachment I downloaded from the  
list archive with saved as DOS format line endings for some reason  
even though I'm on a BSD box :P

Skye



On 17-Mar-08, at 12:43 PM, Guy Ferraiolo wrote:

> I did it against an svn checkout from that date, or very close to it.
> Can you show the actual errors? or a few?
>
> Guy
>
> On Mon, 2008-03-17 at 12:40 -0700, Skye Poier Nott wrote:
>> Great, thanks for the link.
>>
>> Is there a specific tag I should apply the patch to?  I'm getting a
>> lot of patch failures applying against HEAD and even the 2007-12-19
>> version of files (a frequent date in the diff).  eg:
>>
>> Patching file flood-orig/flood_round_robin.c using Plan A...
>> Hunk #1 succeeded at 55 with fuzz 3.
>> Hunk #2 succeeded at 117 with fuzz 3.
>> Hunk #3 succeeded at 132 with fuzz 3.
>> Hunk #4 succeeded at 185 with fuzz 3.
>> Hunk #5 failed at 238.
>> Hunk #6 failed at 752.
>> Hunk #7 succeeded at 874 with fuzz 3.
>>
>> Skye
>>

Re: flood random profiletype?

Posted by Guy Ferraiolo <gu...@cnet.com>.
I did it against an svn checkout from that date, or very close to it.
Can you show the actual errors? or a few?

Guy

On Mon, 2008-03-17 at 12:40 -0700, Skye Poier Nott wrote:
> Great, thanks for the link.
> 
> Is there a specific tag I should apply the patch to?  I'm getting a  
> lot of patch failures applying against HEAD and even the 2007-12-19  
> version of files (a frequent date in the diff).  eg:
> 
> Patching file flood-orig/flood_round_robin.c using Plan A...
> Hunk #1 succeeded at 55 with fuzz 3.
> Hunk #2 succeeded at 117 with fuzz 3.
> Hunk #3 succeeded at 132 with fuzz 3.
> Hunk #4 succeeded at 185 with fuzz 3.
> Hunk #5 failed at 238.
> Hunk #6 failed at 752.
> Hunk #7 succeeded at 874 with fuzz 3.
> 
> Skye
> 
> 
> On 17-Mar-08, at 12:17 PM, Guy Ferraiolo wrote:
> 
> > That's the easy way.  Let me know of any problems you find.
> >
> > Thanks,
> >
> > Guy
> >
> > On Mon, 2008-03-17 at 20:05 +0100, Rainer Jung wrote:
> >> Skye Poier Nott schrieb:
> >>> Even better - very cool patch!!  Like many people, I'm interested
> >>> primarily in simulating real world traffic and round_robin doesn't
> >>> really cut it.
> >>>
> >>> So is it in SVN or... ?
> >>
> >> At the moment it exists as an attachment to older mails of Guy to the
> >> same list. See e.g. his mail on February 22:
> >>
> >> http://mail-archives.apache.org/mod_mbox/httpd-dev/200802.mbox/raw/%3c1203707287.9843.28.camel@localhost.localdomain%3e/2
> >>
> >> Regards,
> >>
> >> Rainer
> >>
> >>
-- 
Guy Ferraiolo                                   mailto:guyf@CNET.com
Performance Measurement & Analysis              http://CNET.com
CNET                                            tel: 1.908.541.3739
1200 Route 22 East                              fax: 1.908.575.7474
Bridgewater, NJ 08807                           cel: 1.732.618.0250

Re: flood random profiletype?

Posted by Skye Poier Nott <sk...@F4.ca>.
Great, thanks for the link.

Is there a specific tag I should apply the patch to?  I'm getting a  
lot of patch failures applying against HEAD and even the 2007-12-19  
version of files (a frequent date in the diff).  eg:

Patching file flood-orig/flood_round_robin.c using Plan A...
Hunk #1 succeeded at 55 with fuzz 3.
Hunk #2 succeeded at 117 with fuzz 3.
Hunk #3 succeeded at 132 with fuzz 3.
Hunk #4 succeeded at 185 with fuzz 3.
Hunk #5 failed at 238.
Hunk #6 failed at 752.
Hunk #7 succeeded at 874 with fuzz 3.

Skye


On 17-Mar-08, at 12:17 PM, Guy Ferraiolo wrote:

> That's the easy way.  Let me know of any problems you find.
>
> Thanks,
>
> Guy
>
> On Mon, 2008-03-17 at 20:05 +0100, Rainer Jung wrote:
>> Skye Poier Nott schrieb:
>>> Even better - very cool patch!!  Like many people, I'm interested
>>> primarily in simulating real world traffic and round_robin doesn't
>>> really cut it.
>>>
>>> So is it in SVN or... ?
>>
>> At the moment it exists as an attachment to older mails of Guy to the
>> same list. See e.g. his mail on February 22:
>>
>> http://mail-archives.apache.org/mod_mbox/httpd-dev/200802.mbox/raw/%3c1203707287.9843.28.camel@localhost.localdomain%3e/2
>>
>> Regards,
>>
>> Rainer
>>
>>

Re: flood random profiletype?

Posted by Guy Ferraiolo <gu...@cnet.com>.
That's the easy way.  Let me know of any problems you find.

Thanks,

Guy

On Mon, 2008-03-17 at 20:05 +0100, Rainer Jung wrote:
> Skye Poier Nott schrieb:
> > Even better - very cool patch!!  Like many people, I'm interested 
> > primarily in simulating real world traffic and round_robin doesn't 
> > really cut it.
> > 
> > So is it in SVN or... ?
> 
> At the moment it exists as an attachment to older mails of Guy to the 
> same list. See e.g. his mail on February 22:
> 
> http://mail-archives.apache.org/mod_mbox/httpd-dev/200802.mbox/raw/%3c1203707287.9843.28.camel@localhost.localdomain%3e/2
> 
> Regards,
> 
> Rainer
> 
> 
> > Skye
> > 
> > 
> > 
> > On 17-Mar-08, at 10:54 AM, Guy Ferraiolo wrote:
> > 
> >> It works a bit differently because it does text substitution.  That's a
> >> more general case and is much more common for our needs.  Here's how it
> >> would work in your case:
> >>
> >> 1.    use a requesttemplate
> >> 2.    the URL would be http://w${RANVAR}.example.com/file.html
> >>     RANVAR is the substitution variable, you can pick your
> >>     variable names and have more than one in a URL
> >> 3.    create a substitution file containing lines with the text
> >>     you want substituted as (example file name mysubstfile):
> >>     0000\n
> >>     0001\n
> >>     ...
> >>     9999\n
> >> 4.    Have a config file with a subst_list entry like this
> >>
> >>     <subst_list>
> >>         <subst_entry>
> >>             <subst_var>RANVAR</subst_var>
> >>             <subst_file>/path-to/mysubstfile</subst_file>
> >>         <subst_entry>
> >>     <subst_list>
> >>
> >>
> >> The win is that the subst file can contain lots of things beyond random
> >> numbers.  It's very easy to create a subst file from an access log and
> >> get very good agreement with your actual traffic.  So URLs like
> >> http://example.com/?q=${QUERYFROMREALTRAFFIC} work fine.  You can do
> >> port numbers too.
> >>
> >> Very large subst files work fine.
> >>
> >> Guy
> >>
> >> On Mon, 2008-03-17 at 10:43 -0700, Skye Poier Nott wrote:
> >>> Interesting..
> >>>
> >>> I have 10,000 host aliases setup up from w0000.example.com to
> >>> w9999.example.com so your patch would let me do something like http://
> >>> w{random number from 0000-9999}.example.com/file.html in the urllist?
> >>> Well that would sure cut down on the size of the flood config xml.
> >>>
> >>> Hopefully your patch can do zero padding of random numbers!  What's
> >>> the url for the patch file?
> >>>
> >>> Thanks,
> >>> Skye
> >>>
> >>>
> >>> On 17-Mar-08, at 10:37 AM, Guy Ferraiolo wrote:
> >>>
> >>>> Actually, I think my current patch which does randomization on URLs in
> >>>> round_robin profiles provides a bit more.
> >>>>
> >>>> Any news on the patch, folks?
> >>>>
> >>>> Guy
> >>>>
> >>>> On Mon, 2008-03-17 at 10:35 -0700, Skye Poier Nott wrote:
> >>>>> It looks like (contrary to the docs) the only available <profiletype>
> >>>>> for flood is round_robin.
> >>>>>
> >>>>> Does anyone have a patch to support <profiletype>random</
> >>>>> profiletype>?
> >>>>>
> >>>>> If not, and I write one, would you be interested in the patch?
> >>>>>
> >>>>> Thanks,
> >>>>> Skye
> >>>>>
> >>>>>
> >>>> -- 
> >>>> Guy Ferraiolo                                   mailto:guyf@CNET.com
> >>>> Performance Measurement & Analysis              http://CNET.com
> >>>> CNET                                            tel: 1.908.541.3739
> >>>> 1200 Route 22 East                              fax: 1.908.575.7474
> >>>> Bridgewater, NJ 08807                           cel: 1.732.618.0250
> >>>
> >> -- 
> >> Guy Ferraiolo                                   mailto:guyf@CNET.com
> >> Performance Measurement & Analysis              http://CNET.com
> >> CNET                                            tel: 1.908.541.3739
> >> 1200 Route 22 East                              fax: 1.908.575.7474
> >> Bridgewater, NJ 08807                           cel: 1.732.618.0250
-- 
Guy Ferraiolo                                   mailto:guyf@CNET.com
Performance Measurement & Analysis              http://CNET.com
CNET                                            tel: 1.908.541.3739
1200 Route 22 East                              fax: 1.908.575.7474
Bridgewater, NJ 08807                           cel: 1.732.618.0250

Re: flood random profiletype?

Posted by Rainer Jung <ra...@kippdata.de>.
Skye Poier Nott schrieb:
> Even better - very cool patch!!  Like many people, I'm interested 
> primarily in simulating real world traffic and round_robin doesn't 
> really cut it.
> 
> So is it in SVN or... ?

At the moment it exists as an attachment to older mails of Guy to the 
same list. See e.g. his mail on February 22:

http://mail-archives.apache.org/mod_mbox/httpd-dev/200802.mbox/raw/%3c1203707287.9843.28.camel@localhost.localdomain%3e/2

Regards,

Rainer


> Skye
> 
> 
> 
> On 17-Mar-08, at 10:54 AM, Guy Ferraiolo wrote:
> 
>> It works a bit differently because it does text substitution.  That's a
>> more general case and is much more common for our needs.  Here's how it
>> would work in your case:
>>
>> 1.    use a requesttemplate
>> 2.    the URL would be http://w${RANVAR}.example.com/file.html
>>     RANVAR is the substitution variable, you can pick your
>>     variable names and have more than one in a URL
>> 3.    create a substitution file containing lines with the text
>>     you want substituted as (example file name mysubstfile):
>>     0000\n
>>     0001\n
>>     ...
>>     9999\n
>> 4.    Have a config file with a subst_list entry like this
>>
>>     <subst_list>
>>         <subst_entry>
>>             <subst_var>RANVAR</subst_var>
>>             <subst_file>/path-to/mysubstfile</subst_file>
>>         <subst_entry>
>>     <subst_list>
>>
>>
>> The win is that the subst file can contain lots of things beyond random
>> numbers.  It's very easy to create a subst file from an access log and
>> get very good agreement with your actual traffic.  So URLs like
>> http://example.com/?q=${QUERYFROMREALTRAFFIC} work fine.  You can do
>> port numbers too.
>>
>> Very large subst files work fine.
>>
>> Guy
>>
>> On Mon, 2008-03-17 at 10:43 -0700, Skye Poier Nott wrote:
>>> Interesting..
>>>
>>> I have 10,000 host aliases setup up from w0000.example.com to
>>> w9999.example.com so your patch would let me do something like http://
>>> w{random number from 0000-9999}.example.com/file.html in the urllist?
>>> Well that would sure cut down on the size of the flood config xml.
>>>
>>> Hopefully your patch can do zero padding of random numbers!  What's
>>> the url for the patch file?
>>>
>>> Thanks,
>>> Skye
>>>
>>>
>>> On 17-Mar-08, at 10:37 AM, Guy Ferraiolo wrote:
>>>
>>>> Actually, I think my current patch which does randomization on URLs in
>>>> round_robin profiles provides a bit more.
>>>>
>>>> Any news on the patch, folks?
>>>>
>>>> Guy
>>>>
>>>> On Mon, 2008-03-17 at 10:35 -0700, Skye Poier Nott wrote:
>>>>> It looks like (contrary to the docs) the only available <profiletype>
>>>>> for flood is round_robin.
>>>>>
>>>>> Does anyone have a patch to support <profiletype>random</
>>>>> profiletype>?
>>>>>
>>>>> If not, and I write one, would you be interested in the patch?
>>>>>
>>>>> Thanks,
>>>>> Skye
>>>>>
>>>>>
>>>> -- 
>>>> Guy Ferraiolo                                   mailto:guyf@CNET.com
>>>> Performance Measurement & Analysis              http://CNET.com
>>>> CNET                                            tel: 1.908.541.3739
>>>> 1200 Route 22 East                              fax: 1.908.575.7474
>>>> Bridgewater, NJ 08807                           cel: 1.732.618.0250
>>>
>> -- 
>> Guy Ferraiolo                                   mailto:guyf@CNET.com
>> Performance Measurement & Analysis              http://CNET.com
>> CNET                                            tel: 1.908.541.3739
>> 1200 Route 22 East                              fax: 1.908.575.7474
>> Bridgewater, NJ 08807                           cel: 1.732.618.0250

Re: flood random profiletype?

Posted by Skye Poier Nott <sk...@F4.ca>.
Well if it helps, I'd love to see this in the SVN head branch sooner  
rather than later.

Please hear my prayers, powers-that-be :)

Thanks
Skye



On 17-Mar-08, at 11:09 AM, Guy Ferraiolo wrote:

> Well, no, because it's been submitted but not approved.  But you could
> ask that it be approved!  There needs to be a discussion about it,  
> there
> is one tradeoff in the algorithm that needs to be understood.
>
> Committer-folk: see how popular this would be?
>
> Guy
>
> On Mon, 2008-03-17 at 11:04 -0700, Skye Poier Nott wrote:
>> Even better - very cool patch!!  Like many people, I'm interested
>> primarily in simulating real world traffic and round_robin doesn't
>> really cut it.
>>
>> So is it in SVN or... ?
>>
>> Skye
>>
>>
>>
>> On 17-Mar-08, at 10:54 AM, Guy Ferraiolo wrote:
>>
>>> It works a bit differently because it does text substitution.
>>> That's a
>>> more general case and is much more common for our needs.  Here's how
>>> it
>>> would work in your case:
>>>
>>> 1.	use a requesttemplate
>>> 2.	the URL would be http://w${RANVAR}.example.com/file.html
>>> 	RANVAR is the substitution variable, you can pick your
>>> 	variable names and have more than one in a URL
>>> 3.	create a substitution file containing lines with the text
>>> 	you want substituted as (example file name mysubstfile):
>>> 	0000\n
>>> 	0001\n
>>> 	...
>>> 	9999\n
>>> 4.	Have a config file with a subst_list entry like this
>>>
>>> 	<subst_list>
>>> 		<subst_entry>
>>> 			<subst_var>RANVAR</subst_var>
>>> 			<subst_file>/path-to/mysubstfile</subst_file>
>>> 		<subst_entry>
>>> 	<subst_list>
>>>
>>>
>>> The win is that the subst file can contain lots of things beyond
>>> random
>>> numbers.  It's very easy to create a subst file from an access log  
>>> and
>>> get very good agreement with your actual traffic.  So URLs like
>>> http://example.com/?q=${QUERYFROMREALTRAFFIC} work fine.  You can do
>>> port numbers too.
>>>
>>> Very large subst files work fine.
>>>
>>> Guy
>>>
>>> On Mon, 2008-03-17 at 10:43 -0700, Skye Poier Nott wrote:
>>>> Interesting..
>>>>
>>>> I have 10,000 host aliases setup up from w0000.example.com to
>>>> w9999.example.com so your patch would let me do something like
>>>> http://
>>>> w{random number from 0000-9999}.example.com/file.html in the  
>>>> urllist?
>>>> Well that would sure cut down on the size of the flood config xml.
>>>>
>>>> Hopefully your patch can do zero padding of random numbers!  What's
>>>> the url for the patch file?
>>>>
>>>> Thanks,
>>>> Skye
>>>>
>>>>
>>>> On 17-Mar-08, at 10:37 AM, Guy Ferraiolo wrote:
>>>>
>>>>> Actually, I think my current patch which does randomization on
>>>>> URLs in
>>>>> round_robin profiles provides a bit more.
>>>>>
>>>>> Any news on the patch, folks?
>>>>>
>>>>> Guy
>>>>>
>>>>> On Mon, 2008-03-17 at 10:35 -0700, Skye Poier Nott wrote:
>>>>>> It looks like (contrary to the docs) the only available
>>>>>> <profiletype>
>>>>>> for flood is round_robin.
>>>>>>
>>>>>> Does anyone have a patch to support <profiletype>random</
>>>>>> profiletype>?
>>>>>>
>>>>>> If not, and I write one, would you be interested in the patch?
>>>>>>
>>>>>> Thanks,
>>>>>> Skye
>>>>>>
>>>>>>
>>>>> -- 
>>>>> Guy Ferraiolo                                   mailto:guyf@CNET.com
>>>>> Performance Measurement & Analysis              http://CNET.com
>>>>> CNET                                            tel:  
>>>>> 1.908.541.3739
>>>>> 1200 Route 22 East                              fax:  
>>>>> 1.908.575.7474
>>>>> Bridgewater, NJ 08807                           cel:  
>>>>> 1.732.618.0250
>>>>
>>> -- 
>>> Guy Ferraiolo                                   mailto:guyf@CNET.com
>>> Performance Measurement & Analysis              http://CNET.com
>>> CNET                                            tel: 1.908.541.3739
>>> 1200 Route 22 East                              fax: 1.908.575.7474
>>> Bridgewater, NJ 08807                           cel: 1.732.618.0250
>>
> -- 
> Guy Ferraiolo                                   mailto:guyf@CNET.com
> Performance Measurement & Analysis              http://CNET.com
> CNET                                            tel: 1.908.541.3739
> 1200 Route 22 East                              fax: 1.908.575.7474
> Bridgewater, NJ 08807                           cel: 1.732.618.0250


Re: flood random profiletype?

Posted by Guy Ferraiolo <gu...@cnet.com>.
Well, no, because it's been submitted but not approved.  But you could
ask that it be approved!  There needs to be a discussion about it, there
is one tradeoff in the algorithm that needs to be understood.

Committer-folk: see how popular this would be?

Guy

On Mon, 2008-03-17 at 11:04 -0700, Skye Poier Nott wrote:
> Even better - very cool patch!!  Like many people, I'm interested  
> primarily in simulating real world traffic and round_robin doesn't  
> really cut it.
> 
> So is it in SVN or... ?
> 
> Skye
> 
> 
> 
> On 17-Mar-08, at 10:54 AM, Guy Ferraiolo wrote:
> 
> > It works a bit differently because it does text substitution.   
> > That's a
> > more general case and is much more common for our needs.  Here's how  
> > it
> > would work in your case:
> >
> > 1.	use a requesttemplate
> > 2.	the URL would be http://w${RANVAR}.example.com/file.html
> > 	RANVAR is the substitution variable, you can pick your
> > 	variable names and have more than one in a URL
> > 3.	create a substitution file containing lines with the text
> > 	you want substituted as (example file name mysubstfile):
> > 	0000\n
> > 	0001\n
> > 	...
> > 	9999\n
> > 4.	Have a config file with a subst_list entry like this
> >
> > 	<subst_list>
> > 		<subst_entry>
> > 			<subst_var>RANVAR</subst_var>
> > 			<subst_file>/path-to/mysubstfile</subst_file>
> > 		<subst_entry>
> > 	<subst_list>
> >
> >
> > The win is that the subst file can contain lots of things beyond  
> > random
> > numbers.  It's very easy to create a subst file from an access log and
> > get very good agreement with your actual traffic.  So URLs like
> > http://example.com/?q=${QUERYFROMREALTRAFFIC} work fine.  You can do
> > port numbers too.
> >
> > Very large subst files work fine.
> >
> > Guy
> >
> > On Mon, 2008-03-17 at 10:43 -0700, Skye Poier Nott wrote:
> >> Interesting..
> >>
> >> I have 10,000 host aliases setup up from w0000.example.com to
> >> w9999.example.com so your patch would let me do something like  
> >> http://
> >> w{random number from 0000-9999}.example.com/file.html in the urllist?
> >> Well that would sure cut down on the size of the flood config xml.
> >>
> >> Hopefully your patch can do zero padding of random numbers!  What's
> >> the url for the patch file?
> >>
> >> Thanks,
> >> Skye
> >>
> >>
> >> On 17-Mar-08, at 10:37 AM, Guy Ferraiolo wrote:
> >>
> >>> Actually, I think my current patch which does randomization on  
> >>> URLs in
> >>> round_robin profiles provides a bit more.
> >>>
> >>> Any news on the patch, folks?
> >>>
> >>> Guy
> >>>
> >>> On Mon, 2008-03-17 at 10:35 -0700, Skye Poier Nott wrote:
> >>>> It looks like (contrary to the docs) the only available  
> >>>> <profiletype>
> >>>> for flood is round_robin.
> >>>>
> >>>> Does anyone have a patch to support <profiletype>random</
> >>>> profiletype>?
> >>>>
> >>>> If not, and I write one, would you be interested in the patch?
> >>>>
> >>>> Thanks,
> >>>> Skye
> >>>>
> >>>>
> >>> -- 
> >>> Guy Ferraiolo                                   mailto:guyf@CNET.com
> >>> Performance Measurement & Analysis              http://CNET.com
> >>> CNET                                            tel: 1.908.541.3739
> >>> 1200 Route 22 East                              fax: 1.908.575.7474
> >>> Bridgewater, NJ 08807                           cel: 1.732.618.0250
> >>
> > -- 
> > Guy Ferraiolo                                   mailto:guyf@CNET.com
> > Performance Measurement & Analysis              http://CNET.com
> > CNET                                            tel: 1.908.541.3739
> > 1200 Route 22 East                              fax: 1.908.575.7474
> > Bridgewater, NJ 08807                           cel: 1.732.618.0250
> 
-- 
Guy Ferraiolo                                   mailto:guyf@CNET.com
Performance Measurement & Analysis              http://CNET.com
CNET                                            tel: 1.908.541.3739
1200 Route 22 East                              fax: 1.908.575.7474
Bridgewater, NJ 08807                           cel: 1.732.618.0250

Re: flood random profiletype?

Posted by Skye Poier Nott <sk...@F4.ca>.
Even better - very cool patch!!  Like many people, I'm interested  
primarily in simulating real world traffic and round_robin doesn't  
really cut it.

So is it in SVN or... ?

Skye



On 17-Mar-08, at 10:54 AM, Guy Ferraiolo wrote:

> It works a bit differently because it does text substitution.   
> That's a
> more general case and is much more common for our needs.  Here's how  
> it
> would work in your case:
>
> 1.	use a requesttemplate
> 2.	the URL would be http://w${RANVAR}.example.com/file.html
> 	RANVAR is the substitution variable, you can pick your
> 	variable names and have more than one in a URL
> 3.	create a substitution file containing lines with the text
> 	you want substituted as (example file name mysubstfile):
> 	0000\n
> 	0001\n
> 	...
> 	9999\n
> 4.	Have a config file with a subst_list entry like this
>
> 	<subst_list>
> 		<subst_entry>
> 			<subst_var>RANVAR</subst_var>
> 			<subst_file>/path-to/mysubstfile</subst_file>
> 		<subst_entry>
> 	<subst_list>
>
>
> The win is that the subst file can contain lots of things beyond  
> random
> numbers.  It's very easy to create a subst file from an access log and
> get very good agreement with your actual traffic.  So URLs like
> http://example.com/?q=${QUERYFROMREALTRAFFIC} work fine.  You can do
> port numbers too.
>
> Very large subst files work fine.
>
> Guy
>
> On Mon, 2008-03-17 at 10:43 -0700, Skye Poier Nott wrote:
>> Interesting..
>>
>> I have 10,000 host aliases setup up from w0000.example.com to
>> w9999.example.com so your patch would let me do something like  
>> http://
>> w{random number from 0000-9999}.example.com/file.html in the urllist?
>> Well that would sure cut down on the size of the flood config xml.
>>
>> Hopefully your patch can do zero padding of random numbers!  What's
>> the url for the patch file?
>>
>> Thanks,
>> Skye
>>
>>
>> On 17-Mar-08, at 10:37 AM, Guy Ferraiolo wrote:
>>
>>> Actually, I think my current patch which does randomization on  
>>> URLs in
>>> round_robin profiles provides a bit more.
>>>
>>> Any news on the patch, folks?
>>>
>>> Guy
>>>
>>> On Mon, 2008-03-17 at 10:35 -0700, Skye Poier Nott wrote:
>>>> It looks like (contrary to the docs) the only available  
>>>> <profiletype>
>>>> for flood is round_robin.
>>>>
>>>> Does anyone have a patch to support <profiletype>random</
>>>> profiletype>?
>>>>
>>>> If not, and I write one, would you be interested in the patch?
>>>>
>>>> Thanks,
>>>> Skye
>>>>
>>>>
>>> -- 
>>> Guy Ferraiolo                                   mailto:guyf@CNET.com
>>> Performance Measurement & Analysis              http://CNET.com
>>> CNET                                            tel: 1.908.541.3739
>>> 1200 Route 22 East                              fax: 1.908.575.7474
>>> Bridgewater, NJ 08807                           cel: 1.732.618.0250
>>
> -- 
> Guy Ferraiolo                                   mailto:guyf@CNET.com
> Performance Measurement & Analysis              http://CNET.com
> CNET                                            tel: 1.908.541.3739
> 1200 Route 22 East                              fax: 1.908.575.7474
> Bridgewater, NJ 08807                           cel: 1.732.618.0250


Re: flood random profiletype?

Posted by Guy Ferraiolo <gu...@cnet.com>.
It works a bit differently because it does text substitution.  That's a
more general case and is much more common for our needs.  Here's how it
would work in your case:

1.	use a requesttemplate
2.	the URL would be http://w${RANVAR}.example.com/file.html
	RANVAR is the substitution variable, you can pick your
	variable names and have more than one in a URL
3.	create a substitution file containing lines with the text
	you want substituted as (example file name mysubstfile):
	0000\n
	0001\n
	...
	9999\n
4.	Have a config file with a subst_list entry like this

	<subst_list>
		<subst_entry>
			<subst_var>RANVAR</subst_var>
			<subst_file>/path-to/mysubstfile</subst_file>
		<subst_entry>
	<subst_list>


The win is that the subst file can contain lots of things beyond random
numbers.  It's very easy to create a subst file from an access log and
get very good agreement with your actual traffic.  So URLs like
http://example.com/?q=${QUERYFROMREALTRAFFIC} work fine.  You can do
port numbers too.

Very large subst files work fine.

Guy

On Mon, 2008-03-17 at 10:43 -0700, Skye Poier Nott wrote:
> Interesting..
> 
> I have 10,000 host aliases setup up from w0000.example.com to  
> w9999.example.com so your patch would let me do something like http:// 
> w{random number from 0000-9999}.example.com/file.html in the urllist?   
> Well that would sure cut down on the size of the flood config xml.
> 
> Hopefully your patch can do zero padding of random numbers!  What's  
> the url for the patch file?
> 
> Thanks,
> Skye
> 
> 
> On 17-Mar-08, at 10:37 AM, Guy Ferraiolo wrote:
> 
> > Actually, I think my current patch which does randomization on URLs in
> > round_robin profiles provides a bit more.
> >
> > Any news on the patch, folks?
> >
> > Guy
> >
> > On Mon, 2008-03-17 at 10:35 -0700, Skye Poier Nott wrote:
> >> It looks like (contrary to the docs) the only available <profiletype>
> >> for flood is round_robin.
> >>
> >> Does anyone have a patch to support <profiletype>random</ 
> >> profiletype>?
> >>
> >> If not, and I write one, would you be interested in the patch?
> >>
> >> Thanks,
> >> Skye
> >>
> >>
> > -- 
> > Guy Ferraiolo                                   mailto:guyf@CNET.com
> > Performance Measurement & Analysis              http://CNET.com
> > CNET                                            tel: 1.908.541.3739
> > 1200 Route 22 East                              fax: 1.908.575.7474
> > Bridgewater, NJ 08807                           cel: 1.732.618.0250
> 
-- 
Guy Ferraiolo                                   mailto:guyf@CNET.com
Performance Measurement & Analysis              http://CNET.com
CNET                                            tel: 1.908.541.3739
1200 Route 22 East                              fax: 1.908.575.7474
Bridgewater, NJ 08807                           cel: 1.732.618.0250

Re: flood random profiletype?

Posted by Skye Poier Nott <sk...@F4.ca>.
Interesting..

I have 10,000 host aliases setup up from w0000.example.com to  
w9999.example.com so your patch would let me do something like http:// 
w{random number from 0000-9999}.example.com/file.html in the urllist?   
Well that would sure cut down on the size of the flood config xml.

Hopefully your patch can do zero padding of random numbers!  What's  
the url for the patch file?

Thanks,
Skye


On 17-Mar-08, at 10:37 AM, Guy Ferraiolo wrote:

> Actually, I think my current patch which does randomization on URLs in
> round_robin profiles provides a bit more.
>
> Any news on the patch, folks?
>
> Guy
>
> On Mon, 2008-03-17 at 10:35 -0700, Skye Poier Nott wrote:
>> It looks like (contrary to the docs) the only available <profiletype>
>> for flood is round_robin.
>>
>> Does anyone have a patch to support <profiletype>random</ 
>> profiletype>?
>>
>> If not, and I write one, would you be interested in the patch?
>>
>> Thanks,
>> Skye
>>
>>
> -- 
> Guy Ferraiolo                                   mailto:guyf@CNET.com
> Performance Measurement & Analysis              http://CNET.com
> CNET                                            tel: 1.908.541.3739
> 1200 Route 22 East                              fax: 1.908.575.7474
> Bridgewater, NJ 08807                           cel: 1.732.618.0250


Re: flood random profiletype?

Posted by Guy Ferraiolo <gu...@cnet.com>.
Actually, I think my current patch which does randomization on URLs in
round_robin profiles provides a bit more.

Any news on the patch, folks?

Guy

On Mon, 2008-03-17 at 10:35 -0700, Skye Poier Nott wrote:
> It looks like (contrary to the docs) the only available <profiletype>  
> for flood is round_robin.
> 
> Does anyone have a patch to support <profiletype>random</profiletype>?
> 
> If not, and I write one, would you be interested in the patch?
> 
> Thanks,
> Skye
> 
> 
-- 
Guy Ferraiolo                                   mailto:guyf@CNET.com
Performance Measurement & Analysis              http://CNET.com
CNET                                            tel: 1.908.541.3739
1200 Route 22 East                              fax: 1.908.575.7474
Bridgewater, NJ 08807                           cel: 1.732.618.0250