0
我檢查Redis的經由主從Redis的Kubernetes豆莢和定點的配置高可用性解決方案在它的上面。對於外部客戶端連接的故障轉移,我安裝了haproxy pod。我遇到了一些問題,同時開始測試的配置:redis的定點高可用性的haproxy
- Redis的是關閉從HAProxy的轉發連接 - 客戶報告錯誤
Error: Server closed the connection.
BTW:如果Redis的配置了空密碼,連接通過OK。
我欣賞任何想法和建議。我HA代理CFG文件中有如下條目:
global
daemon
maxconn 500
defaults
mode http
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend rotatingproxies
bind *:3000
default_backend rotateproxy
option http_proxy
option http-use-proxy-header
backend rotateproxy
option http_proxy
server proxyserver user:[email protected]:9999
server proxyserver user:[email protected]:9999
balance roundrobin
一些更新其實即時通訊使用TCP模式在我的配置 –
默認Redis的 模式TCP 超時連接4S 超時服務器30個年代 超時客戶端30多歲 前端ft_redis 綁定10.0.0.1:6379名Redis的 default_backend bk_redis 後端bk_redis 選擇TCP檢查 TCP檢查發送PINGrn TCP檢查期望字符串+ PONG TCP檢查發送信息replicationrn TCP檢查期望〜應變g角色:master tcp-check send QUITrn tcp-check expect string + OK server R1 10.0.0.11:6379 check inter 1s server R2 10.0.0.12:6379 check inter 1s –