[ 
https://issues.apache.org/jira/browse/ZOOKEEPER-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arshad Mohammad updated ZOOKEEPER-2130:
---------------------------------------
    Description: 
It is good to have a command which can give complete summary of zookeeper 
ensemble. Ensemble summary should give information about who is leader, which 
are followers, observers.

Consider a zookeeper cluster with following configurations
server.1=localhost:33230:33235:participant;localhost:33222
server.2=localhost:33231:33236:participant;localhost:33223
server.3=localhost:33232:33237:participant;localhost:33224
server.4=localhost:33233:33238:participant;localhost:33225
server.5=localhost:33234:33239:participant;localhost:33226

When four servers are running and we execute esum(Ensemble Summary Command) 
command we should get status of all the servers and their roles

Example:
{quote}
server.1=localhost:33230:33235:participant;localhost:33222 
{color:green}FOLLOWING{color}
Client Connections:1

server.2=localhost:33231:33236:participant;localhost:33223 
{color:green}FOLLOWING{color}
Client Connections:0

server.3=localhost:33232:33237:participant;localhost:33224 {color:red}NOT 
RUNNING{color}

server.4=localhost:33233:33238:participant;localhost:33225 
{color:green}FOLLOWING{color}
Client Connections:0

server.5=localhost:33234:33239:participant;localhost:33226 
{color:blue}LEADING{color}
Client Connections:0
{quote}



  was:
It is good to have a command which can give complete summary of zookeeper 
ensemble. Ensemble summary should give information about who is leader, which 
are followers, observers and clients.
Example:
{code}

{code}

After getting this summary, existing commands can be used to get detailed info




> Command to get ensemble summary
> -------------------------------
>
>                 Key: ZOOKEEPER-2130
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2130
>             Project: ZooKeeper
>          Issue Type: New Feature
>            Reporter: Arshad Mohammad
>            Priority: Minor
>             Fix For: 3.6.0
>
>
> It is good to have a command which can give complete summary of zookeeper 
> ensemble. Ensemble summary should give information about who is leader, which 
> are followers, observers.
> Consider a zookeeper cluster with following configurations
> server.1=localhost:33230:33235:participant;localhost:33222
> server.2=localhost:33231:33236:participant;localhost:33223
> server.3=localhost:33232:33237:participant;localhost:33224
> server.4=localhost:33233:33238:participant;localhost:33225
> server.5=localhost:33234:33239:participant;localhost:33226
> When four servers are running and we execute esum(Ensemble Summary Command) 
> command we should get status of all the servers and their roles
> Example:
> {quote}
> server.1=localhost:33230:33235:participant;localhost:33222 
> {color:green}FOLLOWING{color}
> Client Connections:1
> server.2=localhost:33231:33236:participant;localhost:33223 
> {color:green}FOLLOWING{color}
> Client Connections:0
> server.3=localhost:33232:33237:participant;localhost:33224 {color:red}NOT 
> RUNNING{color}
> server.4=localhost:33233:33238:participant;localhost:33225 
> {color:green}FOLLOWING{color}
> Client Connections:0
> server.5=localhost:33234:33239:participant;localhost:33226 
> {color:blue}LEADING{color}
> Client Connections:0
> {quote}



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

Reply via email to