CN115516840A - Information processing method, device, system, medium, chip and program - Google Patents

Information processing method, device, system, medium, chip and program Download PDF

Info

Publication number
CN115516840A
CN115516840A CN202080100504.4A CN202080100504A CN115516840A CN 115516840 A CN115516840 A CN 115516840A CN 202080100504 A CN202080100504 A CN 202080100504A CN 115516840 A CN115516840 A CN 115516840A
Authority
CN
China
Prior art keywords
data request
gray scale
information
list
rule
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202080100504.4A
Other languages
Chinese (zh)
Inventor
毛恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN115516840A publication Critical patent/CN115516840A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications

Abstract

An information processing method, apparatus, system, medium, chip, and program. The information processing method applied to the first equipment comprises the following steps: when the data request is detected, acquiring a first gray rule; the first gray scale rule is used for expressing a rule (201) for executing routing control when the data request is subjected to gray scale distribution; determining a first identifier based on the first gray scale rule and the data request; wherein the first identity represents an identity of a second device handling the data request (202); sending the data request to a second device based on the first identifier; wherein the second device is configured to perform routing control (203) when performing a gray scale issue for the data request.

Description

Information processing method, device, system, medium, chip and program Technical Field
The present application relates to the field of information technologies, and in particular, to an information processing method, device, system, medium, chip, and program.
Background
Dubbo is a high-performance, lightweight, open source Java Remote Procedure Call (RPC) framework. In the gray scale release process of the related art, the Dubbo framework is realized by performing routing control on a data request through a service providing end. However, the simple scheme of performing routing control on the data request at the service provider has a high requirement on the routing control capability of the service provider, and the stability of the routing control is poor.
Disclosure of Invention
Embodiments of the present application are intended to provide an information processing method, device, system, medium, chip, and program.
An information processing method is applied to a first device, and comprises the following steps:
when a data request is detected, acquiring a first gray rule; the first gray rule is used for expressing a rule for executing routing control when gray release is carried out on the data request;
determining a first identifier based on the first gray scale rule and the data request; wherein the first identifier represents an identifier of a second device that processes the data request;
sending the data request to a second device based on the first identifier; and the second equipment is used for executing routing control when the data request is subjected to gray scale distribution.
An information processing method applied to a second device, the method comprising:
receiving the data request sent by the first device based on the first identifier; wherein the first identifier represents an identifier of a second device that processes the data request; the first identification is determined by the first device based on the first gray-scale rule and the data request; the first gray scale rule is used for expressing a rule for executing routing control when the first device performs gray scale distribution on the data request;
and carrying out routing control on the data request when the gray scale is issued.
A second device for processing a data request, the second device comprising a receiving module and a second processing module,
the receiving module is configured to receive the data request sent by the first device based on the first identifier; the first identification comprises: an identification representing a second device that processed the data request; the first identification is determined by the first device based on the first gray-scale rule and the data request; the first gray scale rule is used for representing a rule for executing routing control when the first device issues the gray scale of the data request;
and the second processing module is used for carrying out routing control on the data request when the gray scale is issued.
A first device comprising a first processor and a first memory configured to store a computer program operable on the first processor;
the first processor is configured to execute the information processing method applied to the first device when the computer program is executed.
A second device comprising a second processor and a second memory configured to store a computer program operable on the second processor;
the second processor is configured to execute the information processing method applied to the second device as described above when running the computer program.
An information processing system includes any one of the above first devices, any one of the above second devices, and a communication bus, where the communication bus is used to implement data transmission between the first device and the second device.
A computer storage medium on which a computer program is stored which, when executed by a processor, implements the information processing method as applied to a first device as previously described.
A computer storage medium on which a computer program is stored which, when executed by a processor, implements the information processing method as previously described as applied to a second device.
A chip, comprising: a processor for calling and running a computer program from a memory so that a device on which the chip is mounted executes the steps of the information processing method applied to the first device;
or, the computer program is called from a memory and executed to cause the device on which the chip is mounted to execute the steps of the information processing method applied to the second device.
A computer program product comprising a computer storage medium storing computer program code comprising instructions executable by at least one processor, the instructions when executed by the at least one processor implementing the steps of the information processing method as described above as applied to the first device;
alternatively, the instructions, when executed by the at least one processor, implement the steps of the information processing method applied to the second device described above.
It can be seen that, in the information processing method in the embodiment of the present application, when the gray scale is released, not only the routing control of the data request can be performed at the first device, that is, the data request sending end, but also the routing control of the data request can be performed at the second device, that is, the data request receiving end, on one hand, the high requirement of the routing control generated by the service providing end, but also the routing control performed at both ends of the data request at the same time, that is, the full link gray scale routing control is implemented. And the routing control of the data request at the first device is performed based on the first identifier of the second device, thereby realizing the stability of the routing condition of the data request sending terminal. Therefore, the information processing method according to the embodiment of the present application can promote stable gradation distribution.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the application.
Fig. 1 is a connection relationship diagram of a first device and a second device participating in gray scale publishing provided in an embodiment of the present application;
fig. 2 is a flowchart of an information processing method applied to a first device according to an embodiment of the present application;
FIG. 3 is a diagram illustrating parameter configuration of conditional routing based on application granularity information;
FIG. 4 is a diagram illustrating a parameter configuration of conditional routing based on service granularity information;
fig. 5 is a flowchart of an information processing method applied to a second device according to an embodiment of the present application;
FIG. 6 is a flowchart of an information processing method based on a Dubbo frame according to an embodiment of the present application;
fig. 7 is a full link grayscale routing control structure diagram according to an embodiment of the present application;
FIG. 8 is a flowchart illustrating an information processing method according to an embodiment of the present application;
FIG. 9 is a schematic structural diagram of a first apparatus according to an embodiment of the present application;
FIG. 10 is a schematic structural diagram of a second apparatus according to an embodiment of the present application;
fig. 11 is a hardware configuration diagram of a first device according to an embodiment of the present application;
fig. 12 is a hardware configuration diagram of a second device according to an embodiment of the present application;
FIG. 13 is a block diagram of an information handling system according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of a chip according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present application and are not intended to limit the present application. In addition, the following examples are provided as partial examples for implementing the present application, not all examples for implementing the present application, and the technical solutions described in the examples of the present application may be implemented in any combination without conflict.
It should be noted that, in the embodiments of the present application, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the explicitly recited elements, but also other elements not explicitly listed, or includes inherent elements for implementing the method or apparatus. Without further limitation, the use of the phrase "including a. -. Said." does not exclude the presence of other elements (e.g., steps in a method or elements in a device, such as portions of circuitry, processors, programs, software, etc.) in the method or device in which the element is included.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the term "at least one" herein means any one of a plurality or any combination of at least two of a plurality, for example, including at least one of a, B, and C, and may mean including any one or more elements selected from the group consisting of a, B, and C.
For example, although the information processing method provided in the embodiment of the present application includes a series of steps, the information processing method provided in the embodiment of the present application is not limited to the described steps, and similarly, the apparatus provided in the embodiment of the present application includes a series of modules, but the apparatus provided in the embodiment of the present application is not limited to include the explicitly described modules, and may include modules that are required to obtain relevant information or perform processing based on the information.
The information processing method provided by the embodiment of the application can be applied to the gray scale publishing process. In the gray release, a first part of users is made to use a first version of the software providing services, and a second part of users is made to use a second version of the software providing services, in which partial update is performed. As shown in fig. 1, a user participating in the gray release may communicate data with a second device deployed with a gray version and/or a formal version through a first device. In the gray scale release process, a first part of users and a second part of users can initiate requests to at least one second device with a first version and/or a second version through at least one first device, the at least one second device processes the requests of the users, and processing results are returned to the at least one first device.
In practice, the first device may be a thin client, a thick client, a hand-held or laptop device, a microprocessor-based system, a set-top box, a programmable consumer electronics, a network personal computer, a minicomputer system, etc., the second device may be a computer or server, the server may be a server computer system, a minicomputer system, a mainframe computer, a distributed cloud computing environment including any of the above systems, etc.
The electronic devices of the terminal, server, etc. may be described in the general context of computer system-executable instructions, such as program modules, being executed by a computer system. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or implement particular abstract data types. The computer system/server may be practiced in distributed cloud computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed cloud computing environment, program modules may be located in both local and remote computer system storage media including memory storage devices.
In some embodiments of the present application, an information processing method is provided, which can be applied to a process based on a gray release, and for example, can be applied to a process based on a Dubbo frame. Specifically, the information processing method can be applied to a data request transmission device that performs Dubbo frame-based gradation distribution, and a data request processing device.
Fig. 2 is a flowchart of an information processing method according to an embodiment of the present application, where the information processing method can be applied to a first device.
In one embodiment, the first device may be a computer or other device capable of sending a data request over a communication connection.
In one embodiment, the first device may be configured to indicate a device initiating a data request in the Dubbo framework, and the device may further receive a returned data request processing result.
In one embodiment, the first device may be used to represent a device in a Dubbo framework for analyzing and converting data requests.
In one embodiment, the first device may be used to represent a device in a Dubbo framework for monitoring, distributing, integrating, and controlling flow of data requests.
In one embodiment, the first device may be configured to indicate a device for isolating a sender of the data request from the communication transport link.
As shown in fig. 2, the process may include the following steps:
step 201: when a data request is detected, acquiring a first gray rule; the first gray rule is used for expressing a rule for executing routing control when gray distribution is carried out on the data request.
In one embodiment, the gray release may be used to indicate the gray release performed on the software version providing the service according to an update ratio, for example, the release is performed based on a kth update ratio, where K is an integer greater than or equal to 1, the kth update ratio indicates an update to a capacity ratio of the software version providing the service, and the kth update ratio indicates an update performed on the software version by 10%.
In one embodiment, the grayscale release may be used to indicate that the grayscale release is performed on the software version of the service according to the function in the software version of the service, for example, the mth grayscale, which indicates that the function of the mth part of the software version of the service is updated, where M is an integer greater than or equal to 1.
In one embodiment, the grayscale release may be used to indicate the grayscale release performed on the software version providing the service according to the method call element in the software version providing the service, for example, the nth grayscale, which is used to indicate that the nth method call element of the software version providing the service is updated, where N is an integer greater than or equal to 1.
In one embodiment, the gray release process may include two releases of the service software versions, one of which is the release of the updated service software version, also referred to as the gray version, and the other of which is the release of the service software version, also referred to as the official version, in which the update is not performed.
It should be noted that after the service software of different versions is started, at least one service instance capable of processing the data request may be generated.
In one embodiment, the data request may be used to represent a data request from any account.
In one embodiment, the data request may be used to indicate a request from a particular account.
In one embodiment, the data request may be used to represent a request initiated for a grayscale version of the software providing the service.
In one embodiment, the data request may be used to represent a data request initiated for a particular grayscale version of the software providing the service.
In one embodiment, a data request may be used to represent a request for a formal version to initiate.
In one embodiment, the data request may be used to indicate that the first device received a request from another account or device.
In one embodiment, the first gray scale rule is used for representing a rule for performing routing control when gray scale distribution is performed on any detected data request.
In one embodiment, the first gray-scale rule may be used to indicate a rule for performing routing control when gray-scale distribution is performed for a specific data request.
In one embodiment, the first gray-scale rule may be used to indicate a rule for performing routing control when gray-scale distribution is performed for a data request from a specific source.
In one embodiment, the first gray-scale rule may be used to indicate a rule for performing routing control when performing gray-scale distribution on a data request according to a target device or target data for processing the data request.
In one embodiment, the first gray rule may be used to indicate a rule for performing routing control when gray-scale distributing is performed on the data request according to the type of the data request.
In one embodiment, the first gray scale rule may be stored in the memory space of the first device before the data request is detected.
In one embodiment, the first gray scale rule may be generated after the data request is detected.
Step 202: a first identification is determined based on the first gray scale rule and the data request.
Wherein the first identifier represents an identifier of a second device that processes the data request.
In one embodiment, the second device may be used to represent a device carrying a greyscale version of software providing a service.
In one embodiment, the second device may be used to represent a device carrying a formal version of the software providing the service.
In one embodiment, the second device may be used to represent a device carrying a formal version and a grayscale version of the software providing the service.
In one embodiment, the second device may be used to represent a device carrying a greyscale version of different greyscales of software providing a service. For example, in the second device, a software version of a first gray scale and a software version of a K1 th gray scale are loaded, where K1 is an integer greater than 1, and the first gray scale is different from the K1 th gray scale.
In one embodiment, the first identifier is used to indicate a unique, non-modifiable identifier of the second device, such as a product identifier set at the time of manufacture of the second device.
In one embodiment, the first identifier is a hardware device number used for identifying the second device, such as an International Mobile Equipment Identity (IMEI) of the Mobile device.
In one embodiment, the first identifier may be determined by: and analyzing the data request to obtain a first analysis result, and processing the first analysis result based on a first gray rule to determine a first identifier.
In one embodiment, the first identifier may be determined by: and analyzing the source of the data request to obtain a second analysis result, and processing the second analysis result based on the first gray rule to determine the first identifier.
In one embodiment, the first identifier may be determined by: and analyzing the type of the data request to obtain a third analysis result, and processing the third analysis result based on the first gray rule to further determine the first identifier.
Step 203, sending the data request to the second device based on the first identifier.
And the second equipment is used for executing routing control when the data request is subjected to gray scale distribution.
In one embodiment, the second device is further configured to perform a second routing control on the data request during the grayscale release of the software version providing the service after receiving the data request.
In one embodiment, the second device carries a grayscale version and/or a formal version of the software, and accordingly, after receiving the data request, the second device may route the data request to a node carrying a corresponding grayscale version and/or a formal version, so that the service instance in the grayscale version and/or the formal version can process the data request.
In one embodiment, the second device is further capable of returning a processing result of the service instance in the grayscale version and/or the formal version to the first device.
In the related art, taking a Dubbo framework as an example, during the grayscale release process, the Dubbo routing implementation is usually implemented by conditional routing (Condition Router) and Tag routing (Tag Router), where the Router is a Router defined in the Dubbo framework and is used for performing flow control, that is, performing routing control.
Where conditional routing may be controlled by slave application granularity or service granularity. As shown in fig. 3 and fig. 4, wherein fig. 3 is a schematic diagram of parameter configuration of conditional routing based on application granularity; fig. 4 is a schematic diagram illustrating conditional routing configuration based on service granularity parameters. The relevant parameters and their configuration method in fig. 3 and 4 will be explained below.
In fig. 3 and 4, scope represents the action granularity of the routing rule, and the value of scope determines the value of key; key, used to specify which service or application the routing rule acts on; enabled, which indicates whether the current route is effective; force, which indicates whether to enforce when the routing result is empty, if not, the routing rule with the empty routing result will automatically fail; runtime, which indicates whether to execute the routing rule when calling each time, otherwise, the routing rule is executed and cached in advance only when the provider address list is changed, and the routing result is directly obtained from the cache when calling; conditions: for defining specific routing rules.
In addition to the above parameters, in the definition of the routing rule, priority may also be used to set the priority of the routing rule, which is specifically used for sorting, and the higher the priority is, the earlier the priority is performed.
In fig. 3, scope is taken as application, and is used to indicate that the current routing rule acts on the application granularity; force is true, and is used for indicating that the routing result is empty and needs to be enforced; runtime is true and is used for expressing that the routing rule is executed at each calling; the enabled is true and is used for indicating that the current route is effective; the key is a grace-conditionrouter-conditioner and is used for indicating that the current routing information acts on the grace-conditionrouter-conditioner; the system comprises two conditions, wherein application = > app1= > address ·.20880, and is used for indicating that a request sent by a first application app1 can only be routed to all service instances with ports of 20880; application = > app1= > address.20881, which is used for indicating that the request sent by the second application app2 can only be routed to all service instances with ports 20881.
In fig. 4, scope is taken as service, and is used to indicate that the current routing rule acts on the service granularity; force is true, and is used for indicating that the routing result is empty and needs to be enforced; runtime is true and is used for expressing that the routing rule is executed at each calling; the valued is true and is used for indicating that the current route is effective; key is org.apache.dubbo.samples.golvnanceon.api.demoservice, used for indicating that the current routing information acts on org.apache.dubbo.samples.golvnanceon.api.demoservice; 20880, which is used to indicate that if the method for initiating the data request is the sayHello method, the data request can only be routed to the service instance with port 20880; 20881, which is used to indicate that if the method for initiating the data request is the sayHi method, the data request can only be routed to the service instance with 20881 ports.
As can be seen from the parameter definitions of the conditional routes shown in fig. 3 and 4, the parameters for configuring the routing conditions in the conditional routes are rich, but the conditional routes depend on Internet Protocol (IP) addresses of containers carrying service instances, so the conditional routes are suitable for scenarios where the IP addresses of containers carrying service instances can be clearly determined. However, in practical applications, with the long-term operation of the device or container where the service instance is located, the container is prone to be restarted, and once the container is restarted, the IP address of the container may be reallocated, thereby causing the set routing condition to fail.
In the information processing method provided by the application, the data request is sent to the second device based on the identifier of the second device, namely the first identifier, and the identifier of the second device does not change in the restarting process of the second device or the container carried by the second device, so that the data request is sent to the second device based on the identifier of the second device, namely the first identifier, and the risk of failure of the routing condition caused by dependence on the IP address of the container in the related technology can be reduced, thereby realizing the stability and robustness of the routing control condition of the data request by the first device, and laying a foundation for efficiently and quickly executing gray scale publication.
In practical applications, the steps 201 to 203 may be implemented by a Processor in the first Device, where the Processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor.
As can be seen from the above, since the data request sent by the information processing method of the present application is based on the identifier of the second device, instability caused by conditional routing depending on the container IP address in the related art can be reduced, thereby achieving effectiveness and stability of routing control on the first device side in the process of issuing grayscale, and further achieving stable performance of grayscale issuance at the data requesting end, i.e., the first device.
In an implementation manner, an information processing method provided in an embodiment of the present application further includes:
determining additional information based on the data request and the first gray scale rule; the additional information represents identification information of the target service node; the target service node represents a target node which provides service for the data request in the second equipment;
based on the first identity, additional information is sent to the second device.
In one embodiment, the target service node may be configured to represent a target node in the second device that carries a service instance that services the data request.
In one embodiment, the target service node may be configured to represent a node in the second device that carries a container of service instances that service the data request.
In one embodiment, the target service node may be a node representing a container in the second device that carries a grayscale version of the service instance that services the data request, and/or a formal version of the service instance.
In one embodiment, the target service node may be configured to represent a service instance for servicing a data request in a second device that is incorporated into management of the Dubbo framework.
In one embodiment, the target service node may be configured to indicate a node carrying a label in the label routing definition.
The label routing is to divide one or more service instances into the same group and configure the same label for the one or more service instances, so that routing control of data requests carrying different labels can be realized through matching operation of the label, for example, the data requests can only flow in the service instance group of a specified label, and therefore, the purpose of flow isolation can be realized by adopting label routing. In practical application, label routing can be used as a routing basis for scenes such as blue-green distribution, gray-scale distribution and the like.
In the Dubbo framework, a label mainly labels service instances at one end of a service provider through two modes of dynamic rule marking and static rule marking, so that the service instances are grouped according to the label. The dynamic rule marking has a higher priority than the static rule marking, and the dynamic rule marking is usually used mainly when two rules exist simultaneously and conflict.
In practical application, the label routing is suitable for a service scenario in which a data request directly carries a service instance label or a routing rule is not very complex.
Accordingly, the additional information may be used to indicate the label information defined in the label routing described in the foregoing embodiment.
In one embodiment, the additional information is determined by parsing the source of the data request based on the first gray scale rule.
In one embodiment, the additional information is determined by analyzing the type of the data request based on the first gray scale rule.
In one embodiment, the additional information is determined by analyzing target data of the data request based on the first gray scale rule.
In one embodiment, the sending of the additional information to the second device may be adding the additional information to the data request, and sending the data request carrying the additional information to the second device.
In one embodiment, the additional information is transmitted to the second device, and after the data request transmission is finished, the additional information may be transmitted to the second device based on the first identifier after being encoded, encrypted, and the like according to a preset time sequence relation.
As can be seen from the above, in the information processing method provided in the embodiment of the present application, when the first device sends the data request to the second device, the additional information indicating the identification information of the target service node may also be sent to the second device based on the first identifier. Thereby, on the one hand, the transmission operation of the additional information performed based on the first identifier enables stable transmission of the additional information; on the other hand, the second device may also perform a second time grayscale routing control of the data request receiving end based on the additional information, since a conditional basis is provided for the full-link grayscale routing control.
In one embodiment, obtaining the first gray scale rule may include:
acquiring a first information list; the first information list comprises a first list and a second list, wherein the first list represents an identification list of at least one second device for processing any data request when the gray scale is issued; a second list representing an identification list of at least one service node in the second device when the gray scale is released; at least one service node, configured to provide a service for a data request sent by any first device;
based on the first information list, a first gray scale rule is obtained.
In one embodiment, the first list represents a list of identifications of the at least one second device.
In one embodiment, at least one second device is configured to process any data request from any first device at the time of gray scale release.
In one embodiment, at least one second device is configured to process any data request from a designated first device at the time of gray scale publication.
In one embodiment, the at least one second device is configured to process any data request that specifies the first device to transmit within a set time period at the time of the release of the grayscale.
In one embodiment, the at least one second device is used for processing any data request sent by the designated first device in a certain account during gray scale release.
In one embodiment, the second list may be used to represent an identification list of all service nodes in at least one second device at the time of the grey scale distribution.
In one embodiment, the second list may be used to indicate a list of identifications of specific service nodes in the at least one second device at the time of the grey scale distribution.
In one embodiment, the second list may be used to represent an identification list of service nodes of a specified type in the at least one second device at the time of the grey scale distribution.
In an embodiment, the second list may be used to indicate that, when the grey scale release is performed, at least one second device bears an identification list of a service instance of a grey scale version and/or a formal version, for example, the identification list may be a tag list of the service instance.
In one embodiment, the first information list comprises a first list and a second list, wherein each second device identifier in the first list and an identifier of at least one service node in the second list may be associated with each other. For example, the kth 2 second device carries the pth-lth service instance, and then the identifier of the kth 2 second device and the identifier of the pth-lth service instance are associated with each other.
In one embodiment, the first list of information may be obtained by the first device from a registry of the Dubbo framework. In the Dubbo framework, any change of the service instance, including changes of the version and the configuration information, can be timely notified to the registration center, and the registration center can obtain the latest first information list; and, the registry may also publish the latest first information list to all first devices in the Dubbo framework.
In one embodiment, the first gray scale rule may be obtained by filtering the first list and the second list in the first information list.
In the information processing method provided by the embodiment of the application, the first gray scale rule is acquired based on the first information list, so that the acquired first gray scale rule corresponds to the first information list, and a basis is provided for stable data communication between the data sending end and the data receiving end.
In an implementation manner, an information processing method provided by an embodiment of the present application, where acquiring a first gray scale rule based on a first information list includes:
determining gray release configuration information;
determining first gray scale control information and second gray scale control information based on the gray scale release configuration information; the first gray control information is used for determining whether a second list in the first information list needs to be analyzed or not; the second gray control information is used for establishing the incidence relation between the type of any data request and the second equipment identifier in the first list when gray is issued;
and acquiring a first gray rule based on the first information list, the first gray control information and the second gray control information.
In one embodiment, the grayscale publishing configuration information is used to perform routing control on data requests during the grayscale publishing process, and further determine corresponding target nodes for different data requests.
In one embodiment, the grayscale release configuration information is used to perform routing control on the data request according to the type of the data request during the grayscale release process, so that the data request can be routed to the service instance of the specified grayscale version or the service instance of the formal version.
In one embodiment, the grayscale release configuration information is used to perform routing control on the data request according to the source of the data request during the grayscale release process, so that the data request can be routed to the service instance of the specified grayscale version or the service instance of the formal version.
In one embodiment, the grayscale release configuration information is used to perform routing control on the data request according to target data requested by the data request during grayscale release, so that the data request can be routed to a service instance of a specified grayscale version or a service instance of a formal version.
In one embodiment, the gray scale distribution configuration information is a list of a series of configuration information, and in the list, control information in the gray scale distribution process is included, for example, a request initiated by a user in a first category is routed to a corresponding second device in the first category, and a data request initiated by a user in a U-th category is routed to a corresponding second device in the U-th category. Wherein U is an integer greater than 2.
In one embodiment, the first grayscale control information includes a condition for resolving an identifier of at least one service node in the second list.
In one embodiment, the first grayscale control information includes a condition that the identifier of at least one service node in the second list is not to be analyzed.
In one embodiment, the first grayscale control information includes a manner of how to resolve an identity of at least one service node in the second list.
In an embodiment, the first gray-scale control information includes a condition for resolving a depth when the identifier of the at least one service node in the second list is resolved, where the resolving depth includes whether encoding, encryption, and the like need to be performed on the identifier of the at least one service node.
In one embodiment, the second gray-scale control information includes a condition for establishing an association relationship between the type of any data request and at least one second device identifier.
In one embodiment, the second gray-scale control information includes a condition that does not associate any data request type with at least one second device identifier.
In one embodiment, the second gray-scale control information includes a manner how to associate the type of any data request with at least one second device identifier.
For example, the first gray scale rule is obtained based on the first information list, the first gray scale control information, and the second gray scale control information, and may be obtained by determining whether to parse the second list in the first information list based on the first gray scale control information to obtain a fourth parsing result, and then establishing an association relationship between a type of any data request and the second device identifier for the fourth parsing result based on the second gray scale control information.
In the information processing method provided by the embodiment of the application, the first gray scale rule is obtained based on the first gray scale control information, the second gray scale control information and the first information list in the gray scale release configuration information, so that the obtained first gray scale rule can comprehensively and fully reflect the requirements of gray scale release contained in the first information list and the gray scale release configuration information, thereby laying a foundation for the stable performance of subsequent gray scale release at the first device.
In one embodiment, acquiring the first gray scale rule based on the first information list, the first gray scale control information, and the second gray scale control information may include:
analyzing the first information list based on the first gray control information to obtain a second information list; the second information list is a first list, or comprises a first list and a second list;
and acquiring a first gray scale rule based on the second information list and the second gray scale control information.
In one embodiment, the parsing of the first information list may be based on first gray control information, and whether or not to parse a second list in the first information list may be determined based on the first gray control information.
In one embodiment, the first information list is analyzed based on the first gradation control information, and a condition for analyzing a second list in the first information list may be determined based on the first gradation control information, and the second list may be analyzed based on the condition.
In one embodiment, the first information list is analyzed based on the first gray scale control information, and how to analyze the second list in the first information list may be determined based on the first gray scale control information, and the second list is analyzed based on the method.
Accordingly, if the first gray-scale control information defines that the second list is not required to be analyzed, the obtained second information list only includes the first list.
If it is determined that the second list needs to be analyzed in the first gray-scale control information, the obtained second information list may include the first list and the second list.
In one embodiment, the determination of whether the second list needs to be analyzed in the first gray-scale control information is based on the following cases:
when only one gray-scale version is released and the formal version is released, and the service instances corresponding to the gray-scale version and the formal version are respectively deployed on different second devices, the second list may not be analyzed.
When at least two versions of gray scales, such as a first gray scale version and a second gray scale version, and a formal version are released, the first gray scale version is deployed on a first second device, the second gray scale version is deployed on a second device, and the formal version is deployed on a third second device, that is, different versions are deployed on different second devices, at this time, the second list may not be analyzed.
When at least two gray scale versions are released, such as a first gray scale version and a second gray scale version, and a formal version is released, and the first gray scale version and the second gray scale version may be deployed on the same second device, the second list needs to be parsed, so that when the second device receives a data request, a service instance finally used for providing a service for the data request may be determined according to the additional information.
When at least two gray scale versions, such as a first gray scale version and a second gray scale version, and a formal version, are released, and at least two of the first gray scale version, the second gray scale version, and the formal version may be deployed on the same second device, the second list needs to be parsed, so that when any second device receives a data request, a service instance finally used for providing a service for the data request may be determined according to the additional information.
It should be noted that, when the second list does not need to be parsed, in order to facilitate processing by the second device that receives the data request, a specific identifier may be added to the data request when the data request is sent, and the data request to which the specific identifier is added may be sent to the second device; or after the data request is sent, sending a specific identifier to the second device according to a preset time sequence relation. The specific identifier may be used to represent an identifier customized for gray release, or may be a certain identifier existing in the Dubbo framework.
In addition, the first identifier may be stored in a first list of the first information list, or may be acquired by the grayscale distribution configuration information. When determining to perform gray-scale distribution on the software version providing the service, the identifier of the at least one second device bearing the software version may be determined before gray-scale distribution, and the identifier of the at least one second device is added to the gray-scale distribution configuration information. When the first gray scale rule needs to be acquired, the identifier of at least one second device can be directly obtained from the gray scale distribution configuration information, and the identifier is added to the first gray scale rule according to the gray scale routing requirement.
In the information processing method provided by the embodiment of the application, whether a second list in a first information list is analyzed is determined through first gray scale control information to obtain a second information list, and the second information list is analyzed based on second gray scale control information to obtain a first gray scale rule. Therefore, the acquired first gray scale rule can fully reflect the specific requirements of gray scale distribution in the gray scale distribution configuration information, and flexible analysis with stronger pertinence to the first information list is realized.
Fig. 5 is an information processing method applied to a second device according to an embodiment of the present application.
In one embodiment, the second device may be used to represent a device that participates in the release of grayscale and is deployed with a grayscale version and/or a formal version.
In one embodiment, the second device may be used to represent a device deployed with a greyscale version and/or a formal version that participates in greyscale distribution in the Dubbo framework.
As shown in fig. 5, the information processing method may include the steps of:
step 501, receiving a data request sent by the first device based on the first identifier.
The first identification represents an identification of a second device for processing the data request; a first identification determined based on a first gray level rule and a data request; and the first gray rule is used for expressing a rule for executing routing control when the first equipment performs gray distribution on the data request.
Step 502, routing control is performed on the data request during gray scale distribution.
As can be seen from the above, in the gray scale issue, after the first device performs the routing control in the gray scale issue of the data request, the second device performs the routing control again on the received data request from the first device, so as to implement the function of performing the gray scale routing control on the first device side and the second device side simultaneously for one data request, that is, both the sending end of the data request and the receiving end of the data request can perform the routing control on the data request, thereby implementing the full link gray scale routing control on the data request; and, because the routing control operation performed by the first device based on the first gray scale rule is performed through the first identifier of the second device, the stability and robustness of gray scale distribution are improved.
In an embodiment, an information processing method provided in an embodiment of the present application, where routing control is performed on a data request when a gray scale is issued, includes:
receiving additional information sent by the first device based on the first identifier; the additional information represents identification information of the target service node; a target service node representing a target node serving the data request;
based on the additional information, the data request is subjected to routing control at the time of gray scale distribution.
In one embodiment, the target service node may be configured to indicate a target node carrying a service instance capable of serving the data request in the second device.
In one embodiment, the target service node may be used to represent a node in the second device that carries a container of service instances that are capable of servicing data requests.
In one embodiment, the target service node may be used to represent a node in the second device that carries a container of a grayscale version of the service instance, and/or a formal version of the service instance, that is capable of servicing the data request.
In one embodiment, the target service node may be used to represent a node of a service instance that serves a data request in the second device of the Dubbo framework.
In an embodiment, the target service node may be configured to represent a service instance carrying a label in the label routing definition described above.
Accordingly, the additional information may be used to indicate the label information defined in the label routing described above.
In an embodiment, the additional information obtained by the second device may be obtained by the second device parsing the data request.
In one embodiment, the additional information obtained by the second device may be obtained by the second device by receiving the encoded and encrypted additional information, decrypting and decoding the encoded and encrypted additional information after receiving the data request, according to a preset time sequence relationship.
It should be noted that, when the first device does not need to parse the second list in the first information list, in order to facilitate processing by the second device that receives the data request, a specific identifier may be added to the data request when the data request is sent, and the data request to which the specific identifier is added may be sent to the second device; or after the data request is sent, sending a specific identifier to the second device according to a preset time sequence relation. The specific identifier may be used to represent an identifier customized for gray release, or may use a certain identifier existing in the Dubbo framework.
In one embodiment, an information processing method provided in an embodiment of the present application, where routing control is performed on a data request at a time of issuing a grayscale, based on additional information, includes:
determining a second gray scale rule; wherein the second gray scale rule represents a rule for determining the second identifier; a second identity representing at least one serving node identity; at least one service node, which represents a target node for providing service for any data request in the second device when the gray scale is issued;
and analyzing the additional information based on the second gray scale rule to obtain an additional information analysis result, and performing routing control on the data request during gray scale release based on the additional information analysis result.
In one embodiment, at least one service node may be configured to indicate a node carrying a service instance in the second device for servicing any data request during the grey scale publishing.
In one embodiment, at least one service node may be used to represent a service instance in the second device that serves any data request at the time of grey scale publication.
In one embodiment, at least one service node may be used to represent a node carrying a service instance in the second device for providing a service for any data request in the grayscale publishing process based on the Dubbo framework.
In one embodiment, the second gray scale rule may be used to represent a rule for determining the corresponding second identifier for any data request in the gray scale distribution process.
In one embodiment, the second gray scale rule may be obtained after the second device receives a data request sent by the first device based on the first identifier.
In one embodiment, the second gray scale rule may be stored in the second device before the second device receives the data request sent by the first device based on the first identifier.
In one embodiment, the second gray scale rule includes a condition for performing a matching analysis on the additional information.
In one embodiment, the second gray scale rule includes a method of performing matching analysis on the additional information.
In one embodiment, the second gray scale rule includes a depth of matching analysis for the additional information, such as whether the additional information needs to be matched and analyzed when the data request processing involves multiple service instances and the service instances are switched.
In one embodiment, the additional information is analyzed based on the second gray scale rule to obtain an additional information matching result, and the data request is routed at the time of gray scale distribution based on the additional information analysis result. For example, when the data amount of the additional information is larger than a preset threshold, the additional information is analyzed. .
In one embodiment, the additional information is analyzed based on the second gray scale rule to obtain an additional information analysis result, and the data request is routed at the time of gray scale distribution based on the additional information analysis result, which may be a method of performing matching analysis on the additional information included in the second gray scale rule, analyzing the additional information to obtain an additional information analysis result, and routing control on the data request at the time of gray scale distribution based on the additional information analysis result. For example, parsing is performed on data of a field specified by the additional information, or parsing is performed on several fields specified.
In one embodiment, the additional information is analyzed based on the second gray scale rule to obtain an additional information analysis result, and the data request is routed at the time of gray scale distribution based on the additional information analysis result. Such as: whether additional information is parsed at each service instance or each system when switching between multiple service instances or multiple systems resulting from a long data request processing chain.
In the information processing method provided in the embodiment of the present application, the routing control of the data request is an operation that is executed after the additional information is analyzed based on the second gray scale rule. That is, the second device does not perform a unified operation of parsing the additional information in the routing control process of the data request according to the second gray scale rule. Thereby, the routing control performed at the second device is improved in both pertinence and flexibility.
In an implementation manner, in an information processing method provided in an embodiment of the present application, determining a second gray scale rule includes:
acquiring a first information list; the first information list comprises a first list and a second list, wherein the first list is an identification list of at least one second device for processing any data request when the gray scale is issued; a first list comprising a first identification; a second list representing at least one service node identification list when the gray scale is released;
based on the first list of information, a second gray scale rule is determined.
In one embodiment, the determining the second gray scale rule based on the first information list may be by determining the second gray scale rule for a second list included in the first information list.
In the information processing method provided by the embodiment of the application, the second gray scale rule is determined based on the first information list, so that the second gray scale rule can reflect objective information of data request receiving end equipment and nodes in a gray scale publishing process, and the stability and reliability of subsequent routing control are improved.
For example, the information processing method provided in the embodiment of the present application, which determines the second gray scale rule based on the first information list, includes:
acquiring gray release configuration information;
determining third gray-scale control information based on the gray-scale distribution configuration information; the third gray control information is used for establishing an association relationship between a service node identifier corresponding to any data request and at least one service node identifier in the second list when gray is issued;
the second gray scale rule is determined based on the first information list and the third gray scale control information.
In one embodiment, the third grayscale control information includes a condition for resolving an identifier of at least one service node in the second list.
In one embodiment, the third gray-scale control information includes a condition that the identifier of at least one service node in the second list is not to be analyzed.
In one embodiment, the third grayscale control information includes a manner of how to resolve an identity of at least one service node in the second list.
In an embodiment, the third grayscale control information includes a condition of a resolution depth when the identifier of the at least one service node in the second list is resolved, where the resolution depth includes whether operations such as encoding and encrypting the identifier of the at least one service node are required.
For example, the second gray scale rule is obtained based on the first information list and the third gray scale control information, and may be determined based on the third gray scale control information, whether to analyze the second list in the first information list is determined, so as to obtain a fifth analysis result, and then based on the second gray scale control information, for the fifth analysis result, an association relationship between the type of any data request and the second device identifier is established, so as to determine the second gray scale rule.
For example, the second gray scale rule is obtained based on the first information list and the third gray scale control information, and may be that how to analyze the second list in the first information list is determined based on the third gray scale control information to obtain a sixth analysis result, and then, based on the second gray scale control information, for the sixth analysis result, an association relationship between the type of any data request and the second device identifier is established, so as to determine the second gray scale rule.
For example, the second gray scale rule is obtained based on the first information list and the third gray scale control information, and the second gray scale rule may be determined by determining a resolution depth of a second list in the first information list based on the third gray scale control information to obtain a seventh resolution result, and then establishing an association relationship between a type of any data request and the second device identifier for the seventh resolution result based on the second gray scale control information.
For example, taking a gray scale issuing process based on a Dubbo frame as an example, when the method for implementing information processing provided in the embodiment of the present application is applied to a first device and a second device, a flow of the first device and the second device being implemented in cooperation is shown in fig. 5:
in fig. 6, the process of issuing a gray scale based on a Dubbo frame needs to be completed by the first device, the second device, the registration center of the Dubbo frame and the portion of the configuration information of the gray scale issuing in cooperation under the management of the Dubbo frame.
In fig. 6, when the first device detects a data request, a first identifier is determined based on the first gray scale rule and the data request, and the data request is transmitted to the second device based on the first identifier, and at the same time, additional information of the data request, i.e., a tag of the target service instance, may be transmitted to the second device based on the first identifier.
When the second device receives the data request sent by the first device based on the first identifier, the second device performs routing control on the data request at the time of gray scale release, specifically, the second device may receive additional information sent by the first device based on the first identifier and then performs routing control on the data request at the time of gray scale release based on the additional information.
Illustratively, the first device is capable of obtaining a first list of information from a registry; and acquiring a first gray rule based on the first information list.
Illustratively, the first device acquires a first gray scale rule based on the first information list, including: the first device determines gray scale release configuration information, and determines first gray scale control information and second gray scale control information based on the gray scale release configuration information; and acquiring a first gray rule based on the first information list, the first gray control information and the second gray control information.
Illustratively, the first device acquires the first gray scale rule based on the first information list, the first gray scale control information, and the second gray scale control information, including: analyzing the first information list based on the first gray control information to obtain a second information list; and acquiring a first gray scale rule based on the second information list and the second gray scale control information.
Illustratively, the second device, based on the additional information, performs routing control of the data request at the time of the gradation issuance, including: determining a second gray scale rule; and analyzing the additional information based on the second gray scale rule to obtain an additional information analysis result, and performing routing control on the data request during gray scale release based on the additional information analysis result.
Illustratively, the second device determines a second gray scale rule comprising: acquiring a first information list; and determining the second gray scale rule based on the first information list.
Illustratively, the second device determines the second gray scale rule based on the first information list, including: acquiring gray release configuration information; determining third gray-scale control information based on the gray-scale distribution configuration information; the second gray scale rule is determined based on the first information list and the third gray scale control information.
Illustratively, the first device and the second device may respectively acquire the same gradation issuance configuration information.
After the service instance in the second device is developed, the instance is registered with the registry.
The development of the Service instance may be performed based on Platform-as-a-Service (PAAS), before the Service instance is started, the Service instance may be classified by the PAAS, and a tag may be set for the Service instance, where the tag may inject an environment variable when the Service instance is started, the Dubbo frame may acquire the tag injected in the environment variable and register the tag to a registry, and the registry generates a first information list according to the acquired environment variable and an identifier of each second device.
After receiving the registration of the new service instance, the registry issues the latest first information list to each first device managed by the Dubbo framework, so that the first device can acquire the latest first information list.
Accordingly, the second device may also obtain the first information list from the registry according to a need for generating the second gray scale rule, and process the first information list based on the gray scale publishing configuration information, thereby determining the second gray scale rule.
Accordingly, the analysis of the additional information in the above description can be realized by a method of the Dubbo additional parameter. In order to use the parsing mechanism of the Dubbo framework, the Dubbo accessory parameter may be carried in the additional information. Thus, the label of the target service instance in the Dubbo accessory parameter can be matched through the operation function.
The matching operation functions supported at present are the following: matching the regular expressions: judging whether the specified parameters in the Dubbo accessory are matched with the regular expression or not; matching mathematical operation: judging that the designated parameters in the Dubbo accessory are matched according to the corresponding data operation; IP address province matching: IP address province taking is carried out on the designated parameters in the Dubbo accessory, and whether matching is carried out is judged; and (4) matching the IP with the city, namely performing IP address city acquisition on the specified parameters in the Dubbo accessory and judging whether the parameters are matched.
If the analysis result of the additional information indicates that the label of the target service instance is not found in the second device, an error message may be returned to the first device, or the service instance with the public label is redirected to the current data request for processing.
And if the analysis result of the additional information shows that the target service instance is found in the second equipment, routing the data request to the target service instance to provide service for the data request.
That is to say, the information processing method provided in the embodiment of the present application can perform gray scale routing control on the data request sending end, that is, the first device end, and the data request receiving end, that is, the second device end, respectively, when detecting a data request, thereby implementing gray scale routing control of a full link. Specifically, as shown in fig. 7: the full link gray scale routing control comprises three parts of routing control of a data request sending end, calling and continuously transmitting a data request and routing control of a data request receiving end.
The routing control of the data request sending end may be used to represent gray level routing control at the data request sending end, and generally, the gray level at the data sending end is mainly implemented by a gateway device at the data sending end, that is, the first device in the information processing method provided in this embodiment of the present application may be a gateway device.
The call chain may transmit the data request through a communication bus connecting the data request transmitting end and the data request receiving end device.
Routing control of the data request receiving end can be gray-scale routing control at a second device which is managed by the Dubbo framework and is provided with a plurality of service instances, and the judgment of the label in the second device can be carried out based on a relevant mechanism in the Dubbo framework.
In the process of controlling full-link grayscale routing shown in fig. 7, for a routing rule of any data request, routing control may be performed at a data request sending end, where the data request sending end may be a first device, and the first device may be a gateway device, and when the data request is sent, the data request is analyzed at the data request sending end, and according to a first identifier of a data request receiving end device, such as a second device, obtained through the analysis, routing control of the data request is determined according to the first identifier, and then the data request is transmitted by invoking a link, and after the data request receiving end, such as the second device, obtains the data request, the data request may be routed to a target service instance by directly performing tag matching.
Exemplarily, a specific flow of the information processing method provided by the embodiment of the present application is shown in fig. 8. In fig. 8, the PAAS platform may set a label for a service instance in at least one second device, and register the service instance with the label set to the registry based on a management mechanism of a Dubbo frame, and the registry may generate a first information list according to the service instances, and both the first device and the second device may acquire the first information list and configure a routing rule based on the first information list and the grayscale release configuration information, that is, the first device acquires the first grayscale rule, and the second device determines the second grayscale rule.
When a data request is sent, a routing rule is analyzed by first equipment, matching routing rule operation is executed based on the routing rule obtained through analysis, if matching is successful, namely the corresponding first identifier is found for the data request, the data request is routed to second equipment, if matching is failed, namely the corresponding first identifier cannot be found, abnormal processing such as error reporting is executed, or the data request is routed to a service instance configured with a public label.
On the basis of the information processing method proposed in the foregoing embodiment, the embodiment of the present application proposes a first device 9.
Fig. 9 is a schematic structural diagram of a first device 9 according to an embodiment of the present application, and as shown in fig. 9, the first device 9 may include:
a first obtaining module 91, a first processing module 92 and a sending module 93;
a first obtaining module 91, configured to obtain a first gray rule when a data request is detected; the first gray rule is used for expressing a rule for executing routing control when gray release is carried out on the data request;
a first processing module 92 for determining a first identifier based on the first gray-scale rule and the data request; wherein the first identifier represents an identifier of a second device that processes the data request;
the sending module 93 is further configured to send the data request to the second device based on the first identifier; and the second equipment is used for executing routing control when the data request is subjected to gray scale distribution.
It can be seen from the above that, since the data sending request of the first device is performed based on the identifier of the second device, the stability of the conditional routing in the related art can be enhanced, so that the effectiveness and stability of the routing control on one side of the first device in the process of issuing the gray scale are realized, and further, the efficient performance of the gray scale issuing is realized.
In an implementation manner, the first device 9 provided in this embodiment of the present application may further perform the following operations:
a first processing module 92 for determining additional information based on the data request and the first gray scale rule; the additional information represents identification information of the target service node; the target service node represents a target node which provides service for the data request in the second equipment;
a sending module 93, configured to send the additional information to the second device based on the first identifier.
In an implementation manner, the first device 9 provided in this embodiment of the present application may further perform the following operations:
a first obtaining module 91, configured to obtain a first information list; a first information list including a first list and a second list, the first list representing an identification list of at least one second device which processes any one data request when issuing a gradation; a second list representing an identification list of at least one service node in the second device when the gray scale is released; at least one service node, configured to provide a service for a data request sent by any first device;
the first obtaining module 91 is further configured to obtain a first gray rule based on the first information list.
In an implementation manner, the first device 9 provided in this embodiment of the present application may further perform the following operations:
a first processing module 92, configured to determine gray scale distribution configuration information; determining first gray scale control information and second gray scale control information based on the gray scale release configuration information; the first gray control information is used for determining whether a second list in the first information list needs to be analyzed or not; the second gray scale control information is used for establishing an association relationship between the type of any data request and the second equipment identifier in the first list when gray scales are issued;
the first obtaining module 91 is configured to obtain a first gray rule based on the first information list, the first gray control information, and the second gray control information.
In an implementation manner, the first device 9 provided in this embodiment of the present application may further perform the following operations:
the first obtaining module 91 is configured to analyze the first information list based on the first gray-scale control information to obtain a second information list; the second information list is a first list, or comprises a first list and a second list;
the first obtaining module 91 is further configured to obtain the first gray scale rule based on the second information list and the second gray scale control information.
The first obtaining module 91, the first processing module 92 and the sending module 93 may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller and a microprocessor. The embodiments of the present application are not particularly limited.
Based on the foregoing embodiments, the present application provides a second device 10, as shown in fig. 10, where the second device 10 includes: a receiving module 1001 and a second processing module 1002. Wherein:
a receiving module 1001, configured to receive a data request sent by a first device based on a first identifier; the first identifier includes: an identification representing a second device that processed the data request; a first identification, determined by the first device based on the first gray-scale rule and the data request; the first gray scale rule is used for expressing a rule for executing routing control when the first equipment performs gray scale distribution on the data request;
the second processing module 1002 is configured to perform routing control on the data request during gray scale publishing.
In an implementation manner, the second device 10 provided in the embodiment of the present application may further perform the following operations:
a receiving module 1001, configured to receive additional information sent by the first device based on the first identifier; the additional information represents identification information of the target service node; a target service node representing a target node serving the data request;
and a second processing module 1002, configured to perform routing control on the data request during gray scale publishing based on the additional information.
In an implementation manner, the second device 10 provided in the embodiment of the present application may further perform the following operations:
a second processing module 1002, configured to determine a second gray scale rule; the second gray rule represents a rule for determining the second identifier; a second identity representing at least one serving node identity; at least one service node, which represents a target node for providing service for any data request in the second device during gray scale release;
the second processing module 1002 is further configured to analyze the additional information based on the second gray scale rule to obtain an additional information analysis result, and perform routing control on the data request when the gray scale is issued based on the additional information analysis result.
In an implementation manner, the second device 10 provided in this embodiment of the present application may further perform the following operations:
a second processing module 1002, configured to obtain a first information list; the first information list comprises a first list and a second list, wherein the first list is an identification list which represents at least one second device for processing any data request when the gray scale is issued; the second list is used for representing at least one service node identification list when the gray scale is issued;
the second processing module 1002 is further configured to determine a second gray scale rule based on the first information list.
In an implementation manner, the second device 10 provided in the embodiment of the present application may further perform the following operations:
the second processing module 1002, obtaining the gray release configuration information; determining third gray-scale control information based on the gray-scale distribution configuration information; the third gray control information is used for establishing an association relationship between a service node identifier corresponding to any data request and at least one service node identifier in the second list when gray is issued;
the second processing module 1002 is further configured to determine a second gray scale rule based on the first information list and the third gray scale control information.
The receiving module 1001 and the second processing module 1002 may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor. The embodiments of the present application are not particularly limited.
As can be seen from the above, in the process of issuing the gray scale, after the first device performs the routing control in the process of issuing the gray scale on the data request, the second device performs the routing control again on the received data request from the first device, so as to implement the function of performing the gray scale routing control on the first device side and the second device side simultaneously for one data request, that is, the first device and the second device implement the full-link gray scale routing control on the same data request; and, since the routing control operation performed by the first device based on the first gray-scale rule is performed through the first identifier of the second device, stability and robustness of full-link gray-scale routing control are achieved.
Based on the same technical concept of the foregoing embodiment, the embodiment of the present application further provides a first device 11, referring to fig. 11, where the first device 11 may include: a first memory 1101 and a first processor 1102; wherein the content of the first and second substances,
a first memory 1101 configured to store computer programs and data;
the first processor 1102 is configured to execute the computer program stored in the memory to implement any one of the information processing methods applied to the first device in the foregoing embodiments.
The first facility 11 is the same facility as the first facility 9 described above.
Based on the same technical concept of the foregoing embodiment, referring to fig. 12, it shows a second device 12 provided in the embodiment of the present application, which may include: a second memory 1201 and a second processor 1202; wherein the content of the first and second substances,
a second memory 1201 configured to store computer programs and data;
a second processor 1202 configured to execute the computer program stored in the memory to implement any one of the information processing methods applied to the second device in the foregoing embodiments.
The second device 12 is the same device as the second device 10 described above.
In practical applications, the first Memory 1101 and the second Memory 1201 may be volatile memories (e.g., random Access Memories (RAMs); or a non-volatile Memory (non-volatile Memory), such as a Read Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk Drive (HDD) or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the first processor 1102 and the second processor 1202.
The first processor 1102 and the second processor 1202 may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor. It is to be understood that, for different augmented reality cloud platforms, the electronic devices for implementing the above-described processor functions may be other, and the embodiments of the present application are not particularly limited.
Based on the foregoing embodiments, an embodiment of the present application provides an information processing system 13, as shown in fig. 13, where the information processing system 13 includes: the device comprises a first device 1301, a second device 1302 and a communication bus 1303, wherein the communication bus 1303 is used for realizing data transmission between the first device 1301 and the second device 1302.
The first device 1301 may be the first device 11 in the foregoing embodiment, and the second device 1302 may be the second device 12 described in the foregoing embodiment.
In practical applications, a request chain corresponding to one data request is often long, wherein multiple systems or multiple processes may be involved, that is, in a gray scale publishing process, a routing condition of one data request is often consistent, and if an individual routing configuration principle is set for each service instance in the long request chain, it is obviously unnecessary and very troublesome and complicated.
Based on the foregoing embodiments, as shown in fig. 14, an embodiment of the present application further provides a chip 14, including: a processor 1401 for calling and running a computer program from a memory so that the apparatus in which the chip 14 is installed performs the steps of the information processing method of the first apparatus; or, for calling and running the computer program from the memory 1402 so that the apparatus mounted with the chip 14 executes the steps of the information processing method of the second apparatus.
Memory 1402 may be a separate device from processor 1401, or may be integrated within processor 1401.
In some embodiments, the chip 14 may also include an input interface 1403. The processor 1401 can control the input interface 1403 to communicate with other devices or chips, and specifically, can obtain information or data transmitted by other devices or chips.
In some embodiments, the chip 14 may also include an output interface 1404. The processor 1401 can control the output interface 1404 to communicate with other devices or chips, and can output information or data to the other devices or chips.
In some embodiments, the chip may be applied to the first device and the second device in the embodiments of the present application, and the chip may implement corresponding processes implemented by the first device and the second device in the methods in the embodiments of the present application, and for brevity, details are not described here again.
Based on the foregoing embodiments, the present application further provides a computer program product, which includes a computer storage medium storing computer program code, where the computer program code includes instructions executable by at least one processor, and when the instructions are executed by the at least one processor, the steps of the information processing method applied to the first device according to the foregoing embodiments are implemented; alternatively, the instructions, when executed by the at least one processor, implement the steps of the information processing method applied to the first device described in the foregoing embodiments.
In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a hardware mode, and can also be realized in a software functional module mode.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and various media capable of storing program codes.
Specifically, the computer program instructions corresponding to an information processing method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disc, a usb disk, or the like, and when the computer program instructions corresponding to an information processing method in the storage medium are read or executed by an electronic device, any one of the information processing methods of the foregoing embodiments is implemented.
In some embodiments, the functions of the apparatus provided in the embodiments of the present application or the modules included in the apparatus may be used to execute the method described in the above method embodiments, and for specific implementation, reference may be made to the description of the above method embodiments, and for brevity, details are not described here again
The foregoing description of the various embodiments is intended to highlight various differences between the embodiments, and the same or similar parts may be referred to each other, and for brevity, will not be described again herein.
The methods disclosed in the method embodiments provided by the present application can be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in various product embodiments provided by the application can be combined arbitrarily to obtain new product embodiments without conflict.
The features disclosed in the method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Industrial applicability
An embodiment of the application provides an information processing method, information processing equipment, an information processing medium, a chip and a program. The information processing method applied to the first equipment comprises the following steps: when the data request is detected, acquiring a first gray rule; the first gray rule is used for expressing a rule for executing routing control when gray release is carried out on the data request; determining a first identifier based on the first gray scale rule and the data request; wherein the first identifier represents an identifier of a second device that processes the data request; sending the data request to a second device based on the first identifier; and the second equipment is used for executing routing control when the data request is subjected to gray scale distribution.

Claims (19)

  1. An information processing method applied to a first device, the method comprising:
    when a data request is detected, acquiring a first gray rule; the first gray rule is used for expressing a rule for executing routing control when gray release is carried out on the data request;
    determining a first identifier based on the first gray scale rule and the data request; wherein the first identifier represents an identifier of a second device that processes the data request;
    sending the data request to a second device based on the first identifier; and the second equipment is used for executing routing control when the data request is subjected to gray scale distribution.
  2. The method of claim 1, wherein the method further comprises:
    determining additional information based on the data request and the first gray scale rule; wherein the additional information represents identification information of a target service node; the target service node represents a target node which provides service for the data request in the second equipment;
    and sending the additional information to the second equipment based on the first identification.
  3. The method of claim 1, wherein the obtaining a first gray scale rule comprises:
    acquiring a first information list; the first information list comprises a first list and a second list, wherein the first list is an identification list of at least one second device for processing any data request when the gray scale is issued; the second list is an identification list of at least one service node in the second device when the gray scale is released; the at least one service node is used for providing service for the data request sent by any one first device;
    and acquiring the first gray rule based on the first information list.
  4. The method of claim 3, wherein said obtaining the first gray scale rule based on the first list of information comprises:
    determining gray level release configuration information;
    determining first gray scale control information and second gray scale control information based on the gray scale release configuration information; the first gray control information is used for determining whether the second list in the first information list needs to be analyzed; the second gray scale control information is used for establishing an association relationship between the type of any data request and a second device identifier in the first list when gray scales are issued;
    and acquiring the first gray scale rule based on the first information list, the first gray scale control information and the second gray scale control information.
  5. The method of claim 4, wherein the obtaining the first gray scale rule based on the first information list, the first gray scale control information, and the second gray scale control information comprises:
    analyzing the first information list based on the first gray control information to obtain a second information list; the second information list is the first list, or comprises the first list and the second list;
    and acquiring the first gray scale rule based on the second information list and the second gray scale control information.
  6. An information processing method applied to a second device, the method comprising:
    receiving the data request sent by the first device based on the first identifier; wherein the first identifier represents an identifier of a second device that processes the data request; the first identification is determined by the first device based on the first gray-scale rule and the data request; the first gray scale rule is used for expressing a rule for executing routing control when the first device performs gray scale distribution on the data request;
    and carrying out routing control on the data request when the gray scale is issued.
  7. The method of claim 6, wherein the routing the data request at gray scale publication comprises:
    receiving additional information sent by the first device based on the first identifier; wherein the additional information represents identification information of a target service node; the target service node represents a target node for providing service for the data request;
    and performing routing control on the data request during gray scale release based on the additional information.
  8. The method of claim 7, wherein the routing the data request at gray scale publication based on the additional information comprises:
    determining a second gray scale rule; wherein the second gray scale rule represents a rule for determining a second identifier; the second identification represents at least one service node identification; the at least one service node represents a target node which provides service for any data request in the second equipment during gray scale release;
    and analyzing the additional information based on the second gray scale rule to obtain an additional information analysis result, and performing routing control on the data request during gray scale release based on the additional information analysis result.
  9. The method of claim 8, wherein the determining a second gray scale rule comprises:
    acquiring a first information list; the first information list comprises a first list and a second list, wherein the first list is an identification list of at least one second device for processing any data request when the gray scale is issued; the second list represents the at least one service node identification list during gray scale release;
    determining the second gray scale rule based on the first information list.
  10. The method of claim 9, wherein said determining the second gray scale rule based on the first list of information comprises:
    acquiring gray release configuration information;
    determining third gray scale control information based on the gray scale release configuration information; the third gray control information is used for establishing an association relationship between a service node identifier corresponding to any data request and at least one service node identifier in the second list when gray is issued;
    determining the second gray scale rule based on the first information list and the third gray scale control information.
  11. A first device, the first device comprising: the device comprises a first acquisition module, a first processing module and a sending module;
    the first acquisition module is used for acquiring a first gray rule when a data request is detected; the first gray rule is used for expressing a rule for executing routing control when gray distribution is carried out on the data request;
    the first processing module is used for determining a first identifier based on the first gray scale rule and the data request; wherein the first identifier represents an identifier of a second device that processes the data request;
    the sending module is further configured to send the data request to a second device based on the first identifier; the second device is configured to perform routing control when issuing the data request in grayscale.
  12. A second device comprising a receiving module and a second processing module,
    the receiving module is configured to receive the data request sent by the first device based on the first identifier; the first identifier comprises: an identification representing a second device that processed the data request; the first identification is determined by the first device based on the first gray-scale rule and the data request; the first gray scale rule is used for representing a rule for executing routing control when the first device issues the gray scale of the data request;
    and the second processing module is used for carrying out routing control on the data request when the gray scale is issued.
  13. A first device comprising a first processor and a first memory configured to store a computer program operable on the first processor; wherein the content of the first and second substances,
    the first processor is configured to execute the information processing method according to any one of claims 1 to 5 when the computer program is executed.
  14. A second device comprising a second processor and a second memory configured to store a computer program operable on the second processor; wherein, the first and the second end of the pipe are connected with each other,
    the second processor is configured to execute the information processing method according to any one of claims 6 to 10 when the computer program is executed.
  15. An information processing system comprising the first device of claim 13, the second device of claim 14, and a communication bus for enabling data transfer between the first device and the second device.
  16. A computer storage medium on which a computer program is stored, the computer program realizing the information processing method of any one of claims 1 to 5 when executed by a processor.
  17. A computer storage medium on which a computer program is stored, the computer program, when executed by a processor, implementing the information processing method of any one of claims 6 to 10.
  18. A chip, comprising: a processor for calling and running a computer program from a memory so that a device on which the chip is mounted performs the steps of the information processing method according to any one of claims 1 to 5;
    or for calling up and running a computer program from a memory so that a device on which the chip is installed performs the steps of the information processing method according to any one of claims 6 to 10.
  19. A computer program product comprising a computer storage medium storing computer program code comprising instructions executable by at least one processor, the instructions when executed by the at least one processor implementing the steps of the information processing method of any one of claims 1 to 5;
    or, when executed by said at least one processor, to implement the steps of the information processing method of any one of claims 6 to 10.
CN202080100504.4A 2020-06-04 2020-06-04 Information processing method, device, system, medium, chip and program Pending CN115516840A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/094469 WO2021243666A1 (en) 2020-06-04 2020-06-04 Information processing method and system, and device, medium, chip and program

Publications (1)

Publication Number Publication Date
CN115516840A true CN115516840A (en) 2022-12-23

Family

ID=78831587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080100504.4A Pending CN115516840A (en) 2020-06-04 2020-06-04 Information processing method, device, system, medium, chip and program

Country Status (2)

Country Link
CN (1) CN115516840A (en)
WO (1) WO2021243666A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114500662B (en) * 2021-12-23 2024-04-30 中国电信股份有限公司 Micro-service gray level release method and device, electronic equipment and readable storage medium
CN114024901B (en) * 2022-01-05 2022-04-19 中邮消费金融有限公司 Message isolation forwarding method and system
CN114594999B (en) * 2022-01-28 2023-09-12 阿里巴巴(中国)有限公司 Method, device, storage medium and system for issuing file
CN114884915B (en) * 2022-04-19 2024-03-26 阿里巴巴(中国)有限公司 Message processing method, device and equipment based on gray release
CN115185582B (en) * 2022-09-15 2022-11-18 畅捷通信息技术股份有限公司 Gray scale publishing method and device for multiple tenants and storage medium
CN115334006B (en) * 2022-10-14 2023-04-14 平安银行股份有限公司 Gray level verification method and system based on client implementation

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9680763B2 (en) * 2012-02-14 2017-06-13 Airwatch, Llc Controlling distribution of resources in a network
CN105791344B (en) * 2014-12-22 2019-03-19 华为软件技术有限公司 Method, system, load balancer and the service bus device of gray scale issuing service processing
CN107733957B (en) * 2016-08-12 2020-10-16 北京融聚世界网络科技有限公司 Distributed service configuration system and version number distribution method
CN107104970A (en) * 2017-04-27 2017-08-29 努比亚技术有限公司 A kind of regular and synchronized processing method, system, rule server and gray scale server
CN109683936B (en) * 2018-12-20 2023-03-14 恒生电子股份有限公司 Gray scale distribution method and device, storage medium and electronic equipment
CN110045964B (en) * 2019-04-09 2022-10-28 厦门网宿有限公司 Software gray level release method, proxy server, configuration center and system
CN111181858A (en) * 2019-12-24 2020-05-19 浙江大华技术股份有限公司 Method, system, computer device and storage medium for gray scale distribution

Also Published As

Publication number Publication date
WO2021243666A1 (en) 2021-12-09

Similar Documents

Publication Publication Date Title
CN115516840A (en) Information processing method, device, system, medium, chip and program
JP7203444B2 (en) Selectively provide mutual transport layer security using alternate server names
US10452372B2 (en) Method and deployment module for managing a container to be deployed on a software platform
CN110311983B (en) Service request processing method, device and system, electronic equipment and storage medium
US10795740B2 (en) Parameter delegation for encapsulated services
US7739382B2 (en) Dynamic extension of network-accessible services
US9973573B2 (en) Concurrency reduction service
CN111913738B (en) Access request processing method, device, computing equipment and medium
US10284660B1 (en) Data flow tokens to trace execution of services in a service provider network
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN111510330B (en) Interface management device, method and storage medium
US11627169B2 (en) Network-based Media Processing (NBMP) workflow management through 5G Framework for Live Uplink Streaming (FLUS) control
US20230221981A1 (en) Sidecar-based integration capabilities for containerized applications
CN114172966A (en) Service calling method and device and service processing method and device under unitized architecture
CN113595927A (en) Method and device for processing mirror flow in bypass mode
CN111988418A (en) Data processing method, device, equipment and computer readable storage medium
CN111405021A (en) Data transmission method, device, equipment and storage medium of peer-to-peer node
CN107222365B (en) Data processing method and device and server
US11595471B1 (en) Method and system for electing a master in a cloud based distributed system using a serverless framework
CN115225394A (en) Message interception method and system based on domain name
CN116264550A (en) Resource slice processing method and device, storage medium and electronic device
CN112929453A (en) Method and device for sharing session data
KR20230003490A (en) Orchestrated proxy service
US11546405B2 (en) Methods for exposing mainframe data as a web service and devices thereof
CN112929195A (en) Service system, method executed by service system, processing apparatus, and storage medium

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