Terminal node management method, electronic equipment, storage medium and program product

By determining the associated terminal nodes in a distributed system and synchronizing the service operation information, the problems of high network delay and bandwidth pressure in the distributed architecture are solved, and rapid fault handling and reduced downtime costs are achieved.

CN120567657APending Publication Date: 2025-08-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202511062044.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-30
Publication Date
2025-08-29

AI Technical Summary

Technical Problem

In the prior art, the network delay and bandwidth pressure are relatively high in node fault handling in distributed architectures. It is necessary to quickly take over services and reduce bandwidth pressure.

Method used

By obtaining the node information of the terminal node, determining the associated terminal node and establishing an association relationship, synchronizing the service operation information, and quickly taking over the service based on the synchronized service operation information when a failure of the associated terminal node is detected, avoiding scheduling through the central platform.

Benefits of technology

Reduces network delay and bandwidth pressure, improves the speed and reliability of fault handling, and reduces downtime costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120567657A_ABST
    Figure CN120567657A_ABST
Patent Text Reader

Abstract

The invention discloses a terminal node management method, electronic equipment, a storage medium and a program product, and relates to the technical field of distributed systems.The method comprises the steps that a target terminal node determines an associated terminal node of the target terminal node according to node information, and after the target terminal node and the associated terminal node establish an association relationship, service operation information is synchronized; according to the method, the autonomous service operation information synchronization function between the terminal nodes is realized, the target terminal node takes over the service according to the synchronized service operation information when detecting that the associated terminal node has a fault, the process does not need to be scheduled through a central platform, the target terminal node can take over the service quickly, the downtime cost is reduced, and the efficiency is improved. The technical problem of large network delay and bandwidth pressure of a scheduling mode in the related technology is solved, and the technical effect of reducing the network delay and bandwidth pressure of scheduling is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of distributed systems, and in particular to a terminal node management method, electronic device, storage medium, and program product. Background Art

[0002] With the development of technologies such as the Internet of Things, smart homes, and smart manufacturing, more and more devices are connected to the internet. To meet the needs of efficient, secure, and reliable device management, platform management technologies are often used to manage these devices. Artificial intelligence platform device management technology is an efficient, flexible, secure, and reliable platform management technology.

[0003] Currently, artificial intelligence platform device management adopts a distributed architecture. When a node in the distributed architecture fails, the platform dispatches the business of the failed node to other nodes for disaster recovery. The current scheduling method has high network delay and bandwidth pressure. It is very necessary to implement a solution that can quickly take over the business and reduce bandwidth pressure. Summary of the Invention

[0004] The present application provides a terminal node management method, electronic device, storage medium and program product to at least solve the problems of network delay and high bandwidth pressure in the scheduling method in the related art.

[0005] This application provides a terminal node management method, which is applied to a target terminal node and includes: Obtain node information of multiple terminal nodes sent by the artificial intelligence platform, and determine the associated terminal node of the target terminal node from the multiple terminal nodes according to the node information; Acquire the business operation information of the target business in the associated terminal node to synchronize the business operation information to the target terminal node; In response to detecting that a failure occurs in the associated terminal node, a target service in the associated terminal node is run according to the service running information.

[0006] The present application also provides a terminal node management device, including: An acquisition module, configured to acquire node information of multiple terminal nodes sent by the artificial intelligence platform, and determine an associated terminal node of the target terminal node from the multiple terminal nodes according to the node information; A synchronization module is used to obtain the business operation information of the target business in the associated terminal node to synchronize the business operation information to the target terminal node; The running module is configured to run a target service in the associated terminal node according to service running information in response to detecting that a failure occurs in the associated terminal node.

[0007] This application also provides a terminal node management system, including: AI platform and multiple end nodes; The artificial intelligence platform is used to collect node information of multiple terminal nodes and send the node information of the multiple terminal nodes to at least one terminal node; For any target terminal node among the multiple terminal nodes, the target terminal node is used to determine an associated terminal node of the target terminal node from the multiple terminal nodes according to the node information; The target terminal node is also used to obtain the business operation information of the target business in the associated terminal node to synchronize the business operation information to the target terminal node; The target terminal node is further configured to, in response to detecting that a failure occurs in the associated terminal node, run a target service in the associated terminal node according to the service running information.

[0008] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned terminal node management methods when executing the computer program.

[0009] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned terminal node management methods are implemented.

[0010] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned terminal node management methods when executed by a processor.

[0011] Through the present application, for any target terminal node among multiple terminal nodes, the target terminal node determines its own associated terminal node based on the node information, and can screen out terminal nodes suitable for perceiving and interacting with the target terminal node from the multiple terminal nodes to establish an association relationship; after the target terminal node establishes an association relationship with the associated terminal node, the business operation information is synchronized, thereby realizing the autonomous business operation information synchronization function between terminal nodes. Compared with the disaster recovery solution scheduled through the central platform, there is no need to transmit information through the central platform, which reduces the network delay and bandwidth pressure caused by transmission through the central platform; when the target terminal node detects that the associated terminal node has a fault, it takes over the business based on the synchronized business operation information, without the need for scheduling through the central platform, which reduces the network delay and bandwidth pressure caused by scheduling through the central platform, and because it is autonomous management between terminal nodes, the business operation information has been synchronized for the associated terminal node when the fault is detected, and the target terminal node can quickly take over the business, reducing downtime costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0013] Figure 1 A flowchart of a terminal node management method provided in Example 1 of the present application; Figure 2 A flowchart of a terminal node management method provided in Example 2 of the present application; Figure 3 A flowchart of a terminal node management method provided in Example 3 of the present application; Figure 4 A schematic diagram of heartbeat detection between terminal nodes provided in an embodiment of the present application; Figure 5 A flowchart of a terminal node management method provided in Example 4 of the present application; Figure 6 A schematic diagram of mirror synchronization between terminal nodes provided in an embodiment of the present application; Figure 7 A schematic diagram of business data synchronization between terminal nodes provided in an embodiment of the present application; Figure 8 A schematic diagram of the structure of a terminal node management system provided in an embodiment of the present application; Figure 9 A schematic diagram of the structure of a terminal node management device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0014] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0015] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.

[0016] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0017] An embodiment of the present application provides a terminal node management method, and the method is described in detail in conjunction with the execution process of the terminal node management method.

[0018] Figure 1 This is a flow chart of a terminal node management method provided in Example 1 of the present application. The method can be executed by the terminal node management device provided in the embodiment of the present application. The device can be implemented in software and / or hardware and can be integrated into an electronic device.

[0019] like Figure 1 As shown, the terminal node management method includes the following steps: Step 101: Obtain node information of multiple terminal nodes sent by the artificial intelligence platform, and determine the associated terminal node of the target terminal node from the multiple terminal nodes based on the node information.

[0020] The methods of the embodiments of the present application can be applied to terminal nodes of an artificial intelligence platform. The artificial intelligence platform employs a distributed architecture, deploying cloud-based applications and infrastructure on distributed devices. For example, each distributed device corresponds to a terminal node, and the artificial intelligence platform has multiple terminal nodes. Each terminal node is responsible for processing information in a specific area and uploading the processed information to the artificial intelligence platform. The target terminal node can be any of the multiple terminal nodes.

[0021] In this embodiment, the artificial intelligence platform collects node information of terminal nodes and sends the collected node information to each terminal node. After the target terminal node obtains the node information of multiple terminal nodes sent by the artificial intelligence platform, it selects a terminal node that meets the preset association conditions from the multiple terminal nodes as the associated terminal node based on the node information of the multiple terminal nodes.

[0022] Node information includes, but is not limited to, location information, node configuration information, and node status information. Location information indicates the geographic location of the terminal node, node configuration information indicates the resource configuration of the terminal node, and node status information indicates the operating status, business system data, and resource usage of the terminal node during operation. Preset association conditions are used to select, from multiple terminal nodes, terminal nodes suitable for perceiving and interacting with the target terminal node.

[0023] In this embodiment, after the target terminal node determines the associated terminal node, the target terminal node establishes an association relationship with the associated terminal node, and the associated terminal nodes can perform perception interaction. Optionally, the artificial intelligence platform collects node information from multiple terminal nodes and sends the node information of the multiple terminal nodes to each terminal node. Then, for any terminal node among the multiple terminal nodes, when it is detected that the terminal node meets a preset trigger condition, the terminal node determines the associated terminal node of the target terminal node from the multiple terminal nodes based on the node information of the multiple terminal nodes.

[0024] Step 102: Acquire the business operation information of the target business in the associated terminal node to synchronize the business operation information to the target terminal node.

[0025] In this embodiment, after the target terminal node establishes an association relationship with the associated terminal node, the target terminal node can communicate with the associated terminal node to obtain the business operation information of the target business from the associated terminal node, thereby synchronizing the business operation information of the target business to the target terminal node.

[0026] The target business may be all businesses in the associated terminal node, or part of the businesses in the associated terminal node. The target business may be determined based on the disaster recovery requirements in actual applications, and no specific restrictions are imposed here.

[0027] Among them, the business operation information includes the business operation environment, business data generated by the operation, etc. The timing of synchronizing the business operation information to the target terminal node can be set according to actual needs. For example, with respect to the business operation environment, in response to the target terminal node establishing an association relationship with the associated terminal node, the target terminal node obtains the business operation environment of the target business in the associated terminal node to synchronize the business operation environment of the target business to the target terminal node. For another example, with respect to the business data generated by the operation, after the target terminal node establishes an association relationship with the associated terminal node, the target terminal node obtains the business data of the target business in the associated terminal node at a preset time interval, or, when it is detected that the associated terminal node fails and cannot continue to operate the target business, the target terminal node obtains the business data of the target business in the associated terminal node to synchronize the business data of the target business to the target terminal node.

[0028] Step 103 : In response to detecting that a failure occurs in the associated terminal node, running a target service in the associated terminal node according to the service running information.

[0029] In this embodiment, fault detection can be performed between terminal nodes that establish an association relationship. Optionally, after the target terminal node establishes an association relationship with the associated terminal node, the target terminal node continuously performs fault detection on the associated terminal node to determine whether the associated terminal node has a fault. When a fault is detected in the associated terminal node, the target business in the associated terminal node is operated according to the business operation information of the target business in the associated terminal node previously synchronized.

[0030] The following is an example based on actual application scenarios.

[0031] As an example, business operation information includes container images and business data. Terminal node 1 is an associated terminal node of terminal node 2. Terminal node 1 has application software deployed, which runs in a container. Terminal node 1 includes the container image used by the running application software and a local storage area. The local storage area stores business data, and terminal node 2 synchronizes this container image and business data. When terminal node 2 detects that terminal node 1 has failed and cannot continue to run the target business, it starts the corresponding application software based on the synchronized container image and, based on this application software and the synchronized business data, takes over the target business from terminal node 1.

[0032] The terminal node management method of the embodiment of the present application, for any target terminal node among multiple terminal nodes, the target terminal node determines its own associated terminal node based on the node information, and can screen out terminal nodes suitable for perceiving and interacting with the target terminal node from the multiple terminal nodes to establish an association relationship; after the target terminal node establishes an association relationship with the associated terminal node, the business operation information is synchronized, thereby realizing the autonomous business operation information synchronization function between terminal nodes. Compared with the disaster recovery solution scheduled through the central platform, there is no need to transmit information through the central platform, which reduces the network delay and bandwidth pressure caused by transmission through the central platform; when the target terminal node detects that the associated terminal node has a fault, it takes over the business according to the synchronized business operation information, without the need for scheduling through the central platform, which reduces the network delay and bandwidth pressure caused by scheduling by the central platform, and because it is autonomous management between terminal nodes, the business operation information has been synchronized for the associated terminal node when the fault is detected, and the target terminal node can quickly take over the business, reducing downtime costs.

[0033] In an optional embodiment of the present application, Figure 2 As shown, based on the above embodiment, step 101 may include the following sub-steps: Step 201 : Determine the distance between the target terminal node and the terminal node based on the location information of the terminal node and the location information of the target terminal node.

[0034] Among them, the node information of the terminal node includes location information, node configuration information and node status information. The location information indicates the geographical location of the terminal node, the node configuration information indicates the resource configuration status of the terminal node, etc., and the node status information indicates the operating status, business system data, resource usage, etc. of the terminal node during operation.

[0035] As an example, the location information is longitude and latitude. After a target terminal node obtains node information for multiple terminal nodes, it calculates the distance between the target terminal node and any of the multiple terminal nodes based on its own location information and the location information of the terminal node. In this example, the distance may be the straight-line distance between the terminal nodes.

[0036] Step 202 : Calculate the node score corresponding to the terminal node according to a preset scoring strategy based on the distance, node configuration information, and node status information.

[0037] Distance is negatively correlated with node scores. When node configuration information and node status information are consistent, the closer the distance between a terminal node and a target terminal node, the higher the node score. Because the distance between terminal nodes affects network latency, when the distance between two terminal nodes exceeds a certain distance threshold, there will be a certain amount of network latency in the perception interaction between the two terminal nodes, which will affect processing speed. Therefore, by scoring the distance between terminal nodes to determine associated terminal nodes, neighboring terminal nodes can be identified as associated terminal nodes based on the principle of geographical proximity and perform perception interaction. This allows the adjacent terminal nodes to quickly take over services in the event of a terminal node failure, reducing the impact of network latency and improving response processing speed.

[0038] In one embodiment of the present application, in order to further improve the accuracy of the node scores corresponding to the terminal nodes, so that the terminal nodes that are more suitable for perceiving and interacting with the target terminal nodes can be screened out as associated terminal nodes based on the node scores, and the effect of autonomous management of the terminal nodes can be improved, the node scores corresponding to the terminal nodes can be calculated according to the following scoring strategy: when the operating state is abnormal, the node score is determined to be a preset score; when the operating state is not abnormal, the distance, resource configuration information, and resource usage are weighted according to the preset weights to obtain the target score; and the node score is determined according to the ratio of the target score to the number of business systems. Thus, an implementation method for comprehensively calculating the node score by distance, resource configuration information, resource usage, number of business systems, and operating state is provided, which can accurately calculate the node score, and then when the target terminal node determines the associated terminal node based on the node score, it can determine the terminal node whose distance, resource configuration information, resource usage, number of business systems, and operating state are more suitable for perceiving and interacting with the target terminal node, thereby improving the processing speed and reliability of the subsequent perceiving and interacting between terminal nodes.

[0039] The preset score can be set according to the actual scoring strategy. For example, the preset score is set to zero to distinguish terminal nodes with normal operating status. Node configuration information includes resource configuration information, and node status information includes resource usage, the number of business systems, and operating status. That is, the scoring strategy includes five parameters: distance, resource configuration information, resource usage, number of business systems, and operating status. Resource configuration information includes the configuration of resources such as the central processing unit, memory, disk, and network card. Resource usage includes the utilization rate of resources such as the central processing unit, memory, and disk. The number of business systems is the number of application software running on the terminal node. The operating status indicates the operating status of the terminal node. For example, the operating status is divided into normal and abnormal status.

[0040] As an example, a distance score is determined based on distance, and a resource configuration score is determined based on resource configuration information. A closer distance results in a higher distance score, and more resource configurations result in a higher resource configuration score. Preset first, second, and third weights are used to weight the distance score, the resource configuration score, and resource usage, respectively, to obtain a target score. The node score is then calculated by integrating the number of business systems and their operating status. In this example, the node score is calculated as follows: Node Score = (Distance Score * K1 + Resource Configuration Score * K2 + (1 - Resource Utilization) * K3) / Number of Business Systems * Operating Status. Among them, K1 is the first weight, K2 is the second weight, and K3 is the third weight. Optionally, the first weight is greater than the second weight, the second weight is greater than the third weight, and the sum of the first weight, the second weight and the third weight is 1. Therefore, distance can be used as the main influencing factor, and the associated terminal node with low network delay can be determined according to the principle of geographical proximity, thereby improving the processing speed between the target terminal node and the associated terminal node. At the same time, resource configuration information and resource usage are taken into account, avoiding the situation where the terminal node with less resource configuration and more resource usage is determined as the associated terminal node, and the original business of the associated terminal node is affected due to synchronization and other processing between the target terminal node and the associated terminal node. In this way, a terminal node that is more suitable for perceiving and interacting with the target terminal node can be determined, further improving the accuracy and reliability of autonomous management between terminal nodes.

[0041] Among them, the first weight, the second weight and the third weight can be set according to actual needs, for example, the first weight is 50%, the second weight is 30%, and the third weight is 20%.

[0042] Step 203: Determine an associated terminal node from the plurality of terminal nodes according to the node scores.

[0043] In this embodiment, after determining the node scores of multiple terminal nodes, the multiple terminal nodes are sorted according to the node scores, and a terminal node map is generated according to the sorting results. The target terminal node can determine the associated terminal node based on the terminal node map.

[0044] In one embodiment of the present application, a target terminal node sorts multiple terminal nodes in descending order of node scores to generate a terminal node map based on the sorting results. In response to a trigger condition for terminal autonomous management being met, the target terminal node determines the terminal node with the highest node score from the terminal node map as an associated terminal node.

[0045] Among them, the terminal nodes generate and maintain the terminal node map through the node information issued by the artificial intelligence platform. By pre-setting the trigger conditions, the terminal nodes that meet the trigger conditions determine the associated terminal nodes from the terminal node map according to the node scores.

[0046] As an example, the autonomous management module of the terminal node maintains a terminal node map, which is shown in the following table:

[0047] The terminal node management method of the embodiment of the present application scores the distance between terminal nodes to determine associated terminal nodes, and can determine adjacent terminal nodes as associated terminal nodes according to the principle of geographical proximity and perform perception interaction, so that when a terminal node fails, the adjacent terminal node can quickly take over the business, reducing the impact of network delays and improving response processing speed. In addition, resource configuration information, resource usage, number of business systems and operating status are also used when calculating node scores, further improving the accuracy of node scores, so that terminal nodes that are more suitable for perception interaction with target terminal nodes can be screened out as associated terminal nodes based on node scores.

[0048] In an optional implementation of the present application, based on the above embodiment, Figure 3 A flow chart of a terminal node management method provided in Example 3 of this application is shown as follows: Figure 3 As shown, the terminal node management method includes the following steps: Step 301: Obtain node information of multiple terminal nodes sent by the artificial intelligence platform, and determine the associated terminal node of the target terminal node from the multiple terminal nodes based on the node information.

[0049] The explanation of step 101 in the above embodiment is also applicable to step 301 and will not be repeated here.

[0050] Step 302: Acquire the service operation information of the target service in the associated terminal node, and send a heartbeat detection signal to the associated terminal node according to a preset detection frequency to detect whether the associated terminal node has a fault.

[0051] The preset detection frequency can be set according to actual needs, for example, the preset detection frequency can be set to one minute, five seconds, etc. After the terminal nodes are associated with each other, any target terminal node starts a heartbeat information detector. The setting information of the heartbeat information detector includes the preset detection frequency. The target terminal node sends a heartbeat detection signal to another associated terminal node at the preset detection frequency to detect the health status of the associated terminal node and to detect whether the associated terminal node has a fault. Optionally, after the associated terminal node receives the heartbeat detection signal and the associated terminal node has not a fault, the associated terminal node returns feedback information to the target terminal node.

[0052] Step 303: If no feedback information returned by the associated terminal node according to the heartbeat detection signal is received within the specified time period, it is determined that a failure occurs in the associated terminal node.

[0053] In this embodiment, the heartbeat information detector's configuration information also includes a specified duration. If the target terminal node fails to detect feedback information of the heartbeat detection signal after the specified duration, the associated terminal node is determined to have a fault. The specified duration can be set based on actual needs, for example, to one minute, ten seconds, etc., and is not limited here.

[0054] As an example, see Figure 4 In this example, terminal nodes 1 and 2 establish an association, and terminal nodes 3 and 4 establish an association. Terminal nodes 1 and 2 send heartbeat detection signals to each other to detect whether the other has experienced a fault, and terminal nodes 3 and 4 send heartbeat detection signals to each other to detect whether the other has experienced a fault. In this example, the terminal nodes are equipped with an autonomous management module, which implements the heartbeat detection function between the terminal nodes.

[0055] Step 304 : In response to detecting that a failure occurs in the associated terminal node, running the target service in the associated terminal node according to the service running information.

[0056] The terminal node management method of the embodiment of the present application realizes the autonomous heartbeat detection function between terminal nodes by sending heartbeat detection signals to each other between terminal nodes that have established an associated relationship to detect whether the other party has a fault. There is no need to detect whether each terminal node has a fault through a central platform, which reduces the bandwidth pressure of the central platform for terminal node fault detection. In addition, combined with the business operation information synchronization step, the terminal node can quickly respond directly through the locally synchronized information when it does not receive the feedback information returned by the associated terminal node according to the heartbeat detection signal within the specified time period, without the need to interact with other devices, thereby improving the processing speed.

[0057] In an optional embodiment of the present application, Figure 5 As shown, based on the above embodiment, step 102 may include the following sub-steps: Step 501: In response to a target terminal node establishing an association relationship with an associated terminal node, the target terminal node synchronizes a container image in the associated terminal node.

[0058] In this embodiment, in response to the target terminal node establishing an association relationship with the associated terminal node, the target terminal node obtains a first container image used by the application software in the associated terminal node, and performs an image synchronization operation on the first container image to generate a second container image corresponding to the first container image in the target terminal node.

[0059] As an example, see Figure 6 , where terminal node 1 establishes an association relationship with terminal node 2, and terminal node 3 establishes an association relationship with terminal node 4. Terminal node 1 and terminal node 2 synchronize container images with each other, and terminal node 3 and terminal node 4 synchronize container images with each other. In this example, taking terminal node 1 and terminal node 2 as examples, the container images used by the application software running in terminal node 1 are container image 1 and container image 2, and the container images used by the application software running in terminal node 2 are container image 3 and container image 4. In response to the establishment of an association relationship between terminal node 1 and terminal node 2, the autonomous management module of the terminal node triggers the image synchronization operation, synchronizing container image 3 and container image 4 in terminal node 2 to terminal node 1, and synchronizing container image 1 and container image 2 in terminal node 1 to terminal node 2, so that the container image information of terminal node 1 and terminal node 2 are consistent. Since the artificial intelligence platform adopts distributed Architecture. When at least one terminal node fails, the business scheduling through the central platform increases the bandwidth pressure of the artificial intelligence platform. This solution synchronizes the container image in the associated terminal nodes. When any terminal node in the associated terminal nodes fails, the corresponding application software can be restarted on the other terminal node according to the synchronized container image, realizing the autonomous business scheduling management function between the terminal nodes. There is no need for the central platform to perform business scheduling management, reducing the bandwidth pressure caused by the central platform scheduling. In addition, since the synchronization is performed through the associated terminal nodes, the container image can be synchronized in advance after the association relationship is established, thereby improving the disaster recovery processing speed of the terminal nodes.

[0060] Step 502: The target terminal node sends a data synchronization request to the associated terminal node according to a preset period to synchronize the service data in the associated terminal node.

[0061] The preset period can be set according to actual needs, for example, the preset period can be set to one hour, two hours, etc. After the target terminal node establishes an association relationship with the associated terminal node, the target terminal node sends a data synchronization request to the associated terminal node according to the preset period, and the associated terminal node sends the business data to the target terminal node according to the data synchronization request.

[0062] In one embodiment of the present disclosure, since real-time synchronization of business data puts a great pressure on network bandwidth, in order to reduce the pressure on network bandwidth, the target terminal node sends a data synchronization request to the associated terminal node according to a preset period. The associated terminal node responds to the data synchronization request and determines the business incremental data corresponding to this data synchronization request from the business data stored in the local storage area. The business incremental data is the incremental data generated between this data synchronization request and the previous data synchronization request. Then, the associated terminal node returns the business incremental data to the target terminal node, and the target terminal node stores the business incremental data requested this time in the local storage area.

[0063] As an example, see Figure 7 , wherein terminal node 1 establishes an association relationship with terminal node 2, and terminal node 3 establishes an association relationship with terminal node 4, and terminal node 1 and terminal node 2 synchronize business data with each other, and terminal node 3 and terminal node 4 synchronize business data with each other. In this example, taking terminal node 1 and terminal node 2 as examples, business data 1 is stored in the local storage area of ​​terminal node 1, and business data 2 is stored in the local storage area of ​​terminal node 2. In response to terminal node 1 and terminal node 2 establishing an association relationship, terminal node 1 sends a data synchronization request to terminal node 2 according to a preset period to synchronize the business incremental data of terminal node 2 each time, and terminal node 2 sends a data synchronization request to terminal node 1 according to a preset period to synchronize the business incremental data of terminal node 1 each time. The synchronized business incremental data is, for example, persistent data generated after the last operation.

[0064] When at least one terminal node fails, the business data stored in the terminal node needs to be synchronized to other terminal nodes to continue providing services. The artificial intelligence platform adopts a distributed architecture, and the synchronization of business data through the central platform increases the bandwidth pressure of the artificial intelligence platform. This solution sends data synchronization requests to associated terminal nodes through the target terminal node to achieve autonomous business data synchronization between associated terminal nodes. There is no need for a central platform to synchronize business data. In addition, the business data between terminal nodes adopts a regular asynchronous synchronization mechanism. Each time the business data is synchronized, the incremental business data is synchronized. There is no need to synchronize all business data at one time. Compared with the real-time synchronization of business data, the network bandwidth pressure of business data synchronization is further reduced.

[0065] Optionally, a data synchronization request is sent to an associated terminal node according to a preset period, including: obtaining the business scenario category of the associated terminal node, and determining a target synchronization period that matches the business scenario category from multiple candidate synchronization periods, and then sending a data synchronization request to the associated terminal node according to the target synchronization period. Synchronization periods corresponding to different business scenario categories are pre-set, and the synchronization period corresponding to each business scenario category can be determined based on the business scenario requirements. For example, the higher the business scenario's demand for data sensitivity, the smaller the time interval of the synchronization period. Multiple candidate synchronization periods can be pre-determined for multiple business scenario categories. Then, when sending a data synchronization request, the corresponding target synchronization period is determined based on the obtained business scenario category of the associated terminal node, so as to synchronize business data according to the time interval of the target synchronization period.

[0066] Therefore, the above-mentioned periodic asynchronous synchronization mechanism for business data can synchronize business data using a matching synchronization cycle according to the business scenario category of the terminal node, solve the problem of possible partial data loss in the business scenario, and improve the accuracy and reliability of business data synchronization.

[0067] As an example, business scenarios are divided into a first business scenario category and a second business scenario category based on the business scenario's requirements for data sensitivity, where the first business scenario category may correspond to business scenarios with high data sensitivity, and the second business scenario category may correspond to other business scenarios. The candidate synchronization period corresponding to the first business scenario category is set to the minute level, for example, the synchronization time interval is one minute, five minutes, etc., and the candidate synchronization period corresponding to the second business scenario category is set to the hour level, for example, the synchronization time interval is one hour, two hours, etc. No specific restrictions are made here.

[0068] In one embodiment of the present disclosure, terminal nodes with an associated relationship synchronize business operation information with each other, wherein, after the target terminal node establishes an associated relationship with the associated terminal node, the target terminal node can also synchronize the business operation information of the specified business in the target terminal node to the associated terminal node. The specified business can be all the businesses in the target terminal node, or it can be part of the businesses in the target terminal node, and the specified business can be determined based on the disaster recovery requirements in the actual application. Optionally, the associated terminal node obtains the third container image used by the application software in the target terminal node, performs a mirror synchronization operation on the third container image to generate a fourth container image corresponding to the third container image in the associated terminal node, and the associated terminal node sends a data synchronization request to the target terminal node according to a preset period to synchronize the business data in the target terminal node. In this way, business scheduling and business data synchronization between terminal nodes are achieved.

[0069] The embodiments of the present application provide a terminal node management system, and the system is described in detail in conjunction with the system structure of the terminal node management system.

[0070] Figure 8 A schematic diagram of the structure of a terminal node management system provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the system includes: an artificial intelligence platform and multiple terminal nodes.

[0071] Among them, the artificial intelligence platform is used to collect node information of multiple terminal nodes and send the node information of multiple terminal nodes to at least one terminal node.

[0072] The following description takes a target terminal node as an example. The target terminal node may be any terminal node among multiple terminal nodes.

[0073] The target terminal node is used to determine an associated terminal node of the target terminal node from multiple terminal nodes according to node information.

[0074] The target terminal node is further used to obtain the business operation information of the target business in the associated terminal node, so as to synchronize the business operation information to the target terminal node.

[0075] The target terminal node is further configured to, in response to detecting that a failure occurs in the associated terminal node, run a target service in the associated terminal node according to the service running information.

[0076] The explanation of the terminal node management method in the above embodiment is also applicable to the target terminal node in this embodiment and will not be repeated here.

[0077] In one embodiment of the present disclosure, the artificial intelligence platform is also used to: periodically query a preset database to determine whether the node information of the terminal node has changed, and, in response to obtaining the node change information of any terminal node, send the node change information to multiple terminal nodes.

[0078] The AI ​​platform has multiple terminal nodes, whose node information is stored in a pre-set database. The AI ​​platform can obtain node information for multiple terminal nodes through the application programming interface provided by the pre-set database. Node change information includes newly added nodes, deleted nodes, suspended nodes, and changes to node information for existing nodes.

[0079] As an example, see Figure 8The AI ​​platform deploys a central autonomous management module, which obtains initial terminal node information and periodically queries the database for terminal node change information. In this example, the central autonomous management module distributes node information in a specific file format to the autonomous management modules of all terminal nodes. Upon receiving node change information, the central autonomous management module also distributes the node change information to the autonomous management modules of all terminal nodes.

[0080] The terminal node management system of the embodiment of the present application, for any target terminal node among multiple terminal nodes, the target terminal node determines its own associated terminal node based on the node information, and can screen out terminal nodes suitable for perceiving and interacting with the target terminal node from the multiple terminal nodes to establish an association relationship; after the target terminal node establishes an association relationship with the associated terminal node, the business operation information is synchronized, thereby realizing the autonomous business operation information synchronization function between terminal nodes. Compared with the disaster recovery solution scheduled through the central platform, there is no need to transmit information through the central platform, which reduces the network delay and bandwidth pressure caused by transmission through the central platform; when the target terminal node detects that the associated terminal node has a fault, it takes over the business based on the synchronized business operation information, without the need for scheduling through the central platform, which reduces the network delay and bandwidth pressure caused by scheduling through the central platform, and because it is autonomous management between terminal nodes, the business operation information has been synchronized for the associated terminal node when the fault is detected, and the target terminal node can quickly take over the business, reducing downtime costs.

[0081] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.

[0082] An embodiment of the present application also provides a terminal node management device. Figure 9 A schematic diagram of the structure of a terminal node management device provided in an embodiment of the present application is shown in FIG. Figure 9 As shown, the terminal node management device includes: an acquisition module 91, a synchronization module 92, and an operation module 93.

[0083] The acquisition module 91 is configured to acquire node information of multiple terminal nodes sent by the artificial intelligence platform, and determine the associated terminal node of the target terminal node from the multiple terminal nodes according to the node information; A synchronization module 92 is configured to obtain the business operation information of the target business in the associated terminal node, so as to synchronize the business operation information to the target terminal node; The running module 93 is configured to run a target service in the associated terminal node according to the service running information in response to detecting that a failure occurs in the associated terminal node.

[0084] Optionally, the node information includes first location information, node configuration information, and node status information. The acquisition module 91 is specifically configured to: determining a distance between the target terminal node and the terminal node based on the first location information and the second location information of the target terminal node; Based on the distance, node configuration information and node status information, the node score corresponding to the terminal node is calculated according to the preset scoring strategy; among which, the distance is negatively correlated with the node score; An associated terminal node is determined from multiple terminal nodes according to the node scores.

[0085] Optionally, the node configuration information includes resource configuration information, and the node status information includes resource usage, the number of business systems, and the operating status. The acquisition module 91 is specifically configured to: In the case of abnormal operation status, the node score is determined to be a preset score; If the operating status is normal, the distance, resource configuration information and resource usage are weighted according to the preset weights to obtain the target score; The node score is determined based on the ratio of the target score to the number of business systems.

[0086] Optionally, the acquisition module 91 is specifically configured to: Sort multiple terminal nodes in descending order of node scores, and generate a terminal node map according to the sorting results; In response to a trigger condition for terminal autonomous management being met, a terminal node with a maximum node score is determined from the terminal node map as an associated terminal node.

[0087] Optionally, the device further comprises: A heartbeat detection module is used to send a heartbeat detection signal to the associated terminal node according to a preset detection frequency to detect whether the associated terminal node has a fault; If no feedback information returned by the associated terminal node according to the heartbeat detection signal is received within the specified time period, it is determined that the associated terminal node has failed.

[0088] Optionally, the synchronization module 92 is specifically configured to: In response to the target terminal node establishing an association relationship with the associated terminal node, obtaining a first container image used by application software in the associated terminal node; An image synchronization operation is performed according to the first container image to generate a second container image corresponding to the first container image in the target terminal node.

[0089] Optionally, the synchronization module 92 is specifically configured to: Send data synchronization requests to the associated terminal nodes according to the preset period, and obtain the business incremental data returned by the associated terminal nodes; the business incremental data is the incremental data generated between this data synchronization request and the previous data synchronization request; Store incremental business data in the target endpoint.

[0090] Optionally, the synchronization module 92 is specifically configured to: Obtain the business scenario category of the associated terminal node, and determine a target synchronization period that matches the business scenario category from multiple candidate synchronization periods; Send data synchronization requests to the associated endpoints according to the target synchronization period.

[0091] Optionally, the device further comprises: The sending module is used to obtain the business operation information of the specified business in the target terminal node; Synchronizes the business operation information of the specified business to the associated terminal node.

[0092] Optionally, the business operation information includes a container image and business data, and the operation module 93 is specifically used to: Start the corresponding application software according to the container image; Based on application software and business data, take over the target business in the associated terminal node.

[0093] For descriptions of features in the embodiments corresponding to the terminal node management apparatus, reference may be made to the relevant descriptions of the embodiments corresponding to the terminal node management method, and will not be detailed here.

[0094] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above-mentioned terminal node management method embodiments.

[0095] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above-mentioned terminal node management method embodiments when running.

[0096] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0097] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of any of the above-mentioned terminal node management method embodiments are implemented.

[0098] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned terminal node management method embodiments are implemented.

[0099] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0100] The above is a detailed introduction to a terminal node management method, electronic device, storage medium and program product provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A terminal node management method, characterized in that: Applied to a target terminal node, the method includes: Obtain node information of multiple terminal nodes sent by the artificial intelligence platform, and determine the associated terminal node of the target terminal node from the multiple terminal nodes according to the node information; Acquire the business operation information of the target business in the associated terminal node, so as to synchronize the business operation information to the target terminal node; In response to detecting that a failure occurs in the associated terminal node, a target service in the associated terminal node is run according to the service running information.

2. The method according to claim 1, wherein The node information includes first location information, node configuration information, and node status information, and determining an associated terminal node from a plurality of terminal nodes according to the node information includes: determining a distance between the target terminal node and the terminal node based on the first location information and the second location information of the target terminal node; Based on the distance, the node configuration information, and the node status information, a node score corresponding to the terminal node is calculated according to a preset scoring strategy; wherein the distance is negatively correlated with the node score; The associated terminal node is determined from the plurality of terminal nodes according to the node scores.

3. The method according to claim 2, wherein The node configuration information includes resource configuration information, the node status information includes resource usage, the number of business systems, and the operating status, and the node score corresponding to the terminal node is calculated according to a preset scoring strategy based on the distance, the node configuration information, and the node status information, including: When the operating state is abnormal, determining the node score to be a preset score; When the operating state is not abnormal, performing weighted calculation on the distance, the resource configuration information, and the resource usage according to preset weights to obtain a target score; The node score is determined according to the ratio of the target score to the number of business systems.

4. The method according to claim 2, wherein The determining the associated terminal node from the plurality of terminal nodes according to the node scores includes: Sorting the plurality of terminal nodes in descending order of the node scores to generate a terminal node map according to the sorting results; In response to a trigger condition for terminal autonomous management being met, a terminal node with the largest node score is determined from the terminal node map as the associated terminal node.

5. The method according to claim 1, wherein After determining the associated terminal node of the target terminal node from the multiple terminal nodes according to the node information, the method further includes: Sending a heartbeat detection signal to the associated terminal node according to a preset detection frequency to detect whether the associated terminal node has a fault; The detecting that the associated terminal node fails includes: If no feedback information returned by the associated terminal node according to the heartbeat detection signal is received within a specified time period, it is determined that a failure occurs in the associated terminal node.

6. The method according to claim 1, wherein The acquiring the business operation information of the target business in the associated terminal node to synchronize the business operation information to the target terminal node includes: In response to the target terminal node establishing an association relationship with the associated terminal node, obtaining a first container image used by application software in the associated terminal node; An image synchronization operation is performed according to the first container image to generate a second container image corresponding to the first container image in the target terminal node.

7. The method according to claim 1, wherein The acquiring the business operation information of the target business in the associated terminal node to synchronize the business operation information to the target terminal node includes: Sending a data synchronization request to the associated terminal node according to a preset period, and obtaining the business incremental data returned by the associated terminal node; wherein the business incremental data is the incremental data generated between the current data synchronization request and the previous data synchronization request; The service incremental data is stored in the target terminal node.

8. The method according to claim 7, wherein The sending of the data synchronization request to the associated terminal node according to a preset period includes: Acquire a business scenario category of the associated terminal node, and determine a target synchronization period that matches the business scenario category from a plurality of candidate synchronization periods; The data synchronization request is sent to the associated terminal node according to the target synchronization period.

9. The method according to claim 1, wherein After determining the associated terminal node of the target terminal node from the multiple terminal nodes according to the node information, the method further includes: Obtaining business operation information of a specified business in the target terminal node; Synchronize the business operation information of the designated business to the associated terminal node.

10. The method according to claim 1, wherein The business operation information includes a container image and business data, and running the target business in the associated terminal node according to the business operation information includes: Start the corresponding application software according to the container image; Based on the application software and the service data, a target service in the associated terminal node is taken over.

11. A terminal node management system, characterized in that: include: AI platform and multiple end nodes; The artificial intelligence platform is used to collect node information of the multiple terminal nodes and send the node information of the multiple terminal nodes to at least one of the terminal nodes; For any target terminal node among the multiple terminal nodes, the target terminal node is used to determine an associated terminal node of the target terminal node from the multiple terminal nodes according to the node information; The target terminal node is further configured to obtain the service operation information of the target service in the associated terminal node, so as to synchronize the service operation information to the target terminal node; The target terminal node is further configured to, in response to detecting that a failure occurs on the associated terminal node, run a target service in the associated terminal node according to the service running information.

12. The system according to claim 11, wherein The artificial intelligence platform is also used to: Regularly querying a preset database to determine whether the node information of the terminal node has changed; In response to acquiring the node change information of any of the terminal nodes, the node change information is sent to the multiple terminal nodes.

13. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the terminal node management method according to any one of claims 1 to 10 when executing the computer program.

14. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the terminal node management method according to any one of claims 1 to 10 are implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the terminal node management method according to any one of claims 1 to 10 are implemented.

Citation Information

Patent Citations

  • Block chain node fault synchronization method and device, computer equipment and storage medium

    CN115237682A

  • Service influence information management method, system and device, storage medium and equipment

    CN117057894A

  • Edge node management method and device, equipment and storage medium

    CN117424903A

  • Data disaster recovery method, device and system

    US20190095293A1