Data processing method and device, equipment, storage medium and program product

By searching and caching response data in the cache database of edge node devices, the problem of business service interruption caused by the disconnection between edge nodes and cloud servers is solved, and edge autonomy and business service stability are achieved.

CN117014493BActive Publication Date: 2026-06-19CHINA MOBILE ONLINE SERVICES CO LTD +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MOBILE ONLINE SERVICES CO LTD
Filing Date
2022-04-27
Publication Date
2026-06-19

AI Technical Summary

Technical Problem

In edge computing scenarios involving cloud-edge collaboration, the complex network environment between the edge and cloud sides leads to unreliable connections between edge nodes and the cloud, causing business services to malfunction.

Method used

In the event of a disconnection between the edge node device and the cloud server, edge autonomy is achieved by retrieving response data from the cache database of the edge node device and processing it locally. When the connection is restored, the request is forwarded to the cloud server for processing, and the response data is cached to maintain the stability of business services.

Benefits of technology

It enables the autonomy of edge node devices in the event of a disconnection between the edge node and the cloud server, ensuring the stability and continuity of business services and avoiding the impact of network failures on services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117014493B_ABST
    Figure CN117014493B_ABST
Patent Text Reader

Abstract

This application discloses a data processing method, apparatus, device, storage medium, and program product. The method includes: receiving a first service request sent by a user terminal; in the event of a disconnection between a first edge node device and a cloud server, processing the service request, which would normally be processed by the cloud server, on the first edge node device by caching data; in the event of a connection between the first edge node device and the cloud server, forwarding the service request to the cloud server for processing; receiving response data returned by the cloud server and caching it in a database. This enables edge autonomy even when the first edge node device and the cloud server are disconnected, maintaining the stability of the edge node device's service.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technology, and in particular relates to a data processing method, apparatus, device, storage medium and program product. Background Technology

[0002] In edge computing scenarios involving cloud-edge collaboration, edge nodes communicate with the cloud via the public network. However, in IoT edge computing applications, the complex network environment between the edge and cloud sides makes the connection between edge nodes and the cloud unreliable. A break in the communication link between the cloud and the edge node will cause the business services on that edge node to malfunction. Summary of the Invention

[0003] This application provides a data processing method, apparatus, device, storage medium, and program product that enables edge node devices to achieve autonomy when the edge node device is disconnected from the cloud server.

[0004] In a first aspect, embodiments of this application provide a data processing method, the method comprising:

[0005] Receive the first service request sent by the user terminal;

[0006] In the event that the first edge node device and the cloud server are disconnected, the first response data corresponding to the first service request is searched in the cache database of the first edge node device, and the first response data is sent to the user terminal.

[0007] When the first edge node device is connected to the cloud server, the first service request is sent to the cloud server, and the response data received from the cloud server is sent to the user terminal and stored in the cache database, wherein the response data is the data corresponding to the first service request determined by the cloud server.

[0008] Secondly, embodiments of this application also provide a data processing method, the method comprising: receiving a first service request sent by the edge node device when the first edge node device and the cloud server are in a connected state;

[0009] In response to the first service request, determine the second response data corresponding to the first service request;

[0010] Send the second response data to the first edge node device.

[0011] The first edge node device is used to send the received second response data to the user terminal and store it in the cache database; the cache database is used to provide response data corresponding to the third service request when the first edge node device and the cloud server are in a disconnected state and a third service request is received, the third service request including the first service request.

[0012] Thirdly, embodiments of this application provide a data processing apparatus applied to a first edge node device, the apparatus comprising:

[0013] The first receiving module is used to receive the first service request sent by the user terminal.

[0014] The processing module is used to search for the first response data corresponding to the first service request in the cache database of the first edge node device when the connection between the first edge node device and the cloud server is disconnected, and to send the first response data to the user terminal.

[0015] The first sending module is configured to send the first service request to the cloud server when the first edge node device and the cloud server are in a connected state, and to send the response data received from the cloud server to the user terminal and store it in the cache database, wherein the response data is the data corresponding to the first service request determined by the cloud server.

[0016] Fourthly, embodiments of this application provide another data processing apparatus for use in cloud services, the apparatus comprising:

[0017] The second receiving module is used to receive the first service request sent by the edge node device when the first edge node device and the cloud server are in a connected state.

[0018] The determining module is used to determine the second response data corresponding to the first service request in response to the first service request;

[0019] The second sending module is used to send the second response data to the first edge node device.

[0020] The first edge node device is used to send the received second response data to the user terminal and store it in a cache database; the cache database is used to provide response data corresponding to the third service request when the first edge node device and the cloud server are in a disconnected state and the third service request is received, the third service request including the first service request.

[0021] Fifthly, embodiments of this application provide a data processing apparatus, the apparatus including: a processor and a memory storing computer program instructions;

[0022] The processor implements the above data processing method when executing computer program instructions.

[0023] Sixthly, embodiments of this application provide a computer storage medium storing computer program instructions, which, when executed by a processor, implement the data processing method described above.

[0024] In a seventh aspect, embodiments of this application provide a computer program product, the computer program product including computer program instructions, which, when executed by a processor, implement the data processing method described above.

[0025] The data processing method provided in this application receives a first service request sent by a user terminal; when the connection between the first edge node device and the cloud server is broken, the service request that is to be processed by the cloud server is processed by the first edge node device through cached data; when the connection between the first edge node device and the cloud server is restored, the service request is forwarded to the cloud server for processing, and the response data returned by the cloud server is received and cached in the database. This enables edge autonomy when the first edge node device and the cloud server are broken, and maintains the stability of the service provided by the edge node device. Attached Figure Description

[0026] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0027] Figure 1 This is a schematic flowchart of a data processing method provided in an embodiment of this application;

[0028] Figure 2 This is a schematic flowchart of a data processing method provided in another embodiment of this application;

[0029] Figure 3 This is a schematic diagram of the structure of a data processing apparatus provided in an embodiment of this application;

[0030] Figure 4 This is a schematic diagram of the structure of a data processing apparatus provided in another embodiment of this application;

[0031] Figure 5This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application. Detailed Implementation

[0032] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples of this application.

[0033] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0034] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. The embodiments will now be described in detail with reference to the accompanying drawings.

[0035] Kubernetes is a leading distributed architecture solution based on container technology. Building upon Docker, it provides containerized applications with a range of functionalities including deployment, operation, resource scheduling, service discovery, and dynamic scaling, improving the convenience and high availability of large-scale container cluster management. Kubernetes relies on a robust network, so its cluster deployment is typically confined to a single data center. For Kubernetes clusters spanning multiple data centers, a multi-cluster management model is commonly used. This involves building independent Kubernetes clusters within their respective data centers and then using multi-cluster management tools to manage cluster services. Examples of such multi-cluster solutions include KubeFed (cluster federation) and Karmada.

[0036] However, the applicant discovered that existing multi-cluster management solutions have the following problems: 1. Each data center needs to build a complete Kubernetes cluster, resulting in a management plane resource consumption of 5 nodes (servers) (3 master nodes + 2 load balancer nodes) while ensuring high availability. 2. There is a lack of flexible resource management; each data center is an independent cluster, and they do not interfere with each other, making cross-center service scheduling and management impossible. 3. Each cluster is maintained independently. To achieve inter-cluster collaboration, a multi-cluster management platform, such as KubeFed (cluster federation) or Karmada, needs to be built on top of the Kubernetes cluster, introducing more cluster management burden.

[0037] Therefore, for star-shaped data centers, where the core data center has a large number of servers and other data centers have a small number of servers, this application provides a data processing method that enables data centers with a small number of servers to directly access the cluster within the core data center as nodes. This solves the Kubernetes single cluster's dependence on a good network, enables unified management of servers in the core data center and servers in other data centers, and realizes three cloud-edge collaboration capabilities: management collaboration, data collaboration, and operation and maintenance collaboration between the core data center and other data centers. While ensuring that the cluster can stably provide services, it expands the scope of Kubernetes single cluster management.

[0038] To address the problems of the prior art, embodiments of this application provide a data processing method, apparatus, device, storage medium, and program product. The data processing method provided in this application embodiment will be described first below.

[0039] Figure 1 A flowchart illustrating a data processing method according to an embodiment of this application is shown. The method is applied to an edge server (first edge server) and includes the following steps S101 to S103:

[0040] S101, receive the first service request sent by the user terminal.

[0041] S102, when the connection between the first edge node device and the cloud server is broken, the first response data corresponding to the first service request is searched in the cache database of the first edge node device, and the first response data is sent to the user terminal.

[0042] The first service request is a service request initiated by the user terminal for data in the cloud server.

[0043] Specifically, after receiving a service request from a user terminal, it is necessary to first determine the current communication connection status between the first edge node and the cloud server. If the connection between the first edge node device and the cloud server is broken, it means that the first service request cannot be forwarded to the cloud server for processing. In order to ensure the timely processing of the first service request, the response data corresponding to the first service can be found in the cache database of the first edge node device. Then, the first service request is processed according to the response data corresponding to the first service, and the first response data is sent to the user terminal.

[0044] S103, when the first edge node device is connected to the cloud server, sends a first service request to the cloud server, and sends the response data received from the cloud server to the user terminal and stores it in the cache database.

[0045] The response data is the data determined by the cloud server that corresponds to the first business request.

[0046] Specifically, when the first edge node device and the cloud server are connected, the first edge node device can forward the first business request to the cloud server. After the cloud server processes the request, it returns the second response data corresponding to the first business request. The first edge node device receives the second response data returned by the cloud server and caches it in its local database. This allows it to process business requests normally by using the data in the cached database even if the connection between the first edge node device and the cloud server is lost, thus achieving edge autonomy.

[0047] In some embodiments, steps S101 to S103 can be performed using a CNI (Container Network Interface) plugin.

[0048] In some embodiments, steps S101 to S103 can also be based on HTTP reverse proxy technology for caching critical data, using the cache to provide offline autonomous capabilities for critical Kubernetes services. However, it can also be implemented in other ways, and this application embodiment does not limit this.

[0049] In this embodiment, a data processing method is proposed, which receives a first service request sent by a user terminal; when the connection between the first edge node device and the cloud server is broken, the service request that is to be processed by the cloud server is processed by the first edge node device through cached data; when the connection between the first edge node device and the cloud server is restored, the service request is forwarded to the cloud server for processing, and the response data returned by the cloud server is received and cached in the database. This enables edge autonomy when the first edge node device and the cloud server are broken, and maintains the stability of the service provided by the edge node device.

[0050] In some embodiments, after S101, that is, after receiving the first service request sent by the user terminal, the method may further include:

[0051] When the first edge node device and the cloud server are in a connected state, the first edge node device forwards the first business request to the cloud server through the reverse proxy component;

[0052] The reverse proxy component receives the second response data of the first business request returned by the cloud server.

[0053] The second response data is cached in the business processing component of the first edge node device.

[0054] Specifically, the first edge node device can use a reverse proxy component to receive the first service request sent by the user terminal. When the first edge node device is connected to the cloud server, the first service request is proxied to the edge server for processing. When the reverse proxy component receives the second response data corresponding to the first service, it sends the second response data to the user terminal and caches the second response data in the local cache database. In this way, even when the first edge node device is disconnected from the cloud server, the first service request can be proxied to the service processing component of the first edge node device for processing. This ensures that the services in the first edge node device can be processed normally even when the connection between the first edge node device and the cloud server is lost, thus achieving edge autonomy.

[0055] In one example, the cloud server and edge node devices experience a network outage. To achieve autonomy for edge services and ensure that service instances are not affected by network fluctuations, especially to ensure that service instances can still be successfully restarted even if an edge node crashes and restarts after a network outage with the cloud server, this can be achieved through a remote service (API Server) on the cloud server, and a proxy service (EdgeProxy) and client on the edge node devices. The specific steps are as follows:

[0056] 1) Client requests to the Kubernetes API Server pass through the EdgeProxy edge node.

[0057] 2) EdgeProxy determines whether the remote API Server is reachable from the network. If it is reachable, proceed to step 3; otherwise, proceed to step 6.

[0058] 3) EdgeProxy forwards the request to the real API Server (i.e., forwards the first business request to the cloud server through the reverse proxy component).

[0059] 4) The real API Server responds to the client's request and returns the response data to EdgeProxy. EdgeProxy intercepts the data in the request response body (i.e., the second response data of the first business request returned by the cloud server through the reverse proxy component), copies the data stream twice, encodes and decodes one data stream and stores it on the local disk, and sends the other response to the client, thus ending the process.

[0060] 5) When the network is unreachable, EdgeProxy will forward the request to local processing.

[0061] 6) EdgeProxy reads local cached data, constructs the response body, and responds to the client.

[0062] In some embodiments, the first edge node device may cache response data to the first edge node device when it receives the second response data of the first business request returned by the cloud server through a reverse proxy component.

[0063] In one example, the network snapshot feature can be used to achieve edge node autonomy when the first edge node device loses connection with the cloud server. This primarily involves non-intrusively adding snapshot functionality to the IPAM CNI plugin. After a specified check fails, snapshot data can be used to assign IPs to containers; upon successful check, the actual IPAM is invoked for processing. This adds network snapshot functionality to cloud-edge scenarios, providing offline autonomous network IP allocation capabilities.

[0064] The specific steps are as follows:

[0065] 1) By configuring the system, the IPAM call is intercepted and delegated to snapshot-ipam, which has snapshot logic, to make the IPAM call.

[0066] 2) When snapshot-ipam intercepts the ADD method call, it performs a check. If the check passes, it calls the actual IPAM to allocate an IP address and records the result in the snapshotPath directory with the filename: {pod namespace}_{pod name}, containing the actual IPAM return value. If the actual IPAM encounters an error, it directly returns an exception. If there is no record locally and the check fails, it directly returns an exception.

[0067] 3) When snapshot-ipam intercepts the DEL method call, it performs a check. If the check passes, it calls the actual IPam to reclaim the IP, and then deletes the corresponding file under snapshotPath.

[0068] To avoid a surge in traffic to the cloud server during the restoration of connectivity to multiple edge node devices in various regions from a disconnected state, some embodiments may further include, after S101 (i.e., after receiving the first service request from the user terminal):

[0069] When the first edge node device and the cloud server are restored from a disconnected state to a connected state and a second service request is received, a service restoration request is sent to the cloud server.

[0070] The system receives communication permission information returned by the cloud server. This communication permission information is used to indicate the business permission status between multiple edge node devices in the target area and the cloud server. The multiple edge node devices include the first edge node device. The business permission status is used to indicate whether the cloud server allows receiving business requests sent by multiple edge node devices.

[0071] If the business license status indicates that the cloud server is allowed to receive business requests from multiple edge node devices, a second business request is sent to the cloud server.

[0072] Specifically, when the first edge node device recovers from a disconnected state to a connected state and receives a second service request, it indicates that the first edge node device has restored its network connection with the cloud server and can resume services interrupted due to network issues. First, it needs to initiate a service recovery request to the cloud server to obtain communication permission information from the cloud device for the first edge node device, determining whether the first edge node device can resume service communication with the cloud device. If the service permission status indicates that the cloud server allows receiving service requests from multiple edge node devices, it means that no other edge node devices in other regions are currently restoring service connections with the cloud server, and thus the second service request can be sent to the cloud server. If the service permission status indicates that the cloud server does not allow receiving service requests from multiple edge node devices, it means that edge node devices in other regions are currently restoring service connections with the cloud server. Therefore, to avoid traffic congestion on the cloud server, sending the second service request to the cloud server is prohibited, and the second service request is proxied to the first edge node device for processing through a reverse proxy.

[0073] Figure 2 A flowchart illustrating a data processing method according to another embodiment of this application is shown. The method is applied to a cloud server and includes the following steps S201 to S203:

[0074] S201, when the first edge node device is connected to the cloud server, receive the first service request sent by the edge node device;

[0075] S202, in response to the first service request, determine the second response data corresponding to the first service request;

[0076] S203, send the second response data to the first edge node device.

[0077] The first edge node device is used to send the received second response data to the user terminal and store it in the cache database. The cache database is used to provide response data corresponding to the third service request when the first edge node device is in a disconnected state with the cloud server and receives a third service request. The third service request includes the first service request.

[0078] Specifically, the cloud server receives a first service request from a first edge node, retrieves the response data (second response data) related to the first service request based on its content, and then sends the second response data to the first edge node device. This enables the first edge node device to send the received second response data to the user terminal and store it in a cache database. The cache database is used to provide response data corresponding to a third service request, which includes the first service request, when the first edge node device is disconnected from the cloud server and receives a third service request. This allows the edge node device to be directly incorporated into the cluster of the cloud server for unified management, enabling the first edge node device to maintain stable edge service operations and expanding the application scenarios of Kubernetes.

[0079] In some embodiments, before step S201 above, that is, before receiving the first service request sent by the edge node device when the first edge node device and the cloud server are in a connected state, the following may also be included:

[0080] When the connection between the first edge node device and the cloud server is restored from a disconnected state to a connected state, the service restoration request sent by the first edge node device is received.

[0081] According to the service recovery request, the communication license information of the first region to which the first edge node device belongs is sent to the first edge node device. The communication license information is used to indicate the service license status of multiple edge node devices in the first region with the cloud server. The multiple edge node devices include the first edge node device. The service license status is used to indicate whether the cloud server allows receiving service requests sent by multiple edge node devices.

[0082] Specifically, in this embodiment, edge node devices within a preset area are grouped together for management. When the first edge node device is connected to the cloud server, it communicates directly with the cloud server. When the connection is lost, the first edge node device performs edge autonomy. When the connection is restored, the system obtains communication permission from the cloud server for the preset area (i.e., the first area) to which the first edge node device belongs to determine whether business communication with the cloud server can be resumed. Thus, in the case of multiple preset areas, communication permission prevents edge node devices in multiple areas from simultaneously resuming business connections with the cloud server, avoiding traffic congestion and achieving traffic control.

[0083] In some embodiments, after sending the communication license information of the first region to which the first edge node device belongs to the first edge node device according to the service recovery request, the method may further include:

[0084] If the business license status in the communication license information is that it allows receiving business requests sent by multiple edge node devices in the first area, the recovery time of the first edge node device is obtained. The recovery time is the time required for the first edge node device to resume business data communication with the cloud server.

[0085] Based on the recovery time, the communication license information for the second region is updated to prohibit receiving service requests sent by multiple edge node devices within the second region. The coverage area of ​​the second region is different from that of the first region.

[0086] In one example, traffic management can be used to prevent cloud servers from experiencing traffic surges. Traffic management primarily addresses the issue of edge nodes re-establishing network connections with the cloud server after edge network instability. This requires retrieving all data, which can significantly impact the cloud server's API server management component. Therefore, to reduce the traffic impact on the cloud server's API server, traffic management is implemented through the following steps: Access to the Kubernetes API Server via the EdgeProxy can be controlled using a permission-based system. Access to the API Server by the edge nodes is restored in batches by controlling permission expiration.

[0087] The specific steps are as follows:

[0088] 1) When the fault isolation controller detects a network fault within the area, it updates the access attribute of the area's permissions to false.

[0089] 2) Continuously check the region until a node recovers to normal. At this point, set the access attribute of the region to true and set time to max(current time, maximum value of all permitted time fields + recovery time interval).

[0090] 3) Before each access to the API Server, EdgeProxy obtains permission and confirms whether the access is true and the current time is greater than the time allowed in the region. If the conditions are met, the request is forwarded to the remote API Server; otherwise, the request is handled locally.

[0091] In some embodiments, before receiving the reconnection request from the first edge node device when the first edge node device and the cloud server are in a connected state, the method further includes:

[0092] Obtain the heartbeat data of the first edge node device;

[0093] If the heartbeat data does not meet the preset conditions, obtain the heartbeat data of the second edge node device in the first region. The second edge node device is any other edge node device in the first region other than the first edge node device.

[0094] If the heartbeat data of the second edge node device meets the preset conditions, it is determined that the first edge node device has failed.

[0095] The services in the first edge node device are migrated to the second edge node device, which is closest to the first edge node device, for processing.

[0096] In one example, within a distributed data center scenario, the network within a single data center is stable and reliable, while the network quality across data centers is unstable. Area probing technology can be used to accurately identify whether a node failure is a genuine malfunction or a communication error caused by an unstable, weak network environment. In this application, this can be achieved by setting up a fault isolation system on a cloud server. This fault isolation system is a self-developed container cloud fault detection and service eviction system, primarily used to quickly handle node failures.

[0097] The specific steps are as follows:

[0098] 1) The fault isolation controller detected that the fault isolation agent did not report a heartbeat.

[0099] 2) The fault isolation controller performs a ping test on the node. If the node can be pinged, the node is considered to be normal and the process ends; otherwise, continue to the next step.

[0100] 3) Check if the node has a region identifier. If not, determine that the node is abnormal within the data center and directly evict it.

[0101] 4) The controller obtains nodes in the same region within the cluster, and then performs ping tests on the nodes in the region. If other nodes in the region can be pinged, it is determined that the edge node is faulty, and node isolation operation is performed (that is, the services in the first edge node device are migrated to the second edge node device closest to the first edge node device for processing). Otherwise, it is determined that the edge network is faulty (that is, the edge node device is disconnected from the cloud server), and the process ends.

[0102] Based on the data processing method provided in the above embodiments, this application also provides a specific implementation of a data processing apparatus, applied to a first edge server. Please refer to the following embodiments.

[0103] First see Figure 3The data processing apparatus 300 provided in this application embodiment includes the following modules:

[0104] The first receiving module 301 is used to receive the first service request sent by the user terminal;

[0105] Processing module 302 is used to search for the first response data corresponding to the first service request in the cache database of the first edge node device when the connection between the first edge node device and the cloud server is disconnected, and send the first response data to the user terminal.

[0106] The first sending module 303 is used to send a first service request to the cloud server when the first edge node device and the cloud server are in a connected state, and to send the response data received from the cloud server to the user terminal and store it in the cache database, wherein the response data is the data corresponding to the first service request determined by the cloud server.

[0107] In some embodiments, the data processing apparatus 300 described above may further include:

[0108] The forwarding module is used to forward the first business request to the cloud server through the reverse proxy component when the first edge node device and the cloud server are in a connected state.

[0109] The third receiving module is used to receive the second response data of the first business request returned by the cloud server through the reverse proxy component;

[0110] The caching module is used to cache the second response data to the business processing component of the first edge node device.

[0111] In some embodiments, the data processing apparatus 300 described above may further include:

[0112] The third sending module is used to send a service recovery request to the cloud server when the first edge node device and the cloud server are restored from a disconnected state to a connected state and a second service request is received.

[0113] The fourth receiving module is used to receive communication license information returned by the cloud server. The communication license information is used to indicate the business license status between multiple edge node devices in the target area and the cloud server. The multiple edge node devices include the first edge node device. The business license status is used to indicate whether the cloud server allows receiving business requests sent by multiple edge node devices.

[0114] The fourth sending module is used to send a second service request to the cloud server when the service license status indicates that the cloud server is allowed to receive service requests sent by multiple edge node devices.

[0115] This application also provides another specific implementation of a data processing device, applied to a cloud server. Please refer to the following embodiments.

[0116] First see Figure 4 The data processing apparatus 400 provided in this application embodiment includes the following modules:

[0117] The second receiving module 401 is used to receive the first service request sent by the edge node device when the first edge node device and the cloud server are in a connected state.

[0118] The determination module 402 is used to determine the second response data corresponding to the first service request in response to the first service request;

[0119] The second sending module 403 is used to send second response data to the first edge node device.

[0120] The first edge node device is used to send the received second response data to the user terminal and store it in the cache database. The cache database is used to provide response data corresponding to the third service request when the first edge node device is in a disconnected state with the cloud server and receives a third service request. The third service request includes the first service request.

[0121] In some embodiments, the data processing apparatus 400 described above may further include:

[0122] The fourth receiving module is used to receive a service recovery request sent by the first edge node device when the connection between the first edge node device and the cloud server is restored from a disconnected state to a connected state.

[0123] The fourth sending module is used to send communication license information of the first area to which the first edge node device belongs to the first edge node device to the first edge node device according to the service recovery request. The communication license information is used to indicate the service license status of multiple edge node devices in the first area with the cloud server. The multiple edge node devices include the first edge node device. The service license status is used to indicate whether the cloud server allows receiving service requests sent by multiple edge node devices.

[0124] In some embodiments, the data processing apparatus 400 described above may further include:

[0125] The first acquisition module is used to acquire the recovery time of the first edge node device when the business license status in the communication license information is that it is allowed to receive business requests sent by multiple edge node devices in the first area. The recovery time is the time required for the first edge node device to resume business data communication with the cloud server.

[0126] The update module is used to update the communication permission information of the second area according to the recovery time, so that it prohibits receiving service requests sent by multiple edge node devices in the second area. The coverage of the second area is different from that of the first area.

[0127] In some embodiments, the data processing apparatus 400 described above may further include:

[0128] The second acquisition module is used to acquire the heartbeat data of the first edge node device;

[0129] The third acquisition module is used to acquire the heartbeat data of the second edge node device in the first area when the heartbeat data does not meet the preset conditions. The second edge node device is other edge node devices in the first area besides the first edge node device.

[0130] The determination module is used to determine that the first edge node device has failed if the heartbeat data of the second edge node device meets the preset conditions.

[0131] The isolation module is used to migrate services from the first edge node device to the second edge node device, which is closest to the first edge node device, for processing.

[0132] The data processing apparatus provided in this embodiment of the invention can achieve Figure 1 or Figure 2 To avoid repetition, the steps in the method embodiments will not be described again here.

[0133] Figure 5 A schematic diagram of the hardware structure of the data processing device provided in an embodiment of this application is shown.

[0134] The data processing device may include a processor 501 and a memory 502 storing computer program instructions.

[0135] Specifically, the processor 501 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0136] Memory 502 may include mass storage for data or instructions. For example, and not limitingly, memory 502 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 502 may include removable or non-removable (or fixed) media. Where appropriate, memory 502 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 502 is non-volatile solid-state memory.

[0137] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods according to one aspect of this disclosure.

[0138] The processor 501 implements any of the data processing methods described in the above embodiments by reading and executing computer program instructions stored in the memory 502.

[0139] In one example, the data processing device may further include a communication interface 503 and a bus 510. Wherein, as... Figure 5 As shown, the processor 501, memory 502, and communication interface 503 are connected through bus 510 and complete communication with each other.

[0140] The communication interface 503 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0141] Bus 510 includes hardware, software, or both, that couples components of a data processing device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 510 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, any suitable bus or interconnect is contemplated herein.

[0142] The data processing device can be based on the above embodiments to achieve the combination Figures 1 to 4 The data processing methods and apparatus described.

[0143] Furthermore, in conjunction with the data processing methods in the above embodiments, this application embodiment can provide a computer storage medium for implementation. This computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the data processing methods in the above embodiments and achieve the same technical effect. To avoid repetition, further details are omitted here. The aforementioned computer-readable storage medium may include non-transitory computer-readable storage media, such as read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks, etc., and is not limited thereto.

[0144] In addition, this application also provides a computer program product, including computer program instructions, which, when executed by a processor, can implement the steps and corresponding content of the aforementioned method embodiments.

[0145] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0146] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0147] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0148] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus, and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0149] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A data processing method, characterized in that it is applied to a first edge node device, the method comprising: Receive the first service request sent by the user terminal; When the first edge node device and the cloud server are restored from a disconnected state to a connected state and a second service request is received, a service restoration request is sent to the cloud server. The system receives communication permission information returned by the cloud server. This information indicates the service permission status between multiple edge node devices within a target area and the cloud server. The multiple edge node devices include the first edge node device. The service permission status indicates whether the cloud server allows receiving service requests sent by the multiple edge node devices. If the service permission status indicates that the cloud server allows receiving service requests sent by multiple edge node devices within the first area, the system updates the communication permission information for the second area to prohibit receiving service requests sent by multiple edge node devices within the second area, based on the recovery time of the first edge node device. The second area has a different coverage area than the first area, and the recovery time is the time required for the first edge node device to resume service data communication with the cloud server. If the first edge node device and the cloud server are in a disconnected state, the system searches for first response data corresponding to the first service request in the cache database of the first edge node device and sends the first response data to the user terminal. When the first edge node device is connected to the cloud server, the first service request is sent to the cloud server, and the response data received from the cloud server is sent to the user terminal and stored in the cache database, wherein the response data is the data corresponding to the first service request determined by the cloud server.

2. The method according to claim 1, characterized in that, After receiving the first service request sent by the user terminal, the method further includes: When the first edge node device and the cloud server are in a connected state, the first edge node device forwards the first service request to the cloud server through a reverse proxy component; The reverse proxy component receives the second response data of the first business request returned by the cloud server. The second response data is cached in the service processing component of the first edge node device.

3. The method according to claim 1, characterized in that, After receiving the first service request sent by the user terminal, the method further includes: If the business license status indicates that the cloud server allows receiving business requests sent by the multiple edge node devices, the second business request is sent to the cloud server.

4. A data processing method applied to a cloud server, characterized in that, The method includes: When the connection between the first edge node device and the cloud server is restored from a disconnected state to a connected state, a service restoration request sent by the first edge node device is received. According to the service recovery request, the communication license information of the first region to which the first edge node device belongs is sent to the first edge node device. The communication license information is used to indicate the service license status of multiple edge node devices in the first region with the cloud server. The multiple edge node devices include the first edge node device. The service license status is used to indicate whether the cloud server allows receiving service requests sent by the multiple edge node devices. If the business license status in the communication license information is that it allows receiving business requests sent by multiple edge node devices in the first area, the recovery time of the first edge node device is obtained, and the recovery time is the time required for the first edge node device to resume business data communication with the cloud server. Based on the recovery time, the communication permission information of the second region is updated to prohibit receiving service requests sent by multiple edge node devices in the second region. The coverage of the second region is different from that of the first region. When the first edge node device is connected to the cloud server, receive the first service request sent by the first edge node device; In response to the first service request, determine the second response data corresponding to the first service request; Send the second response data to the first edge node device. The first edge node device is used to send the received second response data to the user terminal and store it in the cache database; the cache database is used to provide response data corresponding to the third service request when the first edge node device and the cloud server are in a disconnected state and a third service request is received, the third service request including the first service request.

5. The method according to claim 4, characterized in that, Before receiving the reconnection request from the first edge node device when the first edge node device and the cloud server are in a connected state, the method further includes: Obtain the heartbeat data of the first edge node device; If the heartbeat data does not meet the preset conditions, the heartbeat data of the second edge node device in the first region is obtained. The second edge node device is another edge node device in the first region other than the first edge node device. If the heartbeat data of the second edge node device meets the preset conditions, it is determined that the first edge node device has failed. The services in the first edge node device are migrated to the second edge node device, which is closest to the first edge node device, for processing.

6. A data processing apparatus, applied to a first edge node device, characterized in that, The device includes: The first receiving module is used to receive the first service request sent by the user terminal. The third sending module is used to send a service recovery request to the cloud server when the first edge node device and the cloud server are restored from the disconnected state to the connected state and a second service request is received. The fourth receiving module is used to receive communication license information returned by the cloud server. The communication license information is used to indicate the service license status between multiple edge node devices in the target area and the cloud server. The multiple edge node devices include the first edge node device. The service license status is used to indicate whether the cloud server allows receiving service requests sent by the multiple edge node devices. If the service license status indicates that the cloud server allows receiving service requests sent by multiple edge node devices in the first area, the communication license information for the second area is updated to prohibit receiving service requests sent by multiple edge node devices in the second area based on the recovery time of the first edge node device. The coverage area of ​​the second area is different from that of the first area. The recovery time is the time required for the first edge node device to resume service data communication with the cloud server. The processing module is used to search for the first response data corresponding to the first service request in the cache database of the first edge node device when the connection between the first edge node device and the cloud server is disconnected, and to send the first response data to the user terminal. The first sending module is configured to send the first service request to the cloud server when the first edge node device and the cloud server are in a connected state, and to send the response data received from the cloud server to the user terminal and store it in the cache database, wherein the response data is the data corresponding to the first service request determined by the cloud server.

7. A data processing apparatus, applied to a cloud server, characterized in that, The device includes: The fourth receiving module is used to receive a service recovery request sent by the first edge node device when the connection between the first edge node device and the cloud server is restored from a disconnected state to a connected state. The fourth sending module is used to send communication license information of the first region to which the first edge node device belongs to the first edge node device according to the service recovery request. The communication license information is used to indicate the service license status of multiple edge node devices in the first region with the cloud server. The multiple edge node devices include the first edge node device. The service license status is used to indicate whether the cloud server allows receiving service requests sent by the multiple edge node devices. The first acquisition module is used to acquire the recovery time of the first edge node device when the service license status in the communication license information is allowed to receive service requests sent by multiple edge node devices in the first area. The recovery time is the time required for the first edge node device to resume service data communication with the cloud server. The update module is used to update the communication permission information of the second area according to the recovery time to prohibit receiving service requests sent by multiple edge node devices in the second area, wherein the coverage of the second area is different from that of the first area; The second receiving module is used to receive the first service request sent by the edge node device when the first edge node device and the cloud server are in a connected state. The determining module is used to determine the second response data corresponding to the first service request in response to the first service request; The second sending module is used to send the second response data to the first edge node device. The first edge node device is used to send the received second response data to the user terminal and store it in the cache database; the cache database is used to provide response data corresponding to the third service request when the first edge node device and the cloud server are in a disconnected state and a third service request is received, the third service request including the first service request.

8. A data processing device, characterized in that, The device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the data processing method as described in any one of claims 1-5.

9. A computer storage medium, characterized in that, The computer storage medium stores computer program instructions, which, when executed by a processor, implement the data processing method as described in any one of claims 1-5.

10. A computer program product, characterized in that, The computer program product includes computer program instructions, which, when executed by a processor, implement the data processing method according to any one of claims 1-5.