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 44F7118CF3 for ; Fri, 18 Mar 2016 16:38:32 +0000 (UTC) Received: (qmail 69344 invoked by uid 500); 18 Mar 2016 16:38:31 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 69285 invoked by uid 500); 18 Mar 2016 16:38:31 -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 69273 invoked by uid 99); 18 Mar 2016 16:38:31 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2016 16:38:31 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id AF596C2355 for ; Fri, 18 Mar 2016 16:38:30 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id JTdVX15uVGvX for ; Fri, 18 Mar 2016 16:38:29 +0000 (UTC) Received: from mail-qg0-f42.google.com (mail-qg0-f42.google.com [209.85.192.42]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 8E7975F64B for ; Fri, 18 Mar 2016 16:38:29 +0000 (UTC) Received: by mail-qg0-f42.google.com with SMTP id u110so104481673qge.3 for ; Fri, 18 Mar 2016 09:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=CFUJ0Cetevl5MWbOgpWCX6sgiwKKgag21cTcdtIpzgU=; b=Sv3YtR+Dk06hmn54MHgkE0pocsJixB4KCQq3n1xa8O3orTUfsGO58y2lFU8QtQAbXq tc5g4ZjHmEzvQLgqfcUceyaW+JeNzUAoDWZMuoMfpQ6sBcLbu6en3JZ0KnMQwOoABgFr ZoAMx3lmj26iH16bt6IndoVZRLKLV1RXnrhP+CwxNbKNRVQuOQHUzw3VnqmJr+mi7Siv xk+Ual9jlDLbkuJYXsK0/3Varh0Mqko6bwzlBJqkDJq0b9wo94nYBtBD0HIa63IgrVwV oS9UTNyEw27wy7dLGfM/K9Q2OSp4yfrO+6g4emBheUrPQF1xRNT7QrPCHsEjujYMC0ch L/dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=CFUJ0Cetevl5MWbOgpWCX6sgiwKKgag21cTcdtIpzgU=; b=DLzknotx08mRdO/nFWmw5yolOmd9ELFffDcs8FTQs0yagzYR1yx6TJMIzWYy2l0xJv HoyMK6wsIhEWGAI/7mKtdnyqfucyWnz7eoH4ZLNmeavdG7JHBbaXu7h1hXAhHa28hnEo Z7Txr3DyBvupzgr06WhQdG6ERS1FcTSOxvfWiZU0KmFbkZvK18EtR44/TlILNriKO4+H Tgv9FGXYAy2Jl+4M181OtbfYM6ZSu8PnT+8FD0xItfESX/0JtTadZuBlVZDLikc3fUXk kD49N5/NiTCYnYzUE2h083wq0EC7g+AIk58pn496OqBPqYx0tAgAiSDDHs52qLsfb2dD IsCQ== X-Gm-Message-State: AD7BkJINME1d+2nD4FYX28+mqQqQ4DF9qw3qyZECpGce2eAt9NbrYhrxu7Af2BKVSXJiZBC/b4V5BeImeGlm3Q== MIME-Version: 1.0 X-Received: by 10.140.91.35 with SMTP id y32mr23233158qgd.42.1458319108712; Fri, 18 Mar 2016 09:38:28 -0700 (PDT) Received: by 10.140.93.11 with HTTP; Fri, 18 Mar 2016 09:38:28 -0700 (PDT) In-Reply-To: References: Date: Fri, 18 Mar 2016 16:38:28 +0000 Message-ID: Subject: Re: Dealing with old delivered requests in memory From: ibrahim El-sanosi To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a1139575271b158052e5560a4 --001a1139575271b158052e5560a4 Content-Type: text/plain; charset=UTF-8 Thank you for replaying. Take this example, Zookeeper started on 1/1/2015, and assume ZK servers are never crashed. Also, the ZK are very busy, reciveing continusly write requests from clients and accordingly snapshots are generated overtime. On 1/3/2015, what Znodes will be in memory data tree? do all Znodes still store in memory (from 1/1/2015 to 1/3/2015) as there is no crashed occur. Or Dsnapshhot is taken the data tree is Note that I am not asking about data in log or snapshoot. I am asking about the current data in memory. On Fri, Mar 18, 2016 at 4:12 PM, Flavio Junqueira wrote: > Hi Ibrahim, > > Are you asking about how we compact old logs? We do it by taking snapshots > so that upon recovery, we only load the latest snapshot and replay the txn > log from the snapshot tag. The snapshot tag is the last zxid committed when > we start producing the snapshot. > > We don't actually delete anything, though, unless you intentionally turn > on auto purge: > > https://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_administering > < > https://zookeeper.apache.org/doc/trunk/zookeeperAdmin.html#sc_administering > > > > -Flavio > > > On 18 Mar 2016, at 16:05, ibrahim El-sanosi > wrote: > > > > Hi all, > > > > Assume the Zookeeper have been running for about one year (from 1/1/2015 > > until now), how does ZooKeeper deal with old delivered write requests (To > > optimize a memory used) (say from 1/1/2015 to 03/04/2015). I am assuming > > the old delivered request are no longer used. > > > > On the other words, what strategy ZK does to find and delete unused > Znodes? > > > > Ibrahim > > --001a1139575271b158052e5560a4--