我正在使用HAProxy 1.6.4负载平衡我的stream量到不同的服务器。 就像现在我的haproxy在Docker容器中运行一样。 在我的configuration中,我有不同的前端和后端。 正如我在testing我的前端后端工作,并将stream量转发到我想要的请求。
但问题是我的一些stream量正在获取CONN_RESET错误。 并通过查看haproxy日志,我发现我的fronends和后端不断重新启动。 日志看起来像这样。
local0.warn: Apr 15 12:30:36 haproxy[32715]: Stopping backend default-backend in 0 ms. local0.warn: Apr 15 12:30:36 haproxy[32715]: Stopping backend default-backend in 0 ms. local0.warn: Apr 15 12:30:36 haproxy[32715]: Stopping frontend http-frontend in 0 ms. local0.warn: Apr 15 12:30:36 haproxy[32715]: Stopping frontend http-frontend in 0 ms. local0.warn: Apr 15 12:30:36 haproxy[32715]: Stopping backend http-service-vbv7kk in 0 ms. local0.warn: Apr 15 12:30:36 haproxy[32715]: Stopping backend http-service-vbv7kk in 0 ms. local0.warn: Apr 15 12:30:36 haproxy[32715]: Stopping backend http-service-tsah7b in 0 ms. local0.notice: Apr 15 12:30:37 haproxy[32720]: Proxy default-backend started. local0.notice: Apr 15 12:30:37 haproxy[32720]: Proxy default-backend started. local0.notice: Apr 15 12:30:37 haproxy[32720]: Proxy http-frontend started. local0.notice: Apr 15 12:30:37 haproxy[32720]: Proxy http-frontend started. local0.notice: Apr 15 12:30:37 haproxy[32720]: Proxy http-service-vbv7kk started. local0.notice: Apr 15 12:30:37 haproxy[32720]: Proxy http-service-vbv7kk started. local0.notice: Apr 15 12:30:37 haproxy[32720]: Proxy http-service-orry6w started. local0.notice: Apr 15 12:30:37 haproxy[32720]: Proxy tcp-frontend-key-3443 started. local0.notice: Apr 15 12:30:37 haproxy[32720]: Proxy tcp-service-bzczrg started. local0.notice: Apr 15 12:30:37 haproxy[32720]: Proxy tcp-service-hacbno started. local0.notice: Apr 15 12:30:37 haproxy[32720]: Proxy tcp-service-hacbno started. local0.warn: Apr 15 12:30:37 haproxy[32719]: Stopping backend default-backend in 0 ms. local0.warn: Apr 15 12:30:37 haproxy[32719]: Stopping backend default-backend in 0 ms. local0.warn: Apr 15 12:30:37 haproxy[32719]: Stopping frontend http-frontend in 0 ms. local0.warn: Apr 15 12:30:37 haproxy[32719]: Stopping frontend http-frontend in 0 ms. local0.warn: Apr 15 12:30:37 haproxy[32719]: Stopping backend http-service-tsah7b in 0 ms. local0.warn: Apr 15 12:30:37 haproxy[32719]: Stopping backend http-service-tsah7b in 0 ms
最简单的configuration我看起来像这样 。
现在我的问题是我错过了什么? 为什么我的连接重新启动,为什么重新启动?