Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AF12E562 for ; Sat, 26 Jan 2013 00:43:20 +0000 (UTC) Received: (qmail 97694 invoked by uid 500); 26 Jan 2013 00:43:16 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 97646 invoked by uid 500); 26 Jan 2013 00:43:16 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 97634 invoked by uid 99); 26 Jan 2013 00:43:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jan 2013 00:43:16 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.214.179] (HELO mail-ob0-f179.google.com) (209.85.214.179) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jan 2013 00:43:09 +0000 Received: by mail-ob0-f179.google.com with SMTP id un3so1134328obb.24 for ; Fri, 25 Jan 2013 16:42:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=6+5yoJuZU2I3OTLqiAT0vhbsO6+T/qTmKJDK0f218Kc=; b=B2YGvPhjrzf4tLdBPWhKKxxWtM1AK2ND85gve7Di84szVT3vucYw6jrzgZWxDFtCs2 d5JssO9RtD7nz8ejQzPgJicpJHBsSC7hFH2ZUjK557M65AmYsWjrn0WL8PL6PI3jPt1m 8h2K1nPH20n4CMyA1GKhd0mmH/7fjDERtNO9dlpu/YuUtFU+W9u0d1pf6QK/sBhrR5qE qIsQFcesGuVbwN3kRUq9lCfSyc39sLxk/DgnBserz2/4Tkz2WLxzcE6cDECiVJLCDdOn MlA748JvHMQsq9n7yzFDybT62nYtWbyZpo32cPRxjW+1llSX9PN28UTWr2ffARWwbAR9 FJ/A== MIME-Version: 1.0 X-Received: by 10.60.29.193 with SMTP id m1mr5844090oeh.36.1359160968959; Fri, 25 Jan 2013 16:42:48 -0800 (PST) Received: by 10.60.93.197 with HTTP; Fri, 25 Jan 2013 16:42:48 -0800 (PST) Date: Fri, 25 Jan 2013 16:42:48 -0800 Message-ID: Subject: How to migrate SolrCloud shards to different servers? From: Mingfeng Yang To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=e89a8ff242a1bf571204d4265203 X-Gm-Message-State: ALoCoQkMVYRq6J2opYmecarf01Ta6oJK36/6w3TroZFGfC8bruDC6R3+bz1FLpw1kyjZJmaIxnj8 X-Virus-Checked: Checked by ClamAV on apache.org --e89a8ff242a1bf571204d4265203 Content-Type: text/plain; charset=ISO-8859-1 Right now I have an index with four shards on a single EC2 server, each running on different ports. Now I'd like to migrate three shards to independent servers. What should I do to safely accomplish this process? Can I just 1. shutdown all four solr instances. 2. copy three shards (indexes) to different servers. 3. launch 4 solr instances on 4 different servers, each with -zKhost specified, pointing to the zookeeper servers. In my impression, zookeeper remembers which shards are leaders. What I plan to do above could not elect the three new servers as leaders. If so, what's the correct way to do it? Thanks, Ming --e89a8ff242a1bf571204d4265203--