Giter VIP home page Giter VIP logo

zk-sniffer's Introduction

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

zk-sniffer's People

Contributors

pyinx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.