小编use*_*654的帖子

当我进入维护模式时,HAProxy“选项重新调度”不起作用

我遇到了 HAProxy 无法将连接重新分配到服务器的问题。当我将服务器置于维护模式时,没有任何活动连接被断开/转移到其他活动服务器,这会导致我的最终用户超时。

我的配置如下:

    #---------------------------------------------------------------------
# Global settings
#---------------------------------------------------------------------
global
    # to have these messages end up in /var/log/haproxy.log you will
    # need to:
    #
    # 1) configure syslog to accept network log events.  This is done
    #    by adding the '-r' option to the SYSLOGD_OPTIONS in
    #    /etc/sysconfig/syslog
    #
    # 2) configure local2 events to go to the /var/log/haproxy.log
    #   file. A line like the following can be added to
    #   /etc/sysconfig/syslog
    #
    #    local2.*                       /var/log/haproxy.log
    #
    log         127.0.0.1 …
Run Code Online (Sandbox Code Playgroud)

load-balancing haproxy

-1
推荐指数
1
解决办法
9892
查看次数

标签 统计

haproxy ×1

load-balancing ×1