Return-Path: Delivered-To: apmail-hadoop-zookeeper-user-archive@minotaur.apache.org Received: (qmail 87667 invoked from network); 24 Feb 2010 19:19:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Feb 2010 19:19:00 -0000 Received: (qmail 94849 invoked by uid 500); 24 Feb 2010 19:19:00 -0000 Delivered-To: apmail-hadoop-zookeeper-user-archive@hadoop.apache.org Received: (qmail 94829 invoked by uid 500); 24 Feb 2010 19:19:00 -0000 Mailing-List: contact zookeeper-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: zookeeper-user@hadoop.apache.org Delivered-To: mailing list zookeeper-user@hadoop.apache.org Received: (qmail 94819 invoked by uid 99); 24 Feb 2010 19:18:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 19:18:59 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of waite.134@googlemail.com designates 72.14.220.155 as permitted sender) Received: from [72.14.220.155] (HELO fg-out-1718.google.com) (72.14.220.155) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Feb 2010 19:18:51 +0000 Received: by fg-out-1718.google.com with SMTP id d23so654258fga.11 for ; Wed, 24 Feb 2010 11:18:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=M6jFB1j1jbyUyS/dsX37phtclkpHKe1kjSaTR3x6TGA=; b=chUPHw9REUlok/2KRipfPWmIpczjoNDIbnNcn0eDWDSOs7wyqShktn/5RVjZREFp0l 9xKEJIBCsfjbQXJaOESumIIjP4T18csuaBRLPtmclzz+3yc+Dv3WfloyuGULiAdNTHVA GyIJDRbZY7r9DgK6ubvzvuja8VLRfduVHPHsc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=DTPDF4mSugDq4T6qpg26oovHgZuKoGhtLBYiqBCJoWFk7JaujRxKiVp+VIW2Ui2W/V v1HTj26dlEvBpLXfWItNN4aIXQe3SyDEH4KU3+XTTE+0kyNsMTZKZcoe+OKeTwThAZ6v BQfMbVwLpPJLVidNYrDCrXvzYQMj+S0RBzy6c= MIME-Version: 1.0 Received: by 10.102.207.15 with SMTP id e15mr140465mug.87.1267039110048; Wed, 24 Feb 2010 11:18:30 -0800 (PST) In-Reply-To: References: <8bc75ecf1002230405u4f28a5f4q4a25348b35af3671@mail.gmail.com> <8bc75ecf1002232109h7132adfdr8b27c92b34fb179a@mail.gmail.com> <8bc75ecf1002240325o5a7e2c9al18a6e86877088575@mail.gmail.com> <4B855983.1070305@apache.org> Date: Wed, 24 Feb 2010 19:18:29 +0000 Message-ID: <8bc75ecf1002241118h3070c66dle190a4ff7474369b@mail.gmail.com> Subject: Re: how to lock one-of-many ? From: Martin Waite To: zookeeper-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=0016364c7449122b6304805d8897 --0016364c7449122b6304805d8897 Content-Type: text/plain; charset=ISO-8859-1 I had not thought of adding latency to the network interface. I have skimmed descriptions of how to do this with iptables (or ipchains - I can't remember which is the standard now) - so it sounds plausible. Whether this is within my capabilities is another matter. I really do not follow the delegator approach. Is this something I would patch into Zookeeper ? Or the client ? regards, Martin On 24 February 2010 18:40, Ted Dunning wrote: > I do believe that it is relatively easy to set up high latency/high error > network interface clones in Linux. I haven't looked into that for several > years, but it used to be pretty easy. > > You can also build a delegater that wraps a real ZK connection. That would > be more compatible with a mocked object style of development. > > On Wed, Feb 24, 2010 at 8:53 AM, Patrick Hunt wrote: > > > Is there a feature to introduce deliberate lag between the primary and > its > >> replicas in the ensemble - for development purposes ? That could be > >> useful > >> for exposing latency assumptions. > >> > >> > > No feature but it does sound interesting. Are there any tools that allow > > one to setup "slow pipes" ala stunnel but here for latency not encryp? I > > believe freebsd has this feature at the os (firewall?) level, I don't > know > > if linux does. > > > > > -- > Ted Dunning, CTO > DeepDyve > --0016364c7449122b6304805d8897--