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 883A6117A2 for ; Tue, 24 Jun 2014 15:18:17 +0000 (UTC) Received: (qmail 48207 invoked by uid 500); 24 Jun 2014 15:18:13 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 48139 invoked by uid 500); 24 Jun 2014 15:18:13 -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 48127 invoked by uid 99); 24 Jun 2014 15:18:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 15:18:12 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@gmail.com designates 209.85.128.176 as permitted sender) Received: from [209.85.128.176] (HELO mail-ve0-f176.google.com) (209.85.128.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2014 15:18:11 +0000 Received: by mail-ve0-f176.google.com with SMTP id db12so492232veb.7 for ; Tue, 24 Jun 2014 08:17:46 -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; bh=ZT17+l9fa6bEyxtrMVLFYtL7y+EzMryCQf11UAvO9Xw=; b=VAlsMI/XDRSlpMZFY+X46Jj7Bg4MsiRukeiXsed2N8wnWto6xTi7A96ZahSKapIYD5 89hLCUL44ecZvWLSgD0H+G+2AXSlhE3Wqwjp5qZBg7dHRzNhRvKygE9W8+BgUN0NNCfs Syn/48P0j7e1usX+cDZ1tB+RF7tNleYvhUqAC4x/2+N+aj1o+AGkn3HHPvqxyXBbDLoe v3EBnpJ4bkIOf6dHEZ0z6hSEY2xSqwQ++8Ya4YiK0yznHMbTucQq2ajxo/HlrsD8PP6T PA5fD4+9xPI9xBxBrIFjKh0H5vdO682Jwk2dYyqS5LjqZAVL++bVSgybUSHaMfBBET3r 5iiA== MIME-Version: 1.0 X-Received: by 10.221.63.195 with SMTP id xf3mr1329440vcb.36.1403623066510; Tue, 24 Jun 2014 08:17:46 -0700 (PDT) Received: by 10.52.120.106 with HTTP; Tue, 24 Jun 2014 08:17:46 -0700 (PDT) In-Reply-To: <4C631781-1F92-4A9E-9E10-1048675386E5@coupang.com> References: <4C631781-1F92-4A9E-9E10-1048675386E5@coupang.com> Date: Tue, 24 Jun 2014 08:17:46 -0700 Message-ID: Subject: Re: RAMDirectoryFactory setting on replication slave From: Erick Erickson To: solr-user@lucene.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org Please don't. At least not until you prove that this is where your bottleneck is. You haven't described what you're trying to fix by making such a change. Solr/Lucene already works a _lot_ to keep the relevant bits of the index in memory. Additionally, the defaults use MMapDirectory, which makes use of the OS cache to hold yet more of the index in memory, see: http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html This feels like an "XY" problem, what is the reason you're interested? Best, Erick On Tue, Jun 24, 2014 at 1:25 AM, Lee Chunki wrote: > Hi Guys, > > As I know RAMDirectoryFactory setting does not work with replication. > ( https://cwiki.apache.org/confluence/display/solr/DataDir+and+DirectoryFactory+in+SolrConfig ) > > By the way, can I use it for replication slave nodes ( not master ) > or for SolrCloud ? > > Thanks, > Chunki. >