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