Re: flood random profiletype?

2008-03-17 Thread Guy Ferraiolo
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:
> 
>  http://${hostname}.example.com/index.html
> 
> but if I use this it works fine:
> 
>   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:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 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?

2008-03-17 Thread Skye Poier Nott
One thing I've noticed is it doesn't seem to do substitution if you  
specify:


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

but if I use this it works fine:

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


I'm not sure if that's intentional.

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

Skye



smime.p7s
Description: S/MIME cryptographic signature


Re: flood random profiletype?

2008-03-17 Thread Guy Ferraiolo
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:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 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?

2008-03-17 Thread Skye Poier Nott
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



smime.p7s
Description: S/MIME cryptographic signature


Re: flood random profiletype?

2008-03-17 Thread Guy Ferraiolo
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/[EMAIL 
> >> PROTECTED]/2
> >>
> >> Regards,
> >>
> >> Rainer
> >>
> >>
-- 
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 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?

2008-03-17 Thread Skye Poier Nott

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/[EMAIL 
PROTECTED]/2

Regards,

Rainer




smime.p7s
Description: S/MIME cryptographic signature


Re: flood random profiletype?

2008-03-17 Thread Guy Ferraiolo
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/[EMAIL 
> PROTECTED]/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):
> >> \n
> >> 0001\n
> >> ...
> >> \n
> >> 4.Have a config file with a subst_list entry like this
> >>
> >> 
> >> 
> >> RANVAR
> >> /path-to/mysubstfile
> >> 
> >> 
> >>
> >>
> >> 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 w.example.com to
> >>> w.example.com so your patch would let me do something like http://
> >>> w{random number from -}.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 
> > for flood is round_robin.
> >
> > Does anyone have a patch to support random > profiletype>?
> >
> > If not, and I write one, would you be interested in the patch?
> >
> > Thanks,
> > Skye
> >
> >
>  -- 
>  Guy Ferraiolo   mailto:[EMAIL PROTECTED]
>  Performance Measurement & Analysis  http://CNET.com
>  CNETtel: 1.908.541.3739
>  1200 Route 22 East  fax: 1.908.575.7474
>  Bridgewater, NJ 08807   cel: 1.732.618.0250
> >>>
> >> -- 
> >> Guy Ferraiolo   mailto:[EMAIL PROTECTED]
> >> Performance Measurement & Analysis  http://CNET.com
> >> CNETtel: 1.908.541.3739
> >> 1200 Route 22 East  fax: 1.908.575.7474
> >> Bridgewater, NJ 08807   cel: 1.732.618.0250
-- 
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 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?

2008-03-17 Thread Rainer Jung

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/[EMAIL 
PROTECTED]/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):
\n
0001\n
...
\n
4.Have a config file with a subst_list entry like this



RANVAR
/path-to/mysubstfile




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 w.example.com to
w.example.com so your patch would let me do something like http://
w{random number from -}.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 
for flood is round_robin.

Does anyone have a patch to support random?

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

Thanks,
Skye



--
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 1.908.541.3739
1200 Route 22 East  fax: 1.908.575.7474
Bridgewater, NJ 08807   cel: 1.732.618.0250



--
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 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?

2008-03-17 Thread Skye Poier Nott
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):
\n
0001\n
...
\n
4.  Have a config file with a subst_list entry like this



RANVAR
/path-to/mysubstfile




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 w.example.com to
w.example.com so your patch would let me do something like
http://
w{random number from -}.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

for flood is round_robin.

Does anyone have a patch to support random?

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

Thanks,
Skye



--
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel:  
1.908.541.3739
1200 Route 22 East  fax:  
1.908.575.7474
Bridgewater, NJ 08807   cel:  
1.732.618.0250



--
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 1.908.541.3739
1200 Route 22 East  fax: 1.908.575.7474
Bridgewater, NJ 08807   cel: 1.732.618.0250



--
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 1.908.541.3739
1200 Route 22 East  fax: 1.908.575.7474
Bridgewater, NJ 08807   cel: 1.732.618.0250




smime.p7s
Description: S/MIME cryptographic signature


Re: flood random profiletype?

2008-03-17 Thread Guy Ferraiolo
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):
> > \n
> > 0001\n
> > ...
> > \n
> > 4.  Have a config file with a subst_list entry like this
> >
> > 
> > 
> > RANVAR
> > /path-to/mysubstfile
> > 
> > 
> >
> >
> > 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 w.example.com to
> >> w.example.com so your patch would let me do something like  
> >> http://
> >> w{random number from -}.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  
>  
>  for flood is round_robin.
> 
>  Does anyone have a patch to support random  profiletype>?
> 
>  If not, and I write one, would you be interested in the patch?
> 
>  Thanks,
>  Skye
> 
> 
> >>> -- 
> >>> Guy Ferraiolo   mailto:[EMAIL PROTECTED]
> >>> Performance Measurement & Analysis  http://CNET.com
> >>> CNETtel: 1.908.541.3739
> >>> 1200 Route 22 East  fax: 1.908.575.7474
> >>> Bridgewater, NJ 08807   cel: 1.732.618.0250
> >>
> > -- 
> > Guy Ferraiolo   mailto:[EMAIL PROTECTED]
> > Performance Measurement & Analysis  http://CNET.com
> > CNETtel: 1.908.541.3739
> > 1200 Route 22 East  fax: 1.908.575.7474
> > Bridgewater, NJ 08807   cel: 1.732.618.0250
> 
-- 
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 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?

2008-03-17 Thread Skye Poier Nott
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):
\n
0001\n
...
\n
4.  Have a config file with a subst_list entry like this



RANVAR
/path-to/mysubstfile




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 w.example.com to
w.example.com so your patch would let me do something like  
http://

w{random number from -}.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  


for flood is round_robin.

Does anyone have a patch to support random?

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

Thanks,
Skye



--
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 1.908.541.3739
1200 Route 22 East  fax: 1.908.575.7474
Bridgewater, NJ 08807   cel: 1.732.618.0250



--
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 1.908.541.3739
1200 Route 22 East  fax: 1.908.575.7474
Bridgewater, NJ 08807   cel: 1.732.618.0250




smime.p7s
Description: S/MIME cryptographic signature


Re: flood random profiletype?

2008-03-17 Thread Guy Ferraiolo
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):
\n
0001\n
...
\n
4.  Have a config file with a subst_list entry like this



RANVAR
/path-to/mysubstfile




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 w.example.com to  
> w.example.com so your patch would let me do something like http:// 
> w{random number from -}.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 
> >> for flood is round_robin.
> >>
> >> Does anyone have a patch to support random >> profiletype>?
> >>
> >> If not, and I write one, would you be interested in the patch?
> >>
> >> Thanks,
> >> Skye
> >>
> >>
> > -- 
> > Guy Ferraiolo   mailto:[EMAIL PROTECTED]
> > Performance Measurement & Analysis  http://CNET.com
> > CNETtel: 1.908.541.3739
> > 1200 Route 22 East  fax: 1.908.575.7474
> > Bridgewater, NJ 08807   cel: 1.732.618.0250
> 
-- 
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 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?

2008-03-17 Thread Skye Poier Nott

Interesting..

I have 10,000 host aliases setup up from w.example.com to  
w.example.com so your patch would let me do something like http:// 
w{random number from -}.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 
for flood is round_robin.

Does anyone have a patch to support randomprofiletype>?


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

Thanks,
Skye



--
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 1.908.541.3739
1200 Route 22 East  fax: 1.908.575.7474
Bridgewater, NJ 08807   cel: 1.732.618.0250




smime.p7s
Description: S/MIME cryptographic signature


Re: flood random profiletype?

2008-03-17 Thread Guy Ferraiolo
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   
> for flood is round_robin.
> 
> Does anyone have a patch to support random?
> 
> If not, and I write one, would you be interested in the patch?
> 
> Thanks,
> Skye
> 
> 
-- 
Guy Ferraiolo   mailto:[EMAIL PROTECTED]
Performance Measurement & Analysis  http://CNET.com
CNETtel: 1.908.541.3739
1200 Route 22 East  fax: 1.908.575.7474
Bridgewater, NJ 08807   cel: 1.732.618.0250


flood random profiletype?

2008-03-17 Thread Skye Poier Nott
It looks like (contrary to the docs) the only available   
for flood is round_robin.


Does anyone have a patch to support random?

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

Thanks,
Skye




smime.p7s
Description: S/MIME cryptographic signature