TopoLVM is an LVM-based local storage solution that provides simple, easy-to-maintain, and high-performance local storage services suitable for scenarios such as databases and middleware. Before using it, you need to create a TopoLVM storage class.
Once the Persistent Volume Claim (PVC) is bound to the storage class, the platform dynamically creates persistent volumes on the nodes based on the Persistent Volume Claim for business applications to use.
Compared to remote storage (e.g., NFS shared storage): TopoLVM-type storage is located locally on the node, offering better IOPS and throughput performance, as well as lower latency.
Compared to hostPath (e.g., local-path): Although both are local storage on the node, TopoLVM allows for flexible scheduling of container groups to nodes with sufficient available resources, avoiding issues where container groups cannot start due to insufficient resources.
TopoLVM supports automatic volume expansion by default. After modifying the required storage quota in the Persistent Volume Claim, the expansion can be completed automatically without restarting the container group.
When only temporary storage is needed, such as for development and debugging.
When there are high storage I/O requirements, such as real-time indexing.
Please try to use local storage only for applications where data replication and backup at the application layer can be realized, such as MySQL. Avoid data loss due to the lack of data persistence guarantee from local storage.
After clicking deploy, on the newly opened page configure local storage.
Go to Platform Management.
In the left navigation bar, click Storage Management > Storage Classes.
Click Create Storage Class.
Select TopoLVM, then click Next.
Configure the storage class parameters as described below.
Note: The following content is presented as a form example; you may also choose to create it using YAML.
Parameter | Description |
---|---|
Name | The name of the storage class, which must be unique within the current cluster. |
Display Name | A name that can help you identify or filter it, such as a Chinese description of the storage class. |
Device Class | The device class is a way to categorize storage devices in TopoLVM, with each device class corresponding to a group of storage devices with similar characteristics. If there are no special requirements, use the Automatically Assigned device class. |
File System |
|
Reclamation Policy | The reclamation policy for persistent volumes.
|
Access Mode | ReadWriteOnce (RWO): Can be mounted as read-write by a single node. |
PVC Reconstruction | Supports PVC reconstruction across nodes. When enabled, the Reconstruction Wait Time must be configured. When the node hosting the PVC created using this storage class fails, the PVC will be automatically rebuilt on other nodes after the wait time to ensure business continuity. Note:
|
Allocated Projects | Persistent volume claims of this type can only be created in specific projects. If no project is currently allocated, the project can also be updated later. |
After confirming that the configuration information is correct, click the Create button.
Once everything is ready, you can notify the developers to use the TopoLVM features. For example, create a Persistent Volume Claim and bind it to the TopoLVM storage class in the Storage > Persistent Volume Claims page of the container platform.