Container cluster control method and device, equipment and storage medium
By establishing a system image workspace in local memory and configuring a preset operating system, using the preset container cluster controller to manage data based on memory, the problem of hard disk speed bottleneck in large-scale container clusters is solved, and the operation speed is improved.
Patent Information
- Application Number
- CN202411580998.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-07
- Publication Date
- 2025-02-07
AI Technical Summary
When managing large-scale container clusters, the limitations of hard disk speed lead to low IO operation efficiency and insufficient operation speed.
By establishing a system image workspace in local memory, configuring a preset operating system, and using the preset container cluster controller to read and write data based on memory, the running speed of the container cluster is improved.
By combining the high-speed read and write characteristics of memory, the running speed of container clusters in large-scale environments has been significantly improved, and the problem of hard disk speed bottleneck is solved.
Smart Images

Figure CN119396531A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a container cluster control method, device, equipment and storage medium. Background Art
[0002] The components of the Kubernetes container controller are deployed in the form of containers on physical servers or virtual servers. At present, container technology has become a widely recognized way to share container technology server resources. Container technology can provide system administrators with great flexibility in the process of building container technology operating system instances on demand. The immutability, lightweight, high-speed and agile nature of container images have produced some characteristics of container deployment, especially the emphasis on the statelessness of container deployment. In the existing technology, the main factors affecting the running speed of container applications are CPU (Central Processing Unit), memory, hard disk, network and image operating system, among which hard disk speed is one of the main bottlenecks. When the Kubernetes controller manages a large-scale container cluster of more than 1,000 units, it will generate a large number of IO operations, and will encounter the problem of insufficient running speed due to the limitation of hard disk speed. Summary of the invention
[0003] In view of this, the purpose of the present invention is to provide a container cluster control method, device, equipment and storage medium, which can improve the operation speed of container cluster control and management of large-scale container clusters by combining the high-speed read and write characteristics of memory. The specific scheme is as follows:
[0004] In a first aspect, the present application discloses a container cluster control method, which is applied to a physical machine, including:
[0005] Based on the preset system image file, a preset operating system corresponding to the preset system image file is configured in the established system image workspace, and after receiving the system startup instruction, an input and output system is searched in the preset operating system; the system image workspace is established in the local memory;
[0006] Determining a system boot program through the input and output system, so as to load a system kernel of the preset operating system through the system boot program;
[0007] Searching for a target user process through the system kernel, initializing container configuration through the target user process, and loading a preset container cluster controller after the container configuration initialization is completed;
[0008] The containerized program in the system image workspace is managed through the target user process, and the preset container cluster controller is used to manage the reading and writing of data based on the local memory.
[0009] Optionally, configuring a preset operating system corresponding to the preset system image file in the established system image workspace based on the preset system image file includes:
[0010] Establishing an image workspace corresponding to the preset operating system in the local memory, and compiling the kernel file, system file and preset driver file corresponding to the preset operating system in the preset system image file to obtain a compilation result;
[0011] The compilation result is saved to a preset root file system to establish the preset operating system in the mirror workspace.
[0012] Optionally, determining a system boot program through the input / output system to load a system kernel of the preset operating system through the system boot program includes:
[0013] Detecting system resources through the input and output system to determine a target boot device, and searching for a master boot sector of the target boot device;
[0014] The boot program is initialized through the master boot sector to obtain a system boot program, and the system kernel of the preset operating system is loaded through the system boot program.
[0015] Optionally, searching for a target user process through the system kernel to initialize container configuration through the target user process, and loading a preset container cluster controller after the container configuration initialization is completed, includes:
[0016] Searching for a target user process through the system kernel, so as to read a system software package through the target user process, and decompressing the read system software package into the local memory;
[0017] The container configuration is initialized through the script file in the system software package, and the preset container cluster controller is loaded after the container configuration initialization is completed.
[0018] Optionally, the initializing the container configuration by using the script file in the system software package includes:
[0019] The script file startup level is determined by the initialization configuration file in the system software package, so as to perform container configuration initialization on the script file in the system software package according to the script file startup level.
[0020] Optionally, managing the containerized program in the system image workspace by using the target user process includes:
[0021] The containerized program in the system image workspace is monitored through the target user process, and after receiving the program start / stop command, the target process corresponding to the program start / stop command is started / stopped.
[0022] Optionally, the container cluster control method further includes:
[0023] Mounting the local disk to the preset operating system through a preset mount command, so as to provide data storage services for the preset operating system through the local disk;
[0024] Or, provide data storage services for the preset operating system through a preset network storage driver.
[0025] In a second aspect, the present application discloses a container cluster control device, which is applied to a physical machine, including:
[0026] A system configuration module, configured to configure a preset operating system corresponding to the preset system image file in the established system image workspace based on the preset system image file, and search for an input and output system in the preset operating system after receiving a system startup instruction;
[0027] A kernel loading module, used for determining a system boot program through the input and output system, so as to load a system kernel of the preset operating system through the system boot program;
[0028] A controller loading module, used to search for a target user process through the system kernel, to initialize the container configuration through the target user process, and to load a preset container cluster controller after the container configuration initialization is completed;
[0029] A process management module is used to manage the containerized program in the system image workspace through the target user process, and to use the preset container cluster controller to manage the reading and writing of data based on the local memory.
[0030] In a third aspect, the present application discloses an electronic device, including:
[0031] Memory, used to store computer programs;
[0032] The processor is used to execute the computer program to implement the container cluster control method as described above.
[0033] In a fourth aspect, the present application discloses a computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the container cluster control method as described above.
[0034] In the present application, firstly, a preset operating system corresponding to the preset system image file is configured in the established system image workspace based on the preset system image file, and after receiving the system startup instruction, an input and output system is searched in the preset operating system; the system boot program is determined through the input and output system to load the system kernel of the preset operating system through the system boot program; the target user process is searched through the system kernel to initialize the container configuration through the target user process, and the preset container cluster controller is loaded after the container configuration initialization is completed; the containerized program in the system image workspace is managed through the target user process, and the preset container cluster controller is used to manage the reading and writing of data based on the local memory. It can be seen that the method of the present application can configure the preset operating system in the preset system image workspace, and then after receiving the system startup instruction, the system boot program is determined through the input and output system found to find the target user process according to the system kernel loaded by the system boot program, and then the container configuration is initialized through the target user process, and the preset container cluster controller is loaded, and finally the containerized program in the system image workspace is managed through the target user process, and the preset container cluster controller is used to manage the reading and writing of data based on the local memory. In this way, an image workspace corresponding to the preset operating system can be established in the local memory, and the corresponding container cluster controller can be deployed to combine the container components of the controller with the high-speed characteristics of the memory. The high-speed read and write characteristics of the memory can be combined to improve the running speed of the container cluster control when managing large-scale container clusters. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention 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 embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0036] Figure 1 This is a flow chart of a container cluster control method disclosed in this application;
[0037] Figure 2 A system loading flow chart disclosed in this application;
[0038] Figure 3 This is a schematic diagram of the structure of a container cluster control device disclosed in this application;
[0039] Figure 4 This is a structural diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] In the prior art, the main factors that affect the running speed of container applications are CPU, memory, hard disk, network and image operating system, among which hard disk speed is one of the main bottlenecks. When the Kubernetes controller manages a large-scale container cluster of more than 1,000 devices, it will generate a large number of IO operations, and will encounter the problem of insufficient running speed due to the limitation of hard disk speed.
[0042] In order to overcome the above technical problems, the present application discloses a container cluster control method, device, equipment and storage medium, which can combine the high-speed reading and writing characteristics of memory to improve the operation speed of container cluster control and management of large-scale container clusters.
[0043] See also Figure 1 As shown, an embodiment of the present invention discloses a container cluster control method, which is applied to a physical machine and includes:
[0044] Step S11: configuring a preset operating system corresponding to the preset system image file in the established system image workspace based on the preset system image file, and searching for an input and output system in the preset operating system after receiving a system startup instruction.
[0045] In this embodiment, it is necessary to establish a preset operating system according to the preset system image file. Specifically, it is necessary to establish a preset operating system first, and the preset operating system established is a memory operating system (RAM OS) customized based on Linux. The Linux kernel file, Linux system file and Linux driver file corresponding to the preset operating system in the preset system image file can be compiled to obtain the compilation result, and the root file system of the Linux customized operating system is established, and then the compilation result is saved to the preset file system to complete the construction of the preset operating system in the mirror workspace. It should be noted that the mirror workspace is established in the local memory of the physical machine, and the local memory is the running memory of the physical machine, not the hard disk memory of the physical machine. After the physical machine is powered on, the processor of the physical machine looks for the BIOS (Basic InputOutput System, basic input and output system) input and output system. In this way, a mirror workspace can be established in the running memory of Wulijie, and then the system processing efficiency can be improved according to the high-speed characteristics of the running memory.
[0046] Step S12: determining a system boot program through the input and output system, so as to load a system kernel of the preset operating system through the system boot program.
[0047] In this embodiment, it is necessary to determine the system boot program through the input and output system, and then load the system kernel of the preset operating system through the system boot program. Specifically, it is necessary to detect system resources through the input and output system, and then determine the first boot device according to the detected system resources, and determine the boot device as the target boot device. In this embodiment, the boot device is set to the hard disk, and then the master boot record MBR (Master Boot Record) of the target boot device is searched, that is, the master boot sector, and the boot program is initialized through the master boot sector to obtain the system boot program, and load the system kernel of the preset operating system through the system boot program.
[0048] Step S13: searching for a target user process through the system kernel to initialize container configuration through the target user process, and loading a preset container cluster controller after the container configuration initialization is completed.
[0049] In this embodiment, it is necessary to search for the target user process init through the system kernel, and then initialize the container configuration through the target user process, and load the preset container cluster controller after the container configuration initialization is completed. Specifically, it is necessary to search for the init process, that is, the target user process, through the system kernel, and then execute the target user process. After execution, the target user process becomes the parent process of the preset operating system, and then read the system software package through the target user process, and decompress the read system software package to the local memory, and then it is necessary to initialize the container configuration through the script file in the system software package. Specifically, it is necessary to determine the script file startup level through the initialization configuration file in the system software package, so as to start all services or scripts of the specified default startup level according to the script file startup level, including the container engine and the network configuration. The container engine service is initialized here through the target user process, and then the preset container cluster controller is loaded after the container configuration initialization is completed.
[0050] Step S14: managing the containerized program in the system image workspace through the target user process, and using the preset container cluster controller to manage the reading and writing of data based on the local memory.
[0051] In this embodiment, it is necessary to manage the containerized program in the system image workspace through the target user process, and it is necessary to use the preset container cluster controller to manage the reading and writing of data based on the local memory. Specifically, it is necessary to monitor the containerized program in the system image workspace through the target user process. After the target user process receives the program start and stop command, it is necessary to determine the target process corresponding to the program start and stop command, and perform the start and stop operations corresponding to the program start and stop command on the target process. It should be noted that storage services are also required. Specifically, in a specific implementation, the local disk can be mounted to the preset operating system through a preset mount command to provide data storage services for the preset operating system through the local disk. In another specific implementation, data storage services can be provided for the preset operating system through a preset network storage driver.
[0052] It can be seen that the method of the present application can configure the preset operating system in the preset system image workspace, and then determine the system boot program through the input and output system found after receiving the system startup instruction, so as to find the target user process according to the system kernel loaded by the system boot program, and then initialize the container configuration through the target user process, and load the preset container cluster controller, and finally manage the containerized program in the system image workspace through the target user process, and use the preset container cluster controller to manage the reading and writing of data based on the local memory. In this way, an image workspace corresponding to the preset operating system can be established in the local memory, and the corresponding container cluster controller can be deployed to combine the container component of the controller with the high-speed characteristics of the memory, and the high-speed read and write characteristics of the memory can be combined to improve the running speed of the container cluster control when managing large-scale container clusters.
[0053] See also Figure 2 As shown, the embodiment of the present invention discloses a specific system loading and starting process, including:
[0054] like Figure 2As shown, when the physical machine is started, the local processor of the physical machine will first search for the BIOS input and output system in the system storage. The input and output system will detect the system resources and then find the first boot device as the target boot device. In this application, the target boot device is set to the hard disk Host Disk, and then the hard disk master boot sector (MBR) will be searched, and then loaded into the local memory and the control will be handed over to the MBR. The master boot sector will initialize the boot program, and the boot program will load the kernel module. In the memory operating system, the boot program mounts the directory to the memory disk and specifies the location of the kernel module on the physical disk. The kernel will search for the target user process, that is, the init program and execute it, as shown in icon number ③. After the target user process is executed, it becomes the parent process of the system. Then the system software package is read through the target system process, as shown in icon number ④, and decompressed into the memory disk RAM Disk, as shown in icon number ⑥, and then initialized according to the script file / etc / inittab in the system software package. The target user process can determine the operating level of the operating system through the script file / etc / inittab in the system software package. The target user process searches for the partition table information from the script file and mounts it accordingly. Then the target user process will start all services or scripts of the default startup level specified in / etc / init.d, including the container engine and network configuration. To initialize the container engine and network configuration, the container engine service is executed in the background and managed by the target user process, as shown in icon numbers ⑩⑪. Then load the preset container cluster controller, that is, the Kubernetes controller component, including Kube-apiserver, kube-controller-manager, kube-scheduler, etcd services, as shown in icon numbers ⑫⑬. In addition, the IO operations such as reading and writing files by each containerized component of the preset container cluster controller are all performed in the memory disk, and the host disk can be mounted to the memory disk operating system in the form of mount to provide persistent data storage for the running container, as shown in icon number ⑭. The container can also store persistent data in the network storage service by loading the network storage driver, as shown in icon number ⑮.
[0055] See also Figure 3 As shown, an embodiment of the present invention discloses a container cluster control device, which is applied to a physical machine and includes:
[0056] The system configuration module 11 is used to configure a preset operating system corresponding to the preset system image file in the established system image workspace based on the preset system image file, and search for an input and output system in the preset operating system after receiving a system startup instruction;
[0057] A kernel loading module 12, used for determining a system boot program through the input and output system, so as to load a system kernel of the preset operating system through the system boot program;
[0058] A controller loading module 13 is used to search for a target user process through the system kernel, to initialize the container configuration through the target user process, and to load a preset container cluster controller after the container configuration initialization is completed;
[0059] The process management module 14 is used to manage the containerized program in the system image workspace through the target user process, and use the preset container cluster controller to manage the reading and writing of data based on the local memory.
[0060] In this embodiment, first, based on the preset system image file, a preset operating system corresponding to the preset system image file is configured in the established system image workspace, and after receiving the system startup instruction, an input and output system is searched in the preset operating system; the system boot program is determined through the input and output system to load the system kernel of the preset operating system through the system boot program; the target user process is searched through the system kernel to initialize the container configuration through the target user process, and the preset container cluster controller is loaded after the container configuration initialization is completed; the containerized program in the system image workspace is managed through the target user process, and the preset container cluster controller is used to manage the reading and writing of data based on the local memory. It can be seen that the method of the present application can configure the preset operating system in the preset system image workspace, and then after receiving the system startup instruction, the system boot program is determined through the input and output system found to search the target user process according to the system kernel loaded by the system boot program, and then the container configuration is initialized through the target user process, and the preset container cluster controller is loaded, and finally the containerized program in the system image workspace is managed through the target user process, and the preset container cluster controller is used to manage the reading and writing of data based on the local memory. In this way, an image workspace corresponding to the preset operating system can be established in the local memory, and the corresponding container cluster controller can be deployed to combine the container components of the controller with the high-speed characteristics of the memory. The high-speed read and write characteristics of the memory can be combined to improve the running speed of the container cluster control when managing large-scale container clusters.
[0061] In some embodiments, the system configuration module 11 may specifically include:
[0062] A file compiling unit, used for establishing an image workspace corresponding to the preset operating system in a local memory, and compiling a kernel file, a system file and a preset driver file corresponding to the preset operating system in a preset system image file to obtain a compilation result;
[0063] The information storage unit is used to save the compilation result to a preset root file system so as to establish the preset operating system in the mirror workspace.
[0064] In some embodiments, the kernel loading module 12 may specifically include:
[0065] A device determination unit, configured to detect system resources through the input / output system to determine a target boot device, and search for a master boot sector of the target boot device;
[0066] The kernel loading unit is used to initialize the boot program through the master boot sector to obtain the system boot program, and load the system kernel of the preset operating system through the system boot program.
[0067] In some embodiments, the controller loading module 13 may specifically include:
[0068] A compressed package decompression unit, configured to search for a target user process through the system kernel, read a system software package through the target user process, and decompress the read system software package into the local memory;
[0069] The controller loading submodule is used to initialize the container configuration through the script file in the system software package, and load the preset container cluster controller after the container configuration initialization is completed.
[0070] In some embodiments, the controller loading submodule may specifically include:
[0071] The initialization unit is used to determine the script file startup level through the initialization configuration file in the system software package, so as to perform container configuration initialization on the script file in the system software package according to the script file startup level.
[0072] In some embodiments, the process management module 14 may specifically include:
[0073] The process management unit is used to monitor the containerized program in the system image workspace through the target user process, and after receiving the program start / stop command, start / stop the target process corresponding to the program start / stop command.
[0074] In some embodiments, the container cluster control device may further include:
[0075] A first storage unit, used to mount a local disk to the preset operating system through a preset mount command, so as to provide data storage services for the preset operating system through the local disk;
[0076] The second storage unit is used to provide data storage services for the preset operating system through a preset network storage driver.
[0077] Furthermore, the present application also discloses an electronic device. Figure 4 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content in the diagram cannot be regarded as any limitation on the scope of use of the present application.
[0078] Figure 4 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the container cluster control method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.
[0079] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.
[0080] In addition, the memory 22 as a carrier for resource storage may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon may include an operating system 221, a computer program 222, etc., and the storage method may be temporary storage or permanent storage.
[0081] The operating system 221 is used to manage and control the hardware devices on the electronic device 20 and the computer program 222, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the container cluster control method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.
[0082] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the container cluster control method disclosed above is implemented. For the specific steps of the method, reference can be made to the corresponding contents disclosed in the above embodiments, and no further description will be given here.
[0083] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0084] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0085] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0086] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0087] The technical solution provided by the present application is introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for general technicians in this field, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A container cluster control method, characterized in that: Applicable to physical machines, including: Based on the preset system image file, a preset operating system corresponding to the preset system image file is configured in the established system image workspace, and after receiving the system startup instruction, an input and output system is searched in the preset operating system; the system image workspace is established in the local memory; Determining a system boot program through the input and output system, so as to load a system kernel of the preset operating system through the system boot program; Searching for a target user process through the system kernel, initializing container configuration through the target user process, and loading a preset container cluster controller after the container configuration initialization is completed; The containerized program in the system image workspace is managed through the target user process, and the preset container cluster controller is used to manage the reading and writing of data based on the local memory.
2. The container cluster control method according to claim 1, characterized in that: The configuring a preset operating system corresponding to the preset system image file in the established system image workspace based on the preset system image file includes: Establishing an image workspace corresponding to the preset operating system in the local memory, and compiling the kernel file, system file and preset driver file corresponding to the preset operating system in the preset system image file to obtain a compilation result; The compilation result is saved to a preset root file system to establish the preset operating system in the mirror workspace.
3. The container cluster control method according to claim 1, characterized in that: The step of determining a system boot program through the input / output system to load a system kernel of the preset operating system through the system boot program includes: Detecting system resources through the input and output system to determine a target boot device, and searching for a master boot sector of the target boot device; The boot program is initialized through the master boot sector to obtain a system boot program, and the system kernel of the preset operating system is loaded through the system boot program.
4. The container cluster control method according to claim 1, characterized in that: The searching for a target user process through the system kernel to initialize container configuration through the target user process, and loading a preset container cluster controller after the container configuration initialization is completed, includes: Searching for a target user process through the system kernel, so as to read a system software package through the target user process, and decompressing the read system software package into the local memory; The container configuration is initialized through the script file in the system software package, and the preset container cluster controller is loaded after the container configuration initialization is completed.
5. The container cluster control method according to claim 4, characterized in that: The initializing the container configuration by using the script file in the system software package includes: The script file startup level is determined by the initialization configuration file in the system software package, so as to perform container configuration initialization on the script file in the system software package according to the script file startup level.
6. The container cluster control method according to claim 1, characterized in that: The managing the containerized program in the system image workspace through the target user process includes: The containerized program in the system image workspace is monitored through the target user process, and after receiving the program start / stop command, the target process corresponding to the program start / stop command is started / stopped.
7. The container cluster control method according to any one of claims 1 to 6, characterized in that: Also includes: Mounting the local disk to the preset operating system through a preset mount command, so as to provide data storage services for the preset operating system through the local disk; Or, provide data storage services for the preset operating system through a preset network storage driver.
8. A container cluster control device, characterized in that: Applicable to physical machines, including: A system configuration module, configured to configure a preset operating system corresponding to the preset system image file in the established system image workspace based on the preset system image file, and search for an input and output system in the preset operating system after receiving a system startup instruction; A kernel loading module, used for determining a system boot program through the input and output system, so as to load a system kernel of the preset operating system through the system boot program; A controller loading module, used to search for a target user process through the system kernel, to initialize the container configuration through the target user process, and to load a preset container cluster controller after the container configuration initialization is completed; A process management module is used to manage the containerized program in the system image workspace through the target user process, and to use the preset container cluster controller to manage the reading and writing of data based on the local memory.
9. An electronic device, characterized in that: include: Memory, used to store computer programs; A processor, configured to execute the computer program to implement the container cluster control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Used to store a computer program, wherein when the computer program is executed by a processor, the container cluster control method according to any one of claims 1 to 7 is implemented.