CN111726372B - Thermal migration method, device, equipment and storage medium - Google Patents
Thermal migration method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN111726372B CN111726372B CN201910202833.9A CN201910202833A CN111726372B CN 111726372 B CN111726372 B CN 111726372B CN 201910202833 A CN201910202833 A CN 201910202833A CN 111726372 B CN111726372 B CN 111726372B
- Authority
- CN
- China
- Prior art keywords
- node
- access request
- gateway
- nodes
- state
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/148—Migration or transfer of sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention provides a method, a device, equipment and a storage medium for thermal migration, wherein the method comprises the following steps: firstly, receiving an access request aiming at a first node; secondly, determining whether the first node is in a hot migration state; and finally, if the first node is in the hot migration state, forwarding the access request to the second node so that the second node responds to the access request. Therefore, the service-uninterrupted state is realized, and the service stability is kept.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for live migration.
Background
The concept of edge computing is emerging, on one hand, with the development of the fifth Generation mobile communication technology and the technical field of multi-access edge computing (5-Generation & multi-access edge computing,5g &mec); and on the other hand, the service has the scene requirements of large connection, large bandwidth and low delay. As an antenna for brain-like cloud computing, edge computing, like neurons, extends capabilities to network nodes closer to terminals or people or things, providing distributed, definable, schedulable, standard open and secure computing platforms and services. In a broad definition, edge computing nodes mainly include edge data center nodes, multiple access edge computing (MEC) nodes, shared nodes, and internet of things (IoT) devices to provide distributed, hierarchical computing resource capabilities.
In the conventional technology, infrastructure as a service (IaaS) nodes or shared nodes in an edge data center are independent and separate individuals, that is, each independent node has an independent internet protocol address and a corresponding gateway. In the process of external service, the method is realized by combining an internet protocol address with a corresponding gateway. In this case, if the instances in the nodes are to be migrated with heat between the nodes, the ip address corresponding to each independent node cannot be directly migrated, and the migration time is subject to, for example: system interaction or protocol layer caching and other factors influence the service state interruption, and the system stability is reduced.
Therefore, it is necessary to provide a more reasonable thermal migration solution to achieve a non-constant service state and maintain service stability.
Disclosure of Invention
One or more embodiments of the present invention describe a method, an apparatus, a device, and a storage medium for performing a hot migration, where an access request for a first node is forwarded to another node when it is determined that the first node performs the hot migration, so that the other node responds to a feedback response corresponding to the access request according to the access request, thereby implementing a non-service-interruption state and maintaining service stability.
According to a first aspect, there is provided a method of thermomigration, which may comprise:
receiving an access request for a first node;
determining whether the first node is in a hot migration state;
and if the first node is in the hot migration state, forwarding the access request to the second node so that the second node responds to the access request.
According to a second aspect, there is provided a method of thermomigration, which may comprise:
receiving an access request for a first node;
determining whether the first node is in a first state;
if the first node is in the first state, forwarding the access request to the second node so that the second node responds to the access request;
wherein the first state comprises: the first node is in a stop state; or the first node is in a starting state and receives a stop operation instruction aiming at the first node.
According to a third aspect, there is provided a thermophoresis apparatus, comprising:
a transceiver module for receiving an access request for a first node;
the judging module is used for determining whether the first node is in a hot migration state or not;
and the forwarding module is used for forwarding the access request to the second node if the first node is in the hot migration state so as to enable the second node to respond to the access request.
According to a fourth aspect, there is provided a computing device comprising a transceiver for transceiving data, at least one processor for storing computer program instructions, and a memory for executing a program of the memory to control a server to implement the method of any of the first or second aspects.
According to a fifth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, if executed in a computer, causes the computer to perform the method of any one of the first or second aspects.
By using the scheme of the embodiment of the invention, the access request for accessing the first node is forwarded to other nodes under the condition that the first node is determined to be in the hot migration state, so that the other nodes respond to the feedback response corresponding to the access request according to the access request, and thus, the continuous service state can be realized and the service stability can be maintained through the technologies of an overlay network and a load balancing agent of the Internet.
Drawings
The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.
Fig. 1 and fig. 2 are schematic diagrams of implementation scenarios of a thermomigration method according to an embodiment of the present invention;
FIG. 3 is a block flow diagram of a method of live migration according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a scene architecture for implementing a live migration method according to an embodiment of the present invention;
FIG. 5 is a block diagram of a thermal migration apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computing device according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of another like element in a process, method, article, or apparatus that comprises the element.
An embodiment of the present invention provides a thermal migration method, and fig. 1 and fig. 2 respectively show implementation scenario architecture diagrams of the thermal migration method according to the embodiment of the present invention.
Referring to fig. 1, the scenario architecture includes: the system comprises a cloud end, a plurality of gateways and a plurality of nodes. The cloud end is connected with a plurality of gateways, and each gateway is connected with at least one node. Here, cloud generally refers to a cloud server or a server cluster.
In the embodiment of the present invention, the cloud may issue a networking instruction to the gateways, where the networking instruction is used to instruct the gateways to establish network connection, and manage and control nodes connected to the gateways, for example, implement scheduling, live migration, or other operations.
In the embodiment of the present invention, a gateway (for example, gateway a, gateway B, or gateway C in fig. 1) may receive a networking instruction issued by a cloud, and according to the networking instruction, a plurality of gateways may establish network connection to form an overlay network.
In the embodiment of the present invention, the gateway may further manage and control a plurality of nodes connected to the gateway, for example: and after receiving the access request sent by the user side, the gateway forwards the access request to the corresponding node.
In the embodiment of the present invention, the gateway may further forward an instruction issued by the cloud to the node, for example, to the corresponding node, and the cloud may implement control over the node through the gateway.
Referring to fig. 2, a gateway a, a gateway B, and a gateway C are connected and networked to form an overlay network. The gateway may select one node from the plurality of nodes, and perform function configuration on the node, so that the node may be used as a proxy node of the gateway. Here, the proxy node may receive the access request forwarded by the gateway and transmit the access request to the corresponding node, so that the corresponding node may respond to the access request.
In the embodiment of the present invention, each gateway may correspond to one proxy node, and each proxy node may control at least one node, for example, the gateway a in the embodiment of fig. 2 corresponds to the proxy node a, the proxy node a may control at least one node in the nodes a1 and a2 … … an, n is a positive integer, and the specific number of nodes may be set according to an actual requirement.
Based on the embodiment of the present invention, the illustrated hot migration method may be applied in an Open System Interconnection (OSI) protocol, for example, in a third layer network layer, a fourth layer transport layer, and/or a seventh layer application layer of the OSI; in which the gateway or proxy node processes packets of the network layer and the transport layer in the form of kernel modules (e.g., applications in kernel mode), or processes packets of the application layer in the form of upper layer applications.
In an embodiment of the present invention, the nodes shown include edge computing nodes, wherein the edge computing nodes may include at least one of the following nodes: shared nodes, edge data center nodes, MEC nodes, and IoT devices. These nodes may be used to implement a variety of instances, such as an application container engine (Docker) instance, a kernel-based virtual machine (KVM) instance, and so forth.
FIG. 3 is a block flow diagram of a hot migration method according to an embodiment of the present invention. The method comprises the following steps: first, step 310: receiving an access request for a first node; next, step 320: determining whether the first node is in a hot migration state; finally, step 330: and if the first node is in the hot migration state, forwarding the access request to the second node so that the second node responds to the access request.
The hot migration method of the embodiment of the invention can solve the problem of service state interruption under the influence of system interaction or network seven-layer protocol cache and other factors, thereby achieving the purposes of continuously maintaining service state and service stability.
In the embodiment of the present invention, the node in the hot migration state specifically may refer to: one instance in the node is in a hot migration state, and the instance has a function of providing service for the access request; or a plurality of instances in the node are in a hot migration state, and the plurality of instances have a function of providing service for the access request; alternatively, all instances in the node are in a live migration state.
The following describes a detailed implementation process of the thermal migration method according to the embodiment of the present invention by using three embodiments.
Example 1: the first node is in a live migration state and the first gateway forwards the access request to the second node.
Specifically, in the embodiment of the present invention, when a user accesses a web page, a user side determines an access request through user operation, and sends the access request to a gateway through a domain name resolution or an internet protocol; the gateway receives the access request and judges whether a first node corresponding to the access request is in a hot migration state or not; if the first node is in a hot migration state, the gateway forwards the access request to the second node; wherein the second node has a function of responding to the access request. And after the second node finishes the service of the access request, sending feedback information to the gateway so that the gateway can return the feedback information corresponding to the access request to the user side.
The following describes specific steps of the above embodiment in detail with reference to the embodiment architecture of fig. 1 and fig. 2.
Regarding step 310, when the user accesses the web page, the user terminal determines an access request by receiving an operation of the user. The user side sends the access request to the gateway A through a domain name resolution or a protocol of interconnection between networks. Gateway a receives an access request, wherein the access request is for first node a.
Regarding step 320, the gateway a determines that the first node a is in a live migration state, at this time, the first node is in a live migration state, and therefore cannot provide services for the access request, and forwards request information for the first node to the second node, so as to respond to the access request through the second node and provide corresponding services for the access request, wherein an instance of the second node has a function of responding to the access request and providing the corresponding services. Here, the second node may be an existing node or a new node, i.e., a newly constructed node.
More specifically, the present invention is based on the above step 320, and the hot migration for the first node can be realized in the following two ways.
The first method is as follows: the first node automatically detects the state information of the node and sends the state information to the first gateway through the proxy node, and the first gateway judges whether the first node meets the preset scheduling condition or not according to the state information; and if the preset scheduling conditions are met, performing thermal migration on the first node.
Or the first gateway receives an operation stopping instruction sent by the cloud, the first gateway acquires the state information of the first node through the proxy node according to the operation stopping instruction, and the first gateway judges whether the first node meets the preset scheduling condition or not according to the state information; and if the preset scheduling conditions are met, performing thermal migration on the first node.
The second method comprises the following steps: according to the overall needs of the system, the cloud sends a mandatory instruction for performing live migration on the first node to the first gateway, and the specific steps may include: and if the first gateway receives a stop operation instruction aiming at the first node and sent by the cloud, performing thermal migration on the first node.
With respect to step 330: this procedure is illustrated according to two different examples: the first possible example is mainly aimed at the difference of the corresponding gateways of the nodes, so that the access requests are forwarded by the gateways in different processes; the second possible example is based on the first possible example, and introduces the concept of service group, mainly aiming at the difference between the service group corresponding to the node and the gateway, so that the process of forwarding the access request by the gateway is different.
To implement two different instances of step 330, first, the following steps need to be performed before step 310:
the cloud sends networking instructions to the gateways, and the networking instructions are used for indicating that network connection is established based on the gateways so as to form an overlay network comprising the gateways; wherein each gateway of the plurality of gateways corresponds to at least one node of the plurality of nodes. Further, the cloud end can send networking instructions to the plurality of gateways according to a predicted networking algorithm.
For example: through the method, an edge coverage network based on the internet can be established between the gateways A, B and C through networking instructions, as shown in fig. 2, data can be transmitted among a plurality of gateways, and each of the gateways A, B and C can be connected with at least one node, so that each node can be managed conveniently. During networking, the working modes of the first node, the second node, and both the first node and the second node may be determined, and specifically: when the first node performs the hot migration, the second node responds to the access request of the first node.
Based on the above step 330, in a first possible example, scenario 1-scenario 2 are included, which is specifically as follows:
scene 1: the first node and the second node correspond to a scenario of the same gateway.
Step S330 may specifically include:
the first method is as follows: and if the first node is in the hot migration state and the first node and the second node correspond to the same gateway, the gateway forwards the access request to the second node so that the second node responds to the access request.
For example: referring to fig. 2, if the first node a1 and the second node a2 correspond to the same gateway, the access request is forwarded to the second node a 2.
The second method comprises the following steps: based on scenario 1, before the step of forwarding the access request to the second node, determining whether the second node can respond to the access request of the first node at this time; and if the access request can be responded, forwarding the access request to the second node.
For example: in order to ensure that the second node can respond to the access request without being serviced, before forwarding the access request to the second node, it may be determined whether the second node can respond to the access request of the first node.
Scene 2: the first node and the second node correspond to different gateways. For example: the first node corresponds to a first gateway, and the second node corresponds to a second gateway.
Step S330 may specifically include:
the first method is as follows: the first gateway may determine, via the overlay network, whether the second node is able to respond to the first node's access request. And if the response to the access request can be carried out, the first gateway forwards the access request to a second node corresponding to the second gateway through the overlay network.
The second method comprises the following steps: the first gateway and the second gateway correspond to a plurality of nodes respectively, wherein the plurality of nodes corresponding to the first gateway comprise a first node and other nodes, and the plurality of nodes corresponding to the second gateway comprise a second node and other nodes. When the first node is in the live migration state, the first gateway may forward the access request to other nodes corresponding to the first gateway, so that the other nodes respond to the access request. However, when other nodes corresponding to the first gateway are also in a live migration state or the load is higher than a preset threshold, the first gateway may forward the access request to a second node in the second gateway through the overlay network.
For example: the first node a1 corresponds to the gateway a, the second node B1 corresponds to the gateway B, and it is determined whether at least one of the nodes a2, a3, or a4 having the same gateway a as the first node a1 can respond to the access request. Wherein the access request is an access request for the first node a 1. If the access request can be responded to, the gateway a forwards the access request to at least one of the nodes a2, a3 or a 4. Of course, the nodes a2, a3 and a4 may be in a hot migration state or the nodes a2, a3 and a4 may not respond to the access request due to too high load. In this case, in order to maintain the constant service state, the gateway a may forward the access request to the second node B1 corresponding to the gateway B through the overlay network.
The third method comprises the following steps: based on the second mode, before the step of forwarding the access request to the second node, it may be further included that it is determined whether the second node can respond to the access request at this time; and if the response to the access request can be carried out, the first gateway forwards the access request to a second node corresponding to the second gateway through the overlay network.
For example: in order to ensure that the second node b1 can certainly respond to the access request to achieve a state of not being served, the second node b1 may determine whether the second node b1 can respond to the access request to the first node at this time before forwarding the access request to the second node b 1.
The method is as follows: based on the third method, it may also be included that the second node b1 may also be in a hot migration state or under too high load and the like. In this case, in order to maintain the non-constant state, the first gateway may forward the access request to other nodes corresponding to the second gateway through the overlay network, for example: the gateway B is forwarded to at least one of the nodes B2, B3 or B4. Further, before the step of forwarding the access request to other nodes corresponding to the second gateway through the overlay network by the first gateway, the method may further include: and judging whether other nodes corresponding to the second gateway can respond to the access request or not, and if so, executing a forwarding step.
In a second possible example, the concept of service groups is introduced based on the first possible example described above.
Before describing this possible example in detail, the following steps may be further included before step 310:
dividing a plurality of nodes into a plurality of service groups; wherein, the plurality of service groups may include at least one node, and the service group corresponds to a gateway. For example: one service group corresponds to one gateway; or, a plurality of service groups correspond to a gateway; or each service group in the plurality of service groups corresponds to each gateway in the plurality of gateways respectively; alternatively, one service group corresponds to a plurality of gateways, as shown below.
Based on the above step 330, in a second possible example, the method includes scenario 1-scenario 8, which is specifically as follows:
scene 1: one gateway corresponds to one service group. Specifically, each node in a service group corresponds to a same gateway. For example: the first node and the second node correspond to the same gateway, and both the first node and the second node belong to a first service group.
Step S330 may specifically include:
the first method is as follows: the first gateway forwards the access request to the second node so that the second node responds to the access request.
The second method comprises the following steps: before the step of forwarding the access request to the second node by the first gateway, whether the second node can respond to the access request of the first node at the moment can be judged through the overlay network; and if the access request aiming at the first node can be responded, forwarding the access request to the second node.
Scene 2: a plurality of service groups correspond to a gateway. For example: the service group may include a second service group in addition to the first service group. And the first node in the first service group and the second node in the second service group correspond to the same gateway.
Step S330 may specifically include:
the first method is as follows: the access request is forwarded to the second node such that the second node responds to the access request.
The second method comprises the following steps: before the step of forwarding the access request to the second node, judging whether the second node can respond to the access request of the first node at the moment; if the access request aiming at the first node can be responded, the access request is forwarded to the second node.
Scene 3: a plurality of service groups correspond to one gateway, and each service group comprises a plurality of nodes. For example: the first service group comprises a plurality of nodes, wherein the plurality of nodes comprise a first node; the second service group includes a plurality of nodes, wherein the plurality of nodes includes a second node.
Step S330 may specifically include:
the first method is as follows: the access request is forwarded to the second node such that the second node responds to the access request.
The second method comprises the following steps: before the step of forwarding the access request to the second node, judging whether other nodes except the first node in the first service group can respond to the access request of the first node; if the access request can be responded, the access request is forwarded to other nodes so that the other nodes can respond to the access request. And if the other nodes can not respond to the access request, forwarding the access request to a second node in the second service group so that the second node responds to the access request.
The third method comprises the following steps: based on the second mode, before the step of forwarding the access request to the second node in the second service group, whether the second node in the second service group can respond to the access request at this time can also be judged; and if the access request can be responded, forwarding the access request to a second node in the second service group so that the second node responds to the access request. If the processing is not possible, the data is forwarded to other nodes except the second node in the second service group. Of course, before forwarding to the other nodes except the second node in the second service group, the method may further include determining whether the other nodes except the second node in the second service group can respond to the access request at this time, and if the other nodes except the second node in the second service group can respond to the access request, forwarding to the other nodes except the second node in the second service group.
Scene 4: one service group corresponds to one gateway. For example: the service group comprises a first service group and a second service group, wherein a first node in the first service group corresponds to a first gateway, and a second node in the second service group corresponds to a second gateway.
Step S330 may specifically include:
the first method is as follows: the first gateway forwards the access request to a second node in the second service set through the overlay network to cause the second node to respond to the access request. For example: as shown in fig. 4, if the first service group 41 includes only the first node a1 and the first node is in the live migration state, the gateway a forwards the access request to the second node B1 on the gateway B through the network connection established by the multiple gateways (e.g., gateways a and B), where the second node B1 is in the second service group.
The second method comprises the following steps: based on the first mode, before the step of forwarding the access request to the second node, judging whether the second node in the second service group can respond to the access request of the first node at the moment; if the access request for the first node can be responded to, the access request is forwarded to a second node in a second service group.
Scene 5: one service group corresponds to one gateway, and each service group comprises a plurality of nodes. For example: the service group comprises a first service group and a second service group, the first service group comprises a first node and other nodes, the first node and other nodes correspond to the first gateway, the second service group comprises a second node and other nodes, and the second node and other nodes correspond to the second gateway.
Step S330 may specifically include:
the method comprises the following steps: it is determined whether other nodes in the first service set are able to respond to the access request. And if the other nodes can respond to the access request, forwarding the access request to the other nodes.
For example: if the first node a1 is in the live migration state and other nodes in the first service group can respond to the access request of the first node, the access request is forwarded to at least one of the nodes a2, a3 or a4 in the first service group.
If the other nodes can not respond to the access request of the first node, the first gateway forwards the access request to a second node in a second service group through the overlay network so that the second node responds to the access request.
For example: if the first node a1 is in the hot migration state, the gateway a forwards the access request to a second node B1 on the gateway B through the network connection established by the plurality of gateways, wherein the second node B1 is in a second service group.
The second method comprises the following steps: based on the first method, if the other nodes in the first service group cannot respond to the access request, before the step of forwarding, by the first gateway, the access request to the second node in the second service group through the overlay network, the method may further include: it is determined whether the second node is able to respond to the access request. And if the second node can respond to the access request, forwarding the access request to the second node. And if the second node can not respond to the access request, forwarding the access request to other nodes in the second service group.
For example: if the first node a1 is in the live migration state, the gateway a forwards the access request to at least one of the other nodes B2, B3, or B4 on the gateway B through the network connections established by the plurality of gateways, where the other nodes B2, B3, or B4 are in the second service group.
Scene 6: one service group corresponds to a plurality of gateways. For example: the first service group comprises a first node and a second node, wherein the first node corresponds to the first gateway and the second node corresponds to the second gateway.
Step S330 may specifically include:
the first method is as follows: the first gateway forwards the access request to the second node through the overlay network so that the second node responds to the access request.
For example: if the first node a1 is in the hot migration state, the gateway a forwards the access request to the second node B1 on the gateway B through the network connection established by the plurality of gateways.
Scene 7: one service group corresponds to a plurality of gateways. For example: the first service group comprises a first node, a second node and other nodes, wherein the first node corresponds to a first gateway, and the second node and other nodes correspond to a second gateway.
Step S330 may specifically include:
the first method is as follows: the first gateway forwards the access request to a second node in the second gateway through the overlay network so that the second node responds to the access request.
For example: if the first node a1 is in the hot migration state, the gateway a forwards the access request to the second node B1 on the gateway B through the overlay network.
The second method comprises the following steps: based on the first manner, before forwarding to the second node, the method may further include: it is determined whether the second node is able to respond to the access request of the first node. If the second node can respond to the access request, the first gateway forwards the access request to the second node on the gateway B through the overlay network. And if the second node can not respond to the access request, forwarding the access request to other nodes. Of course, before forwarding to other nodes, the following steps may also be included: it is determined whether other nodes can respond to the access request of the first node. And if the other nodes can respond to the access request, forwarding the access request to other nodes on the gateway B through the first gateway based on the overlay network.
Scene 8: the first service group includes a first node, a second node and other nodes, where the first node and the second node correspond to different gateways than the other nodes, for example: the first node and the second node correspond to a first gateway, and the other nodes correspond to a second gateway.
Step S330 may specifically include: the first method is as follows: the first gateway forwards the access request to the second node so that the second node responds to the access request.
The second method comprises the following steps: based on the first mode, before the step of forwarding the access request to the second node, it may also be determined whether the second node is capable of responding to the access request. And if the second node can respond to the access request, forwarding the access request to the second node so that the second node responds to the access request. If the second node can not respond to the access request, the gateway A forwards the access request to other nodes in the second gateway through the overlay network so that the other nodes respond to the access request.
It should be noted that at least one of the first node, the second node, the other node, or the agent node referred to above may be at least one of a shared node, an edge data center node, and an MEC node. Wherein, the sharing node can provide resources in various forms, including: intelligent hardware; the method is provided by a physical machine or a virtual machine. The edge data center node mainly utilizes the existing internet communication lines and bandwidth resources to establish a standardized telecom professional computer room environment and provide services in aspects of server hosting, renting and the like. The MEC node is mainly one of core components for localizing and processing computing capacity through MEC equipment based on an edge node of a mobile internet in the 5G era. The above embodiment 1 provides the following embodiments 2 and 3 in consideration of the processing scheme of the node in the live migration state and in consideration of the possibility that the node may be in other states.
Example 2: according to whether the first node is in a stop state or a start state, different processing modes are adopted, and the method specifically comprises the following steps:
the method I comprises the following steps: after receiving an access request aiming at a first node, determining whether the first node is in a stop state, if so, forwarding the access request to a second node by a gateway so that the second node responds to the access request.
The second method comprises the following steps: after receiving an access request aiming at a first node, determining whether the first node is in a starting state, if the first node is in the starting state and the gateway receives a stop operation instruction aiming at the first node, forwarding the access request to a second node by the gateway so that the second node responds to the access request.
Further, with respect to the second method, the first node may be processing the previous access request, or may be waiting to process the access request. Then, if the first node is processing a previous access request and the gateway receives a stop-operation instruction for the first node, the gateway forwards the access request to the second node. If the first node is waiting to process the access request and the gateway receives a stop operation instruction aiming at the first node, the gateway forwards the access request to the second node. Here, the forwarding process may employ the forwarding process in embodiment 1.
Example 3: the present embodiment is different from embodiment 1 in that after determining whether the first node is in the live migration state, if the first node is not in the live migration state, it is determined whether the first node is in the stop state or the start state, and processing is performed according to embodiment 2 according to the determination result.
It should be noted that the overlay network referred to above is understood to be a computer network established on another network. Nodes in the overlay network (e.g., the first node, the second node, the proxy node described above) may be considered to be connected by virtual or logical links, where each link corresponds to a path; nodes may also be connected by multiple physical connections in the underlying network.
In summary, with the solution of the embodiment of the present invention, when it is determined that the first node is in the live migration state, the access request for accessing the first node may be forwarded to other nodes, so that the other nodes respond to the feedback response corresponding to the access request according to the access request. Alternatively, the corresponding steps as referred to in the second and/or third possible examples may be executed, and the access request for accessing the first node may also be forwarded to other nodes, so that the other nodes respond to the feedback response corresponding to the access request according to the access request. Therefore, the continuous service state can be realized and the service stability can be kept through the technology of the overlay network of the Internet and the load balancing agent.
FIG. 5 is a block diagram of a thermal migration apparatus according to an embodiment of the present invention.
As shown in fig. 5, the apparatus 50 may include:
a transceiver module 501, configured to receive an access request for a first node;
a determining module 502, configured to determine whether the first node is in a hot migration state;
a forwarding module 503, configured to forward the access request to the second node if the first node is in the live migration state, so that the second node responds to the access request.
The determining module 502 may be further configured to determine whether an instance in the first node is in a live migration state, where the instance is used to execute an operation corresponding to the access request.
The determining module 502 may further be configured to obtain node state information of the first node; judging whether the instance in the first node meets the preset condition or not according to the node state information of the first node; and if the preset condition is met, determining to perform hot migration on the instance in the first node. Alternatively, the determining module 502 may be further configured to determine to perform the hot migration on the instance in the first node if the stop operation instruction for the first node is received.
The forwarding module 503 may be further configured to receive a networking instruction, where the networking instruction is used to instruct that network connection is established based on multiple gateways; wherein each gateway of the plurality of gateways corresponds to at least one node of the plurality of nodes.
The apparatus 50 may further comprise: a calculation module 504 for dividing the plurality of nodes into a plurality of service groups; the plurality of service groups comprise at least one node, and the service groups correspond to the gateways. The computing module 504 is further configured to process the plurality of nodes according to a load balancing algorithm to determine a first node and the second node, where the second node has a function of responding to an access request.
The calculation module 504 may be specifically configured to forward the access request to the second node if the first node is in the live migration state and the first node and the second node both belong to the first service group. The plurality of service groups further includes a second service group, and the computing module 504 is further configured to forward the access request to a node in the second service group through an overlay network established based on the plurality of gateways if the second node cannot respond to the access request.
The plurality of service groups include a first service group and a second service group, and the calculation module 504 is further configured to forward the access request to a second node in the second service group through an overlay network connection established between the plurality of gateways if the first node is in a live migration state and the first node and the second node belong to the first service group and the second service group, respectively.
Fig. 6 is a schematic structural diagram of a computing device according to an embodiment of the present invention.
As shown in fig. 6, a block diagram of an exemplary hardware architecture of a computing device capable of implementing the live migration method and apparatus according to an embodiment of the present invention is shown.
The thermomigration device may include a processor 601 and a memory 602 having stored computer program instructions.
Specifically, the processor 601 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
The processor 601 may implement any of the above embodiments of the live migration method by reading and executing computer program instructions stored in the memory 602.
The transceiver 603 is mainly used for implementing the apparatuses in the embodiments of the present invention or communicating with other devices.
In one example, the device may also include a bus 604. As shown in fig. 6, the processor 601, the memory 602, and the transceiver 603 are connected via a bus 604 and communicate with each other.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed in a computer, the computer program is used to execute the steps of the thermal migration method according to the embodiments of the present invention.
It is to be understood that the invention is not limited to the particular arrangements and instrumentality described in the above embodiments and shown in the drawings. For convenience and simplicity of description, detailed description of a known method is omitted here, and for the specific working processes of the system, the module and the unit described above, reference may be made to corresponding processes in the foregoing method embodiments, which are not described again here.
It will be apparent to those skilled in the art that the method procedures of the present invention are not limited to the specific steps described and illustrated, and that various changes, modifications and additions, or equivalent substitutions and sequences between the steps, which are within the technical scope of the present invention as disclosed, may be made by those skilled in the art after appreciating the spirit of the present invention, are intended to be covered by the scope of the present invention.
Claims (15)
1. A method of thermomigration, comprising:
receiving an access request for a first node;
determining whether the first node is in a hot-migration state;
if the first node is in a hot migration state, forwarding the access request to a second node so that the second node responds to the access request, wherein the second node has a function of responding to the access request;
and when the second node finishes the service of the access request, receiving the feedback information of the second node, and returning the feedback information of the access request to the user side.
2. The method of claim 1, wherein determining whether the first node is in a hot migration state comprises:
and determining whether an instance in the first node is in a hot migration state, wherein the instance is used for executing the operation corresponding to the access request.
3. The method of claim 2, wherein the method further comprises:
judging whether the instance in the first node meets a preset scheduling condition or not according to the node state information of the first node;
and if the preset scheduling condition is met, performing hot migration on the instance in the first node.
4. The method of claim 2, wherein the method further comprises:
and receiving a stop operation instruction aiming at the first node, and performing hot migration on the instance in the first node.
5. The method of claim 1, wherein prior to receiving the access request for the first node, the method further comprises:
receiving a networking instruction, wherein the networking instruction is used for instructing to establish network connection based on a plurality of gateways; wherein each gateway of the plurality of gateways corresponds to at least one node.
6. The method of claim 5, wherein prior to receiving the access request for the first node, the method further comprises:
dividing a plurality of nodes into a plurality of service groups; wherein the service group corresponds to the gateway.
7. The method of claim 6, wherein prior to receiving the access request for the first node, the method further comprises:
and carrying out load balancing processing on the plurality of nodes, and determining the first node and the second node, wherein the second node has a function of responding to the access request.
8. The method of claim 7, wherein the plurality of service groups comprises at least a first service group; the forwarding the access request to the second node comprises:
and if the first node is in a hot migration state and the first node and the second node both belong to the first service group, forwarding the access request to the second node.
9. The method of claim 8, wherein the plurality of service groups further comprises a second service group, the method further comprising:
and if the second node cannot respond to the access request, forwarding the access request to the nodes in the second service group through the network connection established by the plurality of gateways.
10. The method of claim 7, wherein the plurality of service groups comprises a first service group and a second service group; the forwarding the access request to the second node comprises:
and if the first node is in a hot migration state and the first node and the second node belong to the first service group and the second service group respectively, forwarding the access request to a second node in the second service group through the network connection established among the plurality of gateways.
11. The method of claim 1, wherein the first node and/or the second node comprises an edge compute node; wherein the edge computing nodes comprise at least one of: the system comprises a sharing node, an edge data center node and a multi-access edge computing node.
12. A method of thermomigration, comprising:
receiving an access request for a first node;
determining whether the first node is in a first state;
if the first node is in a first state, forwarding the access request to a second node so that the second node responds to the access request, wherein the second node has a function of responding to the access request;
when the second node finishes the service of the access request, receiving feedback information of the second node, and returning the feedback information of the access request to the user side;
wherein the first state comprises: the first node is in a stopped state; or the first node is in a starting state and receives a stop operation instruction aiming at the first node.
13. A thermomigration device, comprising:
a transceiver module for receiving an access request for a first node;
the judging module is used for determining whether the first node is in a hot migration state or not;
a forwarding module, configured to forward the access request to a second node if the first node is in a live migration state, so that the second node responds to the access request, where the second node has a function of responding to the access request; and when the second node finishes the service of the access request, receiving the feedback information of the second node and returning the feedback information of the access request to the user side.
14. A computing device, wherein the device comprises a transceiver for transceiving data, at least one processor and a memory for storing computer program instructions, the processor being configured to execute the program of the memory to control the computing device to implement the method of any of claims 1-11 or 12.
15. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, if executed in a computer, causes the computer to perform the method of any of claims 1-11 or 12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910202833.9A CN111726372B (en) | 2019-03-18 | 2019-03-18 | Thermal migration method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910202833.9A CN111726372B (en) | 2019-03-18 | 2019-03-18 | Thermal migration method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111726372A CN111726372A (en) | 2020-09-29 |
CN111726372B true CN111726372B (en) | 2022-10-21 |
Family
ID=72563138
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910202833.9A Active CN111726372B (en) | 2019-03-18 | 2019-03-18 | Thermal migration method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111726372B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109155742A (en) * | 2016-03-24 | 2019-01-04 | 阿尔卡特朗讯 | The method of migration for virtual network function |
CN109388610A (en) * | 2018-08-30 | 2019-02-26 | 中国科学院计算技术研究所 | A kind of distributed meta data services migrating method and system of low latency |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9660933B2 (en) * | 2014-04-17 | 2017-05-23 | Go Daddy Operating Company, LLC | Allocating and accessing hosting server resources via continuous resource availability updates |
-
2019
- 2019-03-18 CN CN201910202833.9A patent/CN111726372B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109155742A (en) * | 2016-03-24 | 2019-01-04 | 阿尔卡特朗讯 | The method of migration for virtual network function |
CN109388610A (en) * | 2018-08-30 | 2019-02-26 | 中国科学院计算技术研究所 | A kind of distributed meta data services migrating method and system of low latency |
Also Published As
Publication number | Publication date |
---|---|
CN111726372A (en) | 2020-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11706158B2 (en) | Technologies for accelerating edge device workloads | |
EP3993347A1 (en) | Method and device for application migration | |
US8739179B2 (en) | Method and system for low-overhead data transfer | |
US11812496B2 (en) | User group session management method and apparatus | |
EP4167625A1 (en) | Communication method and apparatus | |
CN113115272A (en) | Service redirection method and device | |
US10924518B2 (en) | UPF programming over enhanced N9 interface | |
US9438557B2 (en) | Adaptive dynamic host configuration protocol assignment with virtual local area network pool | |
CN106533973B (en) | Method, equipment and system for distributing service message | |
CN114143283B (en) | Tunnel self-adaptive configuration method and device, central terminal equipment and communication system | |
US11799827B2 (en) | Intelligently routing a response packet along a same connection as a request packet | |
US9350606B2 (en) | System and method for assigning server to terminal and efficiently delivering messages to the terminal | |
WO2023011151A1 (en) | Communication method and device | |
CN113692753A (en) | Network device and method for searching edge service implemented in network device | |
US10516998B2 (en) | Wireless network authentication control | |
CN113423120A (en) | Data distribution processing method and device based on private network terminal and electronic equipment | |
CN113254148A (en) | Virtual machine migration method and cloud management platform | |
CN109218182B (en) | Method and device for synchronizing routing information | |
CN111726372B (en) | Thermal migration method, device, equipment and storage medium | |
CN115665262A (en) | Request processing method and device, electronic equipment and storage medium | |
US11451513B2 (en) | Notification device and notification method | |
CN110401952B (en) | Authentication method and related equipment | |
WO2021173046A1 (en) | Dynamic distributed local breakout determination | |
CN112996137A (en) | Method for establishing data connection on multi-operation system terminal | |
CN112751766A (en) | Message forwarding method and device and computer storage medium |
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 | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40036892 Country of ref document: HK |
|
GR01 | Patent grant | ||
GR01 | Patent grant |