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 941B1180EA for ; Sun, 30 Aug 2015 19:09:57 +0000 (UTC) Received: (qmail 11178 invoked by uid 500); 30 Aug 2015 17:20:36 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 11121 invoked by uid 500); 30 Aug 2015 17:20:36 -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 11109 invoked by uid 99); 30 Aug 2015 17:20:36 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Aug 2015 17:20:36 +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 117D1C20C8 for ; Sun, 30 Aug 2015 17:20:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.899 X-Spam-Level: ** X-Spam-Status: No, score=2.899 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 g8l3xsJMLxHn for ; Sun, 30 Aug 2015 17:20:30 +0000 (UTC) Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id B207320F19 for ; Sun, 30 Aug 2015 17:20:29 +0000 (UTC) Received: by iog7 with SMTP id 7so13632457iog.2 for ; Sun, 30 Aug 2015 10:20: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 :content-type; bh=R3xQEYGAXdMoM5HknhF9l2f6fKl69y2BO3xJL1HEXKk=; b=yqQQ+hujJyWcMvpWYyciWAUKmN09a30mTxXp+WAuGOUspG+/afucwSbbkutvek5EkX wUdkT6qXnILzLC6mbkis4soBoKDycndWrrXbinifvQ1ts5eDV2/ZP7+JwlVFpbDAWV2/ UpAoUlITHG56lv7cnVLJbGdtN6ovsspx70aX8vPxuL0VjCb8xb5aJ1sK+Xg1AmyFSUf1 MEqTLks/MtvK8xIJhuaFkr9lnJFElhZ+hUdGoojp04wJV83GdaxYRFGmTJUdguVR2FOz wdYuJ1so7kMPSS4SEi5Oq89475bZ3dtCPWKamcKWzI5Sx75eeptTDRVkZa4D9GsfeNJZ bIcQ== MIME-Version: 1.0 X-Received: by 10.107.27.148 with SMTP id b142mr25733902iob.114.1440955229197; Sun, 30 Aug 2015 10:20:29 -0700 (PDT) Received: by 10.79.100.7 with HTTP; Sun, 30 Aug 2015 10:20:29 -0700 (PDT) In-Reply-To: References: Date: Sun, 30 Aug 2015 19:20:29 +0200 Message-ID: Subject: Re: Doubt in Atomic Broadcast From: Martin Kersten To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a1140945c92d9f1051e8a8890 --001a1140945c92d9f1051e8a8890 Content-Type: text/plain; charset=UTF-8 Hi, Zookeeper is all about a shared state called a consensus. So everything that it is at its core is providing any means of joining a group of servers and elect a leader and share information that result in a predictable shared state that all servers agree on. The most popular consensus algorithm is the Raft algorithm: https://ramcloud.stanford.edu/*raft*.pdf. Reading this paper should clarify most of your confusion regarding what Zookeeper achieves at its very core. Cheers, Martin (Kersten) 2015-08-30 17:47 GMT+02:00 Prabhjot Bharaj : > Hello Folks, > > I am going through zookeeper internals described here: > http://zookeeper.apache.org/doc/r3.4.6/zookeeperInternals.html > > I have some very basic doubts in understanding the Gurantees - *Reliable > delivery, **Total order *and *Causal order* > > 1. I do not understand the term - 'delivery' and 'order' in these sections. > a) Delivery - Does 'delivery' refer to delivery of messages from server > to server or server to client ? > b) Order - As per this link: > https://cwiki.apache.org/confluence/display/ZOOKEEPER/Zab+vs.+Paxos, state > updates must be ordered - What kind of state updates are these ? Does the > term - 'order' in this link and the one shared in the top of this email > have the same meaning ? > > 2. *'**If a message, m, is delivered by one server, it will be eventually > delivered by all servers.'* - delivered ? > > 3. If a and b are delivered messages, either a will be delivered before b > or b will be delivered before a -- dont really understand what this means ! > > 4. the terms sender - Does sender classify as one of the zookeeper servers > in the cluster or the client ? > > > Request you to share your knowledge on my doubts so I can learn more on the > internals and be able to use zookeeper effectively > > Thanks, > Prabhjot > --001a1140945c92d9f1051e8a8890--