lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-1750) SystemStatsRequestHandler - replacement for stats.jsp
Date Fri, 05 Feb 2010 00:38:28 GMT

     [ https://issues.apache.org/jira/browse/SOLR-1750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Hoss Man updated SOLR-1750:
---------------------------

    Attachment: SystemStatsRequestHandler.java

Some updates to Erik's previous version...

# adds everything from registry.jsp
#* lucene/solr version info
#* source/docs info for each object
# forcibly disable HTTP Caching
# adds params to control which objects are listed
#* (multivalued) "cat" param restricts category names (default is all)
#* (multivalued) "key" param restricts object keys (default is all) 
# adds (boolean) "stats" param to control if stats are outputed for each object
#* per-field style override can be used to override per object key
# refactored the old nested looping that stast.jsp did over every object and every category
into a single pass
# switch all HashMaps to NamedLists or SimpleOrderedMaps to preserve predictable ordering

Examples...
* {{?cat=CACHE}}
** return info about caches, but nothing else (stats disabled by default)
* {{?stats=true&cat=CACHE}}
** return info and stats about caches, but nothing else
* {{?stats=true&f.fieldCache.stats=false}}
** Info about everything, stats for everything except fieldCache
* {{?key=fieldCache&stats=true}}
** Return info and stats for fieldCache, but nothing else

I left the class name alone, but i vote for "SystemInfoRequestHandler" with a default registration
of "/admin/info"



> SystemStatsRequestHandler - replacement for stats.jsp
> -----------------------------------------------------
>
>                 Key: SOLR-1750
>                 URL: https://issues.apache.org/jira/browse/SOLR-1750
>             Project: Solr
>          Issue Type: Improvement
>          Components: web gui
>            Reporter: Erik Hatcher
>            Assignee: Erik Hatcher
>            Priority: Trivial
>             Fix For: 1.5
>
>         Attachments: SystemStatsRequestHandler.java, SystemStatsRequestHandler.java
>
>
> stats.jsp is cool and all, but suffers from escaping issues, and also is not accessible
from SolrJ or other standard Solr APIs.
> Here's a request handler that emits everything stats.jsp does.
> For now, it needs to be registered in solrconfig.xml like this:
> {code}
>     <requestHandler name="/admin/stats" class="solr.SystemStatsRequestHandler" />
> {code}
> But will register this in AdminHandlers automatically before committing.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message