Kafka Zookeeper Test

Zookeeper is used for managing and coordinating brokers (set of servers) in Apache Kafka Message System. Zookeeper keeps track of Kafka topics, partitions etc. Zookeeper allows multiple clients to perform simultaneous reads and writes and acts as a shared configuration service within the system.

This test monitors the status of the broker’s connection to Zookeeper. Using this test, the administrators can analyze the connectivity between the Zookeeper and the Broker and isolate bottlenecks, if any.

Target of the test : Apache Kafka Message System

Agent deploying the test : An internal/remote agent

Outputs of the test : One set of results for the target Apache Kafka Message System.

Configurable parameters for the test
Parameter Description

Test period

How often should the test be executed.

Host

The IP address of the target server that is being monitored.

Port

The port number through which the Apache Kafka Message System communicates. The default port is 9092.

JMX Remote Port

This parameter appears only if the Measurement Mode is set to jmx. Here, specify the port at which the jmx listens for requests from remote hosts.

JMX User, JMX Password, and Confirm Password

These parameters appear only if the Measurement Mode is set to jmx. If JMX requires authentication only (but no security), then ensure that the JMX User and JMX Password parameters are configured with the credentials of a user with read-write access to JMX.

Measurements made by the test
Measurement Description Measurement Unit Interpretation

Session state

Indicates the status of the broker’s connection to Zookeeper.

 

The values reported by this measure and its numeric equivalents are mentioned in the table below:

Measure Value

Numeric Value
Connected 1
Disconnected 0

Note:

By default, this measure reports the Measure Values listed in the table above to indicate the status of the broker’s connection to Zookeeper.

Disconnects

Indicates the number of zookeeper clients currently disconnected from the ensemble.

Number

A very low value is required for these measures.

 

Expires

Indicates the number of zookeeper clients currently expired from the ensemble.

Number

Read only connects

Indicates the number of Read only connects.

Number

 

Sync connects

Indicates the number of zookeeper clients connected to the ensemble and ready to execute operations.

Number

A very high value is required for this measure.

Authentication failure

Indicates the number of attempts to connect the ensemble but failed due to incorrect credentials.

Number

Ideally, the value of this measure should be zero.