GoTcpProxy
一个支持负载均衡,健康检查的 TcpProxy
Install / Use
/learn @zheng-ji/GoTcpProxyREADME
goTcpProxy
一个支持负载均衡,健康检查的 TcpProxy

Description
English
- A tcp proxy service
- Supprot multi backend severs
- Consistent Hash Load Balance
- Auto detect down server, and remove it.
- Monitor backend health status
中文
- TCP 代理服务
- 后端支持多个服务器
- 支持一致性哈希的负载均衡
- 自动检测失败的后端服务器,并移除
- 后端服务的健康检查接口
How To Compile
cd $GOPATH;
git clone http://github.com/zheng-ji/goTcpProxy;
make
How To Use
配置文件详解
bind: 0.0.0.0:9999 // 代理服务监听端口
wait_queue_len: 100 // 等待队列长度
max_conn: 10000 // 并发最大连接
timeout: 5 // 请求超时时间
failover: 3 // 后端服务允许失败次数
stats: 0.0.0.0:19999 // 健康检查接口
backend: // 后端服务列表
- 127.0.0.1:80
- 127.0.0.1:81
log:
level: "info"
path: "/Users/zj/proxy.log"
// 运行服务
./goTcpProxy -c=etc/conf.yaml

License
Copyright (c) 2015 released under a MIT style license.
Related Skills
node-connect
347.6kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.6kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.6kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
