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 0F97B200BA5 for ; Wed, 19 Oct 2016 21:58:16 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0E3EE160AEA; Wed, 19 Oct 2016 19:58:16 +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 55190160ADC for ; Wed, 19 Oct 2016 21:58:15 +0200 (CEST) Received: (qmail 99547 invoked by uid 500); 19 Oct 2016 19:58:14 -0000 Mailing-List: contact user-help@helix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@helix.apache.org Delivered-To: mailing list user@helix.apache.org Received: (qmail 99537 invoked by uid 99); 19 Oct 2016 19:58:14 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Oct 2016 19:58:14 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9F50A1806DE for ; Wed, 19 Oct 2016 19:58:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 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_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id bqXRvKwr_Smt for ; Wed, 19 Oct 2016 19:58:11 +0000 (UTC) Received: from mail-yw0-f179.google.com (mail-yw0-f179.google.com [209.85.161.179]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9026E5F486 for ; Wed, 19 Oct 2016 19:58:11 +0000 (UTC) Received: by mail-yw0-f179.google.com with SMTP id t193so25736436ywc.2 for ; Wed, 19 Oct 2016 12:58:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=lF4k090TeW07M5erKsrqm7KEJUaP/y0ylhUZJnzdq7M=; b=HsqbrYaI3fvkyj+2q3zvhl6pG/cZ0HGDXFUHrJqxScTytE01rNlDMEN6QiRBzbR3xX 1r1V4LJK1SRRGxjnnIUxXQ0fdVnlUyC+20SLlg6W5fHSORsGi1l0dcjeSXB6U92eu1cr Pcj7Z3zTuxfWmcWBS8SX6uXD2/jWpOrgrWqybiY8x/dpm2J2p9ER7g73yp37yaCrJJhd wPDt5lM8CGXSt/YfZ9MkvBLrtU5lnre6RIjWQ+yMyTN7XIW2CVTo0iqA9lb2lRV62mZB jo05zXaogrHCJwLds+ikiqU8LwXU04RJcMECGn+cL752h2cV6C5sjrt8QhlAECsl3iG9 Vqbg== 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:from:date :message-id:subject:to; bh=lF4k090TeW07M5erKsrqm7KEJUaP/y0ylhUZJnzdq7M=; b=Yo54RV85e8vAQJvQC3KDX8YOIZRuA8w2Q0eqE0uMYMxRrgvlBLW39bBpy5BIjqO9V1 MNeZ+JFqxrGPFbh4U2LhwMnOaiZoWy0XV9+IVmTyHqBsSf2b/iVTbLiTI6WOkPxv0imG mjR3UbQoxU6+B1N7CoYwTAGIxm4kuGxwEO7ly+NfbZgE7yx+WiLolNDS3KF3q0fpm0Q8 huYdYDl5SIRlE48NyOMbxiQAAH+R4Uu6X+KhmcsVLb1lK7YBrCmfPGw14lG0RZwzTKaB u/9/1qTAdD6TyfcMDcvvBWy8A7a3dZxRrWi490NyVJNgc26PfGIUVjZ40NgHSUXsa31c 5WLQ== X-Gm-Message-State: AA6/9Rm3lbZ4QwBsVYmkZdPARabESkQAbjEuv5NWATkvRP837dKrcc6JJhRR6ZPcFb9aqoXWYLYvh8f8QUrABw== X-Received: by 10.202.83.147 with SMTP id h141mr5429352oib.133.1476906741154; Wed, 19 Oct 2016 12:52:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.37.37 with HTTP; Wed, 19 Oct 2016 12:52:20 -0700 (PDT) In-Reply-To: References: From: kishore g Date: Wed, 19 Oct 2016 12:52:20 -0700 Message-ID: Subject: Re: Correct way to redistribute work from disconnected instances? To: "user@helix.apache.org" Content-Type: multipart/alternative; boundary=001a113d6f10ac8e47053f3d2522 archived-at: Wed, 19 Oct 2016 19:58:16 -0000 --001a113d6f10ac8e47053f3d2522 Content-Type: text/plain; charset=UTF-8 I think this might be a corner case when partitions * replicas < TOTAL_NUMBER_OF_NODES. Can you try with many partitions and replicas and check if the issue still exists. On Wed, Oct 19, 2016 at 11:53 AM, Michael Craig wrote: > I've noticed that partitions/replicas assigned to disconnected instances > are not automatically redistributed to live instances. What's the correct > way to do this? > > For example, given this setup with Helix 0.6.5: > - 1 resource > - 2 replicas > - LeaderStandby state model > - FULL_AUTO rebalance mode > - 3 nodes (N1 is Leader, N2 is Standby, N3 is just sitting) > > Then drop N1: > - N2 becomes LEADER > - Nothing happens to N3 > > Naively, I would have expected N3 to transition from Offline to Standby, > but that doesn't happen. > > I can force redistribution from GenericHelixController#onLiveInstanceChange > by > - dropping non-live instances from the cluster > - calling rebalance > > The instance dropping seems pretty unsafe! Is there a better way? > --001a113d6f10ac8e47053f3d2522 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I think this might be a corner case when partitions * repl= icas < TOTAL_NUMBER_OF_NODES. Can you try with many partitions and repli= cas and check if the issue still exists.



On Wed, Oct 19, = 2016 at 11:53 AM, Michael Craig <mcraig@box.com> wrote:
I've noticed that part= itions/replicas assigned to disconnected instances are not automatically re= distributed to live instances. What's the correct way to do this?
=

For example, given this setup with Helix 0.6.5:
- 1 reso= urce
- 2 replicas
- LeaderStandby state model
=
- FULL_AUTO rebalance mode
- 3 nodes (N1 is Leader, N2 is St= andby, N3 is just sitting)

Then drop N1:
- N2 becomes LEADER
- Nothing happens to N3

=
Naively, I would have expected N3 to transition from Offline to Standb= y, but that doesn't happen.

I can force redist= ribution from GenericHelixController#onLiveInstanceChange by
- dropping non-live instances from the cluster
- calling rebalan= ce

The instance dropping seems pretty unsafe! Is t= here a better way?

--001a113d6f10ac8e47053f3d2522--