Return-Path: X-Original-To: apmail-helix-user-archive@minotaur.apache.org Delivered-To: apmail-helix-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A74A010506 for ; Tue, 9 Jul 2013 23:18:02 +0000 (UTC) Received: (qmail 82654 invoked by uid 500); 9 Jul 2013 23:18:02 -0000 Delivered-To: apmail-helix-user-archive@helix.apache.org Received: (qmail 82587 invoked by uid 500); 9 Jul 2013 23:18:02 -0000 Mailing-List: contact user-help@helix.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@helix.incubator.apache.org Delivered-To: mailing list user@helix.incubator.apache.org Received: (qmail 82580 invoked by uid 99); 9 Jul 2013 23:18:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2013 23:18:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lance@box.com designates 209.85.160.45 as permitted sender) Received: from [209.85.160.45] (HELO mail-pb0-f45.google.com) (209.85.160.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jul 2013 23:17:57 +0000 Received: by mail-pb0-f45.google.com with SMTP id mc8so6009722pbc.4 for ; Tue, 09 Jul 2013 16:17:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=Nq5FRZWfm4tHm/3l0JHnIYrzJhOGg5PoKTZ4vDwAV44=; b=QDhNVCArJh7fE8J4ZHopFgFJxOSRkkq1uqr+ax5QT7il5cT+Xk6E0wwAdx4M7uijlt Hcu+u8+jYzp1VIEOqMr/9o+cVxO+x1Qazvc7eepnKntZqlWLur3lOqJBJoyYdgtYIZ/s v5w9uRPfH2dxlu0jVyoajwXutbsuc3Qr/ooM73sUkcOEcAncCT2MDyYku5rqqV/Orq1o chCCsOMLMXn/d3jv1ye0LaDkMW3itIyMzjppz+H1eyUdJmcosdZlVeLwkJrZ7tRdbHDs /SVbmeI7VABNKsbrLQY7CWf+dIWfd09+uyVxeqhU5WY4DLbOrr9psNakiE+K0tKSmICj ffAw== MIME-Version: 1.0 X-Received: by 10.66.252.194 with SMTP id zu2mr30415706pac.71.1373411857184; Tue, 09 Jul 2013 16:17:37 -0700 (PDT) Received: by 10.68.238.99 with HTTP; Tue, 9 Jul 2013 16:17:37 -0700 (PDT) In-Reply-To: References: Date: Tue, 9 Jul 2013 16:17:37 -0700 Message-ID: Subject: Re: ZkHelixAdmin getResourceExternalView From: Lance Co Ting Keh To: user@helix.incubator.apache.org Content-Type: multipart/alternative; boundary=047d7b15ac85e0d27e04e11c5dfc X-Gm-Message-State: ALoCoQkynyQFLuj5LzkPXFP1oyTGtV29heJ/+X7imI+wI6ELEfC6HcrpRMczMooq9jMeDQoVs8Xs X-Virus-Checked: Checked by ClamAV on apache.org --047d7b15ac85e0d27e04e11c5dfc Content-Type: text/plain; charset=ISO-8859-1 Hi Kishore, I would love to do so. I am rushing to finish something for Box right now but I'll look to do it before I go back/right when i go back to school. Thank you Lance On Mon, Jul 8, 2013 at 3:24 PM, kishore g wrote: > Hi Lance, > > Look at the Routing table provider code, it sets up a watch on the > external view and updates the local cache on demand. You can do similar > stuff on LiveInstance as well. > > There is a generic class called ZKCachedDataAccessor which keeps local > cache for a path and updates the cache only when something changes. It is > fairly low level, it will be nice to have a high level api to satisfy your > requirement. Let me know if you want to file a JIRA and contribute it. > > thanks, > Kishore G > > > On Mon, Jul 8, 2013 at 1:06 PM, Lance Co Ting Keh wrote: > >> Hi guys, >> >> Quick question on ZKHelixAdmin's getResourceExternalView, and other >> method calls for information in Zookeeper. I checked the code base and it >> seems that for every call we go to Zookeeper to get the info. I just want >> to make sure that I am right on this. Is nothing cached in the >> participant's memory? If so and i want to make an extra health check from >> the non-JVM participant to make sure the non-JVM participant how can I best >> do this without overloading Zookeeper? >> >> >> Sincerely, >> Lance >> > > --047d7b15ac85e0d27e04e11c5dfc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Kishore,

I would love to do so= . I am rushing to finish something for Box right now but I'll look to d= o it before I go back/right when i go back to school.


Thank you
Lance
=


On Mon,= Jul 8, 2013 at 3:24 PM, kishore g <g.kishore@gmail.com> w= rote:
Hi Lance,

Look at the Routing table provider code, it sets up a watch on the extern= al view and updates the local cache on demand. You can do similar stuff on = LiveInstance as well.

There is a generic class called ZKCachedDataAccessor wh= ich keeps local cache for a path and updates the cache only when something = changes. It is fairly low level, it will be nice to have a high level api t= o satisfy your requirement. Let me know if you want to file a JIRA and cont= ribute it.

thanks,
Kishore G

--047d7b15ac85e0d27e04e11c5dfc--