Create TopoLVM Local Storage Class
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.
TOC
Background Information
Advantages of 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.
Use Cases
-
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.
Constraints and Limitations
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.
Deploy Volume Plugin
After clicking deploy, on the newly opened page configure local storage.
Create Storage Class
-
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.
-
After confirming that the configuration information is correct, click the Create button.
Follow-up Actions
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.