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 8DA2D17B17 for ; Thu, 16 Apr 2015 09:17:42 +0000 (UTC) Received: (qmail 20866 invoked by uid 500); 16 Apr 2015 09:17:29 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 20821 invoked by uid 500); 16 Apr 2015 09:17:29 -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 20809 invoked by uid 99); 16 Apr 2015 09:17:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2015 09:17:28 +0000 X-ASF-Spam-Status: No, hits=3.2 required=5.0 tests=FORGED_YAHOO_RCVD,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fpjunqueira@yahoo.com designates 216.109.115.190 as permitted sender) Received: from [216.109.115.190] (HELO nm49-vm3.bullet.mail.bf1.yahoo.com) (216.109.115.190) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2015 09:17:02 +0000 Received: from [66.196.81.173] by nm49.bullet.mail.bf1.yahoo.com with NNFMP; 16 Apr 2015 09:14:54 -0000 Received: from [98.139.215.248] by tm19.bullet.mail.bf1.yahoo.com with NNFMP; 16 Apr 2015 09:14:53 -0000 Received: from [127.0.0.1] by omp1061.mail.bf1.yahoo.com with NNFMP; 16 Apr 2015 09:14:53 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 961476.38734.bm@omp1061.mail.bf1.yahoo.com X-YMail-OSG: be2X0IAVM1lDcI8dsKwJ0maFmeKuPsCLNVtu4gq6FWj62s3Nm_Kb6JnxHHczM7M AxtNK7xN2HVpnHEbYAegs.7pm19iD.0mc.r0SQ3g6x8BI9QHgjQ8Wt6oWrg149VwnCtqND2pErRW uGrVevGeAuD4hQ6BaFsHyNR5.tbeH8OVBNA.0iQEYAlK6H64L_WL6dkdMQkRc.Yq3Qsy1zpY7szG Y1boZB7iXhjDln3g8bkPA8QS8oFBEFFNrY4mC7W78wRmR6IsmbQXlBzyXE0RjY7GRUxY8IlR1oi2 LdKhRf0_JmtsO6MV_snuhNVmMibzUYCwJmBks61umdZ9YSRVdJ48q3ZSFgqABzUnf3zwu5usZshg N8uC_KZgFISPIrBwFUqoRpwOKveQNup1RsHoZRoTEY5eD2nWQag5vJ6AUZ.Ghraa8DhS.nq1fWye p3CdFrEyR9NcsQcf7OlvUK37u9XSue4tMjqkZq2.pGcIYVMQSK3FSgCesKPs5xPlmhSSqtDcYI48 05_pA Received: by 66.196.80.112; Thu, 16 Apr 2015 09:14:53 +0000 Date: Thu, 16 Apr 2015 09:14:52 +0000 (UTC) From: Flavio Junqueira Reply-To: Flavio Junqueira To: "user@zookeeper.apache.org" Message-ID: <1909203117.5120341.1429175693097.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <1458C6B4EF2B37428F20085D75DD94DB0179DE038B@MARY.main.mobik.si> References: <1458C6B4EF2B37428F20085D75DD94DB0179DE038B@MARY.main.mobik.si> Subject: Re: Transaction logs and snapshots MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5120340_362825495.1429175693091" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_5120340_362825495.1429175693091 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Dejan, Check if the autopurge feature solves your problem: http://zookeeper.apache.org/doc/r3.4.6/zookeeperAdmin.html#sc_advancedConfi= guration =20 -Flavio=C2=A0 On Thursday, April 16, 2015 9:17 AM, Dejan Markic wrote: =20 =20 Hello all! We are running 3 ZK servers in ensemble, and ZK is processing a lot of comm= ands per seconds. There are probably around 300 nodes created/checked/set/g= et per second. Since we have only information about live sessions we handle in ZK, we don'= t need any data persistency - eg: we can stop all nodes, clean all transact= ion logs/snapshots, and start them up again, without any issues. Since we have a lot of requests/changes, we have moved dataDir onto ramdisk= , so we have no problems with disk IOPS, etc. Is there a way, to minimze the usage of snapshots/logs so ramdisk would not= get filled up? It happens that transaction logs/snapshots grow so large, t= hat we run out of space on ramdisk. We issue >/usr/share/zookeeper/bin/zkCleanup.sh -n 3< every 2 minutes, so t= his should cleanup the dataDir quite often. Why is >count number of snapsho= ts/logs to keep< limited to 3 and not below? I assume, in my setup, I don't even need snapshots/logs to be stored after = they are not actively needed?=20 So my basic questions are:=C2=A0=20 - can I somehow get rid of snapshot/logs sooner, more often ... ? - when is snapshot created? Can it be created sooner, so it would be smalle= r?=20 - Is it possible to get rid of snapshot/logs all together? Thank you for all your inputs and kind regards, Dejan Markic =20 ------=_Part_5120340_362825495.1429175693091--