NAS file system management method, device, container cloud platform and medium

By constructing a separate NAS file system and preset management plug -in for each container cloud platform, the problem of high NAS file system management in the container cloud platform is solved, and the independent data storage and management of each container is realized.

CN119025477BActive Publication Date: 2025-01-28BANK OF NINGBO
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411482307.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-23
Publication Date
2025-01-28
Estimated Expiration
2044-10-23

AI Technical Summary

Technical Problem

In the container cloud platform, multiple containers share the same NAS file system, which makes it more difficult to manage the NAS file system.

Method used

Create a request through response container to determine the storage requirements of the target container, and build the NAS file system corresponding to the target container according to these parameters. At the same time, according to the attribute information stored in the NAS file system, the corresponding preset management plug -in is determined to perform the data processing operation of the target container on the target NAS file system.

Benefits of technology

Each container has its separate NAS file system, which reduces the management difficulty of the NAS file system in the container cloud platform, and improves the controllability and flexibility of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025477B_ABST
    Figure CN119025477B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a NAS file system management method, device, container cloud platform and medium. In the method, by responding to a container creation request, a target container is created according to the container creation request, and a target NAS file system corresponding to the target container is constructed according to the storage requirement parameters of the target container. According to the attribute information of the storage device in the target NAS file system, the preset management plug-in corresponding to the target NAS file system is determined, and a communication connection between the preset management plug-in and the target NAS file system is established. Finally, in response to the container startup instruction issued by the target container, a data storage mount point of the target container relative to the target NAS file system is created through the preset management plug-in and the communication connection. In this way, each container has its own corresponding NAS file system, which reduces the difficulty of managing the NAS file system in the container cloud platform.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a NAS file system management method, device, container cloud platform and medium. Background Art

[0002] In current applications for container cloud platforms, container cloud platforms need to apply for NAS file systems to provide data storage services for containers deployed within them. However, in current container cloud platforms, multiple containers deployed within the platform often share the same NAS file system, and each container completes data storage through the data storage mount point of the NAS file system within the container. In this way, a single NAS file system needs to provide data storage services for multiple containers, resulting in high difficulty in managing NAS file systems in container cloud platforms. Summary of the invention

[0003] Based on the above problems, in order to reduce the difficulty of managing the NAS file system in the container cloud platform, the embodiments of the present application provide a NAS file system management method, device, container cloud platform and medium.

[0004] The embodiments of the present application disclose the following technical solutions:

[0005] In a first aspect, an embodiment of the present application provides a NAS file system management method, which is applied to a container cloud platform, and the method includes:

[0006] In response to a container creation request, create a target container according to the container creation request, and determine storage requirement parameters of the target container;

[0007] Constructing a target NAS file system corresponding to the target container according to the storage requirement parameters of the target container;

[0008] Determine, according to the attribute information of the storage device in the target NAS file system, a preset management plug-in corresponding to the target NAS file system; the preset management plug-in is used to execute the data processing operation of the target container on the target NAS file system;

[0009] Establishing a communication connection between the preset management plug-in and the target NAS file system;

[0010] In response to the container start instruction issued by the target container, a data storage mount point of the target container relative to the target NAS file system is created through the preset management plug-in and the communication connection.

[0011] In a possible implementation, the storage requirement parameters include: storage class requirement information and storage capacity requirement information; the container cloud platform includes: a preset storage class; and constructing a target NAS file system corresponding to the target container according to the storage requirement parameters of the target container includes:

[0012] According to the storage class requirement information and the preset storage class, determining whether the preset storage class matches the storage class requirement information;

[0013] When the preset storage class matches the storage class requirement information, determining a target storage device from a storage end according to the storage class requirement information;

[0014] The available storage capacity of the target storage device for the target container is set based on the storage capacity requirement information to obtain the target NAS file system.

[0015] In a possible implementation, the target container is connected to the preset management plug-in via a preset device universal interface; the preset device universal interface is used to enable the container cloud platform to connect to different storage devices in the storage end.

[0016] In a possible implementation, after creating the data storage mount point of the target container relative to the target NAS file system through the preset management plug-in and the communication connection, the method further includes:

[0017] Monitoring the running status of the target container through the preset management plug-in;

[0018] When the running state of the target container is a destroyed state, the target NAS file system is recycled through the preset management plug-in.

[0019] In a possible implementation, establishing a communication connection between the preset management plug-in and the NAS file system includes:

[0020] Receiving communication connection establishment parameters from the target NAS file system;

[0021] The communication connection between the preset management plug-in and the target NAS file system is established according to the communication connection establishment parameters.

[0022] In a possible implementation, control components of a plurality of the preset management plug-ins are deployed in the container cloud platform in the form of multiple copies of stateless applications.

[0023] In a second aspect, an embodiment of the present application provides a NAS file system management device, which is applied to a container cloud platform, and the device includes:

[0024] A demand determination module, configured to respond to a container creation request, create a target container according to the container creation request, and determine storage demand parameters of the target container;

[0025] A system construction module, used to construct a target NAS file system corresponding to the target container according to the storage requirement parameters of the target container;

[0026] A plug-in determination module, used to determine a preset management plug-in corresponding to the target NAS file system according to the attribute information of the storage device in the target NAS file system; the preset management plug-in is used to execute the data processing operation of the target container on the target NAS file system;

[0027] A connection establishment module, used to establish a communication connection between the preset management plug-in and the NAS file system;

[0028] The mount point creation module is used to create a data storage mount point of the target container relative to the target NAS file system through the preset management plug-in and the communication connection in response to the container startup instruction issued by the target container.

[0029] In a possible implementation, the storage requirement parameters include: storage class requirement information and storage capacity requirement information; the container cloud platform includes: a preset storage class; the system building module is specifically used to:

[0030] According to the storage class requirement information and the preset storage class, determining whether the preset storage class matches the storage class requirement information;

[0031] When the preset storage class matches the storage class requirement information, determining a target storage device from a storage end according to the storage class requirement information;

[0032] The storage capacity of the target storage device is set based on the storage capacity requirement information to obtain the target NAS file system.

[0033] In a third aspect, an embodiment of the present application provides a container cloud platform for executing the steps of any possible NAS file system management method in the first aspect.

[0034] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any possible NAS file system management method in the first aspect.

[0035] Compared with the prior art, the present application has the following beneficial effects: the embodiment of the present application provides a NAS file system management method, device, container cloud platform and medium. In the method, after responding to the container creation request, the storage requirement parameters of the target container are determined while creating the target container, so as to accurately construct the subsequent NAS file system. Subsequently, a NAS file system corresponding to the target container is constructed according to its storage requirement parameters, and the corresponding preset management plug-in is determined through the NAS file system, so that a NAS file system that provides data storage services for the target container can be constructed according to the actual storage requirements of the target container, and the corresponding preset management plug-in is determined. Among them, the preset management plug-in is used to perform data processing operations of the target container on the target NAS file system. Therefore, after the preset management plug-in establishes a communication connection with the NAS file system, when the target container initiates a container start instruction, the data storage mount point of the target container relative to the target NAS file system can be effectively created through the preset management plug-in and the communication connection between it and the NAS file system. In this way, the target container can store its own data in a separately corresponding NAS file system through the created data storage mount point, and no longer needs to share the same NAS file system with other containers, so that each container has its own separately corresponding NAS file system, reducing the difficulty of managing the NAS file system in the container cloud platform. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0037] Figure 1 A schematic diagram of the connection structure between a container cloud platform and a NAS file system provided in an embodiment of the present application;

[0038] Figure 2 A flowchart of a NAS file system management method provided in an embodiment of the present application;

[0039] Figure 3 A schematic diagram of a persistent declaration provided in an embodiment of the present application;

[0040] Figure 4 A schematic diagram of a connection structure provided in an embodiment of the present application;

[0041] Figure 5 A flowchart of another NAS file system management method provided in an embodiment of the present application;

[0042] Figure 6 A schematic diagram of storage class configuration information provided in an embodiment of the present application;

[0043] Figure 7 A schematic diagram of the structure of a NAS file system management device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solutions and advantages of this application more clear, the following is a further detailed description of this application in combination with specific embodiments and with reference to the accompanying drawings. It should be noted that the embodiments described in the embodiments of this application are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0045] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "include" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right", etc. are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0046] As described above, in the current container cloud platform, multiple containers deployed in the platform often share the same NAS file system. Each container completes data storage through the data storage mount point of the NAS file system inside the container, resulting in high difficulty in managing the NAS file system in the container cloud platform.

[0047] In order to solve the above problems, the embodiments of the present application provide a NAS file system management method, device, container cloud platform and medium. In the method, after responding to the container creation request, the storage requirement parameters of the target container are determined while creating the target container, so as to accurately construct the subsequent NAS file system. Subsequently, a NAS file system corresponding to the target container is constructed according to its storage requirement parameters, and the corresponding preset management plug-in is determined through the NAS file system, so that a NAS file system that provides data storage services specifically for the target container can be constructed according to the actual storage requirements of the target container, and the corresponding preset management plug-in is determined. Among them, the preset management plug-in is used to perform data processing operations of the target container on the target NAS file system. Therefore, after the preset management plug-in establishes a communication connection with the NAS file system, when the target container initiates a container start instruction, the data storage mount point of the target container relative to the target NAS file system can be effectively created through the preset management plug-in and the communication connection between it and the NAS file system. In this way, the target container can store its own data in a separately corresponding NAS file system through the created data storage mount point, and no longer needs to share the same NAS file system with other containers, so that each container has its own separately corresponding NAS file system, reducing the difficulty of managing the NAS file system in the container cloud platform.

[0048] Next, the NAS file system management method provided in the embodiment of the present application will be introduced in conjunction with the specific embodiment drawings.

[0049] See also Figure 1 and Figure 2 , Figure 1 A schematic diagram of a connection structure between a container cloud platform and a NAS file system provided in an embodiment of the present application, Figure 2 A flowchart of a NAS file system management method provided in an embodiment of the present application is shown below. Figure 1 and Figure 2 The embodiments of the present application are described.

[0050] Regarding the NAS file system management method provided in the embodiment of the present application, Figure 2 The specific steps include:

[0051] S101: In response to a container creation request, create a target container according to the container creation request, and determine storage requirement parameters of the target container.

[0052] First, the container cloud platform responds to the container creation request from the external interactive terminal, creates the target container according to the received container creation request, and the k8s core component in the container cloud platform obtains the storage requirement parameters of the target container. Among them, the storage requirement parameters of the target container represent the storage capacity requirement and storage class requirement of the target container for the NAS file system. When the target container is created in the container cloud platform, the target container needs to create its own persistent volume claim (PVC) and write its own storage requirement parameters into the created persistent claim, so that the k8s core component can determine the storage requirement parameters of the target container through the persistent claim created by the target container.

[0053] For details about the persistence declaration of the target container, see Figure 3 A schematic diagram of a persistence declaration is shown in Figure 1. Figure 3 As shown, the persistence declaration includes the necessary information of the target container for the NAS file system it needs, namely, the storage requirement parameters of the target container. The storage requirement parameters contained in the persistence declaration shield the specific details of the storage backend, and only include the actual storage capacity requirement information and storage class requirement information. Among them, the "storage" parameter limits the maximum capacity of the NAS file system, and the "storageClassNmae" parameter limits the storage class that needs to be designed in the NAS file system. In this way, the storage requirement parameters of the target container can effectively represent its own needs for the NAS file system. Through the restrictions on storage classes and storage capacity, different NAS file systems can be built for different containers in a targeted manner, thereby preventing the situation where containers use the NAS file system without restrictions when sharing the same NAS file system.

[0054] It should be noted that k8s is an open source platform for automated deployment, expansion and management of containerized applications. Its internal core components can effectively manage and schedule containerized applications within the container cloud platform, which will not be elaborated in this embodiment.

[0055] S102: Construct a target NAS file system corresponding to the target container according to the storage requirement parameters of the target container.

[0056] After the storage requirement parameters of the target container are determined, the storage device type and storage capacity requirement required for the target container can be determined through the storage capacity requirement information and storage class requirement information indicated in the requirement parameters.

[0057] In this way, the external component of the plug-in can call the driver controller of the storage device according to the specific storage requirement parameters, and send the storage requirement parameters to the driver controller of the storage device. The driver controller can determine the storage device that matches the storage requirement parameters of the target container based on the specific storage capacity requirement information and storage class requirement information in the storage requirement parameters, and then build a target NAS file system "exclusive" to the target container, thereby realizing the isolation of NAS file systems between containers. This makes it unnecessary for each container in the container cloud platform to share the same NAS file system, reducing the difficulty of managing the NAS file system for the container cloud platform.

[0058] It is understandable that the storage devices in the NAS file system are determined according to the specific storage requirement parameters of the target container, so the number and capacity settings of the storage devices in the NAS file system will change according to the actual storage requirement parameters of the target container, which will not be elaborated in this embodiment.

[0059] S103: Determine a preset management plug-in corresponding to the target NAS file system according to the attribute information of the storage device in the target NAS file system; the preset management plug-in is used to execute the data processing operation of the target container on the target NAS file system.

[0060] Subsequently, when the target NAS file system is determined, in order to ensure that the target container can effectively store its own data in the target NAS file system, it is necessary to determine a preset management plug-in specifically corresponding to the target NAS file system according to the attribute information of the storage device in the target NAS file system. The preset management plug-in is used to process data processing operations of the target container in the target NAS file system, such as data storage, data deletion, etc.

[0061] In actual application scenarios, different storage devices often have different data processing methods. Therefore, the preset management plug-in is determined based on the attribute information of the storage device. The attribute information of the storage device includes the manufacturer information of the storage device. Through the specific manufacturer information of each storage device, the specific management plug-in of the manufacturer can be determined. Therefore, when the target NAS file system has been built, the specific preset management plug-in of the target NAS file system can be determined through the manufacturer information of each storage device in the target NAS file system.

[0062] On the other hand, in the container cloud platform of this embodiment, the management plug-in is pre-set in the container cloud platform according to the manufacturer information of all storage devices connected to the container cloud platform. When building the target NAS file system of the target container, the preset management plug-in can be quickly determined through the specific manufacturer information of the storage device in the target NAS file system.

[0063] In one possible implementation, in order to ensure that the container cloud platform can connect to a variety of different storage devices, the container cloud platform can connect to various types of storage devices through a preset device universal interface. Among them, the target container can also be connected to the preset management plug-in through the preset device universal interface, so as to specify the connection between the container cloud platform and each storage device to the connection between the container and the specific storage device, so as to form a NAS file system corresponding to each container. In actual application scenarios, the preset device universal interface can be a container storage interface (container storage interface, CSI), and the container cloud platform can connect to different storage devices through CSI when only one set of interface specifications of CSI is applicable.

[0064] For more information about the common interface of preset devices, preset management plug-ins, and the connection relationship of storage devices, see Figure 4 A schematic diagram of a connection structure is shown in FIG. Figure 4 In the description, block storage, file storage, and object storage represent storage classes supported by the container cloud platform. The specific storage device can be determined by the specific storage class, which is not described in detail in this embodiment.

[0065] Accordingly, since container cloud platforms are often connected to a variety of different storage devices, the platform will also be pre-set with a variety of different preset management plug-ins. In one possible implementation, in order to improve the reliability of the container cloud platform, the control components of each preset management plug-in in the container cloud platform can be deployed in the cluster of the container cloud platform in the form of multiple copies of stateless applications. This deployment method can ensure that other management plug-ins can continue to maintain their working state when a certain management plug-in fails, thereby ensuring the operational reliability and stability of the container cloud platform.

[0066] S104: Establishing a communication connection between the preset management plug-in and the target NAS file system.

[0067] Furthermore, in order to ensure that the target container can successfully store its own data in its specific target NAS file system, it is necessary to establish a communication connection between the preset management plug-in and the NAS file system through the plug-in external component in the container cloud platform.

[0068] In the process of establishing a communication connection between the preset management plug-in and the target NAS file system, it is necessary to receive communication connection establishment parameters from the target NAS file system, and establish a communication connection between the preset management plug-in and the target NAS file system based on the communication connection establishment parameters.

[0069] The communication connection establishment parameters include necessary information for establishing a connection, such as fields such as storageDriverName, backendName, managementLTF, dataLTF, and svm. Among them, storageDriverName indicates the name of the storage driver, which is used to indicate which specific storage driver to use; backendName indicates the backend name, which is used to identify the connected storage backend system; managementLTF and dataLT indicate the interface information of the management and data connection, which is used to configure how to interact and manage data with the storage system; svm indicates the storage virtual machine used.

[0070] The communication connection between the preset management plug-in and the target NAS file system can be effectively established through the necessary information for establishing the connection represented in the communication connection establishment parameters.

[0071] In the scenario of this embodiment, the storage end containing multiple storage devices connected to the container cloud platform will also create a storage virtual machine (SVM) for the platform and grant SVM-level administrator privileges. At the same time, in order to meet the usage specifications of the NAS file system, all NAS file systems connected to the container cloud platform follow the above standards. When each NAS file system establishes a communication connection with its corresponding preset management plug-in, it only needs to provide communication connection establishment parameters to the plug-in external component in the cloud platform.

[0072] S105: In response to the container start instruction issued by the target container, create a data storage mount point of the target container relative to the target NAS file system through the preset management plug-in and the communication connection.

[0073] Finally, after the preset management plug-in and the target NAS file system establish a communication connection, the preset management plug-in can implement the data storage operation of the target container on the target NAS file system through the daemon process set inside it. The preset management plug-in will monitor the instructions issued by the target container in real time. When the target container starts to issue a container startup instruction, the preset management plug-in responds to the startup instruction and creates a data storage mount point of the target NAS file system inside the container of the target container through its communication connection with the target NAS file system, so that the target container can store data in the target NAS file system through the data storage mount point created inside the container.

[0074] It can be seen that in the NAS file system management method provided in the embodiment of the present application, the core lies in the creation of a "dedicated" NAS file system for the target container, and the management of the data processing operations of the target container on the NAS file system through a preset management plug-in. The former creates the corresponding NAS file system through the specific storage requirement parameters of each container, realizing the isolation and controllability of the NAS file systems between containers, and the latter takes over the data processing operations of the container for the NAS file system through the preset management plug-in corresponding to each NAS file system, and the management work for each NAS file system is hosted in the preset management plug-in corresponding to each file system, so that each NAS file system can be independently hosted in the corresponding preset management plug-in, thereby greatly reducing the difficulty of managing the NAS file system in the container cloud platform.

[0075] The above describes the overall NAS file system management method in the implementation of the present application. Next, the method for creating the target NAS file system in the above step S102 will be introduced in conjunction with the specific embodiment drawings.

[0076] See also Figure 5 , which is a flow chart of another NAS file system management method provided by an embodiment of the present application, specifically comprising the following steps:

[0077] S201: According to the storage class requirement information and the preset storage class, determine whether the preset storage class matches the storage class requirement information.

[0078] As can be seen from the foregoing, the storage requirement parameters of the target container include the storage class requirement information and storage capacity information of the target container. At the same time, the container cloud platform pre-sets multiple preset storage classes, and the pre-set multiple preset storage classes are used to represent the data storage types supported by the container cloud platform.

[0079] Therefore, when building the target NAS file system based on the storage requirement parameters of the target container, it is first necessary to determine whether the storage class requirement information in the storage requirement parameters matches the preset storage class pre-set in the container cloud platform to ensure that the storage device connected to the container cloud platform can store the data that the target container needs to store.

[0080] The storage class requirement information is used to indicate the data attributes of the stored data. For details, see Figure 6 The storage class configuration information diagram is shown, which will not be described in detail in this embodiment.

[0081] S202: When the preset storage class matches the storage class requirement information, determine a target storage device from a storage end according to the storage class requirement information.

[0082] Correspondingly, when the preset storage class in the container cloud platform matches the storage class requirement information of the target container, it indicates that the storage device connected to the container cloud platform can be used to store the data that the target container needs to store. Therefore, the matching target storage device can be determined from the external storage end according to the actual storage class requirement information of the target container.

[0083] S203: Setting the available storage capacity of the target storage device for the target container based on the storage capacity requirement information to obtain the target NAS file system.

[0084] After determining the target storage device that matches the target container, the available storage capacity of the target storage device for the target container is further limited by the storage capacity requirement information in the storage requirement parameters, thereby obtaining a target NAS file system composed of the target storage device.

[0085] The above is the specific method of creating the target NAS file system. Furthermore, from the above description, it can be seen that the preset management plug-in can take over the data processing operations of the target container in its corresponding target NAS file system. Specifically, the data processing operations of the target container on the target NAS file system can be roughly divided into data storage operations and file system unmounting operations.

[0086] In order to enable the preset management plug-in to fully manage the data processing operations of the target container on the target NAS file system, in a possible implementation, after the preset management plug-in has created a data storage mount point on the target container, the preset management plug-in can also monitor the running status of the target container in real time. When the running status of the target container changes to the destroyed state, that is, when the target container is cancelled, in order to prevent the redundant and idle NAS file systems from increasing the operating pressure of the system, the preset management plug-in can automatically uninstall the target NAS file system mounted in the target container, and recycle the redundant and idle NAS file systems, and timely recycle the NAS file system corresponding to the destroyed container, so that the management of the NAS file system is completely hosted in its corresponding preset management plug-in, and there is no need to uniformly manage the NAS file systems used by each container, which reduces the difficulty of managing the NAS file system in the container cloud platform.

[0087] The embodiment of the present application provides a NAS file system management method. In the method, after responding to the container creation request, the storage requirement parameters of the target container are determined while creating the target container, so as to accurately construct the subsequent NAS file system. Subsequently, a NAS file system corresponding to the target container is constructed according to its storage requirement parameters, and the corresponding preset management plug-in is determined through the NAS file system, so that a NAS file system that provides data storage services specifically for the target container can be constructed according to the actual storage requirement of the target container, and the corresponding preset management plug-in can be determined. Among them, the preset management plug-in is used to perform data processing operations of the target container on the target NAS file system. Therefore, after the preset management plug-in establishes a communication connection with the NAS file system, when the target container initiates a container startup instruction, the data storage mount point of the target container relative to the target NAS file system can be effectively created through the preset management plug-in and the communication connection between it and the NAS file system. In this way, the target container can store its own data in a separately corresponding NAS file system through the created data storage mount point, and no longer needs to share the same NAS file system with other containers, so that each container has its own separately corresponding NAS file system, reducing the difficulty of managing the NAS file system in the container cloud platform.

[0088] A NAS file system management device provided in an embodiment of the present application is introduced below. The NAS file system management device described below and the NAS file system management method described above can refer to each other.

[0089] See also Figure 7 , which is a schematic diagram of the structure of a NAS file system management device provided in an embodiment of the present application, specifically including the following modules:

[0090] The demand determination module 100 is used to respond to a container creation request, create a target container according to the container creation request, and determine storage demand parameters of the target container;

[0091] A system construction module 200, configured to construct a target NAS file system corresponding to the target container according to storage requirement parameters of the target container;

[0092] A plug-in determination module 300 is used to determine a preset management plug-in corresponding to the target NAS file system according to the attribute information of the storage device in the target NAS file system; the preset management plug-in is used to perform the data processing operation of the target container on the target NAS file system;

[0093] A connection establishing module 400, used to establish a communication connection between the preset management plug-in and the NAS file system;

[0094] The mount point creation module 500 is used to create a data storage mount point of the target container relative to the target NAS file system through the preset management plug-in and the communication connection in response to the container startup instruction issued by the target container.

[0095] An embodiment of the present application also provides a container cloud platform, which can be used to execute the steps of the NAS file system management method described in any of the above embodiments.

[0096] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the NAS file system management method described in any of the above embodiments.

[0097] The computer-readable media of the embodiments of the present application include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0098] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the NAS file system management method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0099] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for methods, devices, container cloud platforms and media, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The methods, devices, container cloud platforms and media described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components prompted as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0100] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A NAS file system management method, characterized in that: Applied to a container cloud platform, the method includes: In response to a container creation request, create a target container according to the container creation request, and determine storage requirement parameters of the target container; Constructing a target NAS file system corresponding to the target container according to the storage requirement parameters of the target container; Determine, according to the attribute information of the storage device in the target NAS file system, a preset management plug-in corresponding to the target NAS file system; the preset management plug-in is used to execute the data processing operation of the target container on the target NAS file system; Establishing a communication connection between the preset management plug-in and the target NAS file system; In response to the container start instruction issued by the target container, a data storage mount point of the target container relative to the target NAS file system is created through the preset management plug-in and the communication connection.

2. The method according to claim 1, characterized in that The storage requirement parameters include: storage class requirement information and storage capacity requirement information; the container cloud platform includes: preset storage classes; the target NAS file system corresponding to the target container alone is constructed according to the storage requirement parameters of the target container, including: According to the storage class requirement information and the preset storage class, determining whether the preset storage class matches the storage class requirement information; When the preset storage class matches the storage class requirement information, determining a target storage device from a storage end according to the storage class requirement information; The available storage capacity of the target storage device for the target container is set based on the storage capacity requirement information to obtain the target NAS file system.

3. The method according to claim 2, characterized in that The target container is connected to the preset management plug-in through a preset device universal interface; the preset device universal interface is used to enable the container cloud platform to connect to different storage devices in the storage end.

4. The method according to claim 1, characterized in that After creating the data storage mount point of the target container relative to the target NAS file system through the preset management plug-in and the communication connection, the method further includes: Monitoring the running status of the target container through the preset management plug-in; When the running state of the target container is a destroyed state, the target NAS file system is recycled through the preset management plug-in.

5. The method according to claim 1, characterized in that: The establishing of a communication connection between the preset management plug-in and the NAS file system includes: Receiving communication connection establishment parameters from the target NAS file system; The communication connection between the preset management plug-in and the target NAS file system is established according to the communication connection establishment parameters.

6. The method according to claim 1, characterized in that The control components of the plurality of preset management plug-ins are deployed in the container cloud platform in the form of multiple copies of stateless applications.

7. A NAS file system management device, characterized in that: Applied to a container cloud platform, the device comprises: A demand determination module, configured to respond to a container creation request, create a target container according to the container creation request, and determine storage demand parameters of the target container; A system construction module, used to construct a target NAS file system corresponding to the target container according to the storage requirement parameters of the target container; A plug-in determination module, used to determine a preset management plug-in corresponding to the target NAS file system according to the attribute information of the storage device in the target NAS file system; the preset management plug-in is used to execute the data processing operation of the target container on the target NAS file system; A connection establishment module, used to establish a communication connection between the preset management plug-in and the NAS file system; The mount point creation module is used to create a data storage mount point of the target container relative to the target NAS file system through the preset management plug-in and the communication connection in response to the container startup instruction issued by the target container.

8. The device according to claim 7, characterized in that The storage requirement parameters include: storage class requirement information and storage capacity requirement information; the container cloud platform includes: preset storage classes; the system building module is specifically used to: According to the storage class requirement information and the preset storage class, determining whether the preset storage class matches the storage class requirement information; When the preset storage class matches the storage class requirement information, determining a target storage device from a storage end according to the storage class requirement information; The storage capacity of the target storage device is set based on the storage capacity requirement information to obtain the target NAS file system.

9. A container cloud platform, characterized in that: Used to execute the steps of the NAS file system management method described in any one of claims 1-6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the NAS file system management method described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Storage method, device, equipment, storage medium and system

    CN113296792A