Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1247E7814 for ; Fri, 16 Sep 2011 14:19:34 +0000 (UTC) Received: (qmail 78806 invoked by uid 500); 16 Sep 2011 14:19:33 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 78786 invoked by uid 500); 16 Sep 2011 14:19:33 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 78777 invoked by uid 99); 16 Sep 2011 14:19:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2011 14:19:33 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.139.91.236] (HELO nm29-vm0.bullet.mail.sp2.yahoo.com) (98.139.91.236) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 16 Sep 2011 14:19:23 +0000 Received: from [98.139.91.70] by nm29.bullet.mail.sp2.yahoo.com with NNFMP; 16 Sep 2011 14:19:01 -0000 Received: from [98.139.91.37] by tm10.bullet.mail.sp2.yahoo.com with NNFMP; 16 Sep 2011 14:18:01 -0000 Received: from [127.0.0.1] by omp1037.mail.sp2.yahoo.com with NNFMP; 16 Sep 2011 14:18:01 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 536749.62343.bm@omp1037.mail.sp2.yahoo.com Received: (qmail 84780 invoked by uid 60001); 16 Sep 2011 14:18:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1316182681; bh=sL4u1BQ1Y0W0A1vu1v+JMBtUvAXMt78GI/0IUwwoqG0=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Vfhw8hjWe+K7aIbaR56x9WGpAYHmw4LidVkqYC70ovVtrt7/+CA7yyHmzIJOo7TWQr56Cr6pAy2CiL7rbCJXcChKuOyLFaqrQItofdZsau/ZRYBwM4+N6eILFOXqLEByukHjZwgb7mZ+AYX8gUC1WUJqI/DllbEjoAovoq+s3SQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=gm63Bz7CvQ0pNRGIE/RrKTExpuGYUPFc0RB+04Wmv/wulvZPg+WnRsafjj2VIJwpPcHELb7y1kyQJ4ZCQ0gQjGKy4MHOpspVOx4BCqEC2PXhyDPAhvFhlyyBARTpChiiWc0V/jXeot1cRmW6IveA1xQ0JMY9wrk2CwAcrv4kGxQ=; X-YMail-OSG: 0vq1bosVM1nmXkSwK1jb3JrEu0QQ6DQTgrTKwjwGVFw.ten OLuTztzz328.RUVqtDQ4Q5nJFRG8w_AJOJd1XnvVlV2cb.iylUUovQuhSCpf FZ3ZjPoKNISxi5WuGtG4GX2VoVh.nneaVGRQcRVtM5p1qVCbJlIe3O6ZaxQW I3nZylC8tMecnomBXl2s0.GXOL81d7kxCutmg5AdvCjCPURUZd2SCuGd0eQZ QNNCgPVcJepjWDdBnwt9lDs1b7GsXLlaMkZfzPYCVK5miUxzWhniZRosdDB8 LYLwOr1mk1qXrCu87qwRuFWpCmwkgmPH797NuKtexgh75yw3NpttQkUMzUo6 vN7ZsvoeDKCeSe5QQmSaRT7qgSROD5s_Z7kz5YsPJvkmsjjs3IZ2Ce7x_5tK 9O7.OYPEVB633KLXGH0r8zMpQHUKDXP.aWbZh6bVBcuO86rpxSvbphtg1Xf5 VFw73rk9DiFoARjSIcWHMlL_KWYtQwYbRa18C_3.gdKsXLTTBz_oOpKvtnKZ lGQ-- Received: from [67.161.26.234] by web44907.mail.sp1.yahoo.com via HTTP; Fri, 16 Sep 2011 07:18:01 PDT X-Mailer: YahooMailWebService/0.8.113.315625 References: <1316132664.10633.YahooMailNeo@web44908.mail.sp1.yahoo.com> Message-ID: <1316182681.84479.YahooMailNeo@web44907.mail.sp1.yahoo.com> Date: Fri, 16 Sep 2011 07:18:01 -0700 (PDT) From: Uday Subbarayan Reply-To: Uday Subbarayan Subject: Re: Usecase: DB Sharding To: "user@zookeeper.apache.org" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="838406244-916985507-1316182681=:84479" X-Virus-Checked: Checked by ClamAV on apache.org --838406244-916985507-1316182681=:84479 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks Ady. It's helpful and I am not the only one thinking about it.=0A=0A= Best,=0A-Uday.=0A=C2=A0=0A-------------------------=0AI do not blog but e-w= rite:=0Ahttp://uds-web.blogspot.com=0A=0A=0A_______________________________= _=0AFrom: Ady Lau =0ATo: "user@zookeeper.apache.org" ; Uday Subbarayan =0ASent= : Thursday, September 15, 2011 6:39 PM=0ASubject: Re: Usecase: DB Sharding= =0A=0AWe define all database information in xml files and put them into zoo= keeper=0Awith protocol buffers format.=0A=0AThe clients get some configurat= ions which using by business and build=0Adatasource=C2=A0 dynamically.=0AAl= so the clients watch the node in zookeeper and rebuild datasource while=0At= he necessary node has changed.=0A=0A=0A=E5=9C=A8 2011=E5=B9=B49=E6=9C=8816= =E6=97=A5=E6=98=9F=E6=9C=9F=E4=BA=94=EF=BC=8CUday Subbarayan =E5=86=99=E9= =81=93=EF=BC=9A=0A=0A> Hey Guys,=0A>=C2=A0 =C2=A0 =C2=A0 Any one used ZK f= or Database sharding? I am thinking something like=0A> this-=0A> -DB shard = info is kept in ZK=0A> -Application makes the call to ZK first to get the s= hard info (which=0A> database server has what data)=0A> -Then application c= onnects to right DB for accessing data.=0A> -Any shard change is communicat= ed to the app with ZK watch.=0A>=0A> I see that Rackspace use case=C2=A0 an= d just checking the community for anyone=0A> done it...=0A>=0A> Thanks,=0A>= -Uday. --838406244-916985507-1316182681=:84479--