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 DFAD310622 for ; Thu, 12 Feb 2015 18:48:09 +0000 (UTC) Received: (qmail 60318 invoked by uid 500); 12 Feb 2015 18:47:56 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 60250 invoked by uid 500); 12 Feb 2015 18:47:55 -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 60238 invoked by uid 99); 12 Feb 2015 18:47:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2015 18:47:55 +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 (athena.apache.org: domain of otis.gospodnetic@gmail.com designates 209.85.216.173 as permitted sender) Received: from [209.85.216.173] (HELO mail-qc0-f173.google.com) (209.85.216.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Feb 2015 18:47:51 +0000 Received: by mail-qc0-f173.google.com with SMTP id w7so10055509qcr.4 for ; Thu, 12 Feb 2015 10:46:45 -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=YEUQ5M9ZwfvszEmS5hohE3WJ/cK5HgI3WOtpIomRSMY=; b=jBDM/Cte5ryicMlMOhejKA6Dq5lSVuvxd9D7smZ0eD7pb49ulQN0XevZ1Wuqt2E8wv Q/HLBKPcSWVLd/NJTdVLm13pz/kmCVqHW4fk8fSLtOYrVw5wtqlP8FbrOUWMtU2QxXIv fv6KtWHHVIg+jmdgKI5ViGY2ByQ6RaD80VeuAeNwikH/utseG1We3UkMHrPMRIuqMMTs LVQ2uajK6nv+G3clBAlF5+LzqXJ5qQ4Q6/UazRqFHk6qbx5tZ1eb0Kcc1ktLI8WKd6Vn c7JaDCIjllX4xNx5KDyKZrci78nOWuURPY2zf+lzif/AQUGn1lLYfTd7DOu7PCdtq9DE QPqw== MIME-Version: 1.0 X-Received: by 10.140.90.81 with SMTP id w75mr8330482qgd.57.1423766805392; Thu, 12 Feb 2015 10:46:45 -0800 (PST) Received: by 10.229.154.8 with HTTP; Thu, 12 Feb 2015 10:46:45 -0800 (PST) In-Reply-To: References: Date: Thu, 12 Feb 2015 13:46:45 -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=001a11c11caeadb541050ee88afb X-Virus-Checked: Checked by ClamAV on apache.org --001a11c11caeadb541050ee88afb Content-Type: text/plain; charset=UTF-8 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. > --001a11c11caeadb541050ee88afb--