CN116827941A - Edge computing migration method and system - Google Patents

Edge computing migration method and system Download PDF

Info

Publication number
CN116827941A
CN116827941A CN202210279275.8A CN202210279275A CN116827941A CN 116827941 A CN116827941 A CN 116827941A CN 202210279275 A CN202210279275 A CN 202210279275A CN 116827941 A CN116827941 A CN 116827941A
Authority
CN
China
Prior art keywords
node
edge
edge node
computing
target
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.)
Pending
Application number
CN202210279275.8A
Other languages
Chinese (zh)
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 IoT Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile IoT 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 IoT Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202210279275.8A priority Critical patent/CN116827941A/en
Publication of CN116827941A publication Critical patent/CN116827941A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention provides an edge computing migration method and system, which relate to the technical field of edge computing, wherein the edge computing migration method comprises the following steps: according to the node physical positions sent by a plurality of edge nodes, a standby node sequence of a first edge node is obtained, wherein the standby node sequence comprises at least one second edge node which is positioned in the same node area with the first edge node; determining the working state of a first edge node according to node information sent by a plurality of edge nodes; and under the condition that the working state of the first edge node is the target state, migrating the target computing service on the first edge node to the target second edge node, wherein the target state is one of a resource blocking state, an offline state and a fault state. Aiming at the situations of insufficient computing resources of the edge nodes, offline network and node faults, the scheme of the invention can effectively migrate the computing service and ensure the continuity of the equipment access computing service.

Description

Edge computing migration method and system
Technical Field
The invention belongs to the technical field of edge computing, and particularly relates to an edge computing migration method and system.
Background
The current edge node system architecture generally comprises a cloud platform and edge nodes, wherein the edge nodes are used for realizing functions of equipment access, local data management, data uploading, cloud end and the like, and the cloud platform is used for managing the edge nodes and analyzing the data. When the existing edge node system architecture performs computing migration, service applications can be migrated to the cloud or edge side only when the computing resources of the edge node are insufficient, so that service interruption such as equipment access and data reporting is caused. Moreover, the existing edge node system architecture cannot cope with offline node and fault scenes, and also causes service interruption such as equipment access and data reporting, and the continuity of the service cannot be ensured.
Disclosure of Invention
The embodiment of the invention aims to provide an edge computing migration method and an edge computing migration system, so that the problem that in the prior art, due to the fact that an edge node is in an abnormal scene, service interruption such as equipment access and data reporting is caused, and service cannot be migrated effectively is solved.
In order to achieve the above objective, an embodiment of the present invention provides an edge computing migration method, which is applied to a cloud platform in an edge computing migration system, where the edge computing migration system further includes a plurality of edge nodes accessing the cloud platform, and the method includes:
According to the node physical positions sent by the edge nodes, a standby node sequence of a first edge node is obtained, wherein the standby node sequence comprises at least one second edge node which is positioned in the same node area with the first edge node;
determining the working state of the first edge node according to node information sent by the edge nodes, wherein the node information comprises at least one of node running state information, node computing resource information and node detection information;
and under the condition that the working state of the first edge node is a target state, migrating the target computing service on the first edge node to a target second edge node, wherein the target state is one of a resource blocking state, an offline state and a fault state.
Optionally, in the edge computing migration method, the obtaining a standby node sequence of the first edge node according to the node physical positions sent by the plurality of edge nodes includes:
determining a node area where each edge node is located according to a preset node area range and node physical positions sent by the edge nodes;
acquiring at least one second edge node located in the same node area as the first edge node;
And sequencing according to the distances between the node physical positions of the at least one second edge node and the node physical positions of the first edge node respectively, and obtaining a standby node sequence of the first edge node.
Optionally, after determining the node area where each edge node is located according to the preset node area range and the node physical positions sent by the plurality of edge nodes, the edge computing migration method further includes:
transmitting the preset node area range and communication authentication information to the plurality of edge nodes;
the communication authentication information is used for mutually verifying communication identities among a plurality of edge nodes in the same node area; the node area is determined by the preset node area range.
Optionally, the determining, according to node information sent by the plurality of edge nodes, the working state of the first edge node includes:
determining that the working state of the first edge node is the resource blocking state under the condition that the node operation state information sent by the first edge node is in an on-line state and the target computing service with computing resource blocking exists on the first edge node according to the node computing resource information sent by the first edge node;
Determining that the working state of the first edge node is the offline state when determining that at least one second edge node detects the first edge node in the standby node sequence according to the node detection information sent by the second edge node;
and determining that the working state of the first edge node is the fault state under the condition that at least one second edge node does not detect the first edge node in the standby node sequence according to the node detection information sent by the second edge node.
Optionally, in the case that the working state of the first edge node is the target state, the edge computing migration method migrates the target computing service on the first edge node to the target second edge node, including:
calculating idle computing resources of each second edge node in the standby node sequence according to node computing resource information sent by the at least one second edge node;
and migrating the target computing service on the first edge node to the target second edge node according to the idle computing resources of each second edge node in the standby node sequence.
Optionally, in the case that the target state is the offline state, the method for migrating the target computing service on the first edge node to the target second edge node includes:
acquiring the offline time length of the working state of the first edge node as the offline state;
and migrating the target computing service with the offline tolerance time length smaller than the offline time length of the first edge node to the target second edge node.
Optionally, in the case that the target state is the resource blocking state, after the migration of the target computing service on the first edge node to the target second edge node, the method further includes:
under the condition that the computing resources of the first edge node meet idle conditions within a preset duration according to the node computing resource information sent by the first edge node, the target computing service is migrated from the target second edge node to the first edge node;
transmitting warning information to the first edge node under the condition that the computing resource of the first edge node is determined not to meet the idle condition within the preset time period according to the node computing resource information transmitted by the first edge node;
Wherein the idle condition is that the computing resource of the first edge node is greater than or equal to the computing resource of the target computing service; the warning information is used for indicating the first edge node to expand computing resources.
Optionally, in the case that the target state is the failure state, after the migration of the target computing service on the first edge node to the target second edge node, the method further includes:
and under the condition that the node operation state information sent by the first edge node is received to be in a presence state, the target computing service is migrated from the target second edge node back to the first edge node.
The embodiment of the invention also provides an edge computing migration method which is applied to the edge node in the edge computing migration system, wherein the edge computing migration system also comprises a cloud platform accessed by the edge node, and the method comprises the following steps:
and sending the node physical position and node information to the cloud platform, wherein the node information comprises at least one of node running state information, node computing resource information and node detection information.
Optionally, in the edge computing migration method, after the sending the physical location of the node to the cloud platform, the method further includes:
receiving a preset node area range and communication authentication information sent by the cloud platform;
determining edge nodes positioned in the same node area according to the preset node area range;
verifying the communication identity of the edge node located in the same node area according to the communication authentication information;
and detecting the edge node passing the communication authentication, and acquiring the node detection information.
The embodiment of the invention also provides an edge computing migration device, which comprises:
the first acquisition module is used for acquiring a standby node sequence of a first edge node according to node physical positions sent by a plurality of edge nodes, wherein the standby node sequence comprises at least one second edge node which is positioned in the same node area with the first edge node;
the first determining module is used for determining the working state of the first edge node according to the node information sent by the plurality of edge nodes, wherein the node information comprises at least one of node running state information, node computing resource information and node detection information;
The migration module is configured to migrate, when the working state of the first edge node is a target state, a target computing service on the first edge node to a target second edge node, where the target state is one of a resource blocking state, an offline state, and a failure state.
Optionally, the edge computing migration device, the first obtaining module is specifically configured to:
determining a node area where each edge node is located according to a preset node area range and node physical positions sent by the edge nodes;
acquiring at least one second edge node located in the same node area as the first edge node;
and sequencing according to the distances between the node physical positions of the at least one second edge node and the node physical positions of the first edge node respectively, and obtaining a standby node sequence of the first edge node.
Optionally, the edge computing migration apparatus further includes:
the second sending module is used for sending the preset node area range and the communication authentication information to the plurality of edge nodes;
the communication authentication information is used for mutually verifying communication identities among a plurality of edge nodes in the same node area; the node area is determined by the preset node area range.
Optionally, the edge computing migration device, the first determining module is specifically configured to:
determining that the working state of the first edge node is the resource blocking state under the condition that the node operation state information sent by the first edge node is in an on-line state and the target computing service with computing resource blocking exists on the first edge node according to the node computing resource information sent by the first edge node;
determining that the working state of the first edge node is the offline state when determining that at least one second edge node detects the first edge node in the standby node sequence according to the node detection information sent by the second edge node;
and determining that the working state of the first edge node is the fault state under the condition that at least one second edge node does not detect the first edge node in the standby node sequence according to the node detection information sent by the second edge node.
Optionally, the edge computing migration device, the migration module is specifically configured to:
calculating idle computing resources of each second edge node in the standby node sequence according to node computing resource information sent by the at least one second edge node;
And migrating the target computing service on the first edge node to the target second edge node according to the idle computing resources of each second edge node in the standby node sequence.
Optionally, in the case that the target state is the offline state, the migration module is specifically configured to:
acquiring the offline time length of the working state of the first edge node as the offline state;
and migrating the target computing service with the offline tolerance time length smaller than the offline time length of the first edge node to the target second edge node.
Optionally, the edge computing migration device, in a case that the target state is the resource blocking state, further includes:
the first returning module is used for returning the target computing service from the target second edge node to the first edge node under the condition that the computing resource of the first edge node meets the idle condition within the preset duration according to the node computing resource information sent by the first edge node;
the warning module is used for sending warning information to the first edge node when the fact that the computing resources of the first edge node do not meet the idle conditions within the preset time is determined according to the node computing resource information sent by the first edge node;
Wherein the idle condition is that the computing resource of the first edge node is greater than or equal to the computing resource of the target computing service; the warning information is used for indicating the first edge node to expand computing resources.
Optionally, the edge computing migration device, in the case that the target state is the failure state, further includes:
and the second migration module is used for migrating the target computing service from the target second edge node back to the first edge node under the condition that the node running state information sent by the first edge node is received to be in an online state.
The embodiment of the invention also provides an edge node, which comprises:
the first sending module is used for sending the node physical position and the node information to the cloud platform, wherein the node information comprises at least one of node running state information, node computing resource information and node detection information.
Optionally, the edge node, the apparatus further includes:
the receiving module is used for receiving the preset node area range and the communication authentication information which are sent by the cloud platform;
the second determining module is used for determining edge nodes positioned in the same node area according to the preset node area range;
The verification module is used for verifying the communication identity of the edge node located in the same node area according to the communication authentication information;
and the second acquisition module is used for detecting the edge node passing the communication authentication and acquiring the node detection information.
The embodiment of the invention also provides an edge computing migration system, which comprises: the edge computing migration means as described above and/or the edge nodes as described above.
The embodiment of the invention also provides electronic equipment, which comprises: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the edge computing migration method as claimed in any one of the preceding claims.
The embodiment of the invention also provides a readable storage medium, which comprises: a processor, a memory, and a program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the edge computation migration method as described above.
The technical scheme of the invention has at least the following beneficial effects:
in the above scheme, the standby node sequence of the first edge node is obtained through the node physical positions sent by the plurality of edge nodes, the standby node sequence comprises at least one second edge node located in the same node area as the first edge node, the working state of the first edge node is determined according to the node information sent by the plurality of edge nodes, the node information comprises at least one of node running state information, node computing resource information and node detection information, and the target computing service on the first edge node is migrated to the target second edge node under the condition that the working state of the first edge node is the target state, wherein the target state is one of a resource blocking state, an offline state and a fault state, so that the effective migration of the service is realized, the service is prevented from being interrupted, and the continuity of the service is ensured.
Drawings
FIG. 1 is a schematic diagram of an edge computing migration system according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating steps of an edge computing migration method applied to a cloud platform according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a node area according to an embodiment of the present invention;
fig. 4 is a schematic service migration diagram of an edge node in a failure state according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating steps of an edge computing migration method applied to an edge node according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an edge computing migration apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an edge node according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved more apparent, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In addition, the terms "system" and "network" are often used interchangeably herein.
In the embodiments provided herein, it should be understood that "B corresponding to a" means that B is associated with a from which B may be determined. It should also be understood that determining B from a does not mean determining B from a alone, but may also determine B from a and/or other information.
In order to enable those skilled in the art to better understand the embodiments of the present application, the following description is provided:
the architecture diagram of the edge computing migration system shown in fig. 1, where the edge computing migration system is a cloud edge cooperative architecture, includes: the cloud platform and the plurality of edge nodes connected to the cloud platform can be connected to at least one device, the device bottom layer is connected to the cloud platform through a wireless network protocol, specifically, the edge nodes support three wireless network protocols of WIFI, zigBee and BLE, the device scans the edge node with the nearest physical position by using an automatic network allocation technology and sends an authentication request, and the device communicates with the edge node after being authenticated by the edge node.
Further, the cloud platform includes: a Node Management (Node Management) module, an application Management (Application Management) module, and a monitoring and scheduling (Monitoring and Schedule) module, where specific functions of each module are as follows:
and the node management module: and centrally managing all edge nodes accessed to the cloud platform.
And an application management module: managing the application traffic of all edge nodes.
And a monitoring and scheduling module: and collecting information such as the operation state information of the edge node, the node calculation resource information, the node physical position and the like, analyzing and generating an application scheduling strategy, and carrying out service application scheduling.
Each edge node comprises: a Node Agent module, a Protocol adapter module, a Message Bus module, a Shared Memory module and an Edge Storage module, wherein the specific functions of the modules are as follows:
the node agent module: and the cloud platform is responsible for providing new and edge side local management nodes and node applications.
And a protocol adaptation module: is responsible for adapting to various types of device protocol drivers, each of which is integrated in the manner of a container application.
Message bus module: and a communication channel for uplink and downlink of device data, communication between applications and communication between the system and the applications.
And the shared cache module is used for: the node applies a computational cache.
Edge storage module: the edge store contains local persistent storage and shared storage, which can be automatically synchronized to a shared storage endpoint by configuring the endpoint as well as the data synchronization policy.
It should be noted that, the edge node driver pushes the device data to the message bus module, and synchronizes the data to the shared database through the edge storage module. If the application on the edge node is stateless, once the application is normally scheduled to run, continuously running the service; if the application on the edge node is in state, the data is updated in the edge storage module, and then the service is continuously operated.
The embodiment of the invention provides an edge computing migration method, which is applied to a cloud platform in an edge computing migration system, wherein the edge computing migration system further comprises a plurality of edge nodes connected to the cloud platform, as shown in fig. 2, and the method comprises the following steps:
step S201: according to the node physical positions sent by the edge nodes, a standby node sequence of a first edge node is obtained, wherein the standby node sequence comprises at least one second edge node which is positioned in the same node area with the first edge node;
In the embodiment of the invention, at least one second edge node in the standby node sequence is ordered from near to far according to the distance between the second edge node and the first edge node. The distance is determined according to the physical position of the node, and specifically, the physical position of the node can be determined by adopting technical modes such as 5G, GPS and the like. The edge node is accessed to the cloud platform through the 5G network, and the cloud platform is sunk to the edge cloud, so that the communication distance between the edge node and the cloud platform is shortened, and the data transmission efficiency is improved.
It should be noted that A1, A2, B1, B2, N1, and N2 in fig. 3 are all edge nodes that access the cloud platform in a lan, and each edge node is responsible for its own service operation, for example, edge node A1, on which the edge node itself is running, and executing the service in real time. The edge nodes A2, B2 and N1 adjacent to the edge node A1 in the preset node area range form a node area together, the edge node A1 is a first edge node of the node area, and the edge nodes A2, B2 and N1 are a second edge node of the node area. Each edge node may be connected to a common data source to store and share data.
Step S202: determining the working state of the first edge node according to node information sent by the edge nodes, wherein the node information comprises at least one of node running state information, node computing resource information and node detection information;
it should be noted that, under the condition that the node operation state information of the edge node is in an on-line state, the cloud platform can only receive the node operation state information sent by the edge node, and further can only receive the node computing resource information and the node detection information. The cloud platform can only receive the node computing resource information and the node detection information under the condition that the node running state information is received.
Step S203: and under the condition that the working state of the first edge node is a target state, migrating the target computing service on the first edge node to a target second edge node, wherein the target state is one of a resource blocking state, an offline state and a fault state.
It should be noted that, the migration of the target computing service or the target computing application to the target second edge node realizes effective migration, avoids the interruption of the target computing service or the target computing application when the edge computing node or the scheduling node is in an abnormal scene, such as a fault, and guarantees continuity.
According to the embodiment of the invention, the standby node sequence of the first edge node is obtained through the node physical positions sent by the plurality of edge nodes, the standby node sequence comprises at least one second edge node which is located in the same node area as the first edge node, the working state of the first edge node is determined according to the node information sent by the plurality of edge nodes, the node information comprises at least one of node running state information, node computing resource information and node detection information, and the target computing service on the first edge node is migrated to the target second edge node under the condition that the working state of the first edge node is the target state, and the target state is one of a resource blocking state, an off-line state and a fault state, so that the effective migration of the service is realized, the service is prevented from being interrupted, and the continuity of the service is ensured.
Optionally, in the edge computing migration method, step S201: according to the physical positions of the nodes sent by the edge nodes, obtaining a standby node sequence of the first edge node comprises the following steps:
determining a node area where each edge node is located according to a preset node area range and node physical positions sent by the edge nodes;
Acquiring at least one second edge node located in the same node area as the first edge node;
and sequencing according to the distances between the node physical positions of the at least one second edge node and the node physical positions of the first edge node respectively, and obtaining a standby node sequence of the first edge node.
It should be noted that, the node management module of the cloud platform sets the preset node area range and synchronizes to a plurality of edge nodes accessed to the cloud platform.
And determining at least one second edge node which is positioned in the same node area as the first edge node according to the preset node area range and the node physical positions sent by the plurality of edge nodes, and sorting according to the distances between the node physical positions of the at least one second edge node and the node physical positions of the first edge node respectively, wherein the sorting mode is from near to far, namely from the second edge node which is close to the first edge node to the second edge node which is far from the first edge node, so as to obtain the standby node sequence.
Optionally, after determining the node area where each edge node is located according to the preset node area range and the node physical positions sent by the plurality of edge nodes, the edge computing migration method further includes:
Transmitting the preset node area range and communication authentication information to the plurality of edge nodes;
the communication authentication information is used for mutually verifying communication identities among a plurality of edge nodes in the same node area; the node area is determined by the preset node area range.
In the embodiment of the invention, the edge node determines other edge nodes positioned in the same node area according to the received preset node area range, verifies the communication identity according to the communication authentication information and the edge nodes positioned in the same node area, and regularly detects whether the services of the other edge nodes are normal after the verification is passed to acquire the node detection information.
Optionally, in the edge computing migration method, step S202: according to the node information sent by the plurality of edge nodes, determining the working state of the first edge node includes:
determining that the working state of the first edge node is the resource blocking state under the condition that the node operation state information sent by the first edge node is in an on-line state and the target computing service with computing resource blocking exists on the first edge node according to the node computing resource information sent by the first edge node;
Determining that the working state of the first edge node is the offline state when determining that at least one second edge node detects the first edge node in the standby node sequence according to the node detection information sent by the second edge node;
and determining that the working state of the first edge node is the fault state under the condition that at least one second edge node does not detect the first edge node in the standby node sequence according to the node detection information sent by the second edge node.
In the embodiment of the invention, the working state of the first edge node is determined specifically through the following steps:
firstly, judging whether node information sent by the edge node is received or not;
and if the node information sent by the first edge node is received, namely the node running state information of the first edge node is in an on-line state. Further, determining whether a target computing service with computing resource blocking exists on the first edge node according to node computing resource information of the first edge node, and if the target computing service with computing resource blocking does not exist on the first edge node, determining that the working state of the first edge node is a normal state; and if the first edge node exists, the working state of the first edge node is a resource blocking state. The resource blocking state is that the computing resources of the edge node are insufficient, and the service or application of the blocked computing resources exist on the edge node.
And if the node information sent by the first edge node is not received, the working state of the first edge node is a network offline state or a fault state. Further, determining whether at least one second edge node detects the first edge node in the standby node sequence according to the node detection information of the second edge node, and if so, determining that the working state of the first edge node is the offline state; and if the fault state does not exist, the working state of the first edge node is the fault state.
Optionally, in the edge computing migration method, step S203: and under the condition that the working state of the first edge node is the target state, migrating the target computing service on the first edge node to a target second edge node comprises the following steps:
calculating idle computing resources of each second edge node in the standby node sequence according to node computing resource information sent by the at least one second edge node;
and migrating the target computing service on the first edge node to the target second edge node according to the idle computing resources of each second edge node in the standby node sequence.
In the standby node sequence, the computing resources are accumulated from the idle computing resources of the second edge node arranged at the first position (i.e., the second edge node closest to the first edge node) until the accumulated computing resources meet the computing resources of the target computing service, and all the second edge nodes between the second edge node at the first position and the second edge node meeting the computing resources of the target computing service are the target second edge nodes.
And in the process of migrating the target computing service, migrating the target computing service to a target second edge node arranged at the first position in the standby sequence, and then migrating to a target second edge node at the next position in sequence.
Optionally, in the case that the target state is the offline state, the method for migrating the target computing service on the first edge node to the target second edge node includes:
acquiring the offline time length of the working state of the first edge node as the offline state;
and migrating the target computing service with the offline tolerance time length smaller than the offline time length of the first edge node to the target second edge node.
It should be noted that, if the target state of the first edge node is the offline state, the target computing service or the target computing application with the offline tolerance duration smaller than the current offline duration on the first edge node is migrated to the target second edge node, and specifically, the target computing service is migrated to the target second edge node with the accumulated computing resources in the standby node sequence meeting the computing resources of the target computing service.
Optionally, in the case that the target state is the resource blocking state, after the migration of the target computing service on the first edge node to the target second edge node, the method further includes:
under the condition that the computing resources of the first edge node meet idle conditions within a preset duration according to the node computing resource information sent by the first edge node, the target computing service is migrated from the target second edge node to the first edge node;
transmitting warning information to the first edge node under the condition that the computing resource of the first edge node is determined not to meet the idle condition within the preset time period according to the node computing resource information transmitted by the first edge node;
Wherein the idle condition is that the computing resource of the first edge node is greater than or equal to the computing resource of the target computing service; the warning information is used for indicating the first edge node to expand computing resources.
In the embodiment of the present invention, the plurality of edge nodes send node information to the cloud platform at regular time, and if the cloud platform determines that the computing resource of the first edge node is greater than or equal to the computing resource of the target computing service or the target computing application within a preset duration according to the received node computing resource information under the condition that the first edge node is determined to be in the resource blocking state, the target computing service or the target computing application is migrated from the target second edge node back to the first edge node.
If the computing resource of the first edge node is determined to be not continuously greater than or equal to the computing resource of the target computing service or the target computing application within the preset duration according to the received node computing resource information, the cloud platform sends warning information to the first edge node to warn that the computing resource of the first edge node is insufficient.
Optionally, in the case that the target state is the failure state, after the migration of the target computing service on the first edge node to the target second edge node, the method further includes:
and under the condition that the node operation state information sent by the first edge node is received to be in a presence state, the target computing service is migrated from the target second edge node back to the first edge node.
In addition, when the first edge node fails, the device automatically switches to connect to the target second edge node. Specifically, in the case where the target state is the failure state, the target computing traffic is all computing traffic on the first edge node. And sequentially migrating all the computing services to a second edge node in the standby sequence until all the computing services are migrated. After migration, the plurality of edge nodes send node information to the cloud platform at regular time, and the cloud platform determines that the first edge node is restored to a normal state under the condition that the node operation state information of the first edge node is determined to be in an on-line state, that is, the node operation state information sent by the first edge node is received, and then the target computing service or the target computing application is migrated from the target second edge node back to the first edge node.
For example, as shown in fig. 4, the edge node A1 is the first edge node, the edge nodes A2, B2, N1 and the edge node A1 are located in the same node area, and are second edge nodes, and the edge node A1 is determined according to the distance between the edge nodes A2, B2, N1 and the edge node A1, so that the standby sequence of the first edge node is [ edge node A2; an edge node B2; edge node N1]. Before the edge node A1 sends a fault, the service accessed by the device 1 is run on the edge node A1, and after the edge node A1 fails, i.e. the edge node A1 is in a fault device, all the services on the edge node A1 migrate to the edge node A2 closest to the same node area.
The edge computing migration method provided by the embodiment of the invention has the following beneficial effects:
the service application on the edge node takes single node and effective node area calculation as main, so that the calculation is closer to a data source, and service delay is reduced; the idle computing resources in the node area are shared, so that automatic service fault migration is realized, and the computing resources are saved under the condition that the service is ensured to be normal; the equipment adopts a wireless network to access the edge node, and automatically switches and connects to the nearest edge node when the edge node fails, so as to ensure service continuity; and data sharing among the edge nodes is beneficial to service application development and expansion.
As shown in fig. 5, an edge computing migration method of the embodiment of the present invention is applied to an edge node in an edge computing migration system, where the edge computing migration system further includes a cloud platform to which the edge node is connected, and the method includes:
step S501: and sending the node physical position and node information to the cloud platform, wherein the node information comprises at least one of node running state information, node computing resource information and node detection information.
It should be noted that, the edge computing migration method may be applied not only to edge nodes in the edge computing migration system, but also to scheduling nodes.
According to the embodiment of the invention, the cloud platform acquires the standby node sequence of the edge nodes according to the physical positions of the nodes, the standby sequence comprises other edge nodes which are positioned in the same node area as the edge nodes, and the ordering mode of the edge nodes in the standby sequence is determined from the near to the far according to the distance.
And the cloud platform determines the working state of the edge node according to the node information, and migrates the target computing service on the edge node to the edge node in the standby sequence under the condition that the working state is the target state.
According to the embodiment of the invention, the node physical position and the node information are sent to the cloud platform, the node information comprises at least one of node running state information, node computing resource information and node detection information, and the cloud platform is used for effectively migrating the service on the edge node, avoiding interruption caused by the fact that the edge node is in an abnormal scene and ensuring continuity.
Optionally, in the edge computing migration method, after the sending the physical location of the node to the cloud platform, the method further includes:
receiving a preset node area range and communication authentication information sent by the cloud platform;
determining edge nodes positioned in the same node area according to the preset node area range;
verifying the communication identity of the edge node located in the same node area according to the communication authentication information;
and detecting the edge node passing the communication authentication, and acquiring the node detection information.
It should be noted that, the edge computing migration method in the embodiment of the present invention may implement all the steps implemented by the edge node in the method embodiment applied to the cloud platform, and may achieve the same or similar technical effects, which are not described herein.
As shown in fig. 6, an embodiment of the present invention further provides an edge computing migration apparatus, including:
a first obtaining module 601, configured to obtain a standby node sequence of a first edge node according to node physical positions sent by a plurality of edge nodes, where the standby node sequence includes at least one second edge node located in the same node area as the first edge node;
a first determining module 602, configured to determine an operating state of the first edge node according to node information sent by the plurality of edge nodes, where the node information includes at least one of node operating state information, node computing resource information, and node detection information;
and a migration module 503, configured to migrate, when the working state of the first edge node is a target state, the target computing service on the first edge node to a target second edge node, where the target state is one of a resource blocking state, an offline state and a failure state.
According to the embodiment of the invention, the standby node sequence of the first edge node is obtained through the node physical positions sent by the plurality of edge nodes, the standby node sequence comprises at least one second edge node which is located in the same node area as the first edge node, the working state of the first edge node is determined according to the node information sent by the plurality of edge nodes, the node information comprises at least one of node running state information, node computing resource information and node detection information, and the target computing service on the first edge node is migrated to the target second edge node under the condition that the working state of the first edge node is the target state, and the target state is one of a resource blocking state, an off-line state and a fault state, so that the effective migration of the service is realized, the service is prevented from being interrupted, and the continuity of the service is ensured.
Optionally, the edge computing migration device, the first obtaining module 601 is specifically configured to:
determining a node area where each edge node is located according to a preset node area range and node physical positions sent by the edge nodes;
acquiring at least one second edge node located in the same node area as the first edge node;
and sequencing according to the distances between the node physical positions of the at least one second edge node and the node physical positions of the first edge node respectively, and obtaining a standby node sequence of the first edge node.
Optionally, the edge computing migration apparatus further includes:
the second sending module is used for sending the preset node area range and the communication authentication information to the plurality of edge nodes;
the communication authentication information is used for mutually verifying communication identities among a plurality of edge nodes in the same node area; the node area is determined by the preset node area range.
Optionally, the edge computing migration apparatus, the first determining module 602 is specifically configured to:
determining that the working state of the first edge node is the resource blocking state under the condition that the node operation state information sent by the first edge node is in an on-line state and the target computing service with computing resource blocking exists on the first edge node according to the node computing resource information sent by the first edge node;
Determining that the working state of the first edge node is the offline state when determining that at least one second edge node detects the first edge node in the standby node sequence according to the node detection information sent by the second edge node;
and determining that the working state of the first edge node is the fault state under the condition that at least one second edge node does not detect the first edge node in the standby node sequence according to the node detection information sent by the second edge node.
Optionally, the edge computing migration device, the migration module 603 is specifically configured to:
calculating idle computing resources of each second edge node in the standby node sequence according to node computing resource information sent by the at least one second edge node;
and migrating the target computing service on the first edge node to the target second edge node according to the idle computing resources of each second edge node in the standby node sequence.
Optionally, in the case that the target state is the offline state, the migration module is specifically configured to:
Acquiring the offline time length of the working state of the first edge node as the offline state;
and migrating the target computing service with the offline tolerance time length smaller than the offline time length of the first edge node to the target second edge node.
Optionally, the edge computing migration device, in a case that the target state is the resource blocking state, further includes:
the first returning module is used for returning the target computing service from the target second edge node to the first edge node under the condition that the computing resource of the first edge node meets the idle condition within the preset duration according to the node computing resource information sent by the first edge node;
the warning module is used for sending warning information to the first edge node when the fact that the computing resources of the first edge node do not meet the idle conditions within the preset time is determined according to the node computing resource information sent by the first edge node;
wherein the idle condition is that the computing resource of the first edge node is greater than or equal to the computing resource of the target computing service; the warning information is used for indicating the first edge node to expand computing resources.
Optionally, the edge computing migration device, in the case that the target state is the failure state, further includes:
and the second migration module is used for migrating the target computing service from the target second edge node back to the first edge node under the condition that the node running state information sent by the first edge node is received to be in an online state.
It should be noted that, the edge computing migration device provided in the embodiment of the present invention can implement all the method steps implemented in the embodiment of the edge computing method applied to the cloud platform, and can achieve the same technical effects, and detailed descriptions of the same parts and beneficial effects as those in the embodiment of the method are omitted herein.
As shown in fig. 7, an embodiment of the present invention further provides an edge node, including:
the first sending module 701 is configured to send the node physical location and node information to the cloud platform, where the node information includes at least one of node running state information, node computing resource information, and node detection information.
According to the embodiment of the invention, the node physical position and the node information are sent to the cloud platform, the node information comprises at least one of node running state information, node computing resource information and node detection information, and the cloud platform is used for effectively migrating the service on the edge node, avoiding interruption caused by the fact that the edge node is in an abnormal scene and ensuring continuity.
Optionally, the edge node, the apparatus further includes:
the receiving module is used for receiving the preset node area range and the communication authentication information which are sent by the cloud platform;
the second determining module is used for determining edge nodes positioned in the same node area according to the preset node area range;
the verification module is used for verifying the communication identity of the edge node located in the same node area according to the communication authentication information;
and the second acquisition module is used for detecting the edge node passing the communication authentication and acquiring the node detection information.
It should be noted that, the edge node provided in the embodiment of the present invention can implement all the method steps implemented in the edge computing method embodiment applied to the edge node, and can achieve the same technical effects, and detailed descriptions of the same parts and beneficial effects as those in the method embodiment in the embodiment are omitted herein.
The embodiment of the invention also provides an edge computing migration system, which comprises: the edge computing migration means as described above and/or the edge nodes as described above.
The embodiment of the invention also provides an electronic device, as shown in fig. 8, including: a processor 801; and a memory 803 connected to the processor 801 through a bus interface 802, the memory 803 being for storing programs and data used by the processor 801 when executing operations, the processor 801 calling and executing the programs and data stored in the memory 803.
Wherein the transceiver 804 is coupled to the bus interface 802 for receiving and transmitting data under the control of the processor 801.
Where in FIG. 8, a bus architecture may comprise any number of interconnected buses and bridges, with one or more processors, represented in particular by processor 801, and various circuits of memory, represented by memory 803, linked together. The bus architecture may also link together various other circuits such as peripheral devices, voltage regulators, power management circuits, etc., which are well known in the art and, therefore, will not be described further herein. Bus interface 802 provides a user interface 805. The transceiver 804 may be a number of elements, i.e. include a transmitter and a receiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 801 is responsible for managing the bus architecture and general processing, and the memory 803 may store data used by the processor 801 in performing operations.
Those skilled in the art will appreciate that all or part of the steps implementing the above embodiments may be implemented by hardware, or may be implemented by a program including instructions for performing some or all of the steps of the above methods; and the program may be stored in a readable storage medium, which may be any form of storage medium.
The embodiment of the application also provides a readable storage medium, wherein the readable storage medium stores a program or an instruction, and the program or the instruction realizes the edge computing migration method according to any one of the above when being executed by a processor.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory RAM), a magnetic disk or an optical disk.
In the several embodiments provided in the present application, it should be understood that the disclosed methods and apparatus may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may be physically included separately, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform part of the steps of the transceiving method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that various modifications and changes can be made without departing from the principles of the present invention, and such modifications and changes are intended to be within the scope of the present invention.

Claims (15)

1. An edge computing migration method, which is applied to a cloud platform in an edge computing migration system, wherein the edge computing migration system further comprises a plurality of edge nodes accessing the cloud platform, and the method comprises the following steps:
according to the node physical positions sent by the edge nodes, a standby node sequence of a first edge node is obtained, wherein the standby node sequence comprises at least one second edge node which is positioned in the same node area with the first edge node;
determining the working state of the first edge node according to node information sent by the edge nodes, wherein the node information comprises at least one of node running state information, node computing resource information and node detection information;
and under the condition that the working state of the first edge node is a target state, migrating the target computing service on the first edge node to a target second edge node, wherein the target state is one of a resource blocking state, an offline state and a fault state.
2. The edge computing migration method of claim 1, wherein the obtaining the standby node sequence of the first edge node according to the node physical locations sent by the plurality of edge nodes includes:
Determining a node area where each edge node is located according to a preset node area range and node physical positions sent by the edge nodes;
acquiring at least one second edge node located in the same node area as the first edge node;
and sequencing according to the distances between the node physical positions of the at least one second edge node and the node physical positions of the first edge node respectively, and obtaining a standby node sequence of the first edge node.
3. The edge computing migration method according to claim 2, wherein after determining the node area in which each edge node is located according to the preset node area range and the node physical locations transmitted by the plurality of edge nodes, the method further comprises:
transmitting the preset node area range and communication authentication information to the plurality of edge nodes;
the communication authentication information is used for mutually verifying communication identities among a plurality of edge nodes in the same node area; the node area is determined by the preset node area range.
4. The edge computing migration method according to claim 1, wherein the determining the working state of the first edge node according to the node information sent by the plurality of edge nodes includes:
Determining that the working state of the first edge node is the resource blocking state under the condition that the node operation state information sent by the first edge node is in an on-line state and the target computing service with computing resource blocking exists on the first edge node according to the node computing resource information sent by the first edge node;
determining that the working state of the first edge node is the offline state when determining that at least one second edge node detects the first edge node in the standby node sequence according to the node detection information sent by the second edge node;
and determining that the working state of the first edge node is the fault state under the condition that at least one second edge node does not detect the first edge node in the standby node sequence according to the node detection information sent by the second edge node.
5. The edge computing migration method according to claim 1, wherein, in the case that the working state of the first edge node is the target state, migrating the target computing service on the first edge node to the target second edge node includes:
Calculating idle computing resources of each second edge node in the standby node sequence according to node computing resource information sent by the at least one second edge node;
and migrating the target computing service on the first edge node to the target second edge node according to the idle computing resources of each second edge node in the standby node sequence.
6. The edge computing migration method according to claim 1, wherein, in the case that the target state is the offline state, the migrating the target computing service on the first edge node to the target second edge node includes:
acquiring the offline time length of the working state of the first edge node as the offline state;
and migrating the target computing service with the offline tolerance time length smaller than the offline time length of the first edge node to the target second edge node.
7. The edge computing migration method of claim 1, wherein in the case where the target state is the resource blocking state, after the migrating the target computing traffic on the first edge node to a target second edge node, the method further comprises:
Under the condition that the computing resources of the first edge node meet idle conditions within a preset duration according to the node computing resource information sent by the first edge node, the target computing service is migrated from the target second edge node to the first edge node;
transmitting warning information to the first edge node under the condition that the computing resource of the first edge node is determined not to meet the idle condition within the preset time period according to the node computing resource information transmitted by the first edge node;
wherein the idle condition is that the computing resource of the first edge node is greater than or equal to the computing resource of the target computing service; the warning information is used for indicating the first edge node to expand computing resources.
8. The edge computing migration method of claim 1, wherein in the case where the target state is the failure state, after the migrating the target computing traffic on the first edge node to a target second edge node, the method further comprises:
and under the condition that the node operation state information sent by the first edge node is received to be in a presence state, the target computing service is migrated from the target second edge node back to the first edge node.
9. An edge computing migration method is characterized by being applied to an edge node in an edge computing migration system, wherein the edge computing migration system further comprises a cloud platform accessed by the edge node, and the method comprises the following steps:
and sending the node physical position and node information to the cloud platform, wherein the node information comprises at least one of node running state information, node computing resource information and node detection information.
10. The edge computing migration method of claim 9, wherein after the sending the physical location of the node to the cloud platform, the method further comprises:
receiving a preset node area range and communication authentication information sent by the cloud platform;
determining edge nodes positioned in the same node area according to the preset node area range;
verifying the communication identity of the edge node located in the same node area according to the communication authentication information;
and detecting the edge node passing the communication authentication, and acquiring the node detection information.
11. An edge computing migration apparatus, comprising:
the first acquisition module is used for acquiring a standby node sequence of a first edge node according to node physical positions sent by a plurality of edge nodes, wherein the standby node sequence comprises at least one second edge node which is positioned in the same node area with the first edge node;
The first determining module is used for determining the working state of the first edge node according to the node information sent by the plurality of edge nodes, wherein the node information comprises at least one of node running state information, node computing resource information and node detection information;
the migration module is configured to migrate, when the working state of the first edge node is a target state, a target computing service on the first edge node to a target second edge node, where the target state is one of a resource blocking state, an offline state, and a failure state.
12. An edge node, comprising:
the first sending module is used for sending the node physical position and the node information to the cloud platform, wherein the node information comprises at least one of node running state information, node computing resource information and node detection information.
13. An edge computing migration system, comprising: edge computing migration apparatus according to claim 11 and/or edge node according to claim 12.
14. An electronic device, comprising: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the edge computing migration method of any one of claims 1 to 8 or the steps of the edge computing migration method of any one of claims 9 to 10.
15. A readable storage medium, comprising: a processor, a memory and a program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the edge computing migration method of any one of claims 1 to 8 or the steps of the edge computing migration method of any one of claims 9 to 10.
CN202210279275.8A 2022-03-21 2022-03-21 Edge computing migration method and system Pending CN116827941A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210279275.8A CN116827941A (en) 2022-03-21 2022-03-21 Edge computing migration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210279275.8A CN116827941A (en) 2022-03-21 2022-03-21 Edge computing migration method and system

Publications (1)

Publication Number Publication Date
CN116827941A true CN116827941A (en) 2023-09-29

Family

ID=88113252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210279275.8A Pending CN116827941A (en) 2022-03-21 2022-03-21 Edge computing migration method and system

Country Status (1)

Country Link
CN (1) CN116827941A (en)

Similar Documents

Publication Publication Date Title
US9141491B2 (en) Highly available server system based on cloud computing
US10771569B1 (en) Network communication control method of multiple edge clouds and edge computing system
CN104468521A (en) Online migration method, device and system
CN106605213B (en) System for supporting with intermittent connectivity, corresponding local device and corresponding cloud computing platform
CN104158707A (en) Method and device of detecting and processing brain split in cluster
CN112311896B (en) Health examination method, device, equipment and computer readable storage medium
CN105429799A (en) Server backup method and device
CN110944044B (en) Distributed API gateway system and implementation method thereof
EP2852113A1 (en) Load sharing method and device, and single board
CN112788088B (en) Network communication control method of multi-edge cloud and edge operation system
US20220256320A1 (en) Power management of movable edge computing servers
CN112788089A (en) Network communication control method of multi-edge cloud, edge operation device and system
CN110213359B (en) Internet of vehicles networking data pushing system and method based on D2D
CN116886497A (en) Service grid business centralized proxy switching method and processing system based on DPU
CN103186536A (en) Method and system for scheduling data shearing devices
CN108200151B (en) ISCSI Target load balancing method and device in distributed storage system
CN109218137B (en) Method and device for detecting state of node in distributed system
CN116827941A (en) Edge computing migration method and system
CN102868594B (en) Method and device for message processing
CN112398913B (en) Service scheduling method and system
CN110635927B (en) Node switching method, network node and network system
CN113821334A (en) Method, device and system for configuring edge side equipment
KR101377461B1 (en) Remote Maintenance and Monitoring Service Framework for Heterogeneous Device and System
CN112822792A (en) Distribution method, device, equipment and storage medium of bearing identification
CN114553900B (en) Distributed block storage management system, method and electronic equipment

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