【详述】
在单台机器上,混合部署1FE与1BE。
- FE状态正常,通过MySQL客户端从9030端口登录后,执行
SHOW FRONTENDS\G
查询,结果如下:
*************************** 1. row ***************************
Name: 10.60.232.20_9010_1669260589173
IP: 10.60.232.20
EditLogPort: 9010
HttpPort: 8030
QueryPort: 9030
RpcPort: 9020
Role: FOLLOWER
IsMaster: true
ClusterId: 2034440467
Join: true
Alive: true
ReplayedJournalId: 20981
LastHeartbeat: 2022-11-24 14:37:10
IsHelper: true
ErrMsg:
StartTime: 2022-11-23 23:48:15
Version: UNKNOWN-
1 row in set (0.01 sec)
- 执行
SHOW BACKENDS\G
时,结果如下:
*************************** 1. row ***************************
BackendId: 17335
Cluster: default_cluster
IP: 10.60.232.20
HeartbeatPort: 9050
BePort: -1
HttpPort: -1
BrpcPort: -1
LastStartTime: NULL
LastHeartbeat: NULL
Alive: false
SystemDecommissioned: false
ClusterDecommissioned: false
TabletNum: 0
DataUsedCapacity: .000
AvailCapacity: 1.000 B
TotalCapacity: .000
UsedPct: 0.00 %
MaxDiskUsedPct: 0.00 %
ErrMsg: java.net.ConnectException: Connection refused (Connection refused)
Version: UNKNOWN-
Status: {"lastSuccessReportTabletsTime":"N/A"}
DataTotalCapacity: .000
DataUsedPct: 0.00 %
CpuCores: 0
1 row in set (0.00 sec)
- 重新在FE执行BE节点注册后,无法解决该问题
ALTER SYSTEM DROP BACKEND "10.60.232.20:9050";
ALTER SYSTEM ADD BACKEND "10.60.232.20:9050";
- BE节点启动时stdout如下
ERROR 1064 (HY000) at line 1: Same backend already exists
- be.conf如下
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# INFO, WARNING, ERROR, FATAL
sys_log_level = INFO
# ports for admin, web, heartbeat service
be_port = 9060
webserver_port = 8040
heartbeat_service_port = 9050
brpc_port = 8060
# Choose one if there are more than one ip except loopback address.
# Note that there should at most one ip match this list.
# If no ip match this rule, will choose one randomly.
# use CIDR format, e.g. 10.10.10.0/24
# Default value is empty.
priority_networks = 10.60.232.0/24
# data root path, separate by ';'
# you can specify the storage medium of each root path, HDD or SSD, seperate by ','
# eg:
# storage_root_path = /data1,medium:HDD;/data2,medium:SSD;/data3
# /data1, HDD;
# /data2, SSD;
# /data3, HDD(default);
#
# Default value is ${STARROCKS_HOME}/storage, you should create it by hand.
# storage_root_path = ${STARROCKS_HOME}/storage
# Advanced configurations
# sys_log_dir = ${STARROCKS_HOME}/log
# sys_log_roll_mode = SIZE-MB-300
# sys_log_roll_num = 10
# sys_log_verbose_modules = *
# log_buffer_level = -1
default_rowset_type = beta
# memory
# https://github.com/StarRocks/starrocks/pull/10252
tc_use_memory_min = 0
tc_free_memory_rate = 0
mem_limit = 24%
load_process_max_memory_limit_percent = 60
【业务影响】BE服务不可用
【StarRocks版本】2.2.5
【集群规模】1fe + 1be(混部)