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

Timothy Potter commented on SOLR-6233:
--------------------------------------

{quote}
would it make more sense for these cross-platform command-line tools to exec 
java to do things like fetch these details & process them? then you can 
leverage the cross-platform nature of java to do more heavy lifting and 
minimize the worry about quirks in the implementation details of the more 
complex script language features.
{quote}
Great suggestion :-) I've been thinking about contributing the SolrCloudTools 
code from the scale-scale-toolkit project (see: 
https://github.com/LucidWorks/solr-scale-tk/blob/master/src/main/java/com/lucidworks/SolrCloudTools.java)
 to serve just that purpose. Of course we'd need to rename it to SolrTools but 
having the full power of Java at our disposal from the start script seems like 
a better long-term solution vs. one-offs like what I proposed in this ticket. 
The Tools code serves two purposes: 1) a set of built-in tools such as 
healthcheck and 2) a framework for building out custom tools that are launched 
/ managed in a consistent fashion.

> Need an option on the admin system info handler to get a smaller set of 
> essential information about a server.
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-6233
>                 URL: https://issues.apache.org/jira/browse/SOLR-6233
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Timothy Potter
>            Priority: Minor
>
> As part of the start script development work SOLR-3617, example restructuring 
> SOLR-3619, and the overall curb appeal work SOLR-4430, I'd like to have an 
> option on the SystemInfoHandler that gives a shorter, well formatted JSON 
> synopsis of essential information. I know "essential" is vague ;-) but right 
> now using curl to http://host:port/solr/admin/info/system?wt=json gives too 
> much information when I just want a synopsis of a Solr server. 
> Maybe something like &overview=true?
> Result would be:
> {noformat}
> {
>   "address": "http://localhost:8983/solr";,
>   "mode": "solrcloud",
>   "zookeeper": "localhost:2181/foo",
>   "uptime": "2 days, 3 hours, 4 minutes, 5 seconds",
>   "version": "5.0-SNAPSHOT",
>   "status": "healthy",
>   "memory": "4.2g of 6g"
> }
> {noformat}
> Now of course, one may argue all this information can be easily parsed from 
> the JSON but consider cross-platform command-line tools that don't have 
> immediate access to a JSON parser, such as the bin/solr start script.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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

Reply via email to