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 D8EDA200CD2 for ; Thu, 13 Jul 2017 00:23:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D738F169FB6; Wed, 12 Jul 2017 22:23:05 +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 2A9FE169FB3 for ; Thu, 13 Jul 2017 00:23:05 +0200 (CEST) Received: (qmail 62138 invoked by uid 500); 12 Jul 2017 22:23:03 -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 62116 invoked by uid 99); 12 Jul 2017 22:23:03 -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, 12 Jul 2017 22:23:03 +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 B62B81822E2 for ; Wed, 12 Jul 2017 22:23:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Yu-3Z-X5m7Ko for ; Wed, 12 Jul 2017 22:23:01 +0000 (UTC) Received: from mail-lf0-f54.google.com (mail-lf0-f54.google.com [209.85.215.54]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 5E4E1629C6 for ; Wed, 12 Jul 2017 22:23:01 +0000 (UTC) Received: by mail-lf0-f54.google.com with SMTP id z78so26916764lff.0 for ; Wed, 12 Jul 2017 15:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-transfer-encoding; bh=4zxcloTG6A/VbdUVsvSw5uIXBRTTqBWNDC4r6+dFzvc=; b=Ixbd7nG+zeG9HkBKO8ZvP4VoPFpfrREKcf4S1Ue3xOx0glb+ndt1PovhfBWtitohzz f8OU5YzVo2r2qLQEuWPC07tTB+ZFVORaSJawPjrYMZwV22zdWUUJgpFBIvVIeDj/vxtF EGk3Elwdhk1qMzA5pqghosSnilBgoLV1EJFFE7EVJMxORxZeIJgESLn3Es1G+7x3wVjK EQd7mkasruxF+dPb+RVUVp6DrgRAuxZZrV8aW5v5pSAW6X0QDhMKJwPQClPcPSZS3Oit k3kZUfbY92m6iWv6SNDeoHv2qQ2J3BSA+HakD6Q7sFeJat5pcwqw9+ptyFzOCTUscg/p QTzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-transfer-encoding; bh=4zxcloTG6A/VbdUVsvSw5uIXBRTTqBWNDC4r6+dFzvc=; b=b02PmwAZ39QOWFtrQDNBpeg9DsiRrhiO/16Sitf8sZRpmjRmIdPexhjRShdC81BCPU er+83zfvJXEg34AirXaPrW4oLWvXLM9FnAF1dQd8S+KdQ5I2kIgGfkjmUrt05zmv4I7K WVRe/diA/x9FCxc4bjfTcsFhW/GZnN1FXK9FqOrBAwPr9yntOEbETJgl0QsiDtjy79C4 yxgRYlxYAmM5UdUjzRa1TzUQpX1myO7bFl8KFv3gTmDkxaF7z5SsHW8k3UZTaVvvpSMz StVacQnr2xiAmdpPR2beI3MoPUbQifjy+OQBbLzFI/+RVGKiJcyZzQUkryuGufSffYSB dPQg== X-Gm-Message-State: AIVw1134i55sCJJxsuI7B37jVakltJEV9oBRGoQLZfZ6ebne5yfEXQxn eGwT2FkR2pKd/Sybq1/ygVwbWgocsCzH X-Received: by 10.46.69.137 with SMTP id s131mr227305lja.31.1499898180586; Wed, 12 Jul 2017 15:23:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.16.161 with HTTP; Wed, 12 Jul 2017 15:22:20 -0700 (PDT) In-Reply-To: <529991890.6411276.1499889491131@mail.yahoo.com> References: <529991890.6411276.1499889491131.ref@mail.yahoo.com> <529991890.6411276.1499889491131@mail.yahoo.com> From: Erick Erickson Date: Wed, 12 Jul 2017 15:22:20 -0700 Message-ID: Subject: Re: Cluster without sharding To: solr-user , Mikhail Ibraheem Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable archived-at: Wed, 12 Jul 2017 22:23:06 -0000 1> I would not do this. First there's the lock issues you mentioned. But let's say replica1 is your indexer and replicas2 and 3 point to the same index. When replica1 commits, now do replicas 2 and 3 know to open a new searcher? <2> and <3> just seem like variants of coupling Solr instances to collections, which I'd advise against. I'd just have a single collection with 1 shard and that shard has as many replicas as you need, spread across as many Solr instances as you want. CloudSolrClient takes care of load balancing with an internal software load balancer and is aware of ZooKeeper so it can "do the right thing". Updates get sent to all replicas and indexed locally. Do not try to share indexes You get all the HA/DR of SolrCloud. If that doesn't work, _then_ worry about more complex schemes. Best, Erick On Wed, Jul 12, 2017 at 12:58 PM, Mikhail Ibraheem wrote: > Hi,We are using some features like collapse and joins that force us not t= o use sharding for now. Still i am checking for possibilities for load bala= ncing and high availability.1- I think about using many solr instances run = against the same shard file system. This way all instances will work with t= he same data. I know there may be issues with synchronization and open seac= hers. But my main concern with this, will we have some lock issues like dea= dlock between instances? > 2- Having some collections owned by each instance. For example if I have = 9 collections and 3 solr instances, I will divide the collections so that 3= collections owned by each instance.3- Can I influence the order of the sol= rCloud Client? I mean if I have 3 instances ins1, ins2 and ins3. Am I able = to ask the solrCloudClient to try ins1 first, then ins2 and finally try ins= 3? > Any more suggestions is more than appreciated. > ThanksMikhail