CN111800441A - Data processing method, system, device, user side server, user side and management and control server - Google Patents

Data processing method, system, device, user side server, user side and management and control server Download PDF

Info

Publication number
CN111800441A
CN111800441A CN201910277459.9A CN201910277459A CN111800441A CN 111800441 A CN111800441 A CN 111800441A CN 201910277459 A CN201910277459 A CN 201910277459A CN 111800441 A CN111800441 A CN 111800441A
Authority
CN
China
Prior art keywords
node
migrated
redirection
service instance
service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910277459.9A
Other languages
Chinese (zh)
Other versions
CN111800441B (en
Inventor
熊鹰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910277459.9A priority Critical patent/CN111800441B/en
Publication of CN111800441A publication Critical patent/CN111800441A/en
Application granted granted Critical
Publication of CN111800441B publication Critical patent/CN111800441B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Abstract

The embodiment of the application provides a data processing method, a system, a device, a user side server, a user side and a management and control server. According to the technical scheme of the embodiment of the application, the service request sent by the user side aiming at the service instance in the node to be migrated is intercepted. And determining a target node to which the service instance is migrated, and generating a redirection request based on the address information of the target node. And sending the redirection request to the user side so that the user side sends a service request aiming at the service instance based on the address information of the target node. According to the embodiment of the application, the uninterrupted thermal migration can be realized in the node migration process of the service instance.

Description

Data processing method, system, device, user side server, user side and management and control server
Technical Field
The embodiment of the application relates to the technical field of networks, in particular to a data processing method, a system, a device, a user side server, a user side and a management and control server.
Background
With the rapid development of 5G (5th generation mobile networks), IOT (Internet of Things) technology and cloud computing application, the traditional centralized cloud computing technology has been unable to meet the requirements of "large connection, low latency, and large bandwidth" at the terminal side. Therefore, ENS (Edge Node Service) should be generated.
The ENS is a network node (namely an edge node) which is combined with the concept of edge computing and extends the cloud computing capability to a network edge side closer to an end user, and realizes the sinking of cloud computing service and provides end-to-end cloud service through the unified management and control of the edge node by the cloud end. Edge-based computing provides distributed, hierarchical computing resource capabilities that store primary processing and data at the edge nodes of the network. Therefore, the ENS can meet the requirements of large connection, low time delay and large bandwidth on the terminal side, and can greatly relieve the pressure of cloud data processing.
And the running environment of the initialization container is deployed on each edge node based on the requirement of a user. After the cloud issues the application image based on the containerization of the user to the container of the edge node, the edge node creates the service instance of the application in the container. The service instance provides services to the outside through the independent internet IP + port of the edge node, and the service request generated by the user side obtains the internet IP + port of the edge node based on the address list of the system, so that the service instance is sent to the edge node for response processing.
Due to various factors, such as node offline, resource full, network exception, etc., it is necessary to frequently schedule service instances for migrating edge nodes, for example, migrating a service instance from a node to be migrated to at least one target node. In the prior art, after a service instance of an application is migrated from a node to be migrated to a target node, a system address list is not updated to address information of the target node in time due to factors such as client scheduling system interaction, application and protocol layer caching, and the cached address information in the address list is still address information of the node to be migrated. Therefore, the service request generated by the user side is still sent to the node to be migrated based on the address list, but the service instance of the node to be migrated cannot respond to the service request after being migrated, so that the service is interrupted, and the user experience is influenced.
Disclosure of Invention
The embodiment of the application provides a data processing method, a system, a device, a user side server, a user side and a management and control server, and can realize uninterrupted heat transfer in the node transfer process of a service instance.
In a first aspect, an embodiment of the present application provides a data processing method, including:
intercepting a service request sent by a user side aiming at a service instance in a node to be migrated;
determining a target node to which the service instance is migrated, and generating a redirection request based on address information of the target node;
and sending the redirection request to the user side so that the user side sends a service request aiming at the service instance based on the address information of the target node.
In a second aspect, an embodiment of the present application provides a data processing method, including:
sending a service request to a service instance in a node to be migrated;
receiving a redirection request sent by the node to be migrated; the redirection request is generated for the address information of the target node to which the node to be migrated is migrated based on the service instance;
and sending the service request aiming at the service instance to the service instance in the corresponding target node based on the address information of the target node so as to obtain the service response generated by the service instance aiming at the service request.
In a third aspect, an embodiment of the present application provides a data processing method, including:
sending a redirection instruction aiming at a service instance to a node to be migrated so as to enable the node to be migrated to intercept a service request sent by a user end aiming at the service instance in the node to be migrated;
and sending the address information of the target node to the node to be migrated based on the target node to which the service instance is migrated, so that the node to be migrated generates a redirection request based on the address information and sends the redirection request to the user side.
In a fourth aspect, an embodiment of the present application provides a data processing system, including a plurality of edge nodes and a user side respectively connected to the edge nodes;
the node to be migrated is used for intercepting a service request sent by the user side aiming at a service instance in the node to be migrated; determining a target node to which the service instance is migrated, and generating a redirection request based on address information of the target node; sending the redirection request to the user side;
the user side is used for sending the service request to the service instance in the node to be migrated; receiving a redirection request sent by the node to be migrated; sending a service request for the service instance based on the address information.
In a fifth aspect, an embodiment of the present application provides a data processing apparatus, including:
the intercepting module is used for intercepting a service request sent by a user side aiming at a service instance in a node to be migrated;
the first determining module is used for determining a target node to which the service instance is migrated and generating a redirection request based on the address information of the target node;
a first sending module, configured to send the redirection request to the user side, so that the user side sends a service request for the service instance based on the address information of the target node.
In a sixth aspect, an embodiment of the present application provides a data processing apparatus, including:
the first service request sending module is used for sending a service request to a service instance in a node to be migrated;
a redirection request receiving module, configured to receive a redirection request sent by the node to be migrated; the redirection request is generated for the address information of a target node to which the node to be migrated is migrated based on the service instance;
and the second service request sending module is used for sending the service request aiming at the service instance to the service instance in the corresponding target node based on the address information of the target node so as to obtain the service response generated by the service instance aiming at the service request.
In a seventh aspect, an embodiment of the present application provides a data processing apparatus, including:
the system comprises a redirection instruction sending module, a migration processing module and a migration processing module, wherein the redirection instruction sending module is used for sending a redirection instruction aiming at a service instance to a node to be migrated so as to enable the node to be migrated to intercept a service request sent by a user end aiming at the service instance in the node to be migrated;
and the address information sending module is used for sending the address information of the target node to the node to be migrated based on the target node to which the service instance is migrated, so that the node to be migrated generates a redirection request based on the address information and sends the redirection request to the user side.
In an eighth aspect, an embodiment of the present application provides a client server, including a processing component and a storage component; the storage component is configured to store one or more computer instructions, where the one or more computer instructions are invoked by the processing component to perform the data processing method according to any of the foregoing embodiments.
In a ninth aspect, an embodiment of the present application provides a user side, including a processing component and a storage component; the storage component is configured to store one or more computer instructions, where the one or more computer instructions are invoked by the processing component to perform the data processing method according to any of the foregoing embodiments.
In a tenth aspect, an embodiment of the present application provides a management server, including a processing component and a storage component; the storage component is configured to store one or more computer instructions, where the one or more computer instructions are invoked by the processing component to perform the data processing method according to any of the foregoing embodiments.
Compared with the prior art, the application can obtain the following technical effects:
the embodiment of the application provides a data processing method, a system, a device, a user side server, a user side and a management and control server. According to the technical scheme, in the service instance node migration process, a service request sent by a user side aiming at a service instance in a node to be migrated is intercepted, a target node to which the service instance is migrated is determined, and a redirection request is generated based on address information of the target node. After the redirection request is sent to the user side, the user side can send the service request aiming at the service instance to the corresponding target node based on the address information, and the service instance in the target node responds to the service request. Therefore, the problem of service interruption caused by the fact that the service instance in the node to be migrated cannot respond to the service request sent by the user side can be avoided. According to the embodiment of the application, the uninterrupted thermal migration can be realized in the node migration process of the service instance.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic flow chart diagram illustrating one embodiment of a data processing method according to the present application;
FIG. 2 shows a schematic flow chart diagram of yet another embodiment of a data processing method according to the present application;
FIG. 3 is a flow diagram illustrating one embodiment of a data processing method according to the present application;
FIG. 4 is a flow diagram illustrating one embodiment of a data processing method according to the present application;
FIG. 5 shows a schematic flow chart diagram of another embodiment of a data processing method according to the present application;
FIG. 6 is a block diagram illustrating one embodiment of a data processing system in accordance with the present application;
FIG. 7 is a block diagram illustrating another embodiment of a data processing system in accordance with the present application;
FIG. 8 illustrates a multi-ended interactive signaling diagram according to one embodiment of a data processing system provided herein;
FIG. 9 is a block diagram illustrating one embodiment of a data processing apparatus according to the present application;
FIG. 10 is a schematic diagram illustrating an architecture of yet another embodiment of a data processing apparatus according to the present application;
FIG. 11 is a schematic block diagram illustrating another embodiment of a data processing apparatus according to the present application;
FIG. 12 is a schematic block diagram illustrating another embodiment of a data processing apparatus according to the present application;
FIG. 13 is a schematic block diagram illustrating a data processing apparatus according to yet another embodiment of the present application;
FIG. 14 is a schematic diagram illustrating one embodiment of a client server in accordance with the present application;
FIG. 15 is a schematic diagram illustrating one embodiment of a client according to the present application;
fig. 16 is a schematic structural diagram illustrating an embodiment of a management server according to the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In some of the flows described in the specification and claims of this application and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, the number of operations, e.g., 101, 102, etc., merely being used to distinguish between various operations, and the number itself does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The method aims to solve the problem of service interruption caused by the fact that a service request generated by a user side is sent to a node to be migrated without responding to the request because an address list of a system is not updated in time in the migration process of the service instance node. The inventor provides the technical scheme of the application through a series of researches, in the embodiment of the application, in the process of service instance node migration, a service request sent by a user side aiming at a service instance in a node to be migrated is intercepted, a target node to which the service instance is migrated is determined, and a redirection request is generated based on address information of the target node. After the redirection request is sent to the user side, the user side can send the service request aiming at the service instance to the corresponding target node based on the address information, and the service instance in the target node responds to the service request. Therefore, the problem of service interruption caused by the fact that the service instance in the node to be migrated cannot respond to the service request sent by the user side can be avoided. According to the embodiment of the application, the uninterrupted thermal migration can be realized in the node migration process of the service instance.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic flowchart of an embodiment of a data processing method according to an embodiment of the present application. The method can be applied to a client server, and the method can comprise the following steps:
101: and intercepting a service request sent by a user side aiming at a service instance in the node to be migrated.
In practical application, in order to relieve the pressure of cloud data processing and provide the requirements of 'large connection, low delay and large bandwidth' for the terminal side, the edge node provides the edge computing capability for the terminal. The edge node may include an edge IDC (Internet Data Center), a DDC (Distributed Data Center), a communication network of an operator, core network equipment, a base station, an edge gateway, a home gateway, a computing device, a storage device, IOT (Internet of Things) equipment, a wireless room or cluster, MEC (Multi-Access edge computing) equipment, a sharing node, and the like, and the edge node that stores main processing and Data storage in the network based on edge computing provides Distributed and layered computing resource capability and realizes cloud management and control of the edge node through a management and control service end.
Therefore, to provide the edge computing requirement of "large connection, low latency, large bandwidth" for the user side, the service instance of the target application of the customer is typically deployed in edge nodes, on each of which an initialized running environment is deployed based on the user requirement. After the cloud sends the application mirror image of the target application to the edge node, the edge node responds to the service request sent by the user side of the target application by creating the service instance of the application and running the service instance. Due to various factors, such as node offline, full resource, network anomaly, etc., service instances in the migration edge node need to be scheduled frequently, when the management and control server migrates the service instance of the target application in the node to be migrated to the target node, the service instance in the target node provides a service response for the user side, and the node to be migrated stops running the service instance.
In actual application, an initialized container operating environment or an initialized virtual machine operating environment may be deployed in an edge node, and an application image corresponding to the operating environment is created based on different operating environments. For an edge node of a deployment container operation environment, a container mirror image of a target application is required to be sent to a container of the edge node, and a service instance of the target application is created in the container; for an edge node deploying a virtual machine running environment, a virtual machine image of a target application needs to be issued to a virtual machine of the edge node, and a service instance of the target application is created in the virtual machine. The method is not particularly limited, and the method can be deployed according to actual requirements.
However, due to factors such as scheduling system interaction, application and protocol layer caching, the system address list is not updated in time, and the cached address information of the node to be migrated still exists in the address list. Therefore, the service request generated by the user side is still sent to the node to be migrated based on the address list, and since the service instance of the node to be migrated cannot respond to the service request, a service non-response message is returned to the user side, which causes service interruption. Because the edge node provides service for the user side based on the form of network IP + port, in order to solve the problem of service interruption caused after the service instance node is migrated, the service request sent by the user side for the service instance in the node to be migrated is intercepted through the port.
After the service instance is migrated to the target node, the service request sent by the service instance can be automatically intercepted by detecting whether the service instance in the node to be migrated stops running or not. Specifically, the node to be migrated may send a test request to the service instance of the target application every first preset time, and if response information to the test request sent by the service instance is received within second preset time, it may be determined that the service instance operates normally; if the response information is not received within the second preset time, the interception operation of the service request can be started.
Optionally, after the management and control server migrates the service instance to the corresponding target node, the management and control server controls the node to be migrated to execute the interception operation on the service request. Before the intercepting a service request sent by a user side for a service instance in a node to be migrated, the method may further include:
receiving a redirection instruction sent by a management and control server side; the redirection instruction is generated after the management and control server side migrates the service instance to the corresponding target node.
102: and determining a target node to which the service instance is migrated, and generating a redirection request based on the address information of the target node.
103: and sending the redirection request to the user side so that the user side sends a service request aiming at the service instance based on the address information of the target node.
And aiming at the intercepted service request, determining a target node to which the service instance is migrated, and generating a redirection request based on the address information of the target node. Wherein, the service instance is operated in the target node and can respond to the service request.
The user side can execute redirection operation based on the redirection request, regenerate the service request after receiving the redirection request sent by the node to be migrated, and send the service request aiming at the service instance to the target node based on the address information of the target node in the redirection request so as to obtain the service response of the service instance aiming at the service request. In the process, the user side can receive the service response generated by the service instance of the target node, so that the service request can be prevented from being sent to the service instance in the node to be migrated, and the information incapable of responding to the service can be generated, and therefore, the user of the user side can not perceive the service break of the service instance in the node to be migrated caused by the migration of the service instance node.
As an implementation manner, the determining a target node to which the service instance is migrated and generating a redirection request based on the address information of the target node may include:
sending a redirection address information acquisition request to a management and control server;
receiving address information of any target node sent by a management and control server according to at least one target node to which a service instance is migrated; any target node is selected and determined from at least one target node for the management and control server based on a preset rule; at least one target node is selected and determined from the edge nodes for the management and control server side;
a redirect request for the service request is generated based on the address information of any one of the target nodes.
Since the migration of the service instance in the edge node is realized by the management and control server, the target node to which the service instance is migrated can be determined by the management and control server. The management service end can migrate the service instance to at least one target node for deployment based on the migration requirement. The management and control server only needs to determine that any target node in the at least one target node processes the service request. The management and control server sends the determined address information of any target node to the node to be migrated, so that the node to be migrated can generate a redirection request based on the address information of any target node.
As an implementation manner, after sending the redirection request to the user side, the method may further include:
and offline the service instance.
In practical applications, after the service instance is migrated, the service instance is offline in order to save system resources of the node to be migrated. The offline process is a process of deleting the service instance in the node to be migrated, and the offline process includes deleting data corresponding to the service instance, so that storage resources and computing resources occupied by the service instance are released.
Because a certain time is required for updating the address list of the system, the address list needs to gradually delete the address information of the node to be migrated cached in the system and update the address information to the address information of the target node, and therefore the offline operation of the service instance needs to be executed after the update of the address information in the address list is completed.
Optionally, the offline service instance may include:
and if the service request sent by the user side aiming at the service instance in the node to be migrated is not intercepted within the monitoring preset time threshold, the service instance is offline.
In practical application, the time threshold may be set based on the update time of the system address list, and if the service request sent by the user terminal is not received within the preset time threshold, it may be determined that the service request generated by the user terminal is directly sent to the service instance of the target node after the preset time threshold because the address list is updated. Therefore, the service instance in the node to be migrated can be directly offline.
Optionally, the offline service instance may include:
receiving a offline instruction aiming at the service instance sent by a management and control server side;
and offline the service instance based on the offline instruction.
Of course, whether the address list is updated or not can be monitored by the management and control server, and after the update of the address list is completed, an offline instruction for the service instance can be issued to the node to be migrated, so that the node to be migrated is offline the service instance based on the offline instruction.
In the embodiment of the application, the service request sent to the node to be migrated and stopping running the service instance is intercepted, and the redirection request is used for controlling the user side to redirect the service request to the target node running the service instance, so that the service request is prevented from being sent to the service instance in the node to be migrated, the information incapable of responding to the service is generated, and the user of the user side cannot perceive the service interruption of the service instance in the node to be migrated caused by the migration of the service instance node.
The technical scheme of the embodiment of the application can not only realize the application scene of the migration of the nodes without service interruption, but also can be applied to the application scene of the service interruption caused when the service instance of any node is down or fully loaded when the same service instance is deployed in a plurality of edge nodes.
Fig. 2 is a schematic flowchart of an embodiment of a data processing method according to an embodiment of the present application. The method can be applied to a client server, and the method can comprise the following steps:
201: and receiving a redirection instruction sent by the management and control server.
The redirection instruction is generated after the management and control server migrates the service instance to the corresponding target node.
202: and activating a redirection plug-in corresponding to the service instance based on the redirection instruction.
And the redirection plug-in is issued to the node to be migrated in advance by the control server.
In the actual application, a redirection plug-in is created in advance for each service instance of the target application, where the redirection plug-in may be implemented by using a Network hook developed by a CNI (Container Network Interface)/CNM (Container Network Model) standard or a user mode/kernel mode of a Container based on a service instance operating environment. Meanwhile, different network transmission protocols can be supported by personalized creation based on the service requirements of the user, and if the user transmits data by adopting an HTTP (Hyper Text Transfer Protocol), a redirection plug-in supporting the HTTP Protocol can be developed; if the user uses the private protocol to transmit data, a redirection plug-in supporting the user private protocol can be developed. In addition, the redirection plug-in can encrypt and decrypt the transmission data based on the preset secret key, so that the safety requirement of the user on data transmission is further met.
And when the management and control server side issues the redirection plug-in to the node to be migrated, the redirection plug-in is in a dormant state. When the service instance in the node to be migrated does not undergo node migration, the actual service processing of the service instance is not affected. And after the management and control server side migrates the service instance to the target node, activating the redirection plug-in through the redirection instruction, so that the redirection plug-in executes the interception operation of the service request.
203: and intercepting a service request sent by the user side aiming at the service instance in the node to be migrated by utilizing a redirection plug-in.
204: and generating a redirection address information acquisition request by utilizing the redirection plug-in.
205: and sending a redirection address information acquisition request to the management and control server.
206: and receiving address information of any target node sent by the management and control server according to at least one target node to which the service instance is migrated.
Any target node is selected and determined from at least one target node for the management and control server based on a preset rule; and at least one target node selects and determines from the edge nodes for the management and control server side.
207: generating, with a redirection plug-in, a redirection request for the service request based on address information of any one of the target nodes.
208: and sending a redirection request to the user side by utilizing the redirection plug-in so that the user side sends a service request aiming at the service instance based on the address information of the target node.
In practical application, the redirection plug-in completes node migration of a service request aiming at a service instance in a node to be migrated, redirects the service request sent to the node to be migrated to a target node, and enables a user side to resend the service request to the service instance in the target node for processing based on address information in the redirection request. Therefore, the service instance can process the service request in time and generate response information corresponding to the service request which is not changed, and the response information is sent to the user side, so that the user side cannot perceive the problem of service interruption caused by service instance node migration.
From the foregoing, it can be seen that a redirection plug-in supporting different network transport protocols can be created based on user traffic needs. As an implementation manner, the intercepting a service request sent by a user terminal for a service instance in the node to be migrated may include:
intercepting a request data packet sent by the user side aiming at the service instance in the node to be migrated; the request data packet is obtained by packaging the service request by the user side based on a preset transmission protocol;
and analyzing the request data packet based on the preset transmission protocol to obtain the service request.
As an implementation manner, the sending the redirection request to the user side for the user side to send the service request for the service instance based on the address information of the target node may include:
packaging the redirection request based on the preset transmission protocol to obtain a redirection data packet;
sending the redirection data packet to the user side so that the user side can analyze the redirection data packet based on the preset transmission protocol to obtain the redirection request; sending a service request for the service instance based on the address information of the target node.
In practical application, the preset transmission protocol may be a general transmission protocol HTTP, a private transmission protocol set by a user, or a combination of multiple transmission protocols, which is not specifically limited herein, and may be set according to practical requirements.
In the embodiment of the application, the service request is intercepted by utilizing the redirection plug-in, and meanwhile, the redirection plug-in is personalized to create based on the transmission protocols of different user requirements, so that the method can be flexibly suitable for the data transmission requirements of different applications, intercepts the service request transmitted based on the preset transmission protocol, and sends the redirection request to the user side based on the preset transmission protocol, so that the user side resends the service request to the service instance of the target node based on the address information of the target node, the original application program of the user side server does not need to be modified, the operation can be realized only by calling the plug-in, and the method is more flexible, convenient and easy to operate.
Fig. 3 is a schematic flowchart of an embodiment of a data processing method according to an embodiment of the present application. The method can be applied to a user terminal, and comprises the following steps:
301: and sending a service request to the service instance in the node to be migrated.
302: and receiving a redirection request sent by the node to be migrated.
And the redirection request is generated for the node to be migrated based on the address information of the target node to which the service instance is migrated.
303: and sending the service request aiming at the service instance to the service instance in the corresponding target node based on the address information of the target node so as to obtain a service response generated by the service instance aiming at the service request.
In practical application, after receiving a redirection request sent by a node to be migrated, a user side regenerates the service request based on the redirection request, and sends the service request to a service instance of a target node for processing based on address information in the redirection request.
The user side encapsulates the service request based on the preset transmission protocol, and analyzes the redirection data packet which is sent by the node to be migrated and is encapsulated based on the preset transmission protocol, and the specific process is as follows.
Optionally, in some embodiments, the sending the service request to the service instance in the node to be migrated may include:
packaging the service request to obtain a request data packet based on a preset transmission protocol;
and sending the request data packet to the service instance in the node to be migrated.
As an implementation manner, the receiving the redirection request sent by the node to be migrated may include:
receiving a redirection data packet sent by the node to be migrated; the redirection data packet is obtained by packaging the redirection request by the node to be migrated based on the preset transmission protocol;
and analyzing the redirection data packet based on the preset transmission protocol to obtain the redirection request.
In the embodiment of the application, after receiving the redirection request, the user side resends the service request to the service instance in the target node capable of responding to the service request based on the redirection request, so that the user side can obtain the service response of the service side in time, the problem of service interruption of the service side caused by node migration of the service instance can not be perceived, and the user experience is greatly improved.
Fig. 4 is a schematic flowchart of an embodiment of a data processing method according to an embodiment of the present application. The method can be applied to a management and control server side and comprises the following steps:
401: and sending a redirection instruction aiming at the service instance to the node to be migrated so that the node to be migrated intercepts a service request sent by a user end aiming at the service instance in the node to be migrated.
402: and sending the address information of the target node to the node to be migrated based on the target node to which the service instance is migrated, so that the node to be migrated generates a redirection request based on the address information and sends the redirection request to the user side.
In practical application, the management and control server is used for implementing management and control on the edge nodes, monitoring management of whether resources of each node are fully loaded, whether the nodes are down, and addition and removal of the nodes in time, and managing node migration of data or service instances by interacting with a scheduling system of a client, and the like, which is not specifically limited herein.
Optionally, as an optional implementation manner, the sending, based on the target node to which the service instance is migrated, the address information of the target node to the node to be migrated may include:
determining any one of the at least one target node as a redirection node according to a preset rule;
and determining the address information of the redirection node and sending the address information to the node to be migrated.
In practical applications, the preset rule may be a polling selection, a random selection, or a rule such as selecting a redirection node based on the weight value of the target node, which is not specifically limited herein.
The polling selection can be realized by numbering the at least one target node, and sequentially and circularly selecting any target node as the redirection node based on the numbering sequence.
And randomly selecting any one of the at least one target node as a redirection node according to a random probability distribution mode and the like.
The weight value based on the target node may specifically be that the weight of each target node is calculated based on factors such as bandwidth, region, location, tenant, user access amount, and the like of the target node, and the target node with a higher weight is preferentially selected as the redirection node. The specific calculation process of the actual weight value can be referred to the following contents, and is not described herein again.
In the embodiment of the present application, a suitable preset rule may be selected according to the actual scheduling requirement and the resource complexity to select the redirection node, which is not specifically limited herein.
In the embodiment of the application, the edge node is managed and controlled by the management and control server, so that the cooperation between the migration of the service instance node and the redirection of the service request can be better realized. After the service instance completes node migration, the control server triggers the nodes to be migrated to execute the interception operation of the service request in time, and guarantees that the service instance is continuously served.
Fig. 5 is a flowchart illustrating an embodiment of a data processing method according to an embodiment of the present application. The method can be applied to a management and control server side and comprises the following steps:
501: and acquiring a node migration request generated aiming at the service instance in the node to be migrated.
Wherein the node migration request may be generated by a scheduling system of a client triggered by a client based on a deployment requirement. And the client scheduling system sends the node migration request to the management and control server, and the management and control server performs scheduling based on the node migration request.
Of course, it can be understood that the node migration request may be generated by the management and control server when it is monitored that the resource of the node to be migrated is fully loaded or down, and a redirection instruction is generated based on the node migration request to perform node scheduling and migration on the service instance of the node to be migrated.
502: a redirection instruction for the service instance is generated based on the node migration request.
503: from the edge nodes, at least one target node is determined.
504: the service instance is migrated to at least one target node.
505: and sending a redirection instruction aiming at the service instance to the node to be migrated so that the node to be migrated intercepts a service request sent by a user end aiming at the service instance in the node to be migrated.
506: and determining any one of the at least one target node as a redirection node according to a preset rule.
507: and determining the address information of the redirection node and sending the address information to the node to be migrated so that the node to be migrated generates a redirection request based on the address information and sends the redirection request to the user side.
In practical applications, the migrating the service instance to the at least one target node may include:
and respectively issuing the target images to the at least one target node so that the at least one target node can respectively create the service instance and start the service instance.
The target mirror image of the target application is stored in the management and control server side in advance, when node migration of the service instance of any target application is carried out, the target mirror image is issued to the target node, the service instance is created in the target node based on the target mirror image, and the service instance is operated. The target node can provide service for the user of the application user side through the service instance.
In practical application, when a container operation environment is deployed in a target node, a target container mirror image of a target application needs to be correspondingly issued to a container of the target node; if the deployment is a running environment of the virtual machine, the target virtual machine image of the target application needs to be correspondingly issued to the virtual machine of the target node, which is not specifically limited herein.
Optionally, as an implementable implementation, the issuing the target image to the at least one target node for the at least one target node to respectively create the service instance and start the service instance may include:
acquiring the mirror image of the target container;
and respectively issuing the target container mirror images to the at least one target node so that the at least one target node respectively creates container service instances of the target container mirror images and starts the container service instances.
Optionally, in some embodiments, before sending the redirection instruction for the service instance to the node to be migrated to enable the node to be migrated to intercept the service request sent by the user side for the service instance in the node to be migrated, the method may further include:
determining a redirection plug-in corresponding to the service instance;
issuing the redirection plug-in to the node to be migrated so that the node to be migrated activates the redirection plug-in based on the redirection instruction; intercepting the service request by utilizing the redirection plug-in.
Optionally, the redirection plug-in may be created as follows:
determining a preset transmission protocol set by the service instance based on service requirements;
and creating a redirection plug-in supporting the preset transmission protocol so as to enable the redirection plug-in to perform data interaction with the user side based on the preset transmission protocol.
In practical applications, a client may set different transport protocols based on service requirements of different service instances, and therefore, a preset transport protocol set based on the service requirements of the service instances is required to be created when creating a target redirection plug-in. The redirection plug-in can support the analysis and encapsulation of the data transmitted based on the preset transmission protocol, and the data processing amount of the edge node can be further reduced.
After the creation of the redirection plug-in of each target application is completed, the redirection plug-in is pre-stored in the management and control server, and the management and control server may issue the redirection plug-in to the edge node where the service instance of the target application is deployed in advance. The management and control server may deploy a corresponding redirection plug-in the target node while deploying the service instance of the target application, or issue the management and control server to the node to be migrated after receiving the node migration request for the service instance of the target application, which is not specifically limited herein, and may be set according to actual requirements.
As an implementable embodiment, the determining at least one target node from among the edge nodes may include:
acquiring migration requirement information aiming at the service instance in the node to be migrated;
determining respective existing resource information of the edge nodes;
and determining at least one target node of which the existing resource information meets the migration requirement information in the edge node.
In practical application, migration requirement information of a service instance needs to be considered when node migration of the service instance is performed, and at least one target node is selected based on whether existing resource information that can be provided by each edge node meets the migration requirement information, which is specifically described as follows.
Optionally, the determining at least one target node whose existing resource information satisfies the migration requirement information in the edge node may include:
determining a first matching degree of the migration requirement information and the existing resource information of each edge node respectively;
judging whether the node migration request is of a single-node migration type or a multi-node migration type;
if the single node migration type is the single node migration type, determining a target node meeting a first matching requirement in the edge nodes according to the first matching degree;
and if the type is the multipoint migration type, determining a plurality of target nodes meeting second matching requirements in the edge nodes according to the first matching degree.
According to the deployment requirements of different customers, the deployment can be divided into single-node deployment and multi-node deployment, for example, in order to improve the response speed and service performance of the edge node to the user request, the deployment can be performed in a partitioned manner. The edge nodes deployed in the corresponding areas provide services for the user sides of the corresponding areas, and the problems of full resource load and performance reduction caused by the fact that users access the same node can be avoided.
Therefore, when the target node is selected, if the target node is of a single-node migration type, one target node meeting the migration requirement is selected based on the first matching requirement; and if the type is a multi-node migration type, selecting a plurality of target nodes meeting the migration requirement based on the second matching requirement.
As an implementation manner, the migration requirement information may include migration requirement sub-information respectively corresponding to at least one resource parameter.
The existing resource information may include existing resource sub information respectively corresponding to the at least one resource parameter.
The determining the first matching degree between the migration requirement information and the existing resource information of each edge node may include:
and respectively determining a first matching degree of the migration requirement sub-information corresponding to the same resource parameter and the existing resource sub-information for each edge node.
In practical applications, the at least one resource parameter may include a bandwidth parameter, a regional parameter, a performance parameter (which may include storage performance and processing performance), a tenant operator parameter, and the like.
The migration requirement information may include bandwidth requirement information corresponding to the bandwidth parameter, region requirement information corresponding to the region parameter, performance requirement information corresponding to the performance parameter, preferred operator requirement information corresponding to the tenant operator, and the like.
The existing resource information of each edge node may include bandwidth information corresponding to the bandwidth parameter, region information corresponding to the region parameter, performance information corresponding to the performance parameter, and operator information corresponding to the tenant operator.
Calculating a first matching degree of the migration requirement sub-information corresponding to the same resource parameter and the existing resource sub-information for each edge node, wherein the first matching degree is determined by judging the first matching degree of the bandwidth requirement information and the bandwidth information of the edge node, and the first matching degree is higher when the bandwidth information is greater than the bandwidth requirement information; for example, the bandwidth requirement information is 100M (mega), and the first matching degree is lower when the existing bandwidth information of the edge node is less than 100M, and the first matching degree is higher than 100M.
And judging a first matching degree of the region demand information and the region information, wherein the closer the region information and the region demand information are, the higher the first matching degree is. For example, the region requirement information is X city, and if the region information a city of the edge node is closer to X city, the first matching degree is higher, and if a city is farther from X city, the matching degree is lower.
Similarly, a first matching degree of the existing resource sub-information of each edge node corresponding to the same resource parameter and the migration requirement sub-information of the node to be migrated is respectively determined.
In practical application, the first matching degree corresponding to the resource parameter of any edge node can be obtained by calculating according to the following mode:
xi=θ(yi,gi)
wherein x isiA first matching degree of the ith resource parameter of any edge node, theta represents a matching function of the ith resource parameter, and yiIndicating migration requirement sub-information corresponding to the ith resource parameter, giIndicating the existing resource sub information corresponding to the ith resource parameter.
The matching function corresponding to each resource parameter may be designed and selected based on different matching requirements, which is not specifically limited herein.
Optionally, if the single-node migration type is used, determining, according to the first matching degree, one target node that meets a first matching requirement in the edge nodes may include:
for each edge node, determining a first edge node with a first matching degree corresponding to each resource parameter meeting a first matching requirement;
determining a weight value of each resource parameter;
calculating a second matching degree of the migration demand information and each first edge node respectively based on the first matching degree and the weight value corresponding to each resource parameter;
and determining a first edge node with the highest second matching degree as the target node.
In practical applications, the second matching degree can be calculated as follows:
Figure BDA0002020493710000221
wherein g (x) represents a second matching degree of the migration requirement information and any edge node, and n represents a resource parameterNumber of (d), μiWeight value, x, representing the ith resource parameteriA first degree of match representing a corresponding ith resource parameter for the any one edge node.
In practical applications, the determining, for each edge node, a first edge node whose first matching degree corresponding to each resource parameter satisfies a first matching requirement may include:
and aiming at each edge node, determining the first edge nodes of which the first matching degrees corresponding to the resource parameters are not less than the first matching threshold corresponding to the resource parameters respectively.
The first matching threshold may be set based on the minimum requirement of the migration requirement sub-information, for example, if the required bandwidth is 100M, if the first matching degree bit 50 is obtained when the existing bandwidth is 100M, the matching threshold may be set to 50, that is, the edge node whose matching threshold of the bandwidth parameter is not less than 50 may be screened out.
For example, the farthest region position of the target node required to be matched by the region parameter is farthest from the region requirement information and is not more than 1000m (meter), the edge node, of which each resource parameter meets the corresponding first matching threshold value, is screened out based on the first matching degree of the corresponding region parameter at a distance of one kilometer as the first matching threshold value, and the corresponding first edge node is obtained by taking the intersection, so that it can be ensured that each first edge node obtained by screening meets the node migration requirement of the service instance. Optionally, if the type of the multipoint migration is the multipoint migration type, determining, according to the first matching degree, a plurality of target nodes that meet a second matching requirement in the edge nodes may include:
determining weight values for one or more target resource parameters of the at least one resource parameter;
determining the priority of each edge node based on the first matching degree and the weight value corresponding to each of the one or more target resource parameters;
and selecting a plurality of second edge nodes meeting second matching requirements from high to low as the plurality of target nodes according to the priority of each edge node.
When multi-node migration is performed, the priority of each edge node is determined based on the target resource parameters. In practical applications, the target resource parameter may be one or more.
For example, when the target resource parameter is one, the region parameter may be used as the target resource parameter.
At this time, the priority of each edge node is determined based on the magnitude of the first matching degree of the region parameter of each edge node, and the higher the first matching degree is, the higher the priority is.
For example, when the original parameters are multiple, the region parameter and the tenant operator parameter may be used as the target resource parameters. At this time, a third matching degree of each edge node may be determined based on the weight value of the target resource parameter and the corresponding first matching degree, and the higher the third matching degree, the higher the priority of the corresponding node. The third matching degree may specifically refer to a calculation manner of the second matching degree, which is not described herein again.
In practical applications, the selecting, from high to low according to the priority of each edge node, a plurality of second edge nodes that satisfy a second matching requirement as the plurality of target nodes may include:
selecting a plurality of second edge nodes from high to low as the plurality of target nodes according to the priority of each edge node; and the sum of the existing resource sub-information corresponding to part of the resource parameters of the second edge nodes is not less than the corresponding resource requirement sub-information.
Because multi-node migration is performed, migration requirement information corresponding to a part of resource parameters, for example, bandwidth requirement information corresponding to bandwidth resources, performance requirement information corresponding to performance resources, and the like, may be distributed to each target node.
For example, if the bandwidth requirement information is 100M bandwidth and the existing bandwidth of the first edge node with the highest priority is 60M, the edge node with the second priority is selected in order as the target node, and the existing bandwidth resource is 50M. The sum of the existing bandwidth resources of the edge nodes of the first and second priorities satisfies the bandwidth requirement information.
If the performance requirement information is, for example, that the storage requirement is 100TB space, and the existing storage space of the first edge node with the highest priority is 20TB, the edge node with the second priority is selected as the target node in the same order, and the existing storage space of the edge node with the second priority is 40TB, and because the existing storage performance of the edge nodes with the first and second priorities still cannot meet the storage performance of the migration requirement, the existing storage performance of the edge node with the third priority is selected in sequence to be 40 TB. The sum of the existing storage resources of the edge nodes of the first, second and third priorities satisfies the performance requirement information.
In conclusion, the collection of the edge nodes selected by each resource parameter is obtained as the target node.
Of course, optionally, the number of fixed target nodes may also be set, for example, the target nodes are to be migrated to 5 edge nodes, and if the target nodes are to be dispersed in different regions, the priority of each edge node based on the target resource parameters under different conditions may be determined based on different region information as the target resource parameters. Based on different regional conditions, the edge node with the highest priority is selected as the target node, 5 target nodes are selected and obtained, and the method is not specifically limited and can be set according to actual migration requirements.
In the embodiment of the application, a node migration process of a service instance of a target application is realized through a control server, at least one target node is selected from edge nodes based on the matching degree of migration requirement information of the service instance and existing resource information of each edge node, and the service instance is migrated to the at least one target node to complete migration of the service instance. And in order to avoid the condition that the user side is out of service due to the influence of the migration of the service end node, the redirection plug-in the migration reception to be controlled executes redirection operation on the service request sent by the client side by sending a redirection instruction to the node to be migrated, so that the management and control and the scheduling of the edge node are realized.
Fig. 6 is a schematic structural diagram of an embodiment of a data processing system according to an embodiment of the present application. The system may include a plurality of edge nodes 601 and a user side 602 connected to the plurality of edge nodes 601 respectively.
The node 6011 to be configured to intercept a service request sent by the user side 602 for a service instance in the node 6011 to be migrated; determining a target node 6013 to which the service instance is migrated, and generating a redirection request based on address information of the target node 6013; sending the redirection request to the user side 602.
The user side 602 is configured to send the service request to a service instance in the node 6011 to be migrated; receiving a redirection request sent by the node 6011 to be migrated; sending a service request for the service instance based on the address information.
The foregoing detailed description has described specific embodiments of the present application in detail, which are not repeated herein.
The data processing system provided by the embodiment of the application avoids the influence of user side service interruption caused by node migration of the service instance. The node to be migrated intercepts the sent service request through the user terminal, and controls the user terminal to redirect the service request to a target node running the service instance by using the redirection request, so that the service instance sent to the node to be migrated by the service request is avoided, the information incapable of responding to the service is generated, and the user of the user terminal cannot perceive the service interruption of the service instance in the node to be migrated caused by the migration of the service instance node.
The technical scheme of the embodiment of the application can not only realize the application scene of the migration of the nodes without service interruption, but also can be applied to the application scene of the service interruption caused when the service instance of any node is down or fully loaded when the same service instance is deployed in a plurality of edge nodes.
Fig. 7 is a schematic structural diagram of an embodiment of a data processing system according to an embodiment of the present application. The system may further include a management and control server 603 connected to the plurality of edge nodes 601, in addition to the plurality of edge nodes 601 and the user side 602 described in the embodiment of fig. 6.
The management and control server 603 is configured to send a redirection instruction for the service instance to the node 6011 to be migrated; and sending the address information of the target node 6012 to the node 6011 to be migrated based on the target node 6012 to which the service instance is migrated.
The node 6011 to be migrated determines the target node 6012 to which the service instance is migrated, and generates a redirection request based on the address information of the target node 6012, specifically, sends a redirection address acquisition request to the management and control server 603; receiving address information of the target node 6012 sent by the management and control server 603 based on the target node 6012 to which the service instance is migrated; generating the redirection request based on the address information.
The management and control server 603 is further configured to determine at least one target node 6012 from the edge nodes 601; migrating the service instance to the at least one target node 6012.
The migration of the service instance to the at least one target node 6012 by the management and control server 603 is, specifically, issuing a target image to the at least one target node 6012.
The target node 6012 is configured to create the service instance based on the target image and start the service instance.
The management and control server 603 is further configured to determine a redirection plug-in corresponding to the service instance and issue the redirection plug-in to the node to be migrated 6011.
The node to be migrated 6011 intercepting a service request sent by a user side for a service instance in the node to be migrated 6011 specifically, activating the redirection plug-in based on the redirection instruction; and intercepting a service request sent by the user side 602 for the service instance in the node to be migrated by using the redirection plug-in.
As shown in fig. 8, a signaling diagram of multi-port interaction among the node to be migrated 6011, the target node 6012, the user side 602, and the management and control server side 603 is shown.
The foregoing detailed description has described specific embodiments of the present application in detail, which are not repeated herein.
The data processing system provided by the embodiment of the application realizes the node migration process of the service instance through the management and control server, selects at least one target node from the edge nodes based on the matching degree of the migration demand information of the service instance and the existing resource information of each edge node, and migrates the service instance to the at least one target node to complete the migration of the service instance. And in order to avoid the condition that the user side is out of service due to the influence of the migration of the service end node, the redirection plug-in the migration reception to be controlled executes redirection operation on the service request sent by the client side by sending a redirection instruction to the node to be migrated, so that the management and control and the scheduling of the edge node are realized.
Fig. 9 is a schematic structural diagram of an embodiment of a data processing apparatus according to an embodiment of the present application. The device can be applied to a client server, and the device can comprise:
the intercepting module 901 is configured to intercept a service request sent by a user side for a service instance in a node to be migrated.
A first determining module 902, configured to determine a target node to which the service instance is migrated, and generate a redirection request based on address information of the target node.
A first sending module 903, configured to send the redirection request to the user side, so that the user side sends a service request for the service instance based on the address information of the target node.
As an implementation manner, the first determining module 902 may specifically be configured to:
sending a redirection address information acquisition request to a management and control server;
receiving address information of any target node sent by a management and control server according to at least one target node to which a service instance is migrated;
any target node is selected and determined from at least one target node for the management and control server based on a preset rule; at least one target node is selected and determined from the edge nodes for the management and control server side;
a redirect request for the service request is generated based on the address information of any one of the target nodes.
As an implementation manner, after the first sending module 903, the method may further include:
and the offline module is used for offline the service instance.
Optionally, the offline module may be specifically configured to:
and if the service request sent by the user side aiming at the service instance in the node to be migrated is not intercepted within the monitoring preset time threshold, the service instance is offline.
Optionally, the offline module may be specifically configured to:
receiving a offline instruction aiming at the service instance sent by a management and control server side;
and offline the service instance based on the offline instruction.
The foregoing detailed description has described specific embodiments of the present application in detail, which are not repeated herein.
In the embodiment of the application, the service request sent to the node to be migrated and stopping running the service instance is intercepted, and the redirection request is used for controlling the user side to redirect the service request to the target node running the service instance, so that the service request is prevented from being sent to the service instance in the node to be migrated, the information incapable of responding to the service is generated, and the user of the user side cannot perceive the service interruption of the service instance in the node to be migrated caused by the migration of the service instance node.
The technical scheme of the embodiment of the application can not only realize the application scene of the migration of the nodes without service interruption, but also can be applied to the application scene of the service interruption caused when the service instance of any node is down or fully loaded when the same service instance is deployed in a plurality of edge nodes.
Fig. 10 is a schematic structural diagram of an embodiment of a data processing apparatus according to an embodiment of the present application. The device can be applied to a client server, and the device can comprise:
the first receiving module 1001 is configured to receive a redirection instruction sent by the management and control server.
The redirection instruction is generated after the management and control server migrates the service instance to the corresponding target node.
The intercepting module 1002 is configured to intercept a service request sent by a user side for a service instance in a node to be migrated.
The interception module 1002 may include:
an activating unit 1011, configured to activate a redirection plug-in corresponding to the service instance based on the redirection instruction.
And the redirection plug-in is issued to the node to be migrated in advance by the control server.
A request intercepting unit 1012, configured to intercept, by using a redirection plug-in, a service request sent by the user side for a service instance in the node to be migrated.
A first determining module 1003, configured to determine a target node to which the service instance is migrated, and generate a redirection request based on address information of the target node.
The first determining module 1003 may include:
an acquisition request generating unit 1013 configured to generate a redirection address information acquisition request by using the redirection plug-in.
An obtaining request sending unit 1014, configured to send a redirection address information obtaining request to the management and control server.
The address information receiving unit 1015 is configured to receive address information of any target node sent by the management and control server according to the at least one target node to which the service instance is migrated.
Any target node is selected and determined from at least one target node for the management and control server based on a preset rule; and at least one target node selects and determines from the edge nodes for the management and control server side.
A redirection request generating unit 1016, configured to generate, by using the redirection plug-in, a redirection request for the service request based on the address information of any one of the target nodes.
A first sending module 1004, configured to send the redirection request to the user side by using a redirection plug-in, so that the user side sends a service request for the service instance based on the address information of the target node.
As an implementation manner, the intercepting module 1002 may specifically be configured to:
intercepting a request data packet sent by the user side aiming at the service instance in the node to be migrated; the request data packet is obtained by packaging the service request by the user side based on a preset transmission protocol;
and analyzing the request data packet based on the preset transmission protocol to obtain the service request.
As an implementation manner, the first sending module 1004 may specifically be configured to:
packaging the redirection request based on the preset transmission protocol to obtain a redirection data packet;
sending the redirection data packet to the user side so that the user side can analyze the redirection data packet based on the preset transmission protocol to obtain the redirection request; sending a service request for the service instance based on the address information of the target node.
The foregoing detailed description has described specific embodiments of the present application in detail, which are not repeated herein.
In the embodiment of the application, the service request is intercepted by utilizing the redirection plug-in, and meanwhile, the redirection plug-in is personalized to create based on the transmission protocols of different user requirements, so that the method can be flexibly suitable for the data transmission requirements of different applications, intercepts the service request transmitted based on the preset transmission protocol, and sends the redirection request to the user side based on the preset transmission protocol, so that the user side resends the service request to the service instance of the target node based on the address information of the target node, the original application program of the user side server does not need to be modified, the operation can be realized only by calling the plug-in, and the method is more flexible, convenient and easy to operate.
Fig. 11 is a schematic structural diagram of an embodiment of a data processing apparatus according to an embodiment of the present application. The device can be applied to the user terminal, and the device can comprise:
a first service request sending module 1101, configured to send a service request to a service instance in a node to be migrated.
A redirection request receiving module 1102, configured to receive a redirection request sent by the node to be migrated; and the redirection request is generated for the node to be migrated based on the address information of the target node to which the service instance is migrated.
A second service request sending module 1103, configured to send the service request for the service instance to a service instance in a corresponding target node based on the address information of the target node, so as to obtain a service response generated by the service instance for the service request.
Optionally, in some embodiments, the first service request sending module 1101 may be specifically configured to:
packaging the service request to obtain a request data packet based on a preset transmission protocol;
and sending the request data packet to the service instance in the node to be migrated.
As an implementation manner, the redirection request receiving module 1102 may specifically be configured to:
receiving a redirection data packet sent by the node to be migrated; the redirection data packet is obtained by packaging the redirection request by the node to be migrated based on the preset transmission protocol;
and analyzing the redirection data packet based on the preset transmission protocol to obtain the redirection request.
The foregoing detailed description has described specific embodiments of the present application in detail, which are not repeated herein.
In the embodiment of the application, after receiving the redirection request, the user side resends the service request to the service instance in the target node capable of responding to the service request based on the redirection request, so that the user side can obtain the service response of the service side in time, the problem of service interruption of the service side caused by node migration of the service instance can not be perceived, and the user experience is greatly improved.
Fig. 12 is a schematic structural diagram of an embodiment of a data processing apparatus according to an embodiment of the present application. The apparatus may be applied to a management and control server, and the apparatus may include:
a redirection instruction sending module 1201, configured to send a redirection instruction for a service instance to a node to be migrated, so that the node to be migrated intercepts a service request sent by a user end for the service instance in the node to be migrated.
An address information sending module 1202, configured to send, based on the target node to which the service instance is migrated, address information of the target node to the node to be migrated, so that the node to be migrated generates a redirection request based on the address information and sends the redirection request to the user side.
Optionally, as an optional implementation manner, the address information sending module 1202 may be specifically configured to:
determining any one of the at least one target node as a redirection node according to a preset rule;
and determining the address information of the redirection node and sending the address information to the node to be migrated.
The foregoing detailed description has described specific embodiments of the present application in detail, which are not repeated herein.
In the embodiment of the application, the edge node is managed and controlled by the management and control server, so that the cooperation between the migration of the service instance node and the redirection of the service request can be better realized. After the service instance completes node migration, the control server triggers the nodes to be migrated to execute the interception operation of the service request in time, and guarantees that the service instance is continuously served.
Fig. 13 is a schematic structural diagram of an embodiment of a data processing apparatus according to an embodiment of the present application. The apparatus may be applied to a management and control server, and the apparatus may include:
a migration information obtaining module 1301, configured to obtain a node migration request generated for a service instance in a node to be migrated.
A redirection instruction generating module 1302, configured to generate a redirection instruction for the service instance based on the node migration request.
And a target node determining module 1303, configured to determine at least one target node from the edge nodes.
A migration module 1304 for migrating the service instance to at least one target node.
A redirection instruction sending module 1305, configured to send a redirection instruction for the service instance to the node to be migrated, so that the node to be migrated intercepts a service request sent by the user end for the service instance in the node to be migrated.
An address information sending module 1306, configured to send, based on the target node to which the service instance is migrated, address information of the target node to the node to be migrated, so that the node to be migrated generates a redirection request based on the address information and sends the redirection request to the user side.
The address information sending module 1306 may include:
a redirection node determining unit 1311, configured to determine, according to a preset rule, any one of the at least one target node as a redirection node.
An address information sending unit 1312, configured to determine address information of the redirection node and send the address information to the node to be migrated, so that the node to be migrated generates a redirection request based on the address information and sends the redirection request to the user side.
In practical applications, the migration module 1304 may include:
and the mirror image issuing unit is used for respectively issuing the target mirror images to the at least one target node so as to enable the at least one target node to respectively create the service instance and start the service instance.
Optionally, as an implementation manner, the mirror image issuing unit may be specifically configured to:
acquiring the mirror image of the target container;
and respectively issuing the target container mirror images to the at least one target node so that the at least one target node respectively creates container service instances of the target container mirror images and starts the container service instances.
Optionally, in some embodiments, before the redirecting instruction sending module 1305, the redirecting instruction sending module may further include:
the redirection plug-in determination module is used for determining the redirection plug-in corresponding to the service instance;
a redirection plug-in issuing module, configured to issue the redirection plug-in to the node to be migrated, so that the node to be migrated activates the redirection plug-in based on the redirection instruction; intercepting the service request by utilizing the redirection plug-in.
Optionally, the redirection plug-in may be created as follows:
determining a preset transmission protocol set by the service instance based on service requirements;
and creating a redirection plug-in supporting the preset transmission protocol so as to enable the redirection plug-in to perform data interaction with the user side based on the preset transmission protocol.
As an implementable embodiment, the target node determining module 1303 may include:
a migration requirement information obtaining unit, configured to obtain migration requirement information for the service instance in the node to be migrated;
an existing resource information obtaining unit, configured to determine respective existing resource information of the edge nodes;
and the target node determining unit is used for determining at least one target node of which the existing resource information meets the migration requirement information in the edge node.
Optionally, the target node determining unit may be specifically configured to:
determining a first matching degree of the migration requirement information and the existing resource information of each edge node respectively;
judging whether the node migration request is of a single-node migration type or a multi-node migration type;
if the single node migration type is the single node migration type, determining a target node meeting a first matching requirement in the edge nodes according to the first matching degree;
and if the type is the multipoint migration type, determining a plurality of target nodes meeting second matching requirements in the edge nodes according to the first matching degree.
As an implementation manner, the migration requirement information may include migration requirement sub-information respectively corresponding to at least one resource parameter.
The existing resource information may include existing resource sub information respectively corresponding to the at least one resource parameter.
The determining of the first matching degree between the migration requirement information and the existing resource information of each edge node may specifically be configured to:
and respectively determining a first matching degree of the migration requirement sub-information corresponding to the same resource parameter and the existing resource sub-information for each edge node.
Optionally, if the single-node migration type is determined, according to the first matching degree, it is determined that one target node that meets a first matching requirement in the edge nodes may be specifically configured to:
for each edge node, determining a first edge node with a first matching degree corresponding to each resource parameter meeting a first matching requirement;
determining a weight value of each resource parameter;
calculating a second matching degree of the migration demand information and each first edge node respectively based on the first matching degree and the weight value corresponding to each resource parameter;
and determining a first edge node with the highest second matching degree as the target node.
In practical application, the determining, for each edge node, that the first matching degree corresponding to each resource parameter satisfies the first matching requirement may specifically be used to:
and aiming at each edge node, determining the first edge nodes of which the first matching degrees corresponding to the resource parameters are not less than the first matching threshold corresponding to the resource parameters respectively.
Optionally, if the type is the multipoint migration type, according to the first matching degree, it is determined that a plurality of target nodes meeting a second matching requirement in the edge nodes may be specifically used for:
determining weight values for one or more target resource parameters of the at least one resource parameter;
determining the priority of each edge node based on the first matching degree and the weight value corresponding to each of the one or more target resource parameters;
and selecting a plurality of second edge nodes meeting second matching requirements from high to low as the plurality of target nodes according to the priority of each edge node.
In practical applications, the selecting, from high to low, a plurality of second edge nodes satisfying a second matching requirement as the plurality of target nodes according to the priority of each edge node may specifically be used to:
selecting a plurality of second edge nodes from high to low as the plurality of target nodes according to the priority of each edge node; and the sum of the existing resource sub-information corresponding to part of the resource parameters of the second edge nodes is not less than the corresponding resource requirement sub-information.
The foregoing detailed description has described specific embodiments of the present application in detail, which are not repeated herein.
In the embodiment of the application, a node migration process of the service instance is realized through a control server, at least one target node is selected from the edge nodes based on the matching degree of migration requirement information of the service instance and the existing resource information of each edge node, and the service instance is migrated to the at least one target node to complete migration of the service instance. And in order to avoid the condition that the user side is out of service due to the influence of the migration of the service end node, the redirection plug-in the migration reception to be controlled executes redirection operation on the service request sent by the client side by sending a redirection instruction to the node to be migrated, so that the management and control and the scheduling of the edge node are realized.
Fig. 14 is a schematic structural diagram of an embodiment of a client server provided in an embodiment of the present application, where the computer device may include a processing component 1401 and a storage component 1402.
The storage component 1402 is for storing one or more computer instructions; the one or more computer instructions are called by the processing component 1401 to execute the data processing method of the embodiments shown in fig. 1 and fig. 2.
The processing component 1401 may be configured to:
intercepting a service request sent by a user side aiming at a service instance in a node to be migrated;
determining a target node to which the service instance is migrated, and generating a redirection request based on address information of the target node;
and sending the redirection request to the user side so that the user side sends a service request aiming at the service instance based on the address information of the target node.
Among other things, the processing component 1401 may include one or more processors to execute computer instructions to perform all or part of the steps of the method described above. Of course, the processing elements may also be implemented as one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components configured to perform the above-described methods.
The storage component 1402 is configured to store various types of data to support operations in the server. The memory components may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Of course, the server may of course also comprise other components, such as input/output interfaces, communication components, etc.
The input/output interface provides an interface between the processing components and peripheral interface modules, which may be output devices, input devices, etc.
The communication component is configured to facilitate wired or wireless communication between the server and other devices, such as with a terminal.
An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the data processing method in the embodiments shown in fig. 1 and fig. 2 can be implemented.
Fig. 15 is a schematic structural diagram of an embodiment of a user end according to an embodiment of the present disclosure, where the computer device may include a processing component 1501 and a storage component 1502.
The storage component 1502 is configured to store one or more computer instructions; the one or more computer instructions are configured to be invoked by the processing component 1501 to perform the data processing method of the embodiment shown in fig. 3 and described above.
The processing component 1501 may be configured to:
sending a service request to a service instance in a node to be migrated;
receiving a redirection request sent by the node to be migrated; the redirection request is generated for the address information of a target node to which the node to be migrated is migrated based on the service instance;
and sending the service request aiming at the service instance to the service instance in the corresponding target node based on the address information of the target node so as to obtain a service response generated by the service instance aiming at the service request.
The processing component 1501 may include one or more processors executing computer instructions to perform all or part of the steps of the above-described method. Of course, the processing elements may also be implemented as one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components configured to perform the above-described methods.
The storage component 1502 is configured to store various types of data to support operations in the server. The memory components may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Of course, the computer device may of course also comprise other components, such as input/output interfaces, communication components, etc.
The input/output interface provides an interface between the processing components and peripheral interface modules, which may be output devices, input devices, etc.
The communication component is configured to facilitate wired or wireless communication between the server and other devices, such as with a terminal.
An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the data processing method of the embodiment shown in fig. 3 may be implemented.
Fig. 16 is a schematic structural diagram of an embodiment of a management server according to an embodiment of the present disclosure, where the computer device may include a processing component 1601 and a storage component 1602.
The storage component 1602 is to store one or more computer instructions; the one or more computer instructions are used to be called by the processing component 1601 to execute the data processing method of the embodiment shown in fig. 4 and 5.
The processing component 1601 may be configured to:
sending a redirection instruction aiming at a service instance to a node to be migrated so as to enable the node to be migrated to intercept a service request sent by a user end aiming at the service instance in the node to be migrated;
and sending the address information of the target node to the node to be migrated based on the target node to which the service instance is migrated, so that the node to be migrated generates a redirection request based on the address information and sends the redirection request to the user side.
Processing component 1601 may include one or more processors executing computer instructions to perform all or some of the steps of the methods described above. Of course, the processing elements may also be implemented as one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components configured to perform the above-described methods.
The storage component 1602 is configured to store various types of data to support operations in the server. The memory components may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Of course, the server may of course also comprise other components, such as input/output interfaces, communication components, etc.
The input/output interface provides an interface between the processing components and peripheral interface modules, which may be output devices, input devices, etc.
The communication component is configured to facilitate wired or wireless communication between the server and other devices, such as with a terminal.
The embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the data processing method of the embodiments shown in fig. 4 and fig. 5 can be implemented.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (39)

1. A data processing method, comprising:
intercepting a service request sent by a user side aiming at a service instance in a node to be migrated;
determining a target node to which the service instance is migrated, and generating a redirection request based on address information of the target node;
and sending the redirection request to the user side so that the user side sends a service request aiming at the service instance based on the address information of the target node.
2. The method according to claim 1, wherein before intercepting the service request sent by the user side for the service instance in the node to be migrated, the method further comprises:
receiving a redirection instruction sent by a management and control server side; the redirection instruction is generated after the management and control server side migrates the service instance to the corresponding target node.
3. The method according to claim 2, wherein the intercepting the service request sent by the user side for the service instance in the node to be migrated comprises:
activating a redirection plug-in corresponding to the service instance based on the redirection instruction; the redirection plug-in is issued to the node to be migrated by the control server side in advance;
and intercepting a service request sent by the user side aiming at the service instance in the node to be migrated by utilizing the redirection plug-in.
4. The method of claim 3, wherein determining a target node to which the service instance migrates and generating a redirection request based on address information of the target node comprises:
generating a redirection address information acquisition request by utilizing the redirection plug-in;
sending the redirection address information acquisition request to the management and control server side;
receiving address information of any target node sent by the management and control server according to at least one target node to which the service instance is migrated; the any target node is selected and determined from at least one target node for the management and control server based on a preset rule; the at least one target node is selected and determined from edge nodes for the management and control server side;
generating, with the redirection plug-in, a redirection request for the service request based on the address information of the any one target node.
5. The method of claim 3, wherein the sending the redirection request to the user side for the user side to send the service request for the service instance based on the address information of the target node comprises:
and sending the redirection request to the user side by utilizing the redirection plug-in so that the user side sends a service request aiming at the service instance based on the address information of the target node.
6. The method according to claim 1, wherein the intercepting the service request sent by the user side for the service instance in the node to be migrated comprises:
intercepting a request data packet sent by the user side aiming at the service instance in the node to be migrated; the request data packet is obtained by packaging the service request by the user side based on a preset transmission protocol;
and analyzing the request data packet based on the preset transmission protocol to obtain the service request.
7. The method of claim 6, wherein the sending the redirection request to the user side for the user side to send the service request for the service instance based on the address information of the target node comprises:
packaging the redirection request based on the preset transmission protocol to obtain a redirection data packet;
sending the redirection data packet to the user side so that the user side can analyze the redirection data packet based on the preset transmission protocol to obtain the redirection request; sending a service request for the service instance based on the address information of the target node.
8. The method according to claim 1, wherein after sending the redirection request to the user side, further comprising: and offline the service instance.
9. The method of claim 8, wherein the downlinking the service instance comprises:
and if the service request sent by the user side aiming at the service instance in the node to be migrated is not intercepted within the monitoring preset time threshold, the service instance is offline.
10. The method of claim 8, wherein the downlinking the service instance comprises:
receiving a offline instruction aiming at the service instance sent by a management and control server side;
and offline the service instance based on the offline instruction.
11. A data processing method, comprising:
sending a service request to a service instance in a node to be migrated;
receiving a redirection request sent by the node to be migrated; the redirection request is generated for the address information of the target node to which the node to be migrated is migrated based on the service instance;
and sending the service request aiming at the service instance to the service instance in the corresponding target node based on the address information of the target node so as to obtain the service response generated by the service instance aiming at the service request.
12. The method of claim 11, wherein sending the service request to the service instance in the node to be migrated comprises:
packaging the service request to obtain a request data packet based on a preset transmission protocol;
and sending the request data packet to the service instance in the node to be migrated.
13. The method according to claim 11, wherein the receiving the redirection request sent by the node to be migrated comprises:
receiving a redirection data packet sent by the node to be migrated; the redirection data packet is obtained by packaging the redirection request by the node to be migrated based on the preset transmission protocol;
and analyzing the redirection data packet based on the preset transmission protocol to obtain the redirection request.
14. A data processing method, comprising:
sending a redirection instruction aiming at a service instance to a node to be migrated so as to enable the node to be migrated to intercept a service request sent by a user end aiming at the service instance in the node to be migrated;
and sending the address information of the target node to the node to be migrated based on the target node to which the service instance is migrated, so that the node to be migrated generates a redirection request based on the address information and sends the redirection request to the user side.
15. The method according to claim 14, wherein before sending the redirection instruction for the service instance to the node to be migrated to enable the node to be migrated to intercept the service request sent by the user side for the service instance in the node to be migrated, the method further comprises:
determining at least one target node from the edge nodes;
migrating the service instance to the at least one target node.
16. The method of claim 15, wherein the migrating the service instance to the at least one target node comprises:
and respectively issuing the target images to the at least one target node so that the at least one target node can respectively create the service instance and start the service instance.
17. The method of claim 13, wherein determining at least one target node from among the edge nodes comprises:
acquiring migration requirement information aiming at the service instance in the node to be migrated;
determining respective existing resource information of the edge nodes;
and determining at least one target node of which the existing resource information meets the migration requirement information in the edge node.
18. The method of claim 17, wherein the determining at least one target node in the edge nodes whose existing resource information satisfies the migration requirement information comprises:
determining a first matching degree of the migration requirement information and the existing resource information of each edge node respectively;
judging whether the node migration request is of a single-node migration type or a multi-node migration type;
if the single node migration type is the single node migration type, determining a target node meeting a first matching requirement in the edge nodes according to the first matching degree;
and if the type is the multipoint migration type, determining a plurality of target nodes meeting second matching requirements in the edge nodes according to the first matching degree.
19. The method according to claim 18, wherein the migration requirement information includes migration requirement sub-information respectively corresponding to at least one resource parameter;
the existing resource information comprises existing resource sub-information respectively corresponding to the at least one resource parameter;
the determining a first matching degree of the migration requirement information and the existing resource information of each edge node respectively includes:
and respectively determining a first matching degree of the migration requirement sub-information corresponding to the same resource parameter and the existing resource sub-information for each edge node.
20. The method of claim 19, wherein determining one of the edge nodes that meets a first matching requirement based on the first degree of matching if the single node migration type is selected comprises:
for each edge node, determining a first edge node with a first matching degree corresponding to each resource parameter meeting a first matching requirement;
determining a weight value of each resource parameter;
calculating a second matching degree of the migration demand information and each first edge node respectively based on the first matching degree and the weight value corresponding to each resource parameter;
and determining a first edge node with the highest second matching degree as the target node.
21. The method of claim 19, wherein determining, if the type of multipoint migration is the multipoint migration type, a plurality of target nodes of the edge nodes that meet a second matching requirement according to the first matching degree comprises:
determining weight values for one or more target resource parameters of the at least one resource parameter;
determining the priority of each edge node based on the first matching degree and the weight value corresponding to each of the one or more target resource parameters;
and selecting a plurality of second edge nodes meeting second matching requirements from high to low as the plurality of target nodes according to the priority of each edge node.
22. The method according to claim 18, wherein for each edge node, determining the first edge node whose first matching degree of each resource parameter respectively meets the first matching requirement comprises:
and aiming at each edge node, determining the first edge nodes of which the first matching degrees corresponding to the resource parameters are not less than the first matching threshold corresponding to the resource parameters respectively.
23. The method of claim 21, wherein selecting a plurality of second edge nodes satisfying a second matching requirement from high to low as the plurality of target nodes according to the priority of each edge node comprises:
selecting a plurality of second edge nodes from high to low as the plurality of target nodes according to the priority of each edge node; and the sum of the existing resource sub-information corresponding to part of the resource parameters of the second edge nodes is not less than the corresponding resource requirement sub-information.
24. The method of claim 16, wherein the sending the target image to the at least one target node for the at least one target node to create the service instance and start the service instance respectively comprises:
acquiring a target container mirror image;
and respectively issuing the target container mirror images to the at least one target node so that the at least one target node respectively creates container service instances of the target container mirror images and starts the container service instances.
25. The method of claim 15, wherein the sending the address information of the target node to the node to be migrated based on the target node to which the service instance is migrated comprises:
determining any one of the at least one target node as a redirection node according to a preset rule;
and determining the address information of the redirection node and sending the address information to the node to be migrated.
26. The method according to claim 14, wherein before sending the redirection instruction for the service instance to the node to be migrated to enable the node to be migrated to intercept the service request sent by the user side for the service instance in the node to be migrated, the method further comprises:
determining a redirection plug-in corresponding to the service instance;
issuing the redirection plug-in to the node to be migrated so that the node to be migrated activates the redirection plug-in based on the redirection instruction; intercepting the service request by utilizing the redirection plug-in.
27. The method of claim 26, wherein the redirection plug-in is created as follows:
determining a preset transmission protocol set by the service instance based on service requirements;
and creating a redirection plug-in supporting the preset transmission protocol so as to enable the redirection plug-in to perform data interaction with the user side based on the preset transmission protocol.
28. The method of claim 15, wherein before determining at least one target node from among the edge nodes, further comprising:
acquiring a node migration instruction generated aiming at the service instance in the node to be migrated;
generating a redirection instruction for the service instance based on the node migration instruction.
29. A data processing system is characterized by comprising a plurality of edge nodes and a user side respectively connected with the edge nodes;
the node to be migrated is used for intercepting a service request sent by the user side aiming at a service instance in the node to be migrated; determining a target node to which the service instance is migrated, and generating a redirection request based on address information of the target node; sending the redirection request to the user side;
the user side is used for sending the service request to the service instance in the node to be migrated; receiving a redirection request sent by the node to be migrated; sending a service request for the service instance based on the address information.
30. The system of claim 29, further comprising a policing service connected to the plurality of edge nodes, respectively;
the management and control server is used for sending a redirection instruction aiming at the service instance to a node to be migrated; sending the address information of the target node to the node to be migrated based on the target node to which the service instance is migrated;
the node to be migrated determines a target node to which the service instance is migrated, and generates a redirection request based on address information of the target node, specifically, sends a redirection address acquisition request to the management and control server; receiving address information of the target node sent by the management and control service end based on the target node to which the service instance is migrated; generating the redirection request based on the address information.
31. The system of claim 30,
the management and control server is further used for determining at least one target node from the edge nodes; migrating the service instance to the at least one target node.
32. The system of claim 31,
the management and control server migrating the service instance to the at least one target node specifically is issuing a target mirror image to the at least one target node;
the target node is used for creating the service instance based on the target image and starting the service instance.
33. The system of claim 30,
the management and control server is further used for determining a redirection plug-in corresponding to the service instance and issuing the redirection plug-in to the node to be migrated;
the node to be migrated intercepting the service request sent by the user side for the service instance in the node to be migrated specifically includes activating the redirection plug-in based on the redirection instruction; and intercepting a service request sent by the user side aiming at the service instance in the node to be migrated by utilizing the redirection plug-in.
34. A data processing apparatus, comprising:
the intercepting module is used for intercepting a service request sent by a user side aiming at a service instance in a node to be migrated;
the first determining module is used for determining a target node to which the service instance is migrated and generating a redirection request based on the address information of the target node;
a first sending module, configured to send the redirection request to the user side, so that the user side sends a service request for the service instance based on the address information of the target node.
35. A data processing apparatus, comprising:
the first service request sending module is used for sending a service request to a service instance in a node to be migrated;
a redirection request receiving module, configured to receive a redirection request sent by the node to be migrated; the redirection request is generated for the address information of the target node to which the node to be migrated is migrated based on the service instance;
and the second service request sending module is used for sending the service request aiming at the service instance to the service instance in the corresponding target node based on the address information of the target node so as to obtain the service response generated by the service instance aiming at the service request.
36. A data processing apparatus, comprising:
the system comprises a redirection instruction sending module, a migration processing module and a migration processing module, wherein the redirection instruction sending module is used for sending a redirection instruction aiming at a service instance to a node to be migrated so as to enable the node to be migrated to intercept a service request sent by a user end aiming at the service instance in the node to be migrated;
and the address information sending module is used for sending the address information of the target node to the node to be migrated based on the target node to which the service instance is migrated, so that the node to be migrated generates a redirection request based on the address information and sends the redirection request to the user side.
37. A client server is characterized by comprising a processing component and a storage component; the storage component is configured to store one or more computer instructions for invocation by the processing component to perform the method of any of claims 1-10.
38. A user side is characterized by comprising a processing component and a storage component; the storage component is configured to store one or more computer instructions for invocation by the processing component to perform the method of any of claims 11-13.
39. The management and control server is characterized by comprising a processing component and a storage component; the storage component is configured to store one or more computer instructions for invocation by the processing component to perform the method of any of claims 14-28.
CN201910277459.9A 2019-04-08 2019-04-08 Data processing method, system, device, user side server, user side and management and control server Active CN111800441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910277459.9A CN111800441B (en) 2019-04-08 2019-04-08 Data processing method, system, device, user side server, user side and management and control server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910277459.9A CN111800441B (en) 2019-04-08 2019-04-08 Data processing method, system, device, user side server, user side and management and control server

Publications (2)

Publication Number Publication Date
CN111800441A true CN111800441A (en) 2020-10-20
CN111800441B CN111800441B (en) 2022-10-11

Family

ID=72805490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910277459.9A Active CN111800441B (en) 2019-04-08 2019-04-08 Data processing method, system, device, user side server, user side and management and control server

Country Status (1)

Country Link
CN (1) CN111800441B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112994996A (en) * 2021-02-25 2021-06-18 中国联合网络通信集团有限公司 Home network sharing method, MEC server, computer device, and medium
CN113778569A (en) * 2021-09-10 2021-12-10 平安普惠企业管理有限公司 System interface migration method and device based on artificial intelligence and related equipment
CN115150475A (en) * 2021-03-31 2022-10-04 贵州白山云科技股份有限公司 Scheduling method, device, medium and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170222950A1 (en) * 2014-04-17 2017-08-03 Go Daddy Operating Company, LLC Allocating and accessing hosting server resources via continuous resource availability updates
CN109388610A (en) * 2018-08-30 2019-02-26 中国科学院计算技术研究所 A kind of distributed meta data services migrating method and system of low latency

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170222950A1 (en) * 2014-04-17 2017-08-03 Go Daddy Operating Company, LLC Allocating and accessing hosting server resources via continuous resource availability updates
CN109388610A (en) * 2018-08-30 2019-02-26 中国科学院计算技术研究所 A kind of distributed meta data services migrating method and system of low latency

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112994996A (en) * 2021-02-25 2021-06-18 中国联合网络通信集团有限公司 Home network sharing method, MEC server, computer device, and medium
CN115150475A (en) * 2021-03-31 2022-10-04 贵州白山云科技股份有限公司 Scheduling method, device, medium and equipment
CN113778569A (en) * 2021-09-10 2021-12-10 平安普惠企业管理有限公司 System interface migration method and device based on artificial intelligence and related equipment

Also Published As

Publication number Publication date
CN111800441B (en) 2022-10-11

Similar Documents

Publication Publication Date Title
EP3648401B1 (en) Method, device, and computer readable storage medium for managing network slice
CN110462589B (en) On-demand code execution in a local device coordinator
US9864727B1 (en) Providing dynamically scaling computing load balancing
EP2880829B1 (en) Adaptive infrastructure for distributed virtual switch
US8234377B2 (en) Dynamically migrating computer networks
JP2021529386A (en) Execution of auxiliary functions on the on-demand network code execution system
US11848981B2 (en) Secure multi-directional data pipeline for data distribution systems
US10771533B2 (en) Adaptive communication control device
CN110352401B (en) Local device coordinator with on-demand code execution capability
CN111800441B (en) Data processing method, system, device, user side server, user side and management and control server
CN112104754B (en) Network proxy method, system, device, equipment and storage medium
US9753786B2 (en) Client server communication system
EP3934206B1 (en) Scalable control plane for telemetry data collection within a distributed computing system
US10785163B2 (en) Maintaining a queuing policy with multipath traffic
US10439901B2 (en) Messaging queue spinning engine
CN111756791A (en) Techniques for accelerated function as service network device load balancer
US20220272041A1 (en) Controlling a destination of network traffic
WO2020114608A1 (en) Method and apparatus for mapping network slices onto network infrastructures with sla guarantee
US20190042294A1 (en) System and method for implementing virtualized network functions with a shared memory pool
US20130007094A1 (en) Client server communication system
US11595471B1 (en) Method and system for electing a master in a cloud based distributed system using a serverless framework
WO2021014418A1 (en) Automatically scaling a number of deployed application delivery controllers (adcs) in a digital network
US11151022B1 (en) Testing of executable code for local device coordinator
US11902826B2 (en) Acknowledgement of data packet transmission using RLC in am mode operating in 5G protocol stack with mitigation of RLC channel congestion
US20240106761A1 (en) Adaptive scaling of buffers for communication sessions

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant