This topic describes how to create a Logservice cluster in OCP.
Prerequisites
The current logged-in user must have the ADMIN or ORG_ADMIN role.
Available host resources are available. For more information, see Host resource requirements.
Memory planning: If the Logservice cluster and the AI cluster are deployed on the same machine (in a hybrid deployment scenario), plan the memory usage in advance to avoid insufficient memory. It is recommended to set the
memory_limitparameter when creating the Logservice cluster to limit its memory usage. It is recommended to limit the memory for Logservice to a reasonable range (such as 4GB to 8GB) based on the log volume and business requirements.Note
When the AI cluster and the Logservice cluster are deployed together, if their memory usage is not limited separately, memory competition between them may occur, leading to Out-of-Memory (OOM) issues and affecting cluster stability. Therefore, during the planning phase, allocate and limit the `memory_limit` parameter values for both based on the available host memory resources.
Manually create an installation directory for the Logservice software, which defaults to /home/admin/logservice; and a local log storage directory, which defaults to /data/logservice1.
Procedure
Log in to OCP.
In the left navigation bar, select Logservice Instance.
On the Clusters tab, click Create Logservice Cluster in the upper-right corner.
On the new cluster creation page, configure the following information:
- Basic information
Parameter |
Description |
|---|---|
| Logservice Cluster Name | Enter the cluster name. Naming rules: Must start with a letter; end with a letter or number; support 2-32 characters; special characters only _ are supported. |
| Logservice Version | Select the Logservice software version. |
- Deployment mode
Configure the deployment information for the Logservice cluster:
Parameter |
Description |
|---|---|
| Zone | Select a Zone name, such as zone1, zone2, zone3. |
| Region | Select the Region to which this Zone belongs. |
| Host Type (Optional) | Select the host type. |
| CPU Architecture | Select the CPU architecture, such as x86_64. |
| Host | Select the host for deploying Logservice. |
| Software Package Type | Select the operating system software package type, such as el7. |
Note
Currently, only the 1-1-1 deployment pattern is supported, which means deploying one LogServer node per zone across three zones. Other deployment patterns are not supported.
- Data storage
Parameter |
Description |
|---|---|
| Object Storage Configuration | Select an object storage service (e.g., Alibaba Cloud OSS). |
| Storage Directory | Configure the path for object storage, for example, s3://bucket/data/1. |
- Parameter configuration
Select Customize startup and runtime parameters for the cluster as needed. After selecting this option, you can configure cluster parameters in the subsequent steps.
Note
If the Logservice cluster and the AI cluster are deployed on the same machine (in a mixed deployment scenario), it is recommended to set the `memory_limit` parameter in parameter configuration to limit Logservice's memory usage. It is advised to keep Logservice's memory usage within a reasonable range based on log volume and business requirements to avoid memory competition with the AI cluster.
- Custom configuration
Select Supports executing cluster-level user configurations (such as the operating system owner user) and path settings (such as software installation paths and local storage paths) as needed.
* User configuration
| Parameter | Description |
|-------|------|
| Operating System Owner User | The user to whom Logservice belongs. Default is admin. |
* Path configuration
| Parameter | Description |
|-------|------|
| Software Installation Path | The installation directory for Logservice software. Default is /home/admin/logservice. |
| Local Storage Path | The local log storage directory for Logservice. Default is /data/logservice1. |
* Port settings
| Parameter | Description |
|-------|------|
| SQL Port | The SQL port for Logservice. Default is 7890. |
| Web Port | The HTTP service port for Logservice. Default is 7891. |
After completing the configuration, click OK to start creating the cluster.
In the confirmation dialog box that appears, verify the configuration information and click OK.
The system will create an asynchronous task to perform the cluster creation operation. You can view the task progress in System Management > Task Management.
Related operations
- View the list of clusters: For more information, see List of log service clusters.
- View cluster details: For more information, see Overview of log service clusters.
- Manage parameter templates: For more information, see Parameter template.
