Edge node expansion method, device, edge node and program product

By dynamically expanding the disk resources of edge nodes and using the expansion method of containerized CDN cache services, the problem of low resource utilization of CDN edge nodes during the expansion process is solved, achieving higher comprehensive resource utilization and improving business capabilities.

CN113515237BActive Publication Date: 2024-09-20CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110834899.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-22
Publication Date
2024-09-20
Estimated Expiration
2041-07-22

AI Technical Summary

Technical Problem

CDN edge nodes have low comprehensive resource utilization during the expansion process and cannot effectively cope with disk read and write bottlenecks in high concurrency scenarios. As a result, edge nodes with insufficient resources cannot deploy more computing business applications when business is busy.

Method used

By obtaining the real-time disk read and write information of the containers in the main container pool, when the expansion triggering conditions are met, the target container is determined from the backup container pool, added to the main container pool, and new disk space is mounted to dynamically expand disk resources. Control the consumption of non-bottleneck resources and improve business capabilities.

Benefits of technology

It effectively improves the comprehensive resource utilization of edge nodes, enables edge nodes to deploy more computing business applications when business is busy, improves business capabilities, and solves disk read and write bottlenecks in high concurrency scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113515237B
    Figure CN113515237B
Patent Text Reader

Abstract

The present invention discloses an edge node expansion method, device, edge node and program product, and relates to the field of computer technology. The edge node includes a main container pool and a backup container pool. An edge node expansion method includes: obtaining disk real-time read and write information of at least one container in the main container pool; when at least one disk real-time read and write information meets the expansion trigger condition, determining a target container from the backup container pool; adding the target container to the main container pool, and mounting a first data volume to the target container; wherein the first data volume corresponds to a first new disk space, and the first new disk space is a disk space newly applied for from the edge node in response to at least one disk real-time read and write information meeting the expansion trigger instruction. The present invention improves the comprehensive resource utilization rate of the edge node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an edge node expansion method, device, edge node and program product. Background Art

[0002] Among the related technologies, the combination of edge computing and CDN (Content Distribute Network) is an important application scenario: by evolving CDN edge nodes into edge cloud platforms, existing CDNs are virtualized and deployed on the platform as applications, making the IT infrastructure of existing edge nodes open and reusable, and deploying third-party capability services close to the user side.

[0003] However, CDN edge nodes have a technical problem of low comprehensive resource utilization during the expansion process. Summary of the invention

[0004] The main purpose of the present invention is to provide an edge node expansion method, device, edge node and program product, aiming to solve the technical problem of low comprehensive resource utilization rate of CDN edge nodes in the expansion process in the related art.

[0005] To achieve the above object, the present invention provides a method for expanding the capacity of an edge node, wherein the edge node includes a main container pool and a backup container pool, and the method includes:

[0006] Obtaining disk real-time read and write information of at least one container in the main container pool;

[0007] When at least one of the disk real-time read / write information meets the expansion trigger condition, determining a target container from the backup container pool;

[0008] The target container is added to the main container pool, and the first data volume is mounted on the target container; wherein the first data volume corresponds to a first new disk space, and the first new disk space is a disk space newly applied for from the edge node in response to at least one of the disk real-time read and write information satisfying the expansion trigger instruction.

[0009] In one embodiment, after adding the target container to the primary container pool and mounting the first data volume to the target container, the method further includes:

[0010] The second data volume corresponding to the source container is unbound and mounted on the target container; wherein the source container is a container whose disk real-time read and write information meets the expansion trigger condition.

[0011] In one embodiment, after unbinding the second data volume corresponding to the source container and mounting it to the target container, the method further includes:

[0012] Generate a third data volume; the third data volume corresponds to a second new disk space, and the second new disk space is a disk space newly applied for from the edge node;

[0013] The third data volume is mounted on the source container.

[0014] In one embodiment, the maximum number of spare containers in the spare container pool is less than or equal to a first preset threshold;

[0015] After adding the target container to the primary container pool and mounting the first data volume to the target container, the method further includes:

[0016] Determining whether the real-time quantity of the spare containers is less than the first preset threshold;

[0017] If the real-time quantity is less than the first preset threshold, at least one new standby container is added to the standby container pool.

[0018] In one embodiment, after obtaining the real-time disk read and write information of at least one container in the main container pool, the method further includes:

[0019] When at least one of the disk real-time read / write information meets the shrinking trigger condition, a container corresponding to the disk real-time read / write information meeting the shrinking trigger condition is determined as a container to be shrunk;

[0020] Unbinding the fourth data volume mounted on the container to be shrunk;

[0021] The container to be shrunk is added as a spare container to the spare container pool.

[0022] In one embodiment, after adding the container to be shrunk to the spare container pool, the method further includes:

[0023] Determining whether the real-time quantity of the spare containers is greater than the first preset threshold;

[0024] If the real-time number is greater than the first preset threshold, at least one standby container is deleted from the standby container pool, and the process returns to determine whether the real-time number of the standby containers is greater than the first preset threshold until the real-time number of the standby containers is less than or equal to the first preset threshold.

[0025] In one embodiment, the maximum number of containers in the main container pool is less than or equal to a second preset threshold.

[0026] In a second aspect, the present invention further provides a device for expanding the capacity of an edge node, comprising:

[0027] An information acquisition module, used to acquire real-time disk read and write information of at least one container in the main container pool;

[0028] A target container determination module, configured to determine a target container from the backup container pool when at least one of the disk real-time read and write information meets a capacity expansion trigger condition;

[0029] A data volume mounting module is used to add the target container to the main container pool and mount the first data volume to the target container; wherein the first data volume corresponds to a first new disk space, and the first new disk space is a disk space newly applied from the edge node in response to at least one of the disk real-time read and write information satisfying the expansion trigger instruction.

[0030] In a third aspect, the present invention further provides an edge node, including:

[0031] A primary container pool and a backup container pool;

[0032] Disk resource pools; and

[0033] Capacity expansion device for edge nodes.

[0034] In a fourth aspect, the present invention further provides a computer program product, including executable program code, and the above method is implemented when a processor executes the program code.

[0035] An embodiment of the present invention proposes a method for expanding edge nodes, which obtains real-time disk read and write information of at least one container in the main container pool; when at least one of the real-time disk read and write information meets the expansion trigger condition, a target container is determined from the backup container pool and added to the main container pool, and a first data volume is mounted on the target container. Compared with the general horizontal expansion and contraction method, the present invention only expands bottleneck resources, i.e., disk space, according to the business load, effectively controls the consumption of non-bottleneck resources when the CDN business is busy, so that edge nodes with insufficient resources during busy business hours can deploy more computing business applications, thereby improving the business capabilities of the entire edge node. This improves the comprehensive resource utilization rate of the edge node. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of a flow chart of a first embodiment of a method for expanding the capacity of an edge node of the present invention;

[0037] Figure 2 A schematic diagram of a flow chart of a second embodiment of a method for expanding the capacity of an edge node of the present invention;

[0038] Figure 3 A schematic diagram of a flow chart of a third embodiment of a method for expanding the capacity of an edge node of the present invention;

[0039] Figure 4 A schematic diagram of a flow chart of a fifth embodiment of a method for expanding capacity of an edge node of the present invention;

[0040] Figure 5 It is a functional module schematic diagram of the capacity expansion device of the edge node of the present invention;

[0041] Figure 6 Schematic diagram of an edge node of the present invention.

[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0044] In the related technology, CDN cache service is an important part of the operation mode of CDN edge nodes, which is used to accelerate the delivery and reduce the source loading of static content, such as pictures, files and videos. Deploying CDN cache service on edge nodes has the following advantages: CDN cache reduces the distance of data transmission by deploying content close to users, thereby reducing network latency; by offloading content distribution to the edge, it can reduce network traffic and content loading of the source server; it reduces the cost and resource requirements of central service applications, and will not impact the source server even when there are a large number of user requests.

[0045] The inventor of the present application has found through practice that in the overall business of CDN, the main functions of the corresponding CDN cache service include: pulling content from the source station and saving it locally according to business needs; returning the mapped content to the user according to the user's request; and refreshing the local cache content in real time according to the policy. Therefore, in the CDN edge node, there are a large number of file read and write operations in the operation of the cache service, but the business logic is simple and does not involve a large number of computing operations. Moreover, the service needs to return the content that exists locally in real time to the user to play the role of local cache. The actual business logic of the service is stateful. The horizontal expansion of the business statelessness cannot immediately play a role in the business load, and even increases the business load of the source station due to the generation of a large number of back-to-source operations. Specifically, the cache service of the CDN on the edge node is expanded at the instance level by horizontal expansion. The consumption of the infrastructure by each expanded instance is the same, that is, the CPU and other computing resources are not bottlenecks before the expansion. The resources will also be applied for as the instance expands. The overall utilization rate of the corresponding non-bottleneck resources is not high, which is not conducive to the deployment of computing third-party applications after the CDN edge node is clouded.

[0046] To this end, the present invention provides an edge node expansion method, which solves the disk read and write bottleneck of CDN services in high-concurrency scenarios by dynamically mounting disk space and expanding resources and capabilities of containerized CDN cache services, effectively controls the consumption of non-bottleneck resources during busy CDN business hours, enables edge nodes with limited resources during busy business hours to deploy more computing business applications, and improves the business capabilities of the entire edge node. This in turn improves the comprehensive resource utilization rate of the edge node.

[0047] The inventive concept of the present application is further described below in conjunction with some specific embodiments.

[0048] See also Figure 1 , Figure 1 The figure is a flow chart of a first embodiment of a method for expanding the capacity of an edge node according to the present invention.

[0049] In this embodiment, a method for expanding the capacity of an edge node includes:

[0050] Step S101: Obtain disk real-time read and write information of at least one container in the main container pool.

[0051] The real-time disk read and write information is the disk IO access information.

[0052] It is understandable that CDN services have certain business characteristics compared to most computing services in terms of resource consumption. Compared with computing power such as CPU, CDN has higher requirements for storage and network resources, especially the read and write capabilities of storage I / O. CDN capacity bottlenecks are often caused by disk I / O access capabilities reaching the relevant maximum capacity. In the process of CDN containerization transformation, elastic scalability also needs to consider its business characteristics. The common cloud computing expansion and contraction mechanism of monitoring CPU / memory / network resources and performing horizontal expansion after reaching the predetermined threshold cannot fully meet the characteristics of CDN. A large number of CPU resources allocated for use after horizontal expansion are actually not fully utilized, and the effect of releasing the CPU capacity of CDN nodes to third-party services will also be discounted to a certain extent.

[0053] In this step, all containers in the main container can report the IO access information of the local disk to the control device or scheduling device of the edge node in real time during operation.

[0054] Step S102: When the real-time read / write information of at least one disk meets the expansion triggering condition, a target container is determined from the backup container pool.

[0055] When the control device or the scheduling device detects that the disk real-time read / write information of at least one container meets the expansion trigger condition, that is, when the disk I / O access capability of at least one container reaches the expansion threshold, the control device or the scheduling device is triggered to determine the target container from the backup container pool. The backup container pool may have a first preset threshold number of backup containers, and each backup container may be added from the backup container pool to the main container pool in real time and used as a container that can run services.

[0056] The target container may be determined randomly or sequentially according to data such as the time of adding the target container into the reserve container pool. This embodiment does not limit this.

[0057] It is worth mentioning that the number of target containers can be consistent with the number of containers whose disk real-time read / write information meets the expansion trigger condition, that is, when the disk real-time read / write information of a container meets the expansion trigger condition, a new target container is added, which ensures the rapid processing of a large number of expansion requests during the CDN business peak, and can better adapt to the CDN business evolution scenario. Until the number of containers in the main container pool reaches the second preset threshold, that is, the upper limit of the number of containers.

[0058] Step S103: add the target container to the main container pool, and mount the first data volume to the target container; wherein the first data volume corresponds to a first new disk space, and the first new disk space is a disk space newly applied for from the edge node in response to at least one disk real-time read and write information satisfying the expansion trigger instruction.

[0059] In this embodiment, the newly added target container adds a first new disk space in the edge node through the first data volume, and the first data volume stores the first new disk space location path information and space size information, so that when adding a new container, the disk space is expanded.

[0060] Compared with the existing horizontal expansion of CPU / memory / network resources, this embodiment solves the disk read and write bottleneck of CDN services in high-concurrency scenarios by expanding the resources and capabilities of containerized CDN cache services, effectively controlling the consumption of non-bottleneck resources during busy CDN business hours, allowing edge nodes with limited resources during busy business hours to deploy more computing business applications, thereby improving the business capabilities of the entire edge node. This in turn improves the comprehensive resource utilization rate of the edge node.

[0061] Based on the first embodiment of the method for expanding the capacity of an edge node of the present invention, a second embodiment of the method for expanding the capacity of an edge node of the present invention is proposed. Figure 2 , Figure 2 It is a flow chart of the second embodiment of the method for expanding the capacity of edge nodes of the present invention.

[0062] In this embodiment, the method includes:

[0063] Step S201: Obtain disk real-time read and write information of at least one container in the main container pool.

[0064] Step S202: When the real-time read / write information of at least one disk meets the expansion triggering condition, a target container is determined from the spare container pool.

[0065] Step S202: add the target container to the main container pool, and mount the first data volume to the target container; wherein the first data volume corresponds to a first new disk space, and the first new disk space is a disk space newly applied for from the edge node in response to at least one disk real-time read and write information satisfying the expansion trigger instruction.

[0066] Steps S201 to S203 may refer to the above embodiment and will not be described in detail here.

[0067] Step S204: unbind the second data volume corresponding to the source container and mount it to the target container; wherein the source container is a container whose disk real-time read and write information meets the expansion trigger condition.

[0068] Among them, the container natively supports the unbinding and mounting of data volumes. A data volume is a specially designated directory that uses the container's UFS file system to provide the container with some stable features or data sharing. Using data volume-related capabilities, data sharing and migration between multiple containers can be achieved. Applying the unbinding and mounting of data volumes to the scaling of edge nodes can support the rapid mounting of data from the source container with running business load to the scaling threshold to the new target container, ensuring the continuity of business status after scaling and lossless migration of data during business switching.

[0069] It is understandable that CDN services are stateful. Simple resource expansion during the expansion process may result in the inability to meet sudden business demands due to the length of time it takes to recover after the business has expanded.

[0070] In this embodiment, after the IO access capability of the disk of the source container reaches the expansion threshold, the corresponding second data volume is dynamically mounted on the CDN container to achieve rapid migration of the CDN cache service before expansion to the target container after expansion, and the CDN cache service status is losslessly switched between containers as the capacity is expanded. That is, the availability of the CDN cache service is guaranteed during the expansion and contraction process, and the service recovery time is controllable.

[0071] Based on the above-mentioned embodiment of the method for expanding the capacity of an edge node of the present invention, a third embodiment of the method for expanding the capacity of an edge node of the present invention is proposed. Figure 3 , Figure 3It is a flow chart of the third embodiment of the method for expanding the capacity of an edge node of the present invention.

[0072] In this embodiment, the method includes:

[0073] Step S301: Obtain disk real-time read and write information of at least one container in the main container pool.

[0074] Step S302: When the real-time read / write information of at least one disk meets the expansion triggering condition, a target container is determined from the spare container pool.

[0075] Step S303: add the target container to the main container pool, and mount the first data volume to the target container; wherein the first data volume corresponds to a first new disk space, and the first new disk space is a disk space newly applied for from the edge node in response to at least one disk real-time read and write information satisfying the expansion trigger instruction.

[0076] Steps S301 to S303 may refer to the above embodiment and will not be described in detail here.

[0077] Step S304: Generate a third data volume; the third data volume corresponds to a second new disk space, and the second new disk space is a disk space newly applied for from the edge node;

[0078] Step S305: unbind the second data volume corresponding to the source container, and synchronously mount the third data volume and the second data volume to the source container and to the target container; wherein the source container is a container whose disk real-time read and write information meets the expansion trigger condition.

[0079] In this embodiment, in addition to mounting the second data volume of the source container, a new data volume, namely the third data volume, is expanded to the target container so that the target container has a larger disk space, thereby improving the disk IO access capability of the container after business migration.

[0080] Based on the above-mentioned embodiments of the method for expanding the capacity of an edge node of the present invention, a fourth embodiment of the method for expanding the capacity of an edge node of the present invention is proposed.

[0081] The maximum number of spare containers in the spare container pool is less than or equal to the first preset threshold, and the maximum number of containers in the main container pool is less than or equal to the second preset threshold, that is, the spare container pool and the main container pool are both dynamically rated container pools.

[0082] In this embodiment, after step S103, the method further includes:

[0083] Step S104, determining whether the real-time number of spare containers is less than a first preset threshold;

[0084] Step S105: If the real-time quantity is less than the first preset threshold, at least one new standby container is added to the standby container pool.

[0085] Specifically, after the target container pool is determined from the backup container pool and added to the main container pool, the number of containers in the backup container pool decreases. In order to ensure that the backup container pool has sufficient and real-time available container pools, at least one new backup container needs to be added to the backup container pool. That is, when it is detected that the backup service resource pool has insufficient containers and the number of containers has not reached the upper limit, a new service container application is triggered and included in the management of the backup container resource pool.

[0086] Therefore, in this embodiment, the infrastructure resources of the CDN are transformed into a dynamically rated primary and secondary container resource pool to achieve overall resource usage control of the CDN container. Different from the general horizontal expansion and contraction method, the primary and secondary container resource pools of the rated CDN expansion are planned according to the business, and the values ​​of the first preset threshold and the second preset threshold ensure that computing resources such as CPU will not be wasted due to unlimited horizontal expansion.

[0087] Based on the above-mentioned embodiments of the method for expanding the capacity of edge nodes of the present invention, a fifth embodiment of the method for expanding the capacity of edge nodes of the present invention is proposed. Figure 4 , Figure 4 It is a flowchart of a fifth embodiment of the method for expanding the capacity of an edge node of the present invention.

[0088] In this embodiment, the method includes:

[0089] Step S401: Obtain disk real-time read and write information of at least one container in the main container pool.

[0090] Step S402: When at least one disk real-time read / write information satisfies a shrinking trigger condition, a container corresponding to the disk real-time read / write information satisfying the shrinking trigger condition is determined as a container to be shrunk.

[0091] When the control device or the scheduling device detects that the disk real-time read and write information of at least one container meets the shrinking trigger condition, that is, when the disk I / O access capability of at least one container reaches the shrinking threshold, the control device or the scheduling device is triggered to determine it as a container to be shrunk.

[0092] Step S403: unbind the fourth data volume mounted on the container to be shrunk.

[0093] Step S404: Add the container to be shrunk as a spare container to the spare container pool.

[0094] After determining the container to be shrunk, the control device or the scheduling device freezes the service and uninstalls the data volume. That is, the fourth data volume is unbound, and then the container to be shrunk is allocated to the backup resource pool for management. At this time, since the fourth data volume is unbound, the disk space corresponding to the fourth data volume is also released, which improves the comprehensive resource utilization rate of the edge node.

[0095] Based on the above-mentioned embodiments of the method for expanding the capacity of an edge node of the present invention, a sixth embodiment of the method for expanding the capacity of an edge node of the present invention is proposed.

[0096] In this embodiment, after step S404, the method further includes:

[0097] S405: Determine whether the real-time number of spare containers is greater than a first preset threshold.

[0098] S406: If the real-time number is greater than the first preset threshold, at least one standby container is deleted from the standby container pool, and the process returns to step S405 until the real-time number of standby containers is less than or equal to the first preset threshold.

[0099] In this embodiment, after the main container pool is reduced in capacity, the number of backup containers in the backup container pool increases, which may cause the number of backup containers in the backup container pool to exceed the upper limit, that is, the first preset threshold. Therefore, redundant backup containers can be deleted from the backup resource pool.

[0100] The redundant standby containers may be deleted randomly or deleted sequentially according to the time the standby containers have been in the standby container pool.

[0101] In this embodiment, the infrastructure resources of the CDN are transformed into a dynamically rated primary and secondary container resource pool to achieve overall resource usage control of the CDN container. Different from the common horizontal expansion and contraction method, the primary and secondary container resource pools for rated CDN expansion, wherein the values ​​of the first preset threshold and the second preset threshold are planned according to the business, and the values ​​of the first preset threshold and the second preset threshold ensure that computing resources such as CPU will not be wasted due to unlimited horizontal expansion.

[0102] In addition, see Figure 5 The present invention also provides a device for expanding the capacity of an edge node, comprising:

[0103] An information acquisition module 10 is used to acquire real-time disk read and write information of at least one container in the main container pool;

[0104] A target container determination module 20, configured to determine a target container from a backup container pool when at least one disk's real-time read / write information satisfies a capacity expansion trigger condition;

[0105] The data volume mounting module 30 is used to add the target container to the main container pool and mount the first data volume to the target container; wherein the first data volume corresponds to a first new disk space, and the first new disk space is a disk space newly applied from the edge node in response to at least one disk real-time read and write information satisfying the expansion trigger instruction.

[0106] Other embodiments and specific implementations of the capacity expansion device for edge nodes of the present invention may refer to the above method embodiments, which will not be described in detail here.

[0107] In addition, see Figure 6 The present invention also provides an edge node, including a main container pool and a backup container pool; a disk resource pool; and an edge node expansion device.

[0108] The composition of the specific functional modules of the expansion device of the edge node refers to the above embodiments. Since the edge node adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.

[0109] The main container pool includes at least one container, and the maximum number of containers is less than or equal to a second preset threshold. The backup container pool includes at least one backup container, and the maximum number of backup containers is less than or equal to a first preset threshold. The containers in the main container pool can be added to the backup container pool for management, and the backup containers in the backup container pool can be added to the main container pool for management, that is, the containers in the main container pool and the backup containers in the backup container pool can be switched between the main and backup modes.

[0110] Containers in the main container pool can use corresponding disk space in the disk space through mounted data volumes.

[0111] In addition, the present invention also provides a computer program product, including an executable program code, which implements the steps of the method for expanding the capacity of the edge node of the above method embodiment when executed by a processor. Therefore, it will not be repeated here. In addition, the description of the beneficial effects of adopting the same method will not be repeated. For technical details not disclosed in the computer program product embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed to be executed on one computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed at multiple locations and interconnected by a communication network.

[0112] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0113] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed 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 may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the accompanying drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines. A person of ordinary skill in the art may understand and implement it without paying any creative effort.

[0114] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present invention, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform the methods of various embodiments of the present invention.

[0115] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for expanding the capacity of an edge node, characterized in that: The edge node includes a main container pool and a backup container pool, and the method includes: Obtaining disk real-time read and write information of at least one container in the main container pool; When at least one of the disk real-time read / write information meets the expansion trigger condition, a target container is determined from the backup container pool; the backup container pool includes at least one backup container, the maximum number of the backup containers is less than or equal to a first preset threshold, and the containers in the main container pool and the backup containers in the backup container pool can be switched between the main and backup modes; The target container is added to the main container pool, and the first data volume is mounted on the target container; wherein the first data volume corresponds to a first new disk space, and the first new disk space is a disk space newly applied for from the edge node in response to at least one of the disk real-time read and write information satisfying the expansion trigger instruction.

2. The method for expanding edge nodes according to claim 1, characterized in that: After adding the target container to the primary container pool and mounting the first data volume to the target container, the method further includes: The second data volume corresponding to the source container is unbound and mounted on the target container; wherein the source container is a container whose disk real-time read and write information meets the expansion trigger condition.

3. The method for expanding edge nodes according to claim 2, characterized in that: After unbinding the second data volume corresponding to the source container and mounting it to the target container, the method further includes: Generate a third data volume; the third data volume corresponds to a second new disk space, and the second new disk space is a disk space newly applied for from the edge node; The third data volume is mounted on the source container.

4. The method for expanding edge nodes according to claim 1, characterized in that: The maximum number of spare containers in the spare container pool is less than or equal to a first preset threshold; After adding the target container to the primary container pool and mounting the first data volume to the target container, the method further includes: Determining whether the real-time quantity of the spare containers is less than the first preset threshold; If the real-time quantity is less than the first preset threshold, at least one new standby container is added to the standby container pool.

5. The method for expanding the capacity of an edge node according to any one of claims 1 to 4, characterized in that: After obtaining the real-time disk read and write information of at least one container in the main container pool, the method further includes: When at least one of the disk real-time read / write information meets the shrinking trigger condition, a container corresponding to the disk real-time read / write information meeting the shrinking trigger condition is determined as a container to be shrunk; Unbinding the fourth data volume mounted on the container to be shrunk; The container to be shrunk is added as a spare container to the spare container pool.

6. The method for expanding edge nodes according to claim 5, characterized in that: After adding the container to be shrunk to the spare container pool, the method further includes: Determining whether the real-time quantity of the spare containers is greater than the first preset threshold; If the real-time number is greater than the first preset threshold, at least one standby container is deleted from the standby container pool, and the process returns to determine whether the real-time number of the standby containers is greater than the first preset threshold until the real-time number of the standby containers is less than or equal to the first preset threshold.

7. The method for expanding edge nodes according to claim 5, characterized in that: The maximum number of containers in the main container pool is less than or equal to a second preset threshold.

8. A device for expanding the capacity of an edge node, characterized in that: include: An information acquisition module, used to acquire real-time disk read and write information of at least one container in the main container pool; a target container determination module, configured to determine a target container from a backup container pool when at least one of the disk real-time read / write information meets a capacity expansion trigger condition; the backup container pool includes at least one backup container, the maximum number of the backup containers is less than or equal to a first preset threshold, and the containers in the main container pool and the backup containers in the backup container pool can be switched between the main and backup containers; A data volume mounting module is used to add the target container to the main container pool and mount the first data volume to the target container; wherein the first data volume corresponds to a first new disk space, and the first new disk space is a disk space newly applied from the edge node in response to at least one of the disk real-time read and write information satisfying the expansion trigger instruction.

9. An edge node, characterized in that: include: A main container pool and a backup container pool; the backup container pool includes at least one backup container, the maximum number of the backup containers is less than or equal to a first preset threshold, and the containers in the main container pool and the backup containers in the backup container pool can be switched between the main and backup modes; Disk resource pool; as well as The capacity expansion device for an edge node as described in claim 8.

10. A computer program product, characterized in that The method comprises executable program codes, and when a processor executes the program codes, the method according to any one of claims 1 to 7 is implemented.