Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A97A934B for ; Fri, 9 Mar 2012 16:31:20 +0000 (UTC) Received: (qmail 6835 invoked by uid 500); 9 Mar 2012 16:31:19 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 6767 invoked by uid 500); 9 Mar 2012 16:31:19 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 6665 invoked by uid 99); 9 Mar 2012 16:31:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 16:31:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 16:31:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9919C16853 for ; Fri, 9 Mar 2012 16:30:57 +0000 (UTC) Date: Fri, 9 Mar 2012 16:30:57 +0000 (UTC) From: "Russell Black (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <1635537819.43916.1331310657628.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <195928260.41939.1331256837659.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-3222) Pull optimal cache warming queries from a warm solr instance 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-3222?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13226179#comment-13226179 ] Russell Black commented on SOLR-3222: ------------------------------------- It is possible to configure how many entries to return from each of the caches. The default is 100 from each of the three caches. To change this, you can pass any of the following parameters to the request handler: http://host/solr/core/autowarm?filterCache=50&fieldValueCache=150&queryResultCache=200 These parameters could also be specified as defaults in solrconfig.xml: {code:xml} 50 150 200 {code} > Pull optimal cache warming queries from a warm solr instance > ------------------------------------------------------------ > > Key: SOLR-3222 > URL: https://issues.apache.org/jira/browse/SOLR-3222 > Project: Solr > Issue Type: New Feature > Components: search > Affects Versions: 3.5, 4.0 > Reporter: Russell Black > Labels: patch, performance > Attachments: SOLR-3222-autowarm.patch > > > Ever wondered what queries to use to prime your cache? This patch allows you to query a warm running instance for a list of warming queries. The list is generated from the server's caches, meaning you get back an optimal set of queries. The set is optimal to the extent that the caches are optimized. The queries are returned in a format that can be consumed by the {code:xml}{code} section of {{solrconfig.xml}}. > One can use this feature to generate a static set of good warming queries to place in {{solrconfig.xml}} under {code:xml}{code} > It can even be used in a dynamic fashion like this: > {code:xml} > > > > {code} > which can work well in certain distributed load-balanced architectures, although in production it would be wise to add an {{}} element to the include in the event that the host is down. > I implemented this by introducing a new request handler: > {code:xml} > > {code} > The request handler pulls a configurable number of "top" keys from the {{filterCache}},{{fieldValueCache}}, and {{queryResultCache}}. For each key, it constructs a query that will cause that key to be placed in the associated cache. The list of constructed queries are then returned in the response. > Patch to follow. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org