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 C38A6200BD4 for ; Fri, 16 Dec 2016 22:05:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C20DD160B24; Fri, 16 Dec 2016 21:05:59 +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 DF5BB160B10 for ; Fri, 16 Dec 2016 22:05:58 +0100 (CET) Received: (qmail 53091 invoked by uid 500); 16 Dec 2016 21:05:57 -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 53071 invoked by uid 99); 16 Dec 2016 21:05:56 -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; Fri, 16 Dec 2016 21:05:56 +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 41084180028 for ; Fri, 16 Dec 2016 21:05:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.8 X-Spam-Level: X-Spam-Status: No, score=-0.8 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=jarekrozanski.com header.b=WJ6qixYQ; dkim=pass (1024-bit key) header.d=messagingengine.com header.b=C1XUxXAg 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 8XQUO5o6TpOg for ; Fri, 16 Dec 2016 21:05:54 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A4E5F5F251 for ; Fri, 16 Dec 2016 21:05:54 +0000 (UTC) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id B2508207BB; Fri, 16 Dec 2016 16:05:53 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute2.internal (MEProxy); Fri, 16 Dec 2016 16:05:53 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=jarekrozanski.com; h=content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=jdp6Kg4Mk7uw3cAvihxGkOn+ieE=; b=WJ6qix YQfA78SZXDMGx2Iu1z1KkoxJ/SmoNKbouM4fBeeB8ZKVTmDMeuZ0LThV4xi/P+9N MVsjwiDRpAPp+FOkWomqxOIFZu0zE2ksEA7uoS8AlAqNenz7FWWWP9dFXphMImuw CxlodH5DNROyL7NA7eFTEF34P4WIBhUKAahCk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=smtpout; bh=jdp6Kg4Mk7uw3c AvihxGkOn+ieE=; b=C1XUxXAgqJf+/ak2776wW1NQUbYZnNYoV6+fq5UizekUef O5A/qVxOcEn5EXLWfRAnjWlnFY8SJDtaiAW6tuujN2ckOcL2zyVFggoRJUBwyp56 35iKEoqF79ZuDC8BFTdr7vjwBxlyuhr2XOQKXkxjOtm06pTgUGJHLxyKIqkTs= X-ME-Sender: X-Sasl-enc: 4UPs+iT/YGNlpjg3EOAwoz9INlIGGrXDaTDd0HSakTgf 1481922353 Received: from [192.168.1.101] (host86-132-224-133.range86-132.btcentralplus.com [86.132.224.133]) by mail.messagingengine.com (Postfix) with ESMTPA id 4D70124240 for ; Fri, 16 Dec 2016 16:05:53 -0500 (EST) Subject: Re: Separating Search and Indexing in SolrCloud To: solr-user@lucene.apache.org References: <2c01bba3-8e87-5e25-2150-6724a29f0636@jarekrozanski.com> <8182d82a-73e4-70b1-96ed-1f3d62e2b7e2@jarekrozanski.com> <97a29ebe-4966-63e2-a777-4b23f38791d4@elyograg.org> From: Jaroslaw Rozanski Message-ID: Date: Fri, 16 Dec 2016 21:05:27 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <97a29ebe-4966-63e2-a777-4b23f38791d4@elyograg.org> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qWave1hRUkvAsAPIMWV4CiD8tNk2NuGV3" archived-at: Fri, 16 Dec 2016 21:06:00 -0000 --qWave1hRUkvAsAPIMWV4CiD8tNk2NuGV3 Content-Type: multipart/mixed; boundary="m0WMDnkimfl7ec6FSCvO5OFGI16q5n55S"; protected-headers="v1" From: Jaroslaw Rozanski To: solr-user@lucene.apache.org Message-ID: Subject: Re: Separating Search and Indexing in SolrCloud References: <2c01bba3-8e87-5e25-2150-6724a29f0636@jarekrozanski.com> <8182d82a-73e4-70b1-96ed-1f3d62e2b7e2@jarekrozanski.com> <97a29ebe-4966-63e2-a777-4b23f38791d4@elyograg.org> In-Reply-To: <97a29ebe-4966-63e2-a777-4b23f38791d4@elyograg.org> --m0WMDnkimfl7ec6FSCvO5OFGI16q5n55S Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thanks, On 16/12/16 20:56, Shawn Heisey wrote: > On 12/16/2016 5:43 AM, Jaroslaw Rozanski wrote: >> Leader is responsible for distributing update requests to replica. So >> eventually all replicas have same state as leader. Not a problem. It >> is more about the performance of such. If I gather correctly normal >> replication happens by standard update request. Not by, say, segment >> copy.=20 >=20 > For SolrCloud, yes. The master/slave replication that existed before > SolrCloud does work by copying segment files, but SolrCloud does not > work that way. The old master/slave replication feature IS used by > SolrCloud, but ONLY for index recovery -- copying the entire index from= > the leader to another replica in the event that the replica gets so far= > behind that it cannot be brought current by regular updates and/or the > transaction log. This is also used to make new replicas. >=20 >> Hence, if my understanding is correct, sending search request to >> replica only, in index heavy environment, would bring no benefit.=20 >=20 > Correct, it would have no benefit. There's something else: when you > send queries to SolrCloud, they do not necessarily stay on the node > where you sent them. By default, multiple query requests are load > balanced across the cloud, so they'll hit the leader anyway, even if yo= u > never send them to the leader. With custom Solr Client the above logic no longer applies to my case. I can easily control to which replica/core in shard my query is directed to (along with distrib=3Dfalse). >> So the question is: is there a mechanism, in SolrCloud (not legacy >> master/slave set-up) to make one node take a load of indexing which >> other nodes focus on searching.=20 >=20 > Indexing will always be done by all replicas, including the leader. >=20 > Something to mention, although it doesn't accomplish what you're after:= =20 > There is a preferLocalShards parameter that you can send with your quer= y > to keep SolrCloud from doing its load balancing *if* the query can be > satisfied from local indexes. This parameter should only be used in on= e > of the following situations: >=20 > * Your query rate is very low. > * You are already load balancing the requests yourself. >=20 > If the preferlocalShards parameter is used in other situations, it can > end up concentrating a large number of requests onto some replicas and > leaving the other replicas idle. >=20 > https://cwiki.apache.org/confluence/display/solr/Distributed+Requests#D= istributedRequests-PreferLocalShards Yeap, already solved. I am more concerned with indexing memory requirements at volume affecting performance of search requests and/or cluster stability. > Thanks, > Shawn >=20 --=20 Jaroslaw Rozanski | e: me@jarekrozanski.com 695E 436F A176 4961 7793 5C70 AFDF FB5E 682C 4D3D --m0WMDnkimfl7ec6FSCvO5OFGI16q5n55S-- --qWave1hRUkvAsAPIMWV4CiD8tNk2NuGV3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJYVFcbAAoJEK/f+15oLE097UgH/3Y+9WbYM45Ggqz94CKQ791t juTT8opoIRubti5x6f+M9l/XWTlNLH30TpX8ojjL24EaEq9S67g+6qsOR9YyPG9h yY09eRZjbqw81pE5DwtJyZmWPIxOG5DAk7EUEL0BG/lxCWJWXfcviQlyubJqitGR Lib6JH33/EvPbJMrrgOoVjIx39b0VDLH59FuYP/r8l5Gx8oV9OLJuWHf15/LHYHI CBHYLePFoc6vPXVsmpALnhwHGf7I16RGw6ELmE7wQZx2c/af4xgjCbNTwOGViGG/ GV9TGiYZzF3kal8GnrpAfaKou+4Y5lMVgAw92SZ2/FGet8UHjfP3y9ihAzFOoGY= =kDv4 -----END PGP SIGNATURE----- --qWave1hRUkvAsAPIMWV4CiD8tNk2NuGV3--