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

Jan Høydahl commented on SOLR-7767:
-----------------------------------

Here is screenshot from a new "Zookeeper" tab in the cloud section:

!zk-status-tab.png|width=700!

It takes zkHost string and talks directly to each configured zookeeper using 
the low-level socket API 
"[four-letter-word|https://zookeeper.apache.org/doc/r3.4.11/zookeeperAdmin.html#sc_zkCommands]";
 and returns monitoring status (MNTR) as well as configuration details (CONF) 
for each ZK. It will also print warnings if there is an odd number of nodes, if 
there is a mix of standalone and ensemble nodes and other warning states.

The API is added to {{ZookeeperInfoHandler}}, with parameter {{mntr=true}}. 
Example:

[http://localhost:8983/solr/admin/zookeeper?mntr=true]
{code}
{
  "responseHeader": {
    "QTime": 24,
    "status": 0
  },
  "zkStatus": {
    "details": [{
      "clientPort": "9983",
      "dataDir": 
"/Users/janhoy/git/lucene-solr/solr/server/solr/zoo_data/version-2",
      "dataLogDir": 
"/Users/janhoy/git/lucene-solr/solr/server/solr/zoo_data/version-2",
      "host": "localhost:9983",
      "maxClientCnxns": "60",
      "maxSessionTimeout": "40000",
      "minSessionTimeout": "4000",
      "ok": true,
      "serverId": "0",
      "tickTime": "2000",
      "zk_approximate_data_size": "210920",
      "zk_avg_latency": "0",
      "zk_ephemerals_count": "3",
      "zk_max_file_descriptor_count": "10240",
      "zk_max_latency": "4",
      "zk_min_latency": "0",
      "zk_num_alive_connections": "3",
      "zk_open_file_descriptor_count": "158",
      "zk_outstanding_requests": "0",
      "zk_packets_received": "165",
      "zk_packets_sent": "167",
      "zk_server_state": "standalone",
      "zk_version": "3.4.11-37e277162d567b55a07d1755f0b31c32e93c01a0, built on 
11/01/2017 18:06 GMT",
      "zk_watch_count": "18",
      "zk_znode_count": "79"
    }],
    "ensembleSize": 1,
    "mode": "standalone",
    "status": "green"
  }
}
{code}

Here's an example of an error (one zk cannot be reached):
 !zk-status-error.png|width=700! 

> Zookeeper Ensemble Admin UI
> ---------------------------
>
>                 Key: SOLR-7767
>                 URL: https://issues.apache.org/jira/browse/SOLR-7767
>             Project: Solr
>          Issue Type: New Feature
>          Components: Admin UI, SolrCloud
>            Reporter: Aniket Khare
>            Assignee: Jan Høydahl
>            Priority: Major
>         Attachments: image-2018-05-08-02-26-29-989.png, zk-status-error.png, 
> zk-status-tab.png
>
>
> For SolrCloud mode can we have the functionality to display the live nodes 
> from the zookeeper ensemble. So that user can easily get to know if any of 
> zookeeper instance is down or having any other issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to