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

文档序号:115242 发布日期:2021-10-19 浏览:14次 中文

阅读说明:本技术 边缘节点的扩容方法、装置、边缘节点及程序产品 (Edge node capacity expansion method and device, edge node and program product ) 是由 王犇 徐佳棋 廖德甫 于 2021-07-22 设计创作,主要内容包括:本发明公开了一种边缘节点的扩容方法、装置、边缘节点及程序产品,涉及计算机技术领域。边缘节点包括主容器池和备用容器池,一种边缘节点的扩容方法包括:获取所述主容器池中至少一个容器的磁盘实时读写信息;当至少一个所述磁盘实时读写信息满足扩容触发条件时,从所述备用容器池中确定出目标容器;将所述目标容器添加至所述主容器池中,并将第一数据卷挂载至所述目标容器上;其中,所述第一数据卷对应有第一新磁盘空间,所述第一新磁盘空间为响应于至少一个所述磁盘实时读写信息满足扩容触发指令,从所述边缘节点中新申请的磁盘空间。本发明提高了边缘节点的资源综合利用率。(The invention discloses a method and a device for expanding capacity of an edge node, the edge node and a program product, and relates to the technical field of computers. The edge node comprises a main container pool and a standby container pool, and the capacity expansion method of the edge node comprises the following steps: acquiring real-time read-write information of a magnetic disk of at least one container in the main container pool; when the real-time read-write information of at least one disk meets the capacity expansion triggering condition, determining a target container from the standby container pool; adding the target container into the main container pool, and mounting a first data volume onto the target container; 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-write information meeting a capacity expansion triggering instruction. The invention improves the comprehensive utilization rate of resources of the edge nodes.)

1. A capacity expansion method for an edge node, wherein the edge node comprises a main container pool and a standby container pool, and the method comprises the following steps:

acquiring real-time read-write information of a magnetic disk of at least one container in the main container pool;

when the real-time read-write information of at least one disk meets the capacity expansion triggering condition, determining a target container from the standby container pool;

adding the target container into the main container pool, and mounting a first data volume onto the target container; 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-write information meeting a capacity expansion triggering instruction.

2. The method for capacity expansion of an edge node according to claim 1, wherein after the adding the target container to the primary container pool and mounting the first data volume to the target container, the method further comprises:

unbinding a second data volume corresponding to the source container, and mounting the second data volume to the target container; and the source container is a container of which the real-time read-write information of the disk meets the capacity expansion triggering condition.

3. A method for expanding an edge node according to claim 2, wherein after the second data volume corresponding to the source container is unbound and mounted onto the target container, the method further comprises:

generating 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 from the edge node;

and mounting the third data volume on the source container.

4. An edge node capacity expansion method according to claim 1, wherein the maximum number of the standby containers in the standby container pool is less than or equal to a first preset threshold;

after the adding the target container to the primary container pool and mounting the first data volume onto the target container, the method further comprises:

judging whether the real-time quantity of the standby containers is smaller than the first preset threshold value or not;

and if the real-time quantity is smaller than the first preset threshold value, adding at least one new spare container into the spare container pool.

5. The capacity expansion method of the edge node according to any one of claims 1 to 4, wherein after obtaining the real-time read-write information of the disk of the at least one container in the main container pool, the method further includes:

when at least one piece of real-time read-write information of the disk meets the capacity reduction triggering condition, determining a container corresponding to the real-time read-write information of the disk meeting the capacity reduction triggering condition as a container to be subjected to capacity reduction;

unbinding the fourth data volume mounted on the container to be contracted;

adding the container to be contracted as a spare container to the spare container pool.

6. The method for capacity expansion of an edge node according to claim 5, wherein after the container to be capacity-expanded is added to the spare container pool, the method further comprises:

judging whether the real-time quantity of the standby containers is greater than the first preset threshold value or not;

and if the real-time number is larger than the first preset threshold value, deleting at least one spare container from the spare container pool, and returning to execute judgment on whether the real-time number of the spare containers is larger than the first preset threshold value or not until the real-time number of the spare containers is smaller than or equal to the first preset threshold value.

7. An edge node expansion method according to claim 5, wherein the maximum number of containers in the main container pool is less than or equal to a second preset threshold.

8. An edge node capacity expansion device, comprising:

the information acquisition module is used for acquiring real-time read-write information of a magnetic disk of at least one container in the main container pool;

the target container determining module is used for determining a target container from the standby container pool when the real-time read-write information of at least one disk meets the capacity expansion triggering condition;

the data volume mounting module is used for adding the target container to the main container pool and mounting a first data volume to the target container; 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-write information meeting a capacity expansion triggering instruction.

9. An edge node, comprising:

a main container pool and a standby container pool;

a disk resource pool; and

the capacity expansion device of an edge node according to claim 8.

10. A computer program product comprising program code which is executable by a processor to implement a method as claimed in any one of claims 1 to 7 when the program code is run.

Technical Field

The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for expanding a capacity of an edge node, and a program product.

Background

In the related art, the combination of edge computing and a CDN (Content distribution Network) is an important application scenario: the CDN edge nodes are evolved into an edge cloud platform, the existing CDN is deployed on the platform as an application after virtualization, IT infrastructures of the existing edge nodes are opened and multiplexed, and three-party capacity service is deployed on the side close to a user.

However, the CDN edge node has a technical problem of a low comprehensive resource utilization rate in the capacity expansion process.

Disclosure of Invention

The invention mainly aims to provide a capacity expansion method and device for an edge node, the edge node and a program product, and aims to solve the technical problem that the comprehensive utilization rate of resources is low in the capacity expansion process of a CDN edge node in the related technology.

In order to achieve the above object, the present invention provides a capacity expansion method for an edge node, where the edge node includes a main container pool and a standby container pool, and the method includes:

acquiring real-time read-write information of a magnetic disk of at least one container in the main container pool;

when the real-time read-write information of at least one disk meets the capacity expansion triggering condition, determining a target container from the standby container pool;

adding the target container into the main container pool, and mounting a first data volume onto the target container; 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-write information meeting a capacity expansion triggering instruction.

In an embodiment, after the adding the target container to the master container pool and mounting the first data volume to the target container, the method further comprises:

unbinding a second data volume corresponding to the source container, and mounting the second data volume to the target container; the source container is a container with the real-time read-write information of the magnetic disk meeting the capacity expansion triggering condition.

In an embodiment, after the second data volume corresponding to the source container is unbound and mounted onto the target container, the method further includes:

generating 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 from the edge node;

and mounting the third data volume on the source container.

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

after the adding the target container to the primary container pool and mounting the first data volume onto the target container, the method further comprises:

judging whether the real-time quantity of the standby containers is smaller than the first preset threshold value or not;

and if the real-time quantity is smaller than the first preset threshold value, adding at least one new spare container into the spare container pool.

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

when at least one piece of real-time read-write information of the disk meets the capacity reduction triggering condition, determining a container corresponding to the real-time read-write information of the disk meeting the capacity reduction triggering condition as a container to be subjected to capacity reduction;

unbinding the fourth data volume mounted on the container to be contracted;

adding the container to be contracted as a spare container to the spare container pool.

In an embodiment, after the adding the container to be condensed to the spare container pool, the method further comprises:

judging whether the real-time quantity of the standby containers is greater than the first preset threshold value or not;

and if the real-time number is larger than the first preset threshold value, deleting at least one spare container from the spare container pool, and returning to execute judgment on whether the real-time number of the spare containers is larger than the first preset threshold value or not until the real-time number of the spare containers is smaller than or equal to the first preset threshold value.

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

In a second aspect, the present invention further provides a capacity expansion device for an edge node, including:

the information acquisition module is used for acquiring real-time read-write information of a magnetic disk of at least one container in the main container pool;

the target container determining module is used for determining a target container from the standby container pool when the real-time read-write information of at least one disk meets the capacity expansion triggering condition;

the data volume mounting module is used for adding the target container to the main container pool and mounting a first data volume to the target container; 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-write information meeting a capacity expansion triggering instruction.

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

a main container pool and a standby container pool;

a disk resource pool; and

and the capacity expansion device of the edge node.

In a fourth aspect, the invention also provides a computer program product comprising executable program code, which when executed by a processor implements a method as described above.

In the capacity expansion method of the edge node provided by the embodiment of the invention, the real-time read-write information of the disk of at least one container in the main container pool is acquired; and when the real-time read-write information of at least one disk meets the capacity expansion triggering condition, determining that a target container is added into the main container pool from the standby container pool, and mounting a first data volume onto the target container. Compared with a universal transverse capacity expansion and contraction method, the method disclosed by the invention has the advantages that bottleneck resources, namely disk space expansion is carried out only according to the service load, the consumption of non-bottleneck resources when the CDN service is busy is effectively controlled, so that edge nodes with abundant resources can deploy more computing service applications when the CDN service is busy, and the service capability of the whole edge node is improved. And further the comprehensive utilization rate of the resources of the edge node is improved.

Drawings

Fig. 1 is a schematic flowchart of a capacity expansion method for an edge node according to a first embodiment of the present invention;

FIG. 2 is a flowchart illustrating a capacity expansion method for an edge node according to a second embodiment of the present invention;

FIG. 3 is a flowchart illustrating a capacity expansion method for an edge node according to a third embodiment of the present invention;

fig. 4 is a flowchart illustrating a fifth embodiment of a capacity expansion method for an edge node according to the present invention;

FIG. 5 is a functional block diagram of a capacity expansion device of an edge node according to the present invention;

FIG. 6 is a schematic diagram of an edge node according to the present invention.

The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.

Detailed Description

It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

In the related art, the CDN cache service is an important component of an operation mode of a CDN edge node, and is used to accelerate delivery and reduce source loading of static content, such as pictures, files, videos, and the like. The CDN cache service is deployed on the edge node, and has the following advantages: the CDN cache reduces the distance of data transmission by deploying content close to users, thereby reducing network delay; by offloading content distribution to the edge, network traffic and content loading of source servers can be reduced; the cost and resource requirements of the central service application are reduced, and even if a large number of user requests exist, the source station is not impacted.

The inventor of the present application finds, through practice, that in the overall service of the CDN, the main functions corresponding to the CDN cache service include: pulling content from a source station according to the service requirement and storing the content to the local; returning the mapped content to the user according to the user request; and refreshing local cache contents in real time according to the strategy. Therefore, in the CDN edge node, a large number of file read-write operations exist in the cache service operation process, but the service logic is simple, and a large number of calculation operations are not involved. And the service needs to return to the content which exists locally in real time for the user to play the role of local cache, the actual service logic of the service is stateful, the service load cannot be immediately acted by adopting the transverse capacity expansion of the service in a stateless manner, and even the service load of a source station is increased due to the generation of a large amount of source returning operation. Specifically, instance-level capacity expansion is performed on the cache service of the CDN on the edge node in a horizontal expansion manner, and the consumption of infrastructure by each expanded instance is the same, that is, the resources are applied along with the instance expansion even if the computing resources such as the CPU and the like before expansion are not the bottleneck, so that the utilization rate of the overall corresponding non-bottleneck resources is not high, and deployment of computing-class three-party applications after CDN edge node point cloud is not facilitated.

Therefore, the invention provides an edge node capacity expansion method, which solves the disk read-write bottleneck of CDN service under a high concurrency scene by dynamically mounting a disk space and expanding resources and capacity of containerized CDN cache service, effectively controls the consumption of non-bottleneck resources when CDN service is busy, enables the edge nodes with insufficient resources to deploy more computation-like service applications when the service is busy, and improves the service capacity of the whole edge node. And further the comprehensive utilization rate of the resources of the edge node is improved.

The inventive concept of the present application is further illustrated below with reference to some specific embodiments.

Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a capacity expansion method for an edge node according to a first embodiment of the present invention.

In this embodiment, a method for expanding a capacity of an edge node includes:

and S101, acquiring real-time read-write information of a magnetic disk of at least one container in the main container pool.

The real-time read-write information of the disk is the IO access information of the disk.

It can be understood that, compared with most of the computing services, the CDN service has certain characteristics of its own service in terms of resource consumption. Compared with the computing power of a CPU and the like, the CDN has higher requirements on storage and network resources, particularly the read-write capability of storage I/O. The CDN capacity bottleneck is often due to the disk I/O access capacity reaching the relevant maximum capacity. In the CDN containerization transformation process, the service characteristics of the elastic extensible capability also need to be considered, a general expansion and contraction capacity mechanism for cloud computing, which performs transverse expansion by monitoring resources such as a CPU/memory/network and the like after reaching a preset threshold, cannot completely conform to the characteristics of the CDN, a large amount of CPU resources distributed and used after transverse expansion are not fully utilized, and the effect of releasing the CPU capability to three-party services by a CDN node is also discounted to a certain extent.

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

And S102, when the real-time read-write information of at least one disk meets the capacity expansion triggering condition, determining a target container from the standby container pool.

When the control device or the scheduling device detects that the real-time read-write information of the disk of the at least one container meets the capacity expansion triggering condition, namely when the disk I/O access capacity of the at least one container reaches a capacity expansion threshold, the control device or the scheduling device is triggered to determine the target container from the standby container pool. The standby container pool can have a first preset threshold number of standby containers, and each standby container can be added from the standby container pool to the main container pool in real time to serve as a container of the operable service.

The target container may be determined randomly, or may be determined sequentially according to data such as time added to the spare container pool. The present embodiment does not limit this.

It is worth mentioning that the number of the target containers may be consistent with the number of containers whose disk real-time read-write information satisfies the capacity expansion triggering condition, that is, the disk real-time read-write information of one container satisfies the capacity expansion triggering condition, that is, one target container is newly added, so that rapid processing of a large number of capacity expansion requests occurring at the CDN service peak is ensured, and the scenario of CDN service evolution can be better adapted. Until the number of containers in the main container pool reaches a second preset threshold value, namely the upper limit value of the number of containers.

Step S103, adding the target container into the main container pool, and mounting the first data volume onto the target container; the first data volume corresponds to a first new disk space, and the first new disk space is a new disk space which is newly applied from the edge node in response to the fact that the real-time read-write information of at least one disk meets the capacity expansion triggering instruction.

In this embodiment, a newly added target container is newly added with a first new disk space in an edge node through the first data volume, and the first data volume stores information such as the position path information and the size of the first new disk space. Therefore, when a container is newly added, the capacity expansion of the disk space is realized.

Compared with the existing horizontal expansion of the CPU/memory/network resource, in this embodiment, by performing resource and capability expansion on the containerized CDN cache service, a disk read-write bottleneck of the CDN service in a high concurrency scenario is solved, consumption of non-bottleneck resources when a CDN service is busy is effectively controlled, so that an edge node with an insufficient resource can deploy more computing-based service applications when the service is busy, and the service capability of the entire edge node is improved. And further the comprehensive utilization rate of the resources of the edge node is improved.

On the basis of the first embodiment of the capacity expansion method of the edge node, a second embodiment of the capacity expansion method of the edge node is provided. Referring to fig. 2, fig. 2 is a flowchart illustrating a capacity expansion method for an edge node according to a second embodiment of the present invention.

In this embodiment, the method includes:

step S201, obtaining real-time read-write information of a magnetic disk of at least one container in the main container pool.

Step S202, when the real-time read-write information of at least one disk meets the capacity expansion triggering condition, determining a target container from the standby container pool.

Step S202, adding a target container into a main container pool, and mounting a first data volume onto the target container; the first data volume corresponds to a first new disk space, and the first new disk space is a new disk space which is newly applied from the edge node in response to the fact that the real-time read-write information of at least one disk meets the capacity expansion triggering instruction.

The above embodiments can be referred to in steps S201 to S203, which are not described herein again.

Step S204, unbinding the second data volume corresponding to the source container and mounting the second data volume to the target container; the source container is a container with the real-time read-write information of the magnetic disk meeting the capacity expansion triggering condition.

Among other things, container native supports unbinding and mounting of Data volumes (Data volumes). A data volume is a specially designated directory that may provide some stable property or data sharing for a container using the UFS file system of the container. With data volume dependent capabilities, data sharing and migration between multiple containers may be achieved. The unbinding and mounting of the data volume are applied to the expansion and contraction capacity of the edge node, so that the data of the source container with the service load reaching the expansion threshold in operation can be quickly mounted to the new target container, and the continuity of the service state after the expansion and the lossless migration of the data in the service switching process are ensured.

It can be understood that the service of the CDN is stateful, and simple resource expansion in the capacity expansion process may cause that the requirement of service instantaneous burst cannot be met due to the existence of recovery time after the service expansion.

In this embodiment, after the IO access capability of the disk of the source container reaches the capacity expansion threshold, by using dynamic mounting of the second data volume corresponding to the IO access capability on the CDN container, the CDN cache service before expansion is quickly migrated to the target container after expansion, and the CDN cache change service state is nondestructively switched between the containers along with the capacity expansion. Namely, the availability of CDN cache service is ensured in the process of capacity expansion and reduction, and the service recovery time is controllable.

On the basis of the foregoing embodiment of the method for expanding a capacity of an edge node according to the present invention, a third embodiment of the method for expanding a capacity of an edge node according to the present invention is provided. Referring to fig. 3, fig. 3 is a schematic flow chart illustrating a capacity expansion method for an edge node according to a third embodiment of the present invention.

In this embodiment, the method includes:

step S301, acquiring real-time read-write information of a magnetic disk of at least one container in the main container pool.

Step S302, when the real-time read-write information of at least one disk meets the capacity expansion triggering condition, determining a target container from the standby container pool.

Step S303, adding the target container into the main container pool, and mounting the first data volume onto the target container; the first data volume corresponds to a first new disk space, and the first new disk space is a new disk space which is newly applied from the edge node in response to the fact that the real-time read-write information of at least one disk meets the capacity expansion triggering instruction.

The above embodiments can be referred to in steps S301 to S303, which are not described herein again.

Step S304, generating 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 from the edge node;

step S305, unbinding a second data volume corresponding to the source container, and synchronously mounting a third data volume and the second data volume on the source container and mounting the third data volume and the second data volume on the target container; the source container is a container with the real-time read-write information of the magnetic disk meeting the capacity expansion triggering condition.

In this embodiment, in addition to mounting the second data volume of the source container, by expanding the new data volume, that is, the third data volume, to the target container, the target container corresponds to a larger disk space, and the disk IO access capability of the container after service migration is improved.

On the basis of the foregoing embodiment of the method for expanding a capacity of an edge node according to the present invention, a fourth embodiment of the method for expanding a capacity of an edge node according to the present invention is provided.

The maximum number of spare containers in the spare container pool is less than or equal to a first preset threshold. And the maximum number of the containers in the main container pool is less than or equal to a second preset threshold value, namely the standby container pool and the main container pool are both dynamically rated container pools.

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

step S104, judging whether the real-time quantity of the standby containers is smaller than a first preset threshold value or not;

and S105, if the real-time quantity is smaller than a first preset threshold value, adding at least one new spare container into the spare container pool.

Specifically, after the target container pool is determined from the reserve container pool and added to the main container pool, the number of containers in the reserve container pool is reduced, and at least one new reserve container needs to be added to the reserve container pool in order to ensure that the reserve container pool has enough container pools available in real time. When the number of containers in the standby service resource pool is not lower than the upper limit, triggering a new service container to apply and incorporating the new service container into the management of the standby service resource pool

Therefore, in this embodiment, the infrastructure resources of the CDN are transformed into a dynamically rated active/standby container resource pool, so as to realize the overall resource usage control of the CDN container. The method is characterized in that a universal transverse capacity expansion and reduction method is distinguished, a main and standby container resource pool of rated CDN capacity expansion is provided, wherein values of a first preset threshold and a second preset threshold are planned according to services, and the values of the first preset threshold and the second preset threshold ensure that computing resources such as a CPU (central processing unit) cannot be wasted due to infinite transverse expansion.

On the basis of the foregoing embodiment of the method for expanding a capacity of an edge node according to the present invention, a fifth embodiment of the method for expanding a capacity of an edge node according to the present invention is provided. Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a capacity expansion method for an edge node according to a fifth embodiment of the present invention.

In this embodiment, the method includes:

step S401, obtaining real-time read-write information of a magnetic disk of at least one container in the main container pool.

And S402, when the real-time read-write information of at least one disk meets the capacity reduction triggering condition, determining a container corresponding to the real-time read-write information of the disk meeting the capacity reduction triggering condition as a container to be subjected to capacity reduction.

When the control device or the scheduling device detects that the real-time read-write information of the disk of at least one container meets the capacity reduction triggering condition, namely when the disk I/O access capacity of at least one container reaches a capacity reduction threshold, the control device or the scheduling device is triggered to determine the container as a container to be subjected to capacity reduction.

And S403, unbundling the fourth data volume mounted on the container to be contracted.

And step S404, adding the container to be shrunk as a spare container into the spare container pool.

And after the container to be shrunk is determined, the control device or the scheduling device freezes the service and unloads the data volume. That is, the fourth data volume is unbound, and then the container that needs to be compacted is allocated to the standby resource pool for management. At this time, because the fourth data volume is unbound, the disk space corresponding to the fourth data volume is also released, and the resource comprehensive utilization rate of the edge node is improved.

On the basis of the foregoing embodiment of the method for expanding a capacity of an edge node according to the present invention, a sixth embodiment of the method for expanding a capacity of an edge node according to the present invention is provided.

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

s405, judging whether the real-time quantity of the spare containers is larger than a first preset threshold value.

S406, if the real-time number is larger than the first preset threshold, deleting at least one spare container from the spare container pool, and returning to execute the step S405 until the real-time number of the spare containers is smaller than or equal to the first preset threshold.

In this embodiment, after the main container pool is contracted, the number of the spare containers in the spare container pool is increased, which may cause the number of the spare containers in the spare container pool to exceed the upper limit, i.e., the first preset threshold, so that redundant spare containers may be deleted from the spare resource pool.

The redundant spare containers can be deleted randomly or sequentially according to the time of the spare containers in the spare container pool.

In this embodiment, the infrastructure resources of the CDN are transformed into a dynamically rated active/standby container resource pool, so as to realize the overall resource usage control of the CDN container. The method is characterized in that a universal transverse capacity expansion and reduction method is distinguished, a main and standby container resource pool of rated CDN capacity expansion is provided, wherein values of a first preset threshold and a second preset threshold are planned according to services, and the values of the first preset threshold and the second preset threshold ensure that computing resources such as a CPU (central processing unit) cannot be wasted due to infinite transverse expansion.

In addition, referring to fig. 5, the present invention further provides a capacity expansion device for an edge node, including:

the information acquisition module 10 is configured to acquire real-time read-write information of a disk of at least one container in the main container pool;

the target container determining module 20 is configured to determine a target container from the standby container pool when the real-time read-write information of the at least one disk meets the capacity expansion triggering condition;

the data volume mounting module 30 is configured to add a target container to the main container pool, and mount a first data volume on the target container; the first data volume corresponds to a first new disk space, and the first new disk space is a new disk space which is newly applied from the edge node in response to the fact that the real-time read-write information of at least one disk meets the capacity expansion triggering instruction.

Other embodiments and specific implementations of the capacity expansion device of the edge node of the present invention may refer to the foregoing method embodiments, and are not described herein again.

In addition, referring to fig. 6, the present invention further provides an edge node, which includes a main container pool and a standby container pool; a disk resource pool; and a capacity expansion device of the edge node.

The specific functional modules of the capacity expansion device of the edge node are formed according to the above embodiments, and since the edge node adopts all the technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and are not described in detail herein.

The main container pool comprises at least one container, and the maximum number of the containers is smaller than or equal to a second preset threshold. The reserve container pool includes at least one reserve container, and a maximum number of reserve containers is less than or equal to a first preset threshold. The containers in the main container pool can be added into the standby container pool for management, and the standby containers in the standby container pool can be added into the main container pool for management, namely, the containers in the main container pool and the standby containers in the standby container pool can be subjected to main-standby switching.

The containers in the main container pool can use the corresponding disk space in the disk space through the mounted data volume.

Furthermore, the present invention also provides a computer program product comprising executable program code which, when executed by a processor, implements the steps of the method for capacity expansion of an edge node as in the above method embodiments. Therefore, a detailed description thereof will be omitted. In addition, the beneficial effects of the same method are not described in detail. For technical details not disclosed in the embodiments of the computer program product referred to in the present application, reference is made to the description of the embodiments of the method of the present application. It is determined that, by way of example, the program instructions may be deployed to be executed on one computing device or on multiple computing devices at one site or distributed across multiple sites and interconnected by a communication network.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

It should be noted that the above-described embodiments of the apparatus are merely schematic, where units illustrated as separate components may or may not be physically separate, and components illustrated as units may or may not be physical units, may be located in one place, or 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 solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.

Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus necessary general hardware, and may also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components and the like. Generally, functions performed by computer programs can be easily implemented by corresponding hardware, and specific hardware structures for implementing the same functions may be various, such as analog circuits, digital circuits, or dedicated circuits. However, the implementation of a software program is a more preferable embodiment for the present invention. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, where the computer software product is stored in a readable storage medium, such as a floppy disk, a usb disk, a removable hard disk, a Read-only memory (ROM), a random-access memory (RAM), a magnetic disk or an optical disk of a computer, and includes instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.

The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于分层存储的数据调度方法、系统及电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类