From solr-user-return-151333-archive-asf-public=cust-asf.ponee.io@lucene.apache.org Fri Jan 3 15:09:12 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1D3C318061A for ; Fri, 3 Jan 2020 16:09:12 +0100 (CET) Received: (qmail 97786 invoked by uid 500); 3 Jan 2020 15:09:08 -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 97774 invoked by uid 99); 3 Jan 2020 15:09:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jan 2020 15:09:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 95CD51A4237 for ; Fri, 3 Jan 2020 15:09:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.301 X-Spam-Level: X-Spam-Status: No, score=0.301 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, KAM_NUMSUBJECT=0.5, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 4__SnhbR6hKB for ; Fri, 3 Jan 2020 15:09:04 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.67; helo=mail-qv1-f67.google.com; envelope-from=erickerickson@gmail.com; receiver= Received: from mail-qv1-f67.google.com (mail-qv1-f67.google.com [209.85.219.67]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 387A0BC531 for ; Fri, 3 Jan 2020 15:09:04 +0000 (UTC) Received: by mail-qv1-f67.google.com with SMTP id dc14so16313677qvb.9 for ; Fri, 03 Jan 2020 07:09:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=Q0vDkI5O3mDiOtK6wBJZp6Q/jDo0gzZ/2BUg2UACO+o=; b=MkR9s2TALuOTqzi/MiEZryAkumvKv/BmxWZMkWzMMa2dsdTaYCLC8H063MTe5ZI1gX yMgZHWUREGyaOMB9SsB2yL12Y0TVY34NKUv1v11uGXCeIc9r+Z9zPzmkPrzwA9oUZRn6 8hoQNj4bHSvxeYQRJQ3zrP932nx0UFwpP8LyYsJFxe51WaZ+e5djDKnvOJRZFH/4znA7 Bt5ttB5EYb5k7xwiDDSKKmn/kHOFLONZYe+yPcL7Zajyinr2/wrgrtgleA149JSdJ04Q bQfl9S54nkKJzWQs0dgIbsSDHfUGGTYHev+iFLWnsEHYQSZy3LspI/kIyEMu0PwoPqnN nzng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=Q0vDkI5O3mDiOtK6wBJZp6Q/jDo0gzZ/2BUg2UACO+o=; b=kaB/gaOKE4C5lBJyi4QAKe/1Z5Kv4TUflgz086GT6IfA2le96azLK+RhsbRCSD4USN FktVKdv33+wseEHRWE1VHXOg9Qql7Gn3gjA0DYa3SBpU4IK+V8XAO/BOTkvCxmfNkpED t6t6Rl7mV6KBay+4LfNq9fr+4eYgyaoa6gw+JsLlE7afpnG6wpKY6c3br3KMeArcc6CJ 65WSAtj6iBk2FH9txGTAyQKOEj4stC+2HeJXvSU0Z1gISg+Ws51lsDx4ViGfJY7qIXCS 0/rJpsica57wI3I7uQ+A5ljQV8mWdi6RA/lPxqb9cnHqyhaNDW7XKVu/99pb8fBTy6pY +Lug== X-Gm-Message-State: APjAAAWSX0JalU7KPV/cJDKnffBY2MVfFQdVprRXjwi7c24Dr6RcOEof /Kvt1bonI9NsCh6r7Gi5Qp2jWt1xll0= X-Google-Smtp-Source: APXvYqyrVvmaHeYgB5inx+3TdIVV/NvIvd/eNbcqzFA5PBWcgVBceoKOhgvs1Th/QKJtXeWtEsppQQ== X-Received: by 2002:ad4:4dc3:: with SMTP id cw3mr67429855qvb.130.1578064143237; Fri, 03 Jan 2020 07:09:03 -0800 (PST) Received: from [192.168.1.122] (pool-173-54-218-193.nwrknj.fios.verizon.net. [173.54.218.193]) by smtp.gmail.com with ESMTPSA id c6sm16441617qka.111.2020.01.03.07.09.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jan 2020 07:09:02 -0800 (PST) From: Erick Erickson Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.40.2.2.4\)) Subject: Re: Solr 8.3 Date: Fri, 3 Jan 2020 10:09:02 -0500 References: <8E05F70F-02E8-4C95-BFEF-26723ECBB9BC@gmail.com> To: solr-user@lucene.apache.org In-Reply-To: Message-Id: <6388CAEA-6328-4963-A727-13BE4A0730E0@gmail.com> X-Mailer: Apple Mail (2.3608.40.2.2.4) Well, you can=E2=80=99t do what you want. The Admin UI is intended as a way for new users to get=20 started, it was never intended to support all of the possible options. Look at the documentation for the Collections CREATE API, for instance: https://lucene.apache.org/solr/guide/8_1/collections-api.html In particular createNodeSet, and createNodeSet.shuffle. If you want to control absolutely everything, the special value EMPTY for createNodeSet won=E2=80=99t create any replicas and you can place each one individually with ADDREPLICA. Of course you can script this if you need automation. What you haven=E2=80=99t explained is _why_ you want to do this. Very often taking this kind of control is unnecessary and a distraction. That said, when it _is_ necessary you need to use the Collections API rather than the admin UI. Best, Erick > On Jan 3, 2020, at 4:53 AM, vishal patel = wrote: >=20 > Thanks for the reply. Actually, I don't want to change the IP of the = replica but I want to create a collection on a specific shard IP. > As per my production server configuration, we consider 10.38.33.28 is = shard1, 10.38.33.30 is shard2, 10.38.33.31 is replica of shard1 and = 10.38.33.29 is replica of shard2. > We need to create all new collections the same as above. >=20 >=20 > When I create a collection(documents) using the admin panel. It = created like > shard1 10.38.33.30 > replica1 10.38.33.31 > shard2 10.38.33.28 > replica2 10.38.33.29 >=20 > Actually we want like this > shard1 10.38.33.28 > replica1 10.38.33.31 > shard2 10.38.33.30 > replica2 10.38.33.29 >=20 > Regards, > Vishal > ________________________________ > From: Sankar Panda > Sent: Friday, January 3, 2020 12:36 PM > To: solr-user@lucene.apache.org > Subject: Re: Solr 8.3 >=20 > Hi Vishal, >=20 > You can .go to the collection in admin console.mannually changed the = ip address as you want.Remove the replica and add it as per your = requirements.This option provides by the solr cloud. > Thanks > Sankar panda >=20 > On Fri, Jan 3, 2020, 11:33 vishal patel = > = wrote: > I do not want to change the IP of the existing replica. I want to fix = the IP for the first time creating a collection. >=20 > I have 4 machines. my IP of each machine is below > machine1 10.38.33.28 > machine2 10.38.33.29 > machine3 10.38.33.30 > machine4 10.38.33.31 >=20 > I have created solr instance on each machine. when I am creating a = first collection(documents) using admin panel my structure becomes like = this > shard1 10.38.33.30 > replica1 10.38.33.31 > shard2 10.38.33.28 > replica2 10.38.33.29 >=20 > When creating a second collection(forms), my structure becomes like = this > shard1 10.38.33.28 > replica1 10.38.33.30 > shard2 10.38.33.29 > replica2 10.38.33.31 >=20 > I have attached a screenshot. [https://ibb.co/Yb2TpVX] >=20 > Randomly IP assigned to shard or replica when creating collection but = I want to make shard1 on 10.38.33.28, replica1 on 10.38.33.31, shard2 on = 10.38.33.30 and replica2 on 10.38.33.31 when first time creating a = collection using admin panel. >=20 > Can I Fix the IP to shard OR replica when creating a new = [cid:4c560b03-a18d-4bc1-b592-6b2f8103f1ae] collection? >=20 > Regards, > Vishal >=20 >=20 > ________________________________ > From: Erick Erickson = > > Sent: Thursday, January 2, 2020 7:40 PM > To: solr-user@lucene.apache.org = > > Subject: Re: Solr 8.3 >=20 > No, you cannot change the IP of an existing replica. Either do as = Sankar mentioned when you first create the collection or use the = MOVREPLICA collections API command. >=20 > MOVEREPLICA has existed for quite a long time, but if it=E2=80=99s not = available, you can do the same with the ADDREPLICA command to add a = replica to a specific node, wait for the replica to become fully active, = then use DELETEREPLICA on the one you no longer want. >=20 > Best, > Erick >=20 >> On Jan 2, 2020, at 8:10 AM, Sankar Panda = > wrote: >>=20 >> Hi Vishal, >> You can create a empty nodeset and manually configure in the = collection as >> desired in the admin page >> Thanks >> Sankar Panda >>=20 >> On Thu, Jan 2, 2020, 14:36 vishal patel = > >> wrote: >>=20 >>> My created collection in solr cloud below >>>=20 >>> 10.38.33.24 is shard and its replica is 10.38.33.27. >>> 10.38.33.227 is shard and its replica is 10.38.33.219. >>>=20 >>> I want to create a new collection on the Same. can not change the = shard IP >>> for the new collection. How can I? >>>=20 >>>=20 >>> ------------------------------ >>> *From:* sudhir kumar = > >>> *Sent:* Thursday, January 2, 2020 2:01 PM >>> *To:* = solr-user@lucene.apache.org = > >>> *Subject:* Re: Solr 8.3 >>>=20 >>> sample url to create collection: >>>=20 >>>=20 >>> = http//host:8080/solr/admin/collections?action=3DCREATE&name=3Dcollectionna= me&numShards=3D2&replicationFactor=3D3&maxShardsPerNode=3D2&createNodeSet=3D= >>> host:8080_solr,host:8080_solr,host:8080_solr,host:8080_solr >>> &collection.configName=3Dcollectionconfig >>>=20 >>> On Thu, Jan 2, 2020 at 1:56 PM sudhir kumar = > >>> wrote: >>>=20 >>>> Hey Vishal, >>>>=20 >>>> You can use createNodeSet property while creating collection which = will >>>> allows you to create shards on specified IP. >>>>=20 >>>> /admin/collections?action=3DCREATE&name=3D*name*&numShards=3D*number*= >>>> = &replicationFactor=3D*number*&*maxShardsPerNode*=3D*number*&*createNodeSet= *=3D >>>> *nodelist*&collection.configName=3D*configname* >>>>=20 >>>>=20 >>>> Thanks, >>>>=20 >>>> Sudhir >>>>=20 >>>>=20 >>>> On Thu, Jan 2, 2020 at 1:49 PM vishal patel < >>> vishalpatel200928@outlook.com> >>>> wrote: >>>>=20 >>>>> When I am creating 2 shards and 2 replicas using admin panel, = automatic >>>>> assign a shard or replica to any IP. >>>>> I want to make the specific shard or replica to solr instance at = the >>> time >>>>> of creating a collection. Can I? >>>>>=20 >>>>> Regards, >>>>> Vishal >>>>>=20 >>>>=20 >>>=20 >=20