[go: up one dir, main page]

CN113515237A - Capacity expansion method, device, edge node and program product of edge node - Google Patents

Capacity expansion method, device, edge node and program product of edge node Download PDF

Info

Publication number
CN113515237A
CN113515237A CN202110834899.7A CN202110834899A CN113515237A CN 113515237 A CN113515237 A CN 113515237A CN 202110834899 A CN202110834899 A CN 202110834899A CN 113515237 A CN113515237 A CN 113515237A
Authority
CN
China
Prior art keywords
container
edge node
pool
real
data volume
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110834899.7A
Other languages
Chinese (zh)
Other versions
CN113515237B (en
Inventor
王犇
徐佳棋
廖德甫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110834899.7A priority Critical patent/CN113515237B/en
Publication of CN113515237A publication Critical patent/CN113515237A/en
Application granted granted Critical
Publication of CN113515237B publication Critical patent/CN113515237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

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.

Description

Edge node capacity expansion method and device, edge node and program product
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.

Claims (10)

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.
CN202110834899.7A 2021-07-22 2021-07-22 Edge node capacity expansion method and device, edge node and program product Active CN113515237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110834899.7A CN113515237B (en) 2021-07-22 2021-07-22 Edge node capacity expansion method and device, edge node and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110834899.7A CN113515237B (en) 2021-07-22 2021-07-22 Edge node capacity expansion method and device, edge node and program product

Publications (2)

Publication Number Publication Date
CN113515237A true CN113515237A (en) 2021-10-19
CN113515237B CN113515237B (en) 2024-09-20

Family

ID=78067688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110834899.7A Active CN113515237B (en) 2021-07-22 2021-07-22 Edge node capacity expansion method and device, edge node and program product

Country Status (1)

Country Link
CN (1) CN113515237B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114661247A (en) * 2022-05-23 2022-06-24 武汉四通信息服务有限公司 Automatic capacity expansion method, device, electronic device and storage medium
CN114860390A (en) * 2022-07-07 2022-08-05 中航金网(北京)电子商务有限公司 Container data management method, device, program product, medium and electronic equipment
WO2025001639A1 (en) * 2023-06-30 2025-01-02 中兴通讯股份有限公司 Method and device for processing content file in content delivery network

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991769A (en) * 2016-04-12 2016-10-05 上海帝联信息科技股份有限公司 Data migration method and device and edge node server
CN107193499A (en) * 2017-05-26 2017-09-22 郑州云海信息技术有限公司 A kind of moving method and device of container data volume
US20170366606A1 (en) * 2014-05-13 2017-12-21 Velostrata Ltd. Real Time Cloud Workload Streaming
CN107766157A (en) * 2017-11-02 2018-03-06 山东浪潮云服务信息科技有限公司 Distributed container cluster framework implementation method based on domestic CPU and OS
CN108399100A (en) * 2017-02-06 2018-08-14 中国移动通信集团公司 A kind of method of adjustment and device of container resource
CN108572795A (en) * 2017-12-21 2018-09-25 北京金山云网络技术有限公司 Capacity expansion method, device, equipment and storage medium based on building storage virtualization
CN109634522A (en) * 2018-12-10 2019-04-16 北京百悟科技有限公司 A kind of method, apparatus and computer storage medium of resource management
CN109995671A (en) * 2018-01-02 2019-07-09 中国移动通信有限公司研究院 Resource configuration method and network service device for virtualized content distribution network
US20190266022A1 (en) * 2018-02-27 2019-08-29 Portworx, Inc. Hyper-convergence with scheduler extensions for software-defined container storage solutions
CN111913919A (en) * 2020-08-12 2020-11-10 湖北南邦创电科技有限公司 File storage management method and storage medium
CN112769897A (en) * 2020-12-21 2021-05-07 北京百度网讯科技有限公司 Synchronization method and device for edge calculation message, electronic equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170366606A1 (en) * 2014-05-13 2017-12-21 Velostrata Ltd. Real Time Cloud Workload Streaming
CN105991769A (en) * 2016-04-12 2016-10-05 上海帝联信息科技股份有限公司 Data migration method and device and edge node server
CN108399100A (en) * 2017-02-06 2018-08-14 中国移动通信集团公司 A kind of method of adjustment and device of container resource
CN107193499A (en) * 2017-05-26 2017-09-22 郑州云海信息技术有限公司 A kind of moving method and device of container data volume
CN107766157A (en) * 2017-11-02 2018-03-06 山东浪潮云服务信息科技有限公司 Distributed container cluster framework implementation method based on domestic CPU and OS
CN108572795A (en) * 2017-12-21 2018-09-25 北京金山云网络技术有限公司 Capacity expansion method, device, equipment and storage medium based on building storage virtualization
CN109995671A (en) * 2018-01-02 2019-07-09 中国移动通信有限公司研究院 Resource configuration method and network service device for virtualized content distribution network
US20190266022A1 (en) * 2018-02-27 2019-08-29 Portworx, Inc. Hyper-convergence with scheduler extensions for software-defined container storage solutions
CN109634522A (en) * 2018-12-10 2019-04-16 北京百悟科技有限公司 A kind of method, apparatus and computer storage medium of resource management
CN111913919A (en) * 2020-08-12 2020-11-10 湖北南邦创电科技有限公司 File storage management method and storage medium
CN112769897A (en) * 2020-12-21 2021-05-07 北京百度网讯科技有限公司 Synchronization method and device for edge calculation message, electronic equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114661247A (en) * 2022-05-23 2022-06-24 武汉四通信息服务有限公司 Automatic capacity expansion method, device, electronic device and storage medium
CN114661247B (en) * 2022-05-23 2022-09-20 武汉四通信息服务有限公司 Automatic capacity expansion method and device, electronic equipment and storage medium
CN114860390A (en) * 2022-07-07 2022-08-05 中航金网(北京)电子商务有限公司 Container data management method, device, program product, medium and electronic equipment
WO2025001639A1 (en) * 2023-06-30 2025-01-02 中兴通讯股份有限公司 Method and device for processing content file in content delivery network

Also Published As

Publication number Publication date
CN113515237B (en) 2024-09-20

Similar Documents

Publication Publication Date Title
CN113515237A (en) Capacity expansion method, device, edge node and program product of edge node
US10242022B1 (en) Systems and methods for managing delayed allocation on clustered file systems
US20240031309A1 (en) Data Processing Method, Apparatus, Device and Storage Medium
CN115328663B (en) Method, device, equipment and storage medium for scheduling resources based on PaaS platform
CN104504147B (en) A kind of resource coordination method of data-base cluster, apparatus and system
CN107124469B (en) Cluster node communication method and system
US20220137876A1 (en) Method and device for distributed data storage
CN112463366A (en) Cloud-native-oriented micro-service automatic expansion and contraction capacity and automatic fusing method and system
CN112597202A (en) Data query method and device, computer equipment and storage medium
CN109040156B (en) Soft load resource processing method and device based on container cloud
CN103905472B (en) A kind of cloud storage method and system accessed by webpage mode
CN104144202B (en) Access method, system and the device of Hadoop distributed file system
CN110995617B (en) MQTT-based data transmission method and device, computer equipment and storage medium
CN113900774B (en) Virtual machine control method and device of cloud operating system and storage medium
CN112925607A (en) System capacity expansion and contraction method and device and electronic equipment
CN103873587A (en) Method and device for achieving dispatching based on cloud platform
CN106302640A (en) Data request processing method and device
CN106202082A (en) The method and device of built-up foundation data buffer storage
CN104753992A (en) Method, device and system for data storage and method and device for virtual platform failure recovery
CN114924888A (en) Resource allocation method, data processing method, device, equipment and storage medium
US20130013892A1 (en) Hierarchical multi-core processor, multi-core processor system, and computer product
CN120029769A (en) K8s cluster expansion and contraction method and device, electronic device and storage medium
CN119512744A (en) A method for implementing large model online inference service based on serverless computing
CN116069493A (en) Data processing method, device, equipment and readable storage medium
CN119025219A (en) Virtual machine startup control method, device and electronic device based on cloned cloud disk

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant