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 CCABE18DD3 for ; Mon, 23 Nov 2015 12:49:49 +0000 (UTC) Received: (qmail 98745 invoked by uid 500); 23 Nov 2015 12:49:48 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 98698 invoked by uid 500); 23 Nov 2015 12:49:48 -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 98678 invoked by uid 99); 23 Nov 2015 12:49:47 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Nov 2015 12:49:47 +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 D9042C7FD0 for ; Mon, 23 Nov 2015 12:49:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=tink.se Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id GGcKwyq2VEO4 for ; Mon, 23 Nov 2015 12:49:36 +0000 (UTC) Received: from mail-yk0-f177.google.com (mail-yk0-f177.google.com [209.85.160.177]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 6C698439F8 for ; Mon, 23 Nov 2015 12:49:36 +0000 (UTC) Received: by ykdv3 with SMTP id v3so234902563ykd.0 for ; Mon, 23 Nov 2015 04:49:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tink.se; s=tink; h=mime-version:from:date:message-id:subject:to:content-type; bh=u/GEwFmhRl2w8r/E4MsTIO1iAzwIYCZq+6ykfV8mfwo=; b=UfJgx9GhypO1iFXE+b5+AQtIyP/Gvim1vgED+cI9Yjng6PDIPYyRqij0ghLf4Gg516 eiL0BrkgHwW94UZ40oM4VaaTSGqgMWhlA07p5OyqiCDA8RU+ltzW6YjOLODpVRUoJnyM WnptqC32IaYMj2FTCAPiXtvtrw4B1Cx+2ryzU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=u/GEwFmhRl2w8r/E4MsTIO1iAzwIYCZq+6ykfV8mfwo=; b=MVlKq47QxDI2pUBRXkJ0BGWKSWRZ0Pjdqsi3xmzXPK9ZktbZNDw42sdvlnv9hhtkP4 limu7Ygf5jo+68jLOinOcV91O8ndAVfxzqTw2Gd4nWdRwCgI1KAv8ULrMm0+0XPmubgt 2LcdJxY6lYvuFqIVUMI8hHylSz0myfjxx36nLngOESZDOBJg6gRDQwYSkifFIrTexW78 K4FW6AMLgib7JsHF/CJsHfRecbrecANa9HsbmouciU4kr24cYw2SHL4tS68x8hmO/fK+ vwxxYc5LEKRb67bhPaeVrYZT5SD8Csd1ASQ0g56OcKrdS2MUC6aRqC26N+wg+tcXU+el zDOA== X-Gm-Message-State: ALoCoQloaBVfqLjmYs9l6gZeoWOKX8UBXoYG4ZHVCoRTOP500BZaBDV44zAZbcvH0wsBRoT8WkdH X-Received: by 10.129.158.18 with SMTP id v18mr16476676ywg.125.1448282975941; Mon, 23 Nov 2015 04:49:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.129.32.130 with HTTP; Mon, 23 Nov 2015 04:49:16 -0800 (PST) From: Jens Rantil Date: Mon, 23 Nov 2015 13:49:16 +0100 Message-ID: Subject: Reelection takes a long time To: "" Content-Type: multipart/alternative; boundary=94eb2c0b74c650de48052534a8b4 --94eb2c0b74c650de48052534a8b4 Content-Type: text/plain; charset=UTF-8 Hi, *Problem:* We are running a Zookeeper ensemble that takes a bit too long time before a new master is elected when the old one is brought down. *Question:* Which configuration settings do I need to change to decrease the time before a reelection occurs? tickTime and syncLimit? *Additionals:* The relevant (I think!) configuration we are running is: # The number of milliseconds of each tick tickTime=2000 # The number of ticks that the initial # synchronization phase can take initLimit=60 # The number of ticks that can pass between # sending a request and getting an acknowledgement syncLimit=30 I have previously increases the limits somewhat to accomodate for zookeeper nodes not being able to come up due to too large snapshot. This could definitely be the reason why reelection takes longer time. Any input appreciated. Cheers, Jens -- Jens Rantil Backend engineer Tink AB Email: jens.rantil@tink.se Phone: +46 708 84 18 32 Web: www.tink.se Facebook Linkedin Twitter --94eb2c0b74c650de48052534a8b4--