Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B00AB200B14 for ; Sat, 18 Jun 2016 21:21:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AEBA9160A50; Sat, 18 Jun 2016 19:21:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0435A160A18 for ; Sat, 18 Jun 2016 21:21:53 +0200 (CEST) Received: (qmail 54762 invoked by uid 500); 18 Jun 2016 19:21:53 -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 54749 invoked by uid 99); 18 Jun 2016 19:21:52 -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; Sat, 18 Jun 2016 19:21:52 +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 209BBC0CFA for ; Sat, 18 Jun 2016 19:21:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.03 X-Spam-Level: ** X-Spam-Status: No, score=2.03 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_INFOUSMEBIZ=0.75, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id eaWUIzQoI_4t for ; Sat, 18 Jun 2016 19:21:51 +0000 (UTC) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 9CEA85F4E4 for ; Sat, 18 Jun 2016 19:21:50 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id v199so24619189wmv.0 for ; Sat, 18 Jun 2016 12:21:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=VztSZ4WziAEN68/63nUYKetEs12AMDmbCmEUwLnVjSc=; b=FhJKOq+TjNOJK3ROR6VZ6x16a10pRHfYahrW/lVRy5ao8BMW/i0SSCHkkWG2xqNmzf cC7hqjgSNtIpq9r4lLRt8KJHqsRPpajzAYZNBCvAVnK1q9KRqGr/UeaEL3tdRmEQa51D qLuKY1Mz1meolGgr8qgR7vDYVzYTRTzQy+MHD+sRUeYTJnJVXKRRrRRHqA4ZMcJ3XbI/ 3pcwP8K7xKs7/KYu2a33q2/FBozaXx14QgMw5ajTzleBGrttlETOQi0r/JSIl0Zpw3wG I5bxxbzig41e7eN5gDkkVVgpcVqKdx1BHzE2aa0yA2SlV26kXJe/PzpQm+eMjkQW+I65 DT5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=VztSZ4WziAEN68/63nUYKetEs12AMDmbCmEUwLnVjSc=; b=j+TxiGkwz5ScjE2/TZA4UeZchkaezFUeL1Txuiy47wLzgZ6Qb2574gKr5WcqRUrjDC VyIHrAY81wat7Y/ZogwT4py0lE+Y2UukWS1+u6g6afp86NrPL5hGEJYNctDj370Dh7m6 oSy5l+lyWemv6IUbkNVpoqHQez91k5YyWZs/6254gA2VyqzEa7CV/1pI2jzx46wdZ+EF HRRCxJ/v/L7tgrPXra7qswWqCgfDGa7DyyYSrDW7Piw22UOYygV5zIBz5b+hUJGVbPue KnUrilKwZ+dR+SA7BxZxA+boHebiX5+cRC+VR4TRnPcOs72XVFjV9bDOZ8r3lGAflOFu FSIQ== X-Gm-Message-State: ALyK8tIoCFFFBJC8tjjZF1FG4jKYjbW//CqrkaeCZ1K4XQBJzs0nStxAkT5eENPdaNUzLgqRQlCNRxKO5fXdzA== X-Received: by 10.28.73.86 with SMTP id w83mr3889474wma.83.1466277704321; Sat, 18 Jun 2016 12:21:44 -0700 (PDT) MIME-Version: 1.0 Sender: ismaelj@gmail.com Received: by 10.194.19.71 with HTTP; Sat, 18 Jun 2016 12:21:04 -0700 (PDT) In-Reply-To: <29541B46-E1EE-46A7-9FD1-195DF2465519@apache.org> References: <6D71A36A-B36D-4439-B1F9-9858AC0227D3@jordanzimmerman.com> <586891CD-7939-47A4-B8E5-7850A1BBE8D7@apache.org> <29541B46-E1EE-46A7-9FD1-195DF2465519@apache.org> From: Ismael Juma Date: Sat, 18 Jun 2016 21:21:04 +0200 X-Google-Sender-Auth: ihrqKhIHWkxoxu86RtV_cpUG2Oc Message-ID: Subject: Re: FYI - Apache ZooKeeper Backup, a Treatise To: dev@kafka.apache.org Cc: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a114b2f80b551df05359261f8 archived-at: Sat, 18 Jun 2016 19:21:54 -0000 --001a114b2f80b551df05359261f8 Content-Type: text/plain; charset=UTF-8 Hi Flavio, Comments below. On Sat, Jun 18, 2016 at 4:50 PM, Flavio Junqueira wrote: > For acls, you can simply re-run the acl command to re-introduce them, > unless you assume that no record of acls is maintained once they are > introduced. If that's the case, then another way is to simply read > periodically the zk state and keep that information somewhere else to be > extra safe. This seems easier than dealing with raw zk backups. Yes, I think it's not uncommon for users not to have a separate record of Kafka ACLs. It sounds like we need to improve our documentation to cover this area. For topic configs, we would need to contact servers to reconstruct the data. > That makes sense although the mechanism to do that is currently missing as far as I know. It is important to keep in mind that this happens quite rarely, though, and > if such a daunting scenario does happen, it is quite possible that > recovering the zk state is the least important of our problems. If you do > worry about losing too many replicas of anything, be it zk or kafka > brokers, to the point of not being able to recover, then it is indeed > important to have a plan to restore data. Typically we try to avoid these > scenarios by having enough replicas and making sure that we reduce the > chance of correlated events (e.g., by having remote replicas, rack > awareness), for some definition of enough. > Yes, agreed. As discussed offline, another scenario where backups (whether raw or by reading ZK state) or delayed replicas can help is in case of user error. An admin may incorrectly delete all ACLs, for example. One would hope this never happens, but apparently it does (a UK ISP once deleted gigabytes of customers' emails due to an admin error). Ismael --001a114b2f80b551df05359261f8--