Updated on 2024-04-11 GMT+08:00

ALM-45425 ClickHouse Service Unavailable

Alarm Description

The alarm module checks the ClickHouse instance status every 60 seconds. This alarm is generated when the alarm module detects that all ClickHouse instances are abnormal.

This alarm is cleared when the system detects that any ClickHouse instance is restored and the alarm is cleared.

Alarm Attributes

Alarm ID

Alarm Severity

Auto Cleared

45425

Critical

Yes

Alarm Parameters

Parameter

Description

Source

Specifies the cluster or system for which the alarm was generated.

ServiceName

Specifies the service for which the alarm was generated.

RoleName

Specifies the role for which the alarm was generated.

HostName

Specifies the host for which the alarm was generated.

Impact on the System

The ClickHouse service is abnormal. You cannot use FusionInsight Manager to perform cluster operations on the ClickHouse service. The ClickHouse service function is unavailable.

Possible Causes

The configuration information in the metrika.xml file in the component configuration directory of the faulty ClickHouse instance node is inconsistent with that of the corresponding ClickHouse instance in the ZooKeeper.

Handling Procedure

Check whether the configuration in metrika.xml of the ClickHouse instance is correct.

  1. Log in to FusionInsight Manager, choose Cluster > Services > ClickHouse > Instance, and locate the abnormal ClickHouse instance based on the alarm information.

    • If yes, go to 2.
    • If no, go to 9.

  2. Log in to the host where the ClickHouse service is abnormal and ping the IP address of another normal ClickHouse instance node to check whether the network connection is normal.

    • If yes, go to 3.
    • If no, contact the network administrator to repair the network.

  1. Log in to the node where the client is installed as the client installation user and run the following commands:

    cd {Client installation path}

    source bigdata_env

    • For a cluster with Kerberos authentication enabled (security mode):

      kinit Component service user

      clickhouse client --host IP address of the ClickHouseServer instance that reports the alarm --port 9440 --secure

    • For a cluster with Kerberos authentication disabled (normal mode):

      clickhouse client --host IP address of the ClickHouseServer instance that reports the alarm --user Username --password --port 9000

    Run the following command to query the value of macros.id:

    select substitution from system.macros where macro='id';

  2. Log in to the host where the ZooKeeper client is located and log in to the ZooKeeper client.

    Switch to the client installation directory.

    Example: cd /opt/client

    Run the following command to configure environment variables:

    source bigdata_env

    Run the following command to authenticate the user (skip this step in common mode):

    kinit Component service user

    Run the following command to log in to the client tool:

    zkCli.sh -server service IP address of the node where the ZooKeeper role instance locates:client port

  3. Run the following command to check whether the ClickHouse cluster topology information can be obtained.

    get /clickhouse/config/value of macros.id in 3/metrika.xml

    • If yes, go to 6.
    • If no, go to 9.

  1. Log in to the host where the ClickHouse instance is abnormal and go to the configuration directory of the ClickHouse instance.

    cd ${BIGDATA_HOME}/FusionInsight_ClickHouse_Version/x_x_ClickHouseServer/etc

    cat metrika.xml

  2. Check whether the cluster topology information on ZooKeeper obtained in 5 is the same as that in the metrika.xml file in the component configuration directory in 6.

    • If yes, check whether the alarm is cleared. If the alarm persists, go to 9.
    • If no, go to 8.

  3. On FusionInsight Manager, choose Cluster > Services > ClickHouse, click More, and select Synchronize Configuration. Then, check whether the service status is normal and whether the alarm is cleared 5 minutes later.

    • If yes, no further action is required.
    • If no, go to 9.

Collect the fault information.

  1. On FusionInsight Manager, choose O&M. In the navigation pane on the left, choose Log > Download.
  2. Expand the Service drop-down list, and select ClickHouse for the target cluster.
  3. Choose the corresponding host form the host list.
  4. Click in the upper right corner, and set Start Date and End Date for log collection to 1 hour ahead of and after the alarm generation time, respectively. Then, click Download.
  5. Contact O&M personnel and provide the collected logs.

Alarm Clearance

This alarm is automatically cleared after the fault is rectified.

Related Information

None