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 2D4BC1199A for ; Thu, 22 May 2014 15:38:20 +0000 (UTC) Received: (qmail 92674 invoked by uid 500); 22 May 2014 15:30:59 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 92611 invoked by uid 500); 22 May 2014 15:30:59 -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 92603 invoked by uid 99); 22 May 2014 15:30:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 15:30:59 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@gmail.com designates 209.85.128.170 as permitted sender) Received: from [209.85.128.170] (HELO mail-ve0-f170.google.com) (209.85.128.170) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 May 2014 15:30:55 +0000 Received: by mail-ve0-f170.google.com with SMTP id db11so4684898veb.1 for ; Thu, 22 May 2014 08:30:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=RFEAiXh3pgEyxY4mOUJLNz02u3IgSHR2EBGrNJMKQso=; b=Jalh4IoMu+InXtvg1wrgQ+6nK80IHQQdi+86wPqZ2GtnLxw8jYu5Yfi7R08h7gSuVw PjbBKtpsRKNNDEdbzM3vTrUaGxuWizxkquPUUwQOJbpS2AqVUupRumNbTag/b0IIu70A VnKgNWDGkgdrHjbXUdlgJ/J73LYuDtmiztz3CTKrq8GfXv+T/A7bVKLsUY6GicX144m8 hmMdwPrY7rKmGRb/Iu7Wt5ZdENeGxQZP4bfu9eSsmSgb+SBJB+gHOWpSspo/LGQjBKkX /X8H1saUgeJht9A3Xy6Z/LPofN0thSl0eDqEDKlHvaJb9EOYgr1oVnRhCvwg6I5lfjrd HSAg== MIME-Version: 1.0 X-Received: by 10.221.42.135 with SMTP id ty7mr16668439vcb.14.1400772631375; Thu, 22 May 2014 08:30:31 -0700 (PDT) Received: by 10.52.69.234 with HTTP; Thu, 22 May 2014 08:30:31 -0700 (PDT) In-Reply-To: References: <1400754398632-4137602.post@n3.nabble.com> Date: Thu, 22 May 2014 08:30:31 -0700 Message-ID: Subject: Re: Unload collection in SolrCloud From: Erick Erickson To: solr-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org If we manage to extend the "lazy core" loading from stand-alone to "lazy collection" loading in SolrCloud would that satisfy the use-case? It still doesn't allow manual unloading of the collection, but the large collection would "age out" if it was truly not used all that much. That said, I don't know if there's active work in this direction right now. Best, Erick On Thu, May 22, 2014 at 5:35 AM, Saumitra Srivastav wrote: > Yes, that's what I am doing. > > IMO in addition to search, Solr satisfies the needs of lot of analytics > applications as well, and on-demand loading is a common use case in > analytics(to keep TCO low), so it would be nice to keep this supported. > > > Regards, > Saumitra > > > > On Thu, May 22, 2014 at 5:37 PM, Shalin Shekhar Mangar [via Lucene] < > ml-node+s472066n4137630h17@n3.nabble.com> wrote: > >> Ah, I see. So if I understand it correctly, you are sharing the cluster >> with other collections which are more frequently used and you want to ke= ep >> resources available for them so you keep your collection dormant most of >> the time until requested. >> >> No, we don't have such an API. It'd be cool to have a lazy loaded >> collection though. Thank you for describing the use-case because the way >> that we're moving towards (ZK as truth etc.), the core admin APIs will >> gradually be phased out and satisfying your use-case would become >> impossible. Let me think more on this. >> >> >> On Thu, May 22, 2014 at 4:57 PM, Saumitra Srivastav < >> [hidden email] > >> wrote: >> >> > I don't want to delete the collection/shards. I just want to unload al= l >> > shards/replica of the collection temporarily. >> > >> > Let me explain my use case. >> > >> > I have a collection alias say *collectionA* which consists of n >> > collections(n<=3D5) each with 8 shards and 2 replica over a 16 machine >> > cluster. >> > *collectionA* is quite big in size and used very rarely, so we keep al= l >> > shards/replica of *collectionA* unloaded most of the time. Only when >> user >> > request to use it, we load it in memory. To load/unload shards/replica >> of >> > aliased *collectionA*, we use CLUSTERSTATUS api to get list of all >> > shards/replicas in aliased collection and then use CORE ADMIN api to >> > load/unload them. >> > >> > As you can see there is lot of manual work involved, so I want to know >> if >> > there is an API to load/unload ALL shards/replicas of a collection? >> > >> > >> > Regards, >> > Saumitra >> > >> > >> > On Thu, May 22, 2014 at 4:36 PM, Shalin Shekhar Mangar [via Lucene] < >> > [hidden email] > >> wrote: >> > >> > > You can use the delete Collection API. >> > > >> > > >> > > >> > >> https://cwiki.apache.org/confluence/display/solr/Collections+API#Collect= ionsAPI-api6 >> > > >> > > >> > > >> > > On Thu, May 22, 2014 at 3:56 PM, Saumitra Srivastav < >> > > [hidden email] > >> >> > > wrote: >> > > >> > > > Guys, any suggestions for this?? >> > > > >> > > > >> > > > >> > > > -- >> > > > View this message in context: >> > > > >> > > >> > >> http://lucene.472066.n3.nabble.com/Unload-collection-in-SolrCloud-tp4135= 706p4137602.html >> > > > Sent from the Solr - User mailing list archive at Nabble.com. >> > > > >> > > >> > > >> > > >> > > -- >> > > Regards, >> > > Shalin Shekhar Mangar. >> > > >> > > >> > > ------------------------------ >> > > If you reply to this email, your message will be added to the >> discussion >> > > below: >> > > >> > > >> > >> http://lucene.472066.n3.nabble.com/Unload-collection-in-SolrCloud-tp4135= 706p4137608.html >> > > To start a new topic under Solr - User, email >> > > [hidden email] >> > > To unsubscribe from Unload collection in SolrCloud, click here< >> > >> > >> > > . >> > > NAML< >> > >> http://lucene.472066.n3.nabble.com/template/NamlServlet.jtp?macro=3Dmacr= o_viewer&id=3Dinstant_html%21nabble%3Aemail.naml&base=3Dnabble.naml.namespa= ces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web= .template.NodeNamespace&breadcrumbs=3Dnotify_subscribers%21nabble%3Aemail.n= aml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemai= l.naml >> >> > > >> > > >> > >> > >> > >> > >> > -- >> > View this message in context: >> > >> http://lucene.472066.n3.nabble.com/Unload-collection-in-SolrCloud-tp4135= 706p4137612.html >> >> > Sent from the Solr - User mailing list archive at Nabble.com. >> > >> >> >> >> -- >> Regards, >> Shalin Shekhar Mangar. >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussio= n >> below: >> >> http://lucene.472066.n3.nabble.com/Unload-collection-in-SolrCloud-tp4135= 706p4137630.html >> To start a new topic under Solr - User, email >> ml-node+s472066n472068h95@n3.nabble.com >> To unsubscribe from Unload collection in SolrCloud, click here >> . >> NAML >> > > > > > -- > View this message in context: http://lucene.472066.n3.nabble.com/Unload-c= ollection-in-SolrCloud-tp4135706p4137639.html > Sent from the Solr - User mailing list archive at Nabble.com.