LogService is OceanBase’s distributed log service, used to receive, store, and manage log data for AI clusters. Through OCP, you can conveniently manage LogService clusters, including cluster creation, monitoring, parameter configuration, and more.
This topic describes how to create a new LogService cluster in OCP.
Prerequisites
You have deployed OCP V4.5.0 or later. For more information, see Deploy OCP.
You have added the servers used to deploy the LogService cluster to the OCP resource pool. For more information, see Add a server.
The user currently logged in to OCP has the
CREATE CLUSTERprivilege. For more information, see Role overview and Default OCP roles.You have obtained the RPM package of LogService. For more information, see Prepare installation packages.
Object storage has been configured. For details, see Create an object storage configuration. A bucket has already been created and is accessible.
Memory planning: If the LogService cluster and the OBServer cluster are deployed on the same machine (mixed deployment scenario), you must plan memory usage in advance to avoid insufficient memory. It is recommended to set the
memory_limitparameter when creating the LogService cluster to limit memory usage. For details, refer to the recommended LogService resource settings in Configure Servers.Note
If the OBServer cluster and the LogService cluster are mixed deployed and their memory usage is not limited separately, memory contention may occur, potentially causing OOM (out-of-memory) issues and affecting cluster stability. Therefore, during planning, allocate memory properly and set appropriate values for the
memory_limitparameter of both clusters based on the available host memory resources.
Procedure
Log in to OCP.
In the left navigation bar, click Logservice under Component.
On the LogService page, click Create LogService Cluster.
On the Create LogService Cluster page, configure the basic information for the cluster.
The Basic Information is shown in the following table.
ParameterDescriptionLogService Cluster Name Customize a name for the cluster to be managed. Naming rules: must start with a letter; must end with a letter or number; 2–32 characters long; special characters are limited to underscores. LogService Version You can select an existing oblogservice version from the list, or click Upload Software Package below the list to upload an oblogservice RPM package. On the Create LogService Cluster page, configure the deployment mode information for the cluster.
The LogService cluster must be configured with 3 zones.
ParameterDescriptionZone Name Usually a default name is provided. You can customize it as needed. The zone name must start with an English letter, can contain uppercase and lowercase letters, numbers, and underscores, and must be 2 to 48 characters long. Region Select the region to which the zone belongs. Instance Type (Optional) Select the instance type. If a machine type is selected, the host list will be filtered accordingly. CPU Architecture Automatically identified after you select the Logservice Version in the Basic Information section. Host The IP address of the machine. Multiple IP addresses can be selected. Software Package Type Automatically identified after you select the Logservice Version in the Basic Information section. On the Create Logservice Cluster page, configure the data storage information for the cluster.
The Storage Information is shown in the following table.
ParameterDescriptionObject Storage Configuration The storage medium type. Supported options include AWS S3, S3-compatible object storage (such as Alibaba Cloud OSS, Huawei Cloud OBS, Tencent Cloud COS, etc.), and Azure Blob. The object storage URL only supports the s3://andazblob://protocol headers; other protocols are not supported.Storage Directory The path for storing data. The path used to store data. For S3-compatible object storage, the format is s3://bucket/data/1. For Azure Blob, the format isazblob://container/data/1.(Optional) Configure cluster parameters. You can customize startup and runtime parameters for the cluster.
You can use the default parameter settings, or open the Parameter Configuration module to configure cluster parameters.
You can add startup parameters one by one and assign values to them.
Note
- If the LogService cluster and the OBServer cluster are deployed on the same machine (mixed deployment scenario), it is recommended to set the
memory_limitparameter in the parameter configuration to limit Logservice's memory usage. Based on the log volume and business requirements, set LogService memory within a reasonable range to avoid memory contention with the OBServer cluster. - The
memory_limitparameter for a Logservice cluster must be configured when the cluster is created, and cannot be modified after the cluster has been created. Please set this parameter appropriately during planning based on the available host memory resources.
- If the LogService cluster and the OBServer cluster are deployed on the same machine (mixed deployment scenario), it is recommended to set the
You can also click Select Template to Auto-Fill, then select a parameter template, and the system will automatically fill in the parameters and configurations from the template here. If no cluster parameter template has been created, you can click Create Logservice Parameter Template to create one for the cluster.
(Optional) Configure paths and ports through custom settings.
You can use the default path and port configurations, or open the Custom Settings section to customize the Path Settings and Port Settings.
Configure paths:
In the Path Configuration section, customize the Software Installation Path and Local Storage Path as needed.
Configure ports:
In the Port Configuration section, customize the SQL Port and Web Port.
After configuration, click Test to check whether the ports are already in use. If a port is in use, you must reconfigure an available one.
After completing the configuration, click Create in the lower-right corner.
After clicking Create, you will be redirected to the task center and must wait for the LogService cluster to be created successfully.
What to do next
After the LogService cluster is successfully created, you can create an OceanBase AI Database cluster.
For more information about creating an OceanBase AI Database cluster using OCP, see Deploy an OceanBase AI Database cluster using OCP.