Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 13856 invoked from network); 17 Mar 2008 17:55:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Mar 2008 17:55:26 -0000 Received: (qmail 59033 invoked by uid 500); 17 Mar 2008 17:55:20 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 58976 invoked by uid 500); 17 Mar 2008 17:55:20 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 58958 invoked by uid 99); 17 Mar 2008 17:55:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 10:55:20 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of guy.ferraiolo@cnet.com designates 216.239.127.187 as permitted sender) Received: from [216.239.127.187] (HELO c12-smtp1e.cnet.com) (216.239.127.187) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Mar 2008 17:54:32 +0000 X-SBRS: None X-IronPort-AV: E=Sophos;i="4.25,513,1199692800"; d="scan'208";a="281125642" Received: from cnet138.cnet.cnwk ([10.16.0.65]) by c12-smtp1e.cnet.cnwk with ESMTP; 17 Mar 2008 10:54:52 -0700 Received: from NJ-E2K3-MBOX01.cnet.cnwk ([10.17.32.84]) by cnet138.cnet.cnwk with Microsoft SMTPSVC(6.0.3790.3959); Mon, 17 Mar 2008 10:54:52 -0700 Received: from 10.17.36.191 ([10.17.36.191]) by NJ-E2K3-MBOX01.cnet.cnwk ([10.17.32.84]) with Microsoft Exchange Server HTTP-DAV ; Mon, 17 Mar 2008 17:54:51 +0000 Received: from njguyfhpamd.cnet.cnwk by nj-e2k3-mbox01.cnet.cnwk; 17 Mar 2008 13:54:51 -0400 Subject: Re: flood random profiletype? From: Guy Ferraiolo To: dev@httpd.apache.org In-Reply-To: <63A5569C-F730-4B72-BDC6-231479367272@F4.ca> References: <1205775467.11703.134.camel@localhost.localdomain> <63A5569C-F730-4B72-BDC6-231479367272@F4.ca> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 17 Mar 2008 13:54:50 -0400 Message-Id: <1205776491.11703.144.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-35.0.4.el4) X-OriginalArrivalTime: 17 Mar 2008 17:54:52.0237 (UTC) FILETIME=[003A27D0:01C88858] X-Virus-Checked: Checked by ClamAV on apache.org 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 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 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 > >> 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: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