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

Upayavira commented on SOLR-7555:
---------------------------------

Extending the Directory class seems like a pretty major step - one that should 
get far wider coverage in its own ticket, I'd say.

However, a simpler way to do it would be to have a DiskSpaceAwareDirectory 
interface that provides the necessary methods. Then, the API can only offer 
disk usage values from Directory objects that implement that interface.

Dunno if that pattern is used at all in Lucene/Solr though.

> Display total space and available space in Admin
> ------------------------------------------------
>
>                 Key: SOLR-7555
>                 URL: https://issues.apache.org/jira/browse/SOLR-7555
>             Project: Solr
>          Issue Type: Improvement
>          Components: web gui
>    Affects Versions: 5.1
>            Reporter: Eric Pugh
>            Assignee: Erik Hatcher
>            Priority: Minor
>             Fix For: 5.2
>
>         Attachments: SOLR-7555-display_disk_space.patch, 
> SOLR-7555-display_disk_space_v2.patch, SOLR-7555.patch
>
>
> Frequently I have access to the Solr Admin console, but not the underlying 
> server, and I'm curious how much space remains available.   This little patch 
> exposes total Volume size as well as the usable space remaining:
> !https://monosnap.com/file/VqlReekCFwpK6utI3lP18fbPqrGI4b.png!
> I'm not sure if this is the best place to put this, as every shard will share 
> the same data, so maybe it should be on the top level Dashboard?  Also not 
> sure what to call the fields! 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to