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 DA39A10ADC for ; Fri, 13 Feb 2015 21:48:25 +0000 (UTC) Received: (qmail 21411 invoked by uid 500); 13 Feb 2015 21:48:16 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 21345 invoked by uid 500); 13 Feb 2015 21:48:16 -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 21332 invoked by uid 99); 13 Feb 2015 21:48:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 21:48:15 +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 otis.gospodnetic@gmail.com designates 209.85.192.53 as permitted sender) Received: from [209.85.192.53] (HELO mail-qg0-f53.google.com) (209.85.192.53) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Feb 2015 21:47:50 +0000 Received: by mail-qg0-f53.google.com with SMTP id f51so15433966qge.12 for ; Fri, 13 Feb 2015 13:47:04 -0800 (PST) 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; bh=RnU3wnjZB4Rx7haaQOCwcDPpSqBs9ol3DW2AkLH9+hg=; b=UbIBjSB3EJ+jDCL83N2EZZA5Eufa/OKp4/Ifb4V7TQCw81DRe8pmf3uuws31uMIa1P dsOwy7SxKAQ1fpwOk2fQ1nM4rFMll6L5tnLbXtbh7558O0xDZoHnQZLP9kA6AuCRqrHp 05lJ30f1BMGAxC+BEjznSVEjZV6BQ6Y7QER5Pxf7Jrb8yQsr0shOqXcjXEFL7VHMeMfy ksV/mmBC6AUMZjCEJ+rUiW8SPCp2Rtp7t7ssh3r2eLv0FMsGfpROkNjyOjAuR6ML5W93 sVP1SM9YkUhuogOiVSTf7J0EBP1yY3a4+3MhwhVdaKxAXACOiOpXaJvo7i5ijqYeMxO0 6+Qw== MIME-Version: 1.0 X-Received: by 10.140.216.201 with SMTP id m192mr6034322qhb.26.1423864023892; Fri, 13 Feb 2015 13:47:03 -0800 (PST) Received: by 10.229.154.8 with HTTP; Fri, 13 Feb 2015 13:47:03 -0800 (PST) In-Reply-To: References: Date: Fri, 13 Feb 2015 16:47:03 -0500 Message-ID: Subject: Re: 43sec commit duration - blocked by index merge events? From: Otis Gospodnetic To: "solr-user@lucene.apache.org" Content-Type: multipart/alternative; boundary=001a113597ac5a48b3050eff2d23 X-Virus-Checked: Checked by ClamAV on apache.org --001a113597ac5a48b3050eff2d23 Content-Type: text/plain; charset=UTF-8 Check http://search-lucene.com/?q=commit+wait+block&fc_type=mail+_hash_+user e.g. http://search-lucene.com/m/QTPa7Sqx81 Otis -- Monitoring * Alerting * Anomaly Detection * Centralized Log Management Solr & Elasticsearch Support * http://sematext.com/ On Fri, Feb 13, 2015 at 8:50 AM, Gili Nachum wrote: > Thanks Otis, can you confirm that a commit call will wait for merges to > complete before returning? > > On Thu, Feb 12, 2015 at 8:46 PM, Otis Gospodnetic < > otis.gospodnetic@gmail.com> wrote: > > > If you are using Solr and SPM for Solr, you can check a report that shows > > the # of files in an index and the report that shows you the max docs-num > > docs delta. If you see the # of files drop during a commit, that's a > > merge. If you see a big delta change, that's probably a merge, too. > > > > You could also jstack or kill -3 the JVM and see where it's spending its > > time to give you some ideas what's going on inside. > > > > HTH. > > > > Otis > > -- > > Monitoring * Alerting * Anomaly Detection * Centralized Log Management > > Solr & Elasticsearch Support * http://sematext.com/ > > > > > > On Sun, Feb 8, 2015 at 6:48 AM, Gili Nachum > wrote: > > > > > Hello, > > > > > > During a load test I noticed a commit that took 43 seconds to complete > > > (client hard complete). > > > Is this to be expected? What's causing it? > > > I have a pair of machines hosting a 128M docs collection (8 shards, > > > replication factor=2). > > > > > > Could it be merges? In Lucene merges happen async of commit statements, > > but > > > reading Solr's doc for Update Hanlder > > > < > > > > > > https://cwiki.apache.org/confluence/display/solr/UpdateHandlers+in+SolrConfig > > > > > > > it sounds like hard commits do wait for merges to occur: *" The > tradeoff > > is > > > that a soft commit gives you faster visibility because it's not waiting > > for > > > background merges to finish."* > > > Thanks. > > > > > > --001a113597ac5a48b3050eff2d23--