Return-Path: X-Original-To: apmail-curator-user-archive@minotaur.apache.org Delivered-To: apmail-curator-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 111511869B for ; Tue, 15 Sep 2015 23:54:13 +0000 (UTC) Received: (qmail 73033 invoked by uid 500); 15 Sep 2015 23:54:09 -0000 Delivered-To: apmail-curator-user-archive@curator.apache.org Received: (qmail 72911 invoked by uid 500); 15 Sep 2015 23:54:09 -0000 Mailing-List: contact user-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@curator.apache.org Delivered-To: mailing list user@curator.apache.org Received: (qmail 72780 invoked by uid 99); 15 Sep 2015 23:54:09 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Sep 2015 23:54:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id CDF31C047F for ; Tue, 15 Sep 2015 23:54:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.98 X-Spam-Level: *** X-Spam-Status: No, score=3.98 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 9PiKgfRQoiso for ; Tue, 15 Sep 2015 23:54:07 +0000 (UTC) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id AA40E20382 for ; Tue, 15 Sep 2015 23:54:07 +0000 (UTC) Received: by pacfv12 with SMTP id fv12so193847915pac.2 for ; Tue, 15 Sep 2015 16:54:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type; bh=VcPMXm408gmg1y+3Uyg+AX7HlFkGHXy17vgSnB5r3Uw=; b=G+4ARBIspDXDS2NVeUupZrD9Nm0X8cfE8mYoLTnWU3HBTcGFYQUBTBdwM3nC9woTIM i0jSlPR802up1wQsUyUt9g3lfH/Y0oUdrStgYp+Wu+aAhH5isny5yfuiJbTpvOf9IPaC nh5UH4sdJA7P0V8sxE6Pj+ldb57Ab/zUsyqFvh41fRrdaSt9w7vksnlocOnxVF39uCmp tBM+YksibBzXrrQHJKKbWB3k7VVOxvb0MYhOLY6oY7aNtIhUzzygDbKgvF7OYBPt8+Vt Q5bJWIgAukjjVdnDLedK9SJllpDXUn1M4bywB7fl1tRK6O7G+d/cYYsuORsLUT2JRncG kagA== X-Gm-Message-State: ALoCoQnnSuLGO+GfH98M3CEsc+coBrhDfI6EmkKYWmiTziTkAPXFPfbnT6LG1bonfAyJIOma+rfx X-Received: by 10.66.141.199 with SMTP id rq7mr53306747pab.140.1442361247325; Tue, 15 Sep 2015 16:54:07 -0700 (PDT) Received: from Jordans-MacBook-Pro.local ([190.140.148.131]) by smtp.gmail.com with ESMTPSA id fk8sm24233668pab.33.2015.09.15.16.54.06 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Sep 2015 16:54:06 -0700 (PDT) Date: Tue, 15 Sep 2015 18:54:04 -0500 From: Jordan Zimmerman To: Cameron McKenzie , user@curator.apache.org Message-ID: In-Reply-To: References: Subject: Re: tree cache load time X-Mailer: Airmail (303) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="55f8af9c_75f44e3d_15e" --55f8af9c_75f44e3d_15e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline However, there is an optimization opportunity by using ZK=E2=80=99s multi= -transactions. Maybe we can explore this. -Jordan On September 15, 2015 at 6:44:46 PM, Cameron McKenzie (mckenzie.cam=40gma= il.com) wrote: It would be largely dependent upon how much data you're caching. The tree= cache needs to recursively query ZK to populate the cache. cheers On Wed, Sep 16, 2015 at 9:30 AM, Vikrant Singh wrote: Hello All, I am using tree cache for one of my project. Issue I am facing is with th= e time it is taking for initialize itself. It is taking around 300ms to 3= -4 s to load itself.=C2=A0 This is how I am initializing the client and cache =C2=A0private val client =3D Curator=46ramework=46actory.newClient(hostLi= st, new ExponentialBackoffRetry(ZookeeperCache.RetryInterval.toMillis.toI= nt,ZookeeperCache.RetryCount)) val cache =3D TreeCache.newBuilder(client, path).build() post this I register for =C2=A0a handler and then wait for =22TreeCacheEv= ent.Type.INITIALIZED=22 event.=C2=A0 It take on avg =C2=A0300ms to 3-4 s.= IS there something I can do to improve this performance=3F Thanks, Vikrant --55f8af9c_75f44e3d_15e Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline