Disclosure of Invention
In view of the foregoing, it is desirable to provide a node switching method, an apparatus, a computer device, and a storage medium capable of improving reliability of an edge node in response to the foregoing technical problem.
In a first aspect, a node switching method is provided, where the method includes:
receiving core data sent by a target edge node, wherein the core data is data which must be used by the target edge node for providing services for a terminal;
when the target edge node fails, selecting a target alternative edge node from the alternative edge nodes, and sending the core data to the target alternative edge node;
and controlling the target alternative edge node to replace the target edge node to provide service for the terminal.
In one embodiment, when the target edge node fails, before selecting the target candidate edge node among the candidate edge nodes, the method further includes:
determining whether the target edge node has a fault according to at least one of the log data, the interface access state and the resource occupancy rate of the target edge node;
the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
In one embodiment, the receiving core data sent by the target edge node includes:
detecting the integrity of core data in a cloud end, and detecting whether the core data in the cloud end is consistent with the core data in the target edge node;
when the core data in the cloud end is detected to be incomplete, or the core data in the cloud end is detected to be inconsistent with the core data in the target edge node, sending a core data resending instruction to the target edge node, wherein the core data resending instruction is used for indicating the target edge node to resend the core data to the cloud end;
and updating the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
In one embodiment, selecting a target candidate edge node from the candidate edge nodes includes:
determining the alternative edge nodes with the resource occupancy rates smaller than a preset threshold value as the alternative edge nodes, wherein the resource occupancy rates comprise at least one of central processing unit occupancy rates, memory occupancy rates and hard disk occupancy rates;
when at least two candidate edge nodes exist, determining a target candidate edge node according to the geographic positions of the candidate edge nodes.
In one embodiment, determining the target candidate edge node according to the geographical location information of the candidate edge node includes:
and determining the candidate edge node with the closest geographical position to the target edge node as a target candidate edge node.
In one embodiment, the method further comprises:
and when only one candidate edge node exists, taking the candidate edge node as a target candidate edge node.
In one embodiment, controlling the target candidate edge node to replace the target edge node to provide a service for the terminal includes:
and sending modified routing information to the core network, wherein the modified routing information is used for indicating the core network to control the target alternative edge node to replace the target edge node through the routing equipment so as to provide service for the terminal.
In a second aspect, a node switching apparatus is provided, and is used in a cloud, the apparatus includes:
a receiving module, configured to receive core data sent by a target edge node, where the core data is data that must be used by the target edge node to provide a service for a terminal;
a selecting module, configured to select a target candidate edge node from the candidate edge nodes when the target edge node fails, and send the core data to the target candidate edge node;
and the control module is used for controlling the target alternative edge node to replace the target edge node to provide service for the terminal.
In one embodiment, the apparatus further includes a determining module, configured to determine whether the target edge node fails according to at least one of log data of the target edge node, an interface access status, and a resource occupancy rate; the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
In one embodiment, the receiving module is specifically configured to detect integrity of core data in a cloud and detect whether the core data in the cloud is consistent with the core data in the target edge node; when the core data in the cloud end is detected to be incomplete, or the core data in the cloud end is detected to be inconsistent with the core data in the target edge node, sending a core data resending instruction to the target edge node, wherein the core data resending instruction is used for indicating the target edge node to resend the core data to the cloud end; and updating the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
In one embodiment, the selection module is specifically configured to determine a candidate edge node with a resource occupancy rate smaller than a preset threshold as the candidate edge node, where the resource occupancy rate includes at least one of a central processing unit occupancy rate, a memory occupancy rate, and a hard disk occupancy rate; when at least two candidate edge nodes exist, determining a target candidate edge node according to the geographic positions of the candidate edge nodes.
In one embodiment, the selection module is specifically configured to determine a candidate edge node whose geographic location is closest to the target edge node as the target candidate edge node.
In one embodiment, the selection module is specifically configured to, when only one candidate edge node exists, take the candidate edge node as the target candidate edge node.
In one embodiment, the control module is specifically configured to send modified routing information to a core network, where the modified routing information is used to instruct the core network to control a target candidate edge node to replace a target edge node through a routing device to provide a service for a terminal.
In a third aspect, a computer device is provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the node switching method according to any one of the first aspect when executing the computer program.
In a fourth aspect, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the node switching method of any one of the first aspects.
The node switching method, the node switching device, the computer equipment and the storage medium can receive core data sent by a target edge node, wherein the core data is data which is necessary to be used by the target edge node for providing services for a terminal; then when the target edge node fails, selecting a target alternative edge node from the alternative edge nodes, and sending the core data to the target alternative edge node; and finally, controlling the target alternative edge node to replace the target edge node to provide service for the terminal. According to the node switching method, the cloud end can store the core data of the target edge node, when the target edge node has a problem, the core data of the target edge node can be sent to the target alternative edge node, and the target alternative edge node is controlled to replace the target edge node to continue to provide service for the terminal. Therefore, compared with the traditional multi-access edge access technology, the node switching method provided by the application can still continuously provide service for the terminal under the condition that the edge node fails, and greatly improves the reliability of the traditional multi-access edge computing technology.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further 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 present application and are not intended to limit the present application.
On the premise of the day and development of computer technology and communication technology, a fifth generation mobile communication technology (english: 5G) is emerging. In the fifth generation mobile communication technology, the terminal may obtain service through the core network node, but some problems may also occur therewith. For example, in the case of increasing number of terminals requiring services, the data transmission pressure of the core network node is too high due to the fact that the terminals are only served by the core network node. In order to relieve the data transmission pressure of the core network nodes, a multi-access edge computing (MEC) technology is introduced.
In the related MEC, some edge nodes are deployed in addition to the original core network node, and the terminal may not only obtain services by relying on the core network node, but also select an edge node closer to the terminal from among the edge nodes to provide services for the terminal. The data transmission pressure of the core network nodes is greatly relieved.
However, in the related MECs, there are still some problems. For example, when an edge node corresponding to a certain terminal fails, the terminal cannot obtain service guarantee, and thus, the related MEC technology has a problem of low reliability.
The node switching method provided by the application can be applied to the application environment shown in fig. 1. The cloud 101 may receive core data sent by the target edge node 102, when the target edge node 102 fails, the cloud 101 may select a target candidate edge node from the candidate edge nodes, and send the core data to the target candidate edge node, and finally the cloud 101 may control the target candidate edge node to replace the target edge node 102 to provide a service for the terminal.
The cloud 101 may be implemented by an independent server or a server cluster composed of a plurality of servers, and the target edge node 102 may be implemented by an independent server or a server cluster composed of a plurality of servers.
In the embodiment of the present application, as shown in fig. 2, a node switching method is provided, which is described by taking an example that the method is applied to the cloud in fig. 1, and includes the following steps:
in step 201, the cloud receives core data sent by a target edge node, where the core data is data that the target edge node must use to provide a service for a terminal.
In this step, the target edge node may provide a service for the terminal, and optionally, data required by the target edge node to provide a service for the terminal may be divided into two types, core data and non-core data. The core data is data that is necessary for the target edge node to serve the terminal, and the non-core data is data that may not be needed for the target edge node to serve the terminal. The target edge node must retain the core data to ensure availability and continuity of service. The division of the core data and the non-core data can be set according to actual conditions or by management personnel. The target edge node only uploads the core data of the target edge node to the cloud for backup, the mass storage function of the cloud is utilized, the problem of bandwidth resource shortage caused by backup of the full data (the core data and the non-core data) under the condition that the cloud manages a large number of edge nodes is avoided, and the data storage pressure of the cloud is greatly reduced.
Step 202, when the target edge node fails, the cloud selects a target candidate edge node from the candidate edge nodes, and sends the core data to the target candidate edge node.
As shown in step 201, the cloud may manage a large number of edge nodes, for example, one cloud may manage thousands or tens of thousands of edge nodes. The cloud end can monitor the managed edge nodes in real time or at regular time, when the cloud end monitors that a certain edge node fails, one target alternative edge node can be selected from other managed alternative edge nodes, and then the core data of the edge node which is stored by the cloud end and fails is sent to the target alternative edge node, so that the core data of the edge node which fails exists in the target alternative edge node, and the target alternative edge node can further replace the edge node which fails to provide service for the corresponding terminal.
In step 203, the cloud controls the target candidate edge node to replace the target edge node to provide service for the terminal.
In the embodiment of the present application, what is opposite to the edge node is a core network node, the core network node includes a single server or a server cluster and a routing device, and the cloud end can communicate with the core network node. Optionally, in this step, the cloud controls the target candidate edge node to replace the target edge node to provide the service for the terminal, where the cloud communicates with the core network node, so that the routing device in the core network node changes the flow direction of data between the terminal and the edge node, that is, the corresponding relationship between the edge node and the terminal may be changed, thereby implementing that the target candidate edge node replaces the target edge node to continue to provide the service for the terminal corresponding to the target edge node, and thus ensuring the continuity and reliability of the service.
In the node switching method, core data sent by a target edge node can be received, wherein the core data is data which is necessary to be used by the target edge node for providing service for a terminal; then when the target edge node fails, selecting a target alternative edge node from the alternative edge nodes, and sending the core data to the target alternative edge node; and finally, controlling the target alternative edge node to replace the target edge node to provide service for the terminal. According to the node switching method, the cloud end can store the core data of the target edge node, when the target edge node has a problem, the core data of the target edge node can be sent to the target alternative edge node, and the target alternative edge node is controlled to replace the target edge node to continue to provide service for the terminal. Therefore, compared with the traditional multi-access edge access technology, the node switching method provided by the application can still continuously provide service for the terminal under the condition that the edge node fails, and greatly improves the reliability of the traditional multi-access edge computing technology.
In an embodiment of the present application, a method for determining whether a target edge node fails in a node switching method is provided, where the method includes:
the cloud determines whether the target edge node fails according to at least one of the log data, the interface access state and the resource occupancy rate of the target edge node;
the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
In the embodiment of the application, the cloud end can monitor the target edge node in real time or at regular time, so as to determine whether the target edge node fails. In order to avoid misjudgment, the cloud end needs to determine whether the target edge node fails by combining data of multiple aspects, for example, the target edge node may report its log data, interface access status, and resource occupancy rate to the cloud end in real time or at regular time, and then the cloud end may combine these data to determine whether the target edge node fails. Specifically, when the cloud monitors that the log data, the interface access state and the resource occupancy rate of the target edge node are all displayed to be abnormal, it is determined that the target edge node actually fails. The abnormal performance of the log data can be that the time information recorded in the log data of the edge node is abnormal or the recorded operation information when the target edge node provides service does not accord with the preset standard; the abnormal interface access state can be represented by that the cloud end cannot access the target edge node or the target edge node cannot be normally accessed by the corresponding terminal; the abnormal resource occupancy rate can be represented by that the value of any one of the central processor occupancy rate, the memory occupancy rate and the hard disk occupancy rate of the target edge node is greater than a preset threshold value.
In the embodiment of the application, the fault judgment is carried out by combining data of multiple aspects of the target edge node, so that the finally judged result is more accurate.
In an embodiment of the present application, please refer to fig. 3, which provides a method for receiving core data of a target edge node in a node switching method, where the method includes:
step 301, the cloud detects the integrity of the core data in the cloud, and detects whether the core data in the cloud is consistent with the core data in the target edge node.
In the embodiment of the application, the cloud end receives the core data uploaded by the target edge node, and in order to ensure that the core data stored in the cloud end is complete and is consistent with the current core data in the target edge node, the cloud end can check the core data stored in the cloud end in this step.
Optionally, the cloud may periodically check the core data stored in the cloud. Specifically, the cloud and the target edge node can respectively adopt the same calculation mode to calculate the core data of the cloud and the target edge node to obtain a numerical value, then the target edge node can send the numerical value obtained by the calculation of the target edge node to the cloud, the cloud can compare the numerical value obtained by the calculation of the cloud with the numerical value obtained by the calculation of the target edge node, and if the two numerical values are inconsistent, the core data stored in the cloud is incomplete and inconsistent with the core data stored in the target edge node. The above calculation methods are usually parity check, cyclic redundancy check, block check, longitudinal redundancy check, or digest algorithm.
Step 302, when detecting that the core data in the cloud is incomplete, or detecting that the core data in the cloud is inconsistent with the core data in the target edge node, the cloud sends a core data resending instruction to the target edge node, where the core data resending instruction is used to instruct the target edge node to resend the core data to the cloud.
After the integrity and consistency of the core data in the cloud are checked based on the step 301, if the cloud detects that the core data does not conform to the integrity or consistency, the cloud needs to re-backup a copy of the core data with integrity and consistency. Specifically, the cloud end sends a data repotting instruction to the target edge node, the target edge node sends the current latest core data to the cloud end after receiving the core data repotting instruction, and the cloud end checks the integrity and consistency of the received core data again after receiving the core data reportedly by the target edge node until the received core data meets the integrity and consistency.
In step 303, the cloud updates the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
After the cloud determines that the received core data conforms to the integrity and the consistency, the cloud stores the received core data as the latest core data, so that the cloud is guaranteed to have the backup of the latest core data of the target edge node.
In the embodiment of the application, the cloud checks the integrity and consistency of the core data of the target edge node stored by the cloud, and when the target edge node fails, the cloud can utilize the latest and most complete backup of the core data to perform subsequent failure emergency.
In an embodiment of the present application, please refer to fig. 4, which provides a method for selecting a target candidate edge node in a node switching method, where the method includes:
step 401, the cloud determines a candidate edge node with a resource occupancy rate smaller than a preset threshold as a candidate edge node, where the resource occupancy rate includes at least one of a central processing unit occupancy rate, a memory occupancy rate, and a hard disk occupancy rate.
As noted above, resource occupancy may be an important indicator of whether an edge node is available. Optionally, in the step, the manner of measuring whether the candidate edge node is available by using the resource occupancy rate may be that when all of the values of the central processor occupancy rate, the memory occupancy rate, and the hard disk occupancy rate of the candidate edge node are less than the preset threshold, it indicates that the candidate edge node is in an available state, and the candidate edge node in the available state may be used as a candidate edge node for the next step.
Step 402, when at least two candidate edge nodes exist, the cloud determines a target candidate edge node according to the geographic position of the candidate edge nodes.
After the candidate edge nodes are screened out in step 401, the cloud end needs to determine a target candidate edge node which finally replaces the target edge node to continue providing service. If the cloud end screens out a plurality of candidate edge nodes, further, the target candidate edge nodes can be determined according to the positions of the candidate edge nodes. Specifically, the cloud may determine a candidate edge node whose geographic position is closest to the target edge node as the target candidate edge node, and the cloud may acquire the geographic position of the candidate edge node in a manner that the cloud accesses a network address of the candidate edge node, so as to obtain geographic position information of the candidate edge node.
In one possible case, when only one candidate edge node exists, the cloud end takes the candidate edge node as a target candidate edge node.
In the embodiment of the application, a strict screening method is provided, so that the cloud can quickly and accurately screen out the target candidate edge nodes with good performance states.
In this embodiment of the present application, the step 203 includes: the cloud sends modified routing information to the core network, wherein the modified routing information is used for indicating the core network to control the target alternative edge node to replace the target edge node through the routing equipment so as to provide service for the terminal.
In this embodiment of the present application, the routing device may change a path through which traffic passes in the network, that is, the routing device may change a data flow direction relationship between the terminal and the edge node. Therefore, the cloud end can change the service corresponding relation between the terminal and the edge node by managing the routing equipment through the core network by sending the routing modification information to the core network, that is, the edge node corresponding to the terminal can be changed.
After the cloud determines the target candidate edge node and changes the edge node corresponding to the terminal through the routing device, the latest core data of the target edge node which is backed up by the cloud and has a fault is sent to the target candidate edge node, so that the target candidate edge node can continue to provide service for the terminal by using the core data.
In the embodiment of the application, the cloud sends the modified routing information to the core network and timely sends the latest core data of the target edge node to the target alternative edge node, so that when the target edge node fails, the corresponding terminal can be timely oriented to the new edge node, and continuity and reliability of service are guaranteed.
It should be understood that, although the steps in the flowcharts of fig. 2 to 4 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In an embodiment of the present application, as shown in fig. 5, there is provided a node switching apparatus, including: a receiving module 501, a selecting module 502 and a control module 503, wherein:
a receiving module 501, configured to receive core data sent by a target edge node, where the core data is data that must be used by the target edge node to provide a service for a terminal;
a selecting module 502, configured to select a target candidate edge node from the candidate edge nodes when the target edge node fails, and send the core data to the target candidate edge node;
a control module 503, configured to control the target candidate edge node to provide a service for the terminal instead of the target edge node.
In the embodiment of the present application, please refer to fig. 6, another node switching apparatus 600 is provided, where the node switching apparatus 600 includes, in addition to the modules included in the node switching apparatus 500, optionally, the node switching apparatus 600 further includes a determining module 504.
The determining module 504 is configured to determine whether the target edge node fails according to at least one of the log data of the target edge node, the interface access status, and the resource occupancy rate; the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
In this embodiment, the receiving module 501 is specifically configured to detect integrity of core data in a cloud, and detect whether the core data in the cloud is consistent with the core data in the target edge node; when the core data in the cloud end is detected to be incomplete, or the core data in the cloud end is detected to be inconsistent with the core data in the target edge node, sending a core data resending instruction to the target edge node, wherein the core data resending instruction is used for indicating the target edge node to resend the core data to the cloud end; and updating the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
In this embodiment of the present application, the selecting module 502 is specifically configured to determine, as a candidate edge node, a candidate edge node whose resource occupancy rate is less than a preset threshold, where the resource occupancy rate includes at least one of a central processing unit occupancy rate, a memory occupancy rate, and a hard disk occupancy rate; when at least two candidate edge nodes exist, determining a target candidate edge node according to the geographic positions of the candidate edge nodes.
In this embodiment of the application, the selecting module 502 is specifically configured to determine a candidate edge node whose geographic position is closest to the target edge node as a target candidate edge node.
In this embodiment of the application, the selecting module 502 is specifically configured to, when there is only one candidate edge node, take the candidate edge node as a target candidate edge node.
In this embodiment of the present application, the control module 503 is specifically configured to send modified routing information to a core network, where the modified routing information is used to instruct the core network to control a target candidate edge node to replace a target edge node through a routing device to provide a service for a terminal.
For the specific definition of the node switching device, reference may be made to the above definition of the node switching method, which is not described herein again. The modules in the node switching device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing core data of the target edge node. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a node switching method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In an embodiment of the present application, there is provided a computer device including a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
receiving core data sent by a target edge node, wherein the core data is data which must be used by the target edge node for providing services for a terminal;
when the target edge node fails, selecting a target alternative edge node from the alternative edge nodes, and sending the core data to the target alternative edge node;
and controlling the target alternative edge node to replace the target edge node to provide service for the terminal.
In the embodiment of the present application, the processor, when executing the computer program, further implements the following steps:
determining whether the target edge node has a fault according to at least one of the log data, the interface access state and the resource occupancy rate of the target edge node; the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
In the embodiment of the present application, the processor, when executing the computer program, further implements the following steps:
detecting the integrity of core data in a cloud end, and detecting whether the core data in the cloud end is consistent with the core data in the target edge node; when the core data in the cloud end is detected to be incomplete, or the core data in the cloud end is detected to be inconsistent with the core data in the target edge node, sending a core data resending instruction to the target edge node, wherein the core data resending instruction is used for indicating the target edge node to resend the core data to the cloud end; and updating the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
In the embodiment of the present application, the processor, when executing the computer program, further implements the following steps:
determining the alternative edge nodes with the resource occupancy rates smaller than a preset threshold value as the alternative edge nodes, wherein the resource occupancy rates comprise at least one of central processing unit occupancy rates, memory occupancy rates and hard disk occupancy rates; when at least two candidate edge nodes exist, determining a target candidate edge node according to the geographic positions of the candidate edge nodes.
In the embodiment of the present application, the processor, when executing the computer program, further implements the following steps:
and determining the candidate edge node with the closest geographical position to the target edge node as a target candidate edge node.
In the embodiment of the present application, the processor, when executing the computer program, further implements the following steps:
and when only one candidate edge node exists, taking the candidate edge node as a target candidate edge node.
In the embodiment of the present application, the processor, when executing the computer program, further implements the following steps:
and sending modified routing information to the core network, wherein the modified routing information is used for indicating the core network to control the target alternative edge node to replace the target edge node through the routing equipment so as to provide service for the terminal.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, realizes the steps of:
receiving core data sent by a target edge node, wherein the core data is data which must be used by the target edge node for providing services for a terminal;
when the target edge node fails, selecting a target alternative edge node from the alternative edge nodes, and sending the core data to the target alternative edge node;
and controlling the target alternative edge node to replace the target edge node to provide service for the terminal.
In an embodiment of the application, the computer program when executed by the processor further performs the steps of:
determining whether the target edge node has a fault according to at least one of the log data, the interface access state and the resource occupancy rate of the target edge node; the log data is used for representing time information and operation information of service provided by the target edge node, the interface access state is used for representing whether the target edge node can be normally accessed by the terminal and whether the target edge node can be normally accessed by the cloud, and the resource occupancy rate is used for representing at least one of central processor occupancy rate, memory occupancy rate and hard disk occupancy rate of the target edge node.
In an embodiment of the application, the computer program when executed by the processor further performs the steps of:
detecting the integrity of core data in a cloud end, and detecting whether the core data in the cloud end is consistent with the core data in the target edge node; when the core data in the cloud end is detected to be incomplete, or the core data in the cloud end is detected to be inconsistent with the core data in the target edge node, sending a core data resending instruction to the target edge node, wherein the core data resending instruction is used for indicating the target edge node to resend the core data to the cloud end; and updating the core data in the cloud by using the core data retransmitted to the cloud by the target edge node.
In an embodiment of the application, the computer program when executed by the processor further performs the steps of:
determining the alternative edge nodes with the resource occupancy rates smaller than a preset threshold value as the alternative edge nodes, wherein the resource occupancy rates comprise at least one of central processing unit occupancy rates, memory occupancy rates and hard disk occupancy rates; when at least two candidate edge nodes exist, determining a target candidate edge node according to the geographic positions of the candidate edge nodes.
In an embodiment of the application, the computer program when executed by the processor further performs the steps of:
and determining the candidate edge node with the closest geographical position to the target edge node as a target candidate edge node.
In an embodiment of the application, the computer program when executed by the processor further performs the steps of:
and when only one candidate edge node exists, taking the candidate edge node as a target candidate edge node.
In an embodiment of the application, the computer program when executed by the processor further performs the steps of:
and sending modified routing information to the core network, wherein the modified routing information is used for indicating the core network to control the target alternative edge node to replace the target edge node through the routing equipment so as to provide service for the terminal.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.