English | 中文
- proxy代理
- 日志记录
- 一级节点的ip白名单(支持继承)
- 限速
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
- 修改zookeeper的maxClientCnxns配置
maxClientCnxns=1000000
- 编译proxy
cd zk-proxy
sh build.sh
- 监控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