fe节点 Join 显示为 false

fe节点 Join 显示为 false

mysql> show frontends\G
*************************** 1. row ***************************
             Name: 10.2.29.65_9010_1713261138287
               IP: 10.2.29.65
      EditLogPort: 9010
         HttpPort: 8030
        QueryPort: 9030
          RpcPort: 9020
             Role: FOLLOWER
        ClusterId: 1725340457
             Join: false
            Alive: true
ReplayedJournalId: 207
    LastHeartbeat: 2024-04-16 10:30:50
         IsHelper: true
           ErrMsg: 
        StartTime: 2024-04-16 09:52:07
          Version: 2.5.17-3f669b66d9
*************************** 2. row ***************************
             Name: 10.2.29.64_9010_1713261138299
               IP: 10.2.29.64
      EditLogPort: 9010
         HttpPort: 8030
        QueryPort: 9030
          RpcPort: 9020
             Role: FOLLOWER
        ClusterId: 1725340457
             Join: true
            Alive: true
ReplayedJournalId: 214
    LastHeartbeat: 2024-04-16 10:30:50
         IsHelper: true
           ErrMsg: 
        StartTime: 2024-04-16 09:52:14
          Version: 2.5.17-3f669b66d9
*************************** 3. row ***************************
             Name: 10.2.29.66_9010_1713260283510
               IP: 10.2.29.66
      EditLogPort: 9010
         HttpPort: 8030
        QueryPort: 9030
          RpcPort: 9020
             Role: LEADER
        ClusterId: 1725340457
             Join: false
            Alive: true
ReplayedJournalId: 974
    LastHeartbeat: 2024-04-16 10:30:50
         IsHelper: true
           ErrMsg: 
        StartTime: 2024-04-16 09:38:13
          Version: 2.5.17-3f669b66d9
3 rows in set (0.02 sec)




ALTER SYSTEM DROP FOLLOWER "10.2.29.65:9010";
ALTER SYSTEM DROP FOLLOWER "10.2.29.64:9010";


# 将 <helper_fe_ip> 替换为 Leader FE 节点的 IP 地址(priority_networks),
# 并将 <helper_edit_log_port>(默认:9010)替换为 Leader FE 节点的 edit_log_port。
start_fe.sh  --helper  10.2.29.66:9010 --daemon




docker compose 文件如下:


cat > docker-compose.yaml << EOF
version: '3.7'
services:
  fe:
    image: harbor.uddun.com/dsj/starrocks/fe-ubuntu:2.5.17 
    container_name: fe
    restart: always
    network_mode: host
    command:
      - /bin/bash
      - -c
      - |
        /opt/starrocks/be/bin/start_fe.sh --helper 10.2.29.66:9010 --daemon
        /opt/starrocks/be/bin/start_be.sh
    volumes:
      - /data/sr/fe/conf/fe.conf:/opt/starrocks/fe/conf/fe.conf
      - /data/sr/fe/meta:/opt/starrocks/fe/meta
      - /data/sr/fe/log:/opt/starrocks/fe/log
      - /etc/localtime:/etc/localtime
    healthcheck:
      test: ["CMD-SHELL","curl -s -w '%{http_code}' -o /dev/null http://127.0.0.1:8030/api/health || bash -c 'kill -s 15 -1 && (sleep 10; kill -s 9 -1)'"] 
      interval: 30s
      timeout: 20s
      retries: 3
      start_period: 3m
    logging:
      driver: "json-file"
      options:
        tag: "{{.Name}}"
        max-size: "10m"
EOF

 

posted @ 2025-06-18 00:42  屠魔的少年  阅读(14)  评论(0)    收藏  举报