Commit 664db082 authored by 吴文龙's avatar 吴文龙

取消轮询,先指定出现故障再分配

parent 67503bd2
...@@ -42,10 +42,12 @@ listen stats ...@@ -42,10 +42,12 @@ listen stats
listen mqtt-in listen mqtt-in
bind *:${MQTT_PORT} bind *:${MQTT_PORT}
mode tcp mode tcp
option clitcpka option clitcpka # For TCP keep-alive
option tcplog option tcplog
timeout client 3h timeout client 3h
timeout server 3h timeout server 3h
balance source # 固定服务
option redispatch # 服务出现故障时自动分配
option external-check option external-check
option log-health-checks option log-health-checks
external-check path "/usr/bin:/bin:/usr/local/bin" external-check path "/usr/bin:/bin:/usr/local/bin"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment