Home / Platform management / Clusters / Clusters / Plugin management / Deploying the Log Storage Component

Deploying the Log Storage Component

The log storage component is responsible for storing logs, events, and audit data collected by the log collection component from one or more clusters in the platform, and provides message distribution services based on Kafka.

Note:

Prerequisites

If you need to connect to an external Elasticsearch cluster or Kafka cluster, please prepare the corresponding cluster and its access method, nodes, and other information in advance.

Recommended Configuration

The following are the recommended software and hardware configurations for the log storage component. Before deploying the component, please refer to the hardware configuration to prepare the nodes for deployment. After the component is deployed successfully, you can refer to the software configuration to modify the configuration of each component.

Deploying Elasticsearch on the Platform

  1. In the left navigation bar, click Cluster Management > Cluster.

  2. Click the cluster name where the log storage component is to be deployed.

  3. On the Plugins tab, click the > Deploy button next to Log Storage Component.

  4. Configure the relevant parameters according to the following instructions.

    Parameter Description
    Dock with external Elasticsearch Keep it closed and deploy the log storage plugin in the platform.
    Component Deployment Settings You need to determine the scale of log deployment and fill in the relevant deployment parameters according to the recommended configuration .
    • Storage Type:
      • LocalVolume: Local storage, where log data will be stored in the local storage path of the selected node. The advantage of using this method is that the log component and local storage are directly bound, and storage performance can be improved without accessing storage through the network.
      • StorageClass: Use storage class to dynamically create storage resources to store log data. The advantage of using this method is that it has higher flexibility. When multiple storage classes are defined for the entire cluster, administrators can choose the corresponding storage class for the log component according to the usage scenario, reducing the impact of host abnormal status on storage. However, the performance of StorageClass may be affected by factors such as network bandwidth and latency, and it needs to rely on the redundant mechanism provided by the storage backend to achieve high availability of storage.

    Note: If you enable Kibana deployment, you can access the Elasticsearch data visualization interface Kibana panel through <platform access address>/clusters/<cluster name>/kibana, where the account and password for the login panel are obtained as follows:
    - Username: Execute the command kubectl get secret -n cpaas-system elasticsearch-basic-auth -o jsonpath='{.data.username}'|base64 -d on the control node where the Kibana cluster is deployed to obtain the username.
    - Password: Execute the command kubectl get secret -n cpaas-system elasticsearch-basic-auth -o jsonpath='{.data.password}' | base64 -d on the control node where the Kibana cluster is deployed to obtain the password.
    Retention Time The maximum time that various logs, events, and audit data can be retained on the cluster. Data that exceeds the retention time will be automatically cleaned up.
    Note: You can back up data that needs to be retained for a long time on your own. If you need help, please contact technical support personnel.
  5. Click Deploy.

Integrating with an External Elasticsearch Cluster

You can integrate with an external Elasticsearch cluster or Kafka cluster by writing YAML. You can integrate with an external Elasticsearch cluster only (deploy Kafka in the current cluster) or both an external Elasticsearch cluster and Kafka cluster according to your actual business needs.

Note: The following versions of external Elasticsearch are supported:

Resource Preparation

Before integration, you need to prepare the required credentials.

  1. In the left navigation bar, click Cluster Management > Resource Management, and switch to the cluster where you want to deploy the plugin.

  2. Click Create Resource Object, modify the parameters according to the code comments, and fill in the code box.

  1. Click Create.

Operation Steps

  1. In the left navigation bar, click Cluster Management > Clusters.

  2. Click the cluster name where you want to deploy the log storage component.

  3. Under the Plugins tab, click > Deploy for the Log Storage Component.

  4. Turn on the Integrate with External Elasticsearch switch, configure the YAML file, and refer to the example and parameter explanations below: