lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan McKinley (Updated) (JIRA)" <>
Subject [jira] [Updated] (SOLR-3330) Show changes in plugin statistics across multiple requests
Date Fri, 06 Apr 2012 07:10:30 GMT


Ryan McKinley updated SOLR-3330:

    Attachment: SOLR-3330-pluggins-diff.patch

This is a quick sketch showing how we can use the SolrInfoMBeanHandler to output a speciall
'diff' format that will load (without changes!) in the current UI.

Essentially the workflow is:
1. The UI takes a snapshot of a plugins response (needs to be XML string)
2. At some point in the future, you send a post to /admin/plugins?diff=true&stream.body=XML
3. The handler returns a modified response that only includes changed MBeans and makes the
differences clear.

For example, the stats response after one request will look like this:
<lst name="stats">
<long name="handlerStart">1333695069323</long>
<str name="requests">Was: 2, Now: 3, Delta: 1</str>
<long name="errors">0</long>
<long name="timeouts">0</long>
<str name="totalTime">Was: 3, Now: 4, Delta: 1</str>
<str name="avgTimePerRequest">Was: 1.5, Now: 1.3333334, Delta: -0.167</str>

> Show changes in plugin statistics across multiple requests
> ----------------------------------------------------------
>                 Key: SOLR-3330
>                 URL:
>             Project: Solr
>          Issue Type: New Feature
>          Components: web gui
>            Reporter: Ryan McKinley
>             Fix For: 4.0
>         Attachments: SOLR-3330-pluggins-diff.patch
> When debugging configuration and performance, I often:
>  1. Look at stats values
>  2. run some queries
>  3. See how the stats values changed
> This is fine, but is often a bit clunky and you have to really know what you are looking
for to see any changes.
> It would be great if the 'plugins' page had a button that would make this easier

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message