[ 
https://issues.apache.org/jira/browse/SOLR-2698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13079425#comment-13079425
 ] 

Mark Miller commented on SOLR-2698:
-----------------------------------

bq. I'm very new to the solr codebase and thus just looked how the same 
function is already implemented.

Yup, made perfect sense to see how it was done and copy it - just making an 
overall improvement suggestion.

bq. ReplicationHandler also converts size into a "readable" string. 

There is a commons method for this type of thing as well:

org.apache.commons.io.FileUtils.byteCountToDisplaySize(size)

> Enhance CoreAdmin STATUS command to return index size
> -----------------------------------------------------
>
>                 Key: SOLR-2698
>                 URL: https://issues.apache.org/jira/browse/SOLR-2698
>             Project: Solr
>          Issue Type: Improvement
>          Components: multicore
>    Affects Versions: 4.0
>            Reporter: Yury Kats
>         Attachments: SOLR-2698.patch
>
>
> CoreAdmin STATUS command returns all kinds of index info for all cores on the 
> server, except for the index size.
> However, indexSize can be retrieved for an individual core via a 
> /replication&command=details request.
> I have N Solrs servers, running M cores each. My application is monitoring 
> the status of all cores, including their index size.
> As it stands today, I need to issue N status requests plus N*M replication 
> requests to get all the information I need.
> If STATUS command returned indexSize, number of requests would be just N.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to