Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 58971 invoked from network); 6 Apr 2011 17:20:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Apr 2011 17:20:39 -0000 Received: (qmail 77770 invoked by uid 500); 6 Apr 2011 17:20:37 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 77739 invoked by uid 500); 6 Apr 2011 17:20:37 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 77731 invoked by uid 99); 6 Apr 2011 17:20:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2011 17:20:37 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of s5alye@gmail.com designates 209.85.210.172 as permitted sender) Received: from [209.85.210.172] (HELO mail-iy0-f172.google.com) (209.85.210.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2011 17:20:30 +0000 Received: by iye19 with SMTP id 19so2043532iye.31 for ; Wed, 06 Apr 2011 10:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=SEnmvL964+caq/HDxTgzeVi+lavISstsJ3Lprd1ExVY=; b=sVc+mGmPu8tlTw81dZ1KH6tUpRgSz5G48parqOQXP49K0VGen9+1ZrEHqq/u/yOC8f H28DLWAMqZ3d9x1LuxacSB29B7e7Fp8k7NnC3O89fEk9SPz1NTvRbs2fVoFcSL1YRL/m BDHq0rQ/z8ePuAn/Ubdz73qOtg5jAiHwjdSw4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=pfb+JDRk0kZPxE1DnUGv5SzlyUly0QrEwzLZz/ffbblkS2NDdmrCqfKYYvEbLgxcv7 +vx7UqVVg7aTtsB1R4s51Yv9xMC4EQ6TgwOPVHuH704YzEVLyZfmMh5ANMGxmrn092XV JFzTYiHjVKp0uvxaJ+TmBMz4mTpdibTyG9Y8Y= MIME-Version: 1.0 Received: by 10.231.188.214 with SMTP id db22mr1223170ibb.16.1302110408850; Wed, 06 Apr 2011 10:20:08 -0700 (PDT) Received: by 10.231.11.138 with HTTP; Wed, 6 Apr 2011 10:20:08 -0700 (PDT) Date: Wed, 6 Apr 2011 13:20:08 -0400 Message-ID: Subject: Introduce Random latency From: A J To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org I want to run some tests where I incorporate random latency in some of the nodes (that varies over time). I think the best place is to place a 'sleep (random(10 to 50 seconds)) function' somewhere in the source code of cassandra. Or maybe the sleep is not random but the seconds to sleep are read from an external file on that node. (that I will modify as the tests are going on) What would be a good spot in the source code to include this sleep function ? Thanks.