Poolproxy
Pool Proxy - redis连接池代理工具
Install / Use
/learn @bjdgyc/PoolproxyREADME
poolproxy
Introduction
Pool Proxy 连接池代理是一个使用golang编写的简单连接池代理工具
该工具提供了连接池功能,并可设置最大连接数、连接最大空闲时间、定时检测并断开空闲连接
该工具提供了一个透明的代理接口,可以为下游程序提供带连接池的代理功能
TODO
目前仅实现了redis的代理功能
本地使用时,建议监听Unix domain socket
可以有效减少TCP握手消耗,提高系统性能
Scene
该工具适用于,无法通过自身实现连接池的语言
如PHP等
Installation
go get github.com/bjdgyc/poolproxy
Toml config
[options.redis]
#日志文件
logfile = ""
# 代理监听设置
# 可以设置为Unix socket
# 如: /var/run/poolproxy.socket
# 也可以设置为TCP端口
addr = ":8080"
read_timeout = 0
write_timeout = 0
pool_timeout = 0
#远程连接设置
raddr = "192.168.56.102:6379"
ruser = ""
rpass = ""
rpool_size = 0
# 获取空闲连接的排队超时时间(秒)
ridle_timeout = 0
# 定期检测空闲连接的时间(秒)
ridle_check_frequency = 120
Start
go build && ./poolproxy -c ./config.toml
Related Skills
node-connect
352.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.3kCreate 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
352.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
