Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 61065 invoked from network); 14 May 2009 17:43:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 May 2009 17:43:11 -0000 Received: (qmail 12545 invoked by uid 500); 14 May 2009 17:43:10 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 12456 invoked by uid 500); 14 May 2009 17:43:10 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 12373 invoked by uid 99); 14 May 2009 17:43:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 17:43:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 May 2009 17:43:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BF87F234C055 for ; Thu, 14 May 2009 10:42:45 -0700 (PDT) Message-ID: <414526155.1242322965783.JavaMail.jira@brutus> Date: Thu, 14 May 2009 10:42:45 -0700 (PDT) From: "Henri Biestro (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Commented: (SOLR-1154) allow specifying solr configuration file through system property to simplify deployment procedure in certain cases In-Reply-To: <818276007.1241812845664.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-1154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12709483#action_12709483 ] Henri Biestro commented on SOLR-1154: ------------------------------------- {quote} BTW the root of the problem is that there is no way to include snippets of configuration from external files . I guess that needs to be addressed separately {quote} Do you mean the "include" features in SOLR-646 ? > allow specifying solr configuration file through system property to simplify deployment procedure in certain cases > ------------------------------------------------------------------------------------------------------------------ > > Key: SOLR-1154 > URL: https://issues.apache.org/jira/browse/SOLR-1154 > Project: Solr > Issue Type: Improvement > Affects Versions: 1.4 > Reporter: Jianhan > Priority: Minor > Fix For: 1.4 > > Attachments: SOLR-1154.patch, SOLR-1154.patch > > Original Estimate: 5h > Remaining Estimate: 5h > > Hi, > I wanted to use this parameter to specify different solr configuration files for master and slave to simplify deployment procedure. Unfortunately, I can't dynamically replace the value of this parameter. Basically, what I want is > > SolrRequestFilter > org.apache.solr.servlet.SolrDispatchFilter > > solrconfig-filename > solrconfig-master.xml > > > for master instance, and > > SolrRequestFilter > org.apache.solr.servlet.SolrDispatchFilter > > solrconfig-filename > solrconfig-slave.xml > > > for slave instance. > Ideally, if I can use system property for its value like in solrconfig.xml. For example, > > SolrRequestFilter > org.apache.solr.servlet.SolrDispatchFilter > > solrconfig-filename > ${solr.config.filename: solrconfig.xml} > > > but I learned that in general we can't use system property in web.xml. > I realize that I can use replication of config file to achieve this, but I thought that creates unnecessary dependencies for slaves on master instance. > So here is my proposal: > make SolrDispatchFilter look up another init parameter, say 'solrconfig-filename-property', and its value is a system property name, and if this property is set, we get the file name, otherwise nothing happens (of course, if both exist, 'solrconfig-filename' takes precedence). This will give us maximum flexibility of specifying configuration files for different instances. > Your thoughts? > Thanks, > Jianhan -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.