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 7890B8B68 for ; Thu, 1 Sep 2011 14:11:30 +0000 (UTC) Received: (qmail 2288 invoked by uid 500); 1 Sep 2011 14:11:27 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 2174 invoked by uid 500); 1 Sep 2011 14:11:26 -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 2166 invoked by uid 99); 1 Sep 2011 14:11:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2011 14:11:26 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mike.austin@juggle.com designates 74.125.82.48 as permitted sender) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Sep 2011 14:11:19 +0000 Received: by wwj26 with SMTP id 26so1321288wwj.5 for ; Thu, 01 Sep 2011 07:10:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.156.202 with SMTP id m52mr255655wek.21.1314886258530; Thu, 01 Sep 2011 07:10:58 -0700 (PDT) Received: by 10.216.169.212 with HTTP; Thu, 1 Sep 2011 07:10:58 -0700 (PDT) In-Reply-To: References: Date: Thu, 1 Sep 2011 09:10:58 -0500 Message-ID: Subject: Re: Solr commit process and read downtime From: Mike Austin To: solr-user@lucene.apache.org Content-Type: multipart/alternative; boundary=0016e6567e7a5c1a4a04abe1d0cb X-Virus-Checked: Checked by ClamAV on apache.org --0016e6567e7a5c1a4a04abe1d0cb Content-Type: text/plain; charset=ISO-8859-1 Wow.. thanks for the great answers Erick! This answered my concerns perfectly. Mike On Thu, Sep 1, 2011 at 7:54 AM, Erick Erickson wrote: > See below: > > On Wed, Aug 31, 2011 at 2:16 PM, Mike Austin > wrote: > > I've set up a master slave configuration and it's working great! I know > > this is the better setup but if I had just one index due to requirements, > > I'd like to know more about the performance hit of the commit. let's just > > assume I have a decent size index of a few gig normal sized documents > with > > high traffic. A few questions: > > > > - (main question) When you do a commit on a single index, is there > anytime > > when the reads will not have an index to search on? > No. While the new searcher is warming up, all incoming searches are > handled by the old searcher. When the new searcher is warmed up, > new requests are routed to it, and when the last search is completed > in the old searcher, it's shut down > > > - With the rebuilding of caches and whatever else happens, is the only > > downside the fact that the server performance will be degraded due to > file > > copy, cache warming, etc.. or will the index be actually locked at some > > point? > The index will not be locked, if by locked you mean the searches will > not happen. See above. The server will certainly have more work to > do, and if you're running close to the limits you might notice some > slowdown. But often there is no noticeable pause. Note that while > all this goes on, you will have *two* copies of the caches etc. in > memory... > > > - On a commit, do the files get copied so you need double the space or is > > that just the optimize? > You have to allow for the relatively rare instance when the merge > process combines all your segments into one, which will require > at least double the disk space. Optimize guarantees this > will happen, but it can (and will) happen on commit occasionally. > > > > > I know a master/slave setup is used to reduce these issues, but if I had > > only one server I need to know the potential risks. > Well, you're just putting lots of stuff on a server. Solr will quite > happily deal > with this situation and, depending upon how much traffic you have and > your machine's size, this may be fine. Do be aware of the "warmup hell" > problem and don't commit too frequently or your warming searchers > may tie their knickers in a knot. > > And one risk in this setup is that you have no way to quickly bring up > a server if your one machine crashes, you have to re-index *all* your data. > > Best > Erick > > > > > Thanks, > > Mike > > > --0016e6567e7a5c1a4a04abe1d0cb--