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 02F0F10F41 for ; Tue, 7 Jan 2014 14:54:49 +0000 (UTC) Received: (qmail 88900 invoked by uid 500); 7 Jan 2014 14:49:53 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 88617 invoked by uid 500); 7 Jan 2014 14:49:15 -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 88345 invoked by uid 99); 7 Jan 2014 14:48:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 14:48:46 +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: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [74.125.83.43] (HELO mail-ee0-f43.google.com) (74.125.83.43) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 14:48:40 +0000 Received: by mail-ee0-f43.google.com with SMTP id c13so119854eek.30 for ; Tue, 07 Jan 2014 06:48:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:date:message-id:subject:from :to:content-type; bh=y/KLnRuXGl8wYNB8JtZVsDmPulYxUxu/d775P0riBDE=; b=KkNs1wRdAK31QgYdOn6YW/znGBa+1LOz1awp+/JIpXh8txn4fCM08TeAU+7y2Myf3y d5ONEVntqtGN012NSxj2ns86a03epyxkrwRGTlN95jo8UXsXQpvhWKahJCTnMvi5C7Ys 4Rbr/2hl3XxdTpZVMxoENKIV+SvWgroMBagpJfQ55Pwr/WiJO9TxKY9tGjnwcvC+1cYL TyWJHnTupUsh780CfqRjmjc/lhtrTI05QCWcbO/jqYzApWzpVMGgmgdFwDp3Y9trjUHt D1rZ/0RM7bq+QdWspl7h5eA91X/Gm/ywow8aHeFJumNDKtu4UIC7cBn7klGutQlkpYMH HYgw== X-Gm-Message-State: ALoCoQnlo+2eH/t+uu9rY6103UNCkOnUHFPrqgty5+IVvhvDjED14a7hI9RuJA+5urXd9imkrCKZ MIME-Version: 1.0 X-Received: by 10.14.251.68 with SMTP id a44mr22495991ees.64.1389106099090; Tue, 07 Jan 2014 06:48:19 -0800 (PST) Sender: sbower@alcyon.net Received: by 10.14.119.4 with HTTP; Tue, 7 Jan 2014 06:48:19 -0800 (PST) X-Originating-IP: [69.191.241.59] Date: Tue, 7 Jan 2014 09:48:19 -0500 X-Google-Sender-Auth: fnl8niim-gyoxIt0FrLnNDQD66o Message-ID: Subject: Index Sizes From: Steven Bower To: solr-user Content-Type: multipart/alternative; boundary=001a1132f1ba977b6604ef62771c X-Virus-Checked: Checked by ClamAV on apache.org --001a1132f1ba977b6604ef62771c Content-Type: text/plain; charset=ISO-8859-1 I was looking at the code for getIndexSize() on the ReplicationHandler to get at the size of the index on disk. From what I can tell, because this does directory.listAll() to get all the files in the directory, the size on disk includes not only what is searchable at the moment but potentially also files that are being created by background merges/etc.. I am wondering if there is an API that would give me the size of the "currently searchable" index files (doubt this exists, but maybe).. If not what is the most appropriate way to get a list of the segments/files that are currently in use by the active searcher such that I could then ask the directory implementation for the size of all those files? For a more complete picture of what I'm trying to accomplish, I am looking at building a quota/monitoring component that will trigger when index size on disk gets above a certain size. I don't want to trigger if index is doing a merge and ephemerally uses disk for that process. If anyone has any suggestions/recommendations here too I'd be interested.. Thanks, steve --001a1132f1ba977b6604ef62771c--