Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 1.11 KB

Readme.md

File metadata and controls

57 lines (46 loc) · 1.11 KB

English | 中文





Features

  • Proxy
  • Logging
  • Ip acl for node (support inheritance)
  • Ratelimit

Architecture Overview

Benchmark

BenchmarkProxyGet-48               10000            144907 ns/op
BenchmarkZKGet-48                  10000            102587 ns/op
BenchmarkProxyConnGet-48            1000           2211095 ns/op
BenchmarkZKConnGet-48               1000           1825001 ns/op
BenchmarkProxyCreateSet-48          2000            799873 ns/op
BenchmarkZKCreateSet-48             2000            658289 ns/op

Install

  • Change zoo.cfg
maxClientCnxns=1000000
  • Build proxy
cd zk-proxy
sh build.sh
  • Monitor proxy
echo isok|nc 127.1 2182
echo info|nc 127.1 2182
echo sess|nc 127.1 2182
curl http://127.1:8000/debug/vars

Thanks