Galera Load Balancer设置不起作用:执行服务glb getinfo时出错

时间:2018-12-27 22:36:52

标签: galera

通过引用:http://galeracluster.com/documentation-webpages/glb.html,我正在尝试为我的Galera集群设置集群。

我的glbd.cnf文件:

# Address to listen for client connections at. Mandatory parameter.
# To bind to all interfaces only port should be specified.
LISTEN_ADDR="3306"

# Address for controlling connection. Mandatory part is port.
# If not specified control socket will not be opened
CONTROL_ADDR="10.0.3.84:4444"

# Control FIFO name. It is opened always. glbd will refuse to start if
# this file already exists.
 CONTROL_FIFO="/var/run/glbd.fifo"

# Number of threads (connection pools) to use. It is always a good idea
# to have a few per CPU core.
THREADS="2"

# Maximum connections. System open files limit will be modified to accommodate
# at least that many client connections provided sufficient privileges.
# Normally you should set it if you plan to go above 500.
#MAX_CONN=

# Target servers for client connections, space separated.
# Target specification: IP[:PORT[:WEIGHT]] (WEIGHT and PORT optional)
# WEIGHT defaults to 1, PORT defaults to LISTEN_ADDR port.
DEFAULT_TARGETS="ip_node_1:3306:1 ip_node_2:3306:2"

# Other glbd options if any as they would appear on the command line.
#OTHER_OPTIONS=""

在执行getinfo时遇到以下错误:

service glb getinfo
Port for control communication is not configured.

glbd.cfg位于/ etc / defaults下

0 个答案:

没有答案