Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.
/ zk-sniffer Public archive
forked from pyinx/zk-sniffer

sniffer and parse zookeeper packet

Notifications You must be signed in to change notification settings

nvartolomei/zk-sniffer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Why to do

  • 需要统计zk的事物日志
  • zk自带的事物日志信息太少,不够实时
  • 需要统计每个请求的耗时和返回状态码
  • 需要统计每个事物的请求数和QPS
  • 需要统计每个node的QPS和事物操作

What is this

  • zookeepr抓包工具,并把包解析成事物日志
  • 满足上面的所有需求
  • 便于问题定位和资源监控

How to use

###### read data from device
# ./zk-sniffer -port=4181 -device=eth0
###### read data from pcap file
# ./zk-sniffer -port=4181 -file=1.pcap
###### output data struct
Timestamp ClientAddr ServerAddr OpType Path Zxid ReqLength RespLength Latency(ms)

Screenshot

Reference

About

sniffer and parse zookeeper packet

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%