[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

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

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

Info

Publication number
CN115516840B
CN115516840B CN202080100504.4A CN202080100504A CN115516840B CN 115516840 B CN115516840 B CN 115516840B CN 202080100504 A CN202080100504 A CN 202080100504A CN 115516840 B CN115516840 B CN 115516840B
Authority
CN
China
Prior art keywords
gray
list
data request
information
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.)
Active
Application number
CN202080100504.4A
Other languages
Chinese (zh)
Other versions
CN115516840A (en
Inventor
毛恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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
Application granted granted Critical
Publication of CN115516840B publication Critical patent/CN115516840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Stored Programmes (AREA)

Abstract

An information processing method, apparatus, system, medium, chip, and program. The information processing method applied to the first device comprises the following steps: when the data request is detected, a first gray rule is acquired; wherein the first gray scale rule is used for representing a rule (201) for executing routing control when gray scale release is performed on the data request; determining a first identity based on the first gray scale rule and the data request; wherein the first identification represents an identification (202) of a second device handling the data request; transmitting the data request to a second device based on the first identification; the second device is used for executing routing control (203) when the data request is subjected to gray level release.

Description

Information processing method, device, system, medium, chip and program product
Technical Field
The present application relates to the field of information technologies, and in particular, to an information processing method, apparatus, system, medium, chip, and program.
Background
Dubbo is a high performance, lightweight open source Java remote procedure call (Romote Procedure Call, RPC) framework. In the gray level distribution process of the related art, the Dubbo framework is implemented by performing route control on the data request through the service providing end. However, the simple scheme of performing route control on the data request at the service providing end has higher requirement on the route control capability of the service providing end, and the stability of route control is poor.
Disclosure of Invention
The embodiment of the application aims to provide an information processing method, equipment, a system, a medium, a chip and a program.
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 representing a rule for executing routing control when gray release is carried out on the data request;
Determining a first identity 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;
Transmitting the data request to a second device based on the first identification; the second device is configured to perform routing control when performing gray level distribution on the data request.
An information processing method applied to a second device, the method comprising:
receiving the data request sent by the first equipment 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 rule is used for expressing that when the first device performs gray release on the data request, the rule of route control is executed;
And carrying out route control on the data request during gray level release.
A second device for processing data requests, the second device comprising a receiving module and a second processing module,
The receiving module is used for receiving the data request sent by the first equipment based on the first identifier; the first identifier comprises: an identification of a second device for representing processing 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 rule is used for expressing that when the first device performs gray release on the data request, the rule of route control is executed;
and the second processing module is used for carrying out route control on the data request when the gray level is released.
A first device comprising a first processor and a first memory configured to store a computer program capable of running 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 capable of running on the second processor;
The second processor is configured to execute the information processing method as described above applied to the second device when the computer program is run.
An information processing system comprising any one of the first devices, any one of the second devices, and a communication bus for enabling data transfer between the first device and the second device.
A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the information processing method as described above for application to a first device.
A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the information processing method as described above for application to a second device.
A chip, comprising: a processor for calling and running a computer program from a memory so that a device mounted with the chip performs the steps of the information processing method applied to the first device described above;
Or 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 described above as 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 to implement the steps of the information processing method as described above applied to the first device when the instructions are executed by the at least one processor;
Or when executed by the at least one processor, implement the steps of the information processing method described above as applied to the second device.
It can be seen that, in the information processing method in the embodiment of the present application, when the gray level is issued, not only the first device, that is, the data request sending end, but also the second device, that is, the data request receiving end, may perform route control on the data request, so that on one hand, the high requirement of performing route control only on the service providing end and performing route control on the service providing end is alleviated, and on the other hand, simultaneous performing route control on both ends of the data request is realized, that is, full-link gray level route control is realized. And the route control of the data request at the first equipment is performed based on the first identifier of the second equipment, so that the stability of the route condition of the data request transmitting end is realized. Therefore, the information processing method of the embodiment of the application can promote the stable progress of gray 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 as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the 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 release according to 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 schematic diagram of a parameter configuration of conditional routing based on application granularity information;
FIG. 4 is a schematic diagram of 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 a Dubbo framework-based information processing method according to an embodiment of the present application;
FIG. 7 is a diagram illustrating a full link grayscale routing control scheme according to an embodiment of the present application;
FIG. 8 is a flow chart of an information processing method according to an embodiment of the 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 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 schematic 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 application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples. It is to be understood that the examples provided herein are for the purpose of illustration only and are not intended to limit the application. In addition, the embodiments provided below are some of the embodiments for carrying out the present application, but not all of the embodiments for carrying out the present application, and the technical solutions described in the embodiments 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 "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a method or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such method or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other related elements in a method or apparatus comprising the element (e.g., a step in a method or an element in an apparatus, e.g., an element may be part of a circuit, part of a processor, part of a program or software, etc.).
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, 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, C, may mean including any one or more elements selected from the group consisting of A, B and C.
For example, the information processing method provided in the embodiment of the present application includes a series of steps, but 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 be set for acquiring related information or performing processing based on information.
The information processing method provided by the embodiment of the application can be applied to the gray level release process. In greyscale distribution, a first portion of users are enabled to use a first version of the service providing software, and a second portion of users are enabled to use a second version of the service providing software, wherein a partial update is performed in the second version. As shown in fig. 1, a user participating in gray scale distribution may communicate data with a second device deployed with a gray scale version and/or a formal version via a first device. In the gray level publishing process, the first part of users and the second part of users can initiate requests to at least one second device deployed with the first version and/or the 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 practical applications, the first device may be a thin client, thick client, handheld or laptop device, microprocessor-based system, set top box, programmable consumer electronics, network personal computer, small computer system, etc., and the second device may be a computer or server, which may be a server computer system small computer system, a mainframe computer system, a distributed cloud computing technology environment including any of the above, etc.
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 implemented in a distributed cloud computing environment in which 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 computing 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 gray scale distribution process, and can be applied to a gray scale distribution process based on Dubbo frames, for example. Specifically, the information processing method can be applied to a data request transmitting device and a data request processing device for executing the Dubbo framework gray scale distribution.
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 device such as a computer capable of sending data requests over a communication connection.
In one embodiment, the first device may be configured to represent a device in the Dubbo framework that initiates the data request, and the device may also receive the returned data request processing result.
In one embodiment, the first device may be used to represent a device in Dubbo framework for analyzing and converting data requests.
In one embodiment, the first device may be used to represent devices in Dubbo framework for monitoring, distributing, integrating, and controlling data requests.
In one embodiment, a first device may be used to represent a device that isolates a sender of a data request from a communication transmission link.
As shown in fig. 2, the process may include the steps of:
Step 201: when a data request is detected, acquiring a first gray rule; the first gray rule is used for representing a rule for executing routing control when gray release is carried out on the data request.
In one embodiment, gray scale publication may be used to represent gray scale publication performed on a software version providing a service according to an update ratio, e.g., publication based on a kth update ratio, where K is an integer greater than or equal to1, the kth update ratio representing an update to a capacity ratio of the software version providing the service, e.g., the kth update ratio is used to represent that 10% of the update was performed on the software version.
In one embodiment, the gray level distribution may be used to represent gray level distribution performed on the software version providing the service according to the function in the software version providing the service, for example, the mth gray level is used to represent that the function of the mth portion of the software version providing the service is updated, where M is an integer greater than or equal to 1.
In one embodiment, the gray level distribution may be used to represent the gray level distribution performed on the software version providing the service according to the method call links in the software version providing the service, for example, the nth gray level is used to represent that the nth method call link of the software version providing the service is updated, where N is an integer greater than or equal to 1.
In one embodiment, the greyscale release process may include release of two software versions that provide a service, one release of the software version being that of an updated service software version, also known as a greyscale version, and the other release of the software version being that of a service software version that did not perform the update, also known as a formal version.
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 either account.
In one embodiment, the data request may be used to represent 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 gray scale version of the software providing the service.
In one embodiment, the data request may be used to represent a request initiated for a formal version.
In one embodiment, the data request may be used to represent a request received by the first device from another account or device.
In one embodiment, the first gradation rule is a rule for expressing that the routing control is executed when the gradation distribution is performed on any one of the detected data requests.
In one embodiment, the first gray scale rule may be used to represent a rule for performing routing control when gray scale distribution is performed on a specific data request.
In one embodiment, the first gray scale rule may be used to represent a rule for performing routing control when gray scale distribution is performed on a data request of a specific source.
In one embodiment, the first gray scale rule may be used to represent 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 represent a rule for performing routing control when gray distribution is performed on a data request according to a 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 rule may be generated after the data request is detected.
Step 202: the first identification is determined based on the first gray rule and the data request.
Wherein the first identification represents an identification 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 the software providing the 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 that carries both a formal version and a greyscale version of the software that provides the service.
In one embodiment, the second device may be used to represent a device carrying different greyscale versions of the greyscale of the software providing the service. For example, in the second device, a software version of the first gray scale and a software version of the K1 st gray scale are carried, where K1 is an integer greater than 1, and the first gray scale is different from the K1 st gray scale.
In one embodiment, the first identifier is used to represent a unique, unalterable identifier of the second device, such as a product identifier set at the time of production of the second device.
In one embodiment, a first identifier is used to identify a hardware device number of a second device, such as an international mobile equipment identity (International Mobile Equipment Identity, IMEI) of the mobile device.
In one embodiment, the first identifier may be determined by: analyzing the data request to obtain a first analysis result, and processing the first analysis result to determine a first identifier based on a first gray rule.
In one embodiment, the first identifier may be determined by: 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: 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, based on the first identification, sending a data request to the second device.
The second device is used for executing route control when the data request is subjected to gray level release.
In one embodiment, the second device is further configured to perform a second routing control on the data request during gray scale release of the software version providing the service after receiving the data request.
In one embodiment, in the second device, a grayscale version and/or a formal version of the software is carried, 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 formal version to enable a service instance in the grayscale version and/or the formal version to process the data request.
In one embodiment, the second device is further capable of returning the processing result of the data request by the service instance in the gray scale version and/or the formal version to the first device.
In the related art, taking the Dubbo-based framework as an example, in the gray scale distribution process, the routing implementation of Dubbo is generally implemented by conditional routing (Condition Router) and label routing (Tag Router), where Router is a Router defined in the Dubbo framework, which is used for traffic control, that is, for routing control.
Wherein conditional routing may be controlled from either application granularity or service granularity. As shown in fig. 3 and fig. 4, fig. 3 is a schematic diagram of a parameter configuration of conditional routing based on application granularity; fig. 4 is a schematic diagram of conditional routing configuration based on service granularity parameters. The relevant parameters and the configuration method thereof in fig. 3 and 4 will be described below.
In fig. 3 and fig. 4, scope, which indicates the granularity of the routing rule, the scope value determines the key value; a key for specifying which service or application the routing rule is to act on; enabled, indicating whether the current route is in effect; force, which indicates whether the forced execution is performed when the routing result is empty, if not, the routing rule with the routing result being empty will automatically fail; runtime, which indicates whether to execute the routing rule during each call, or else, executing and caching the result in advance only when the provider address list is changed, and directly obtaining the routing result from the cache during the call; 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, the higher the priority is.
In fig. 3, scope takes the value of application to indicate that the current routing rule acts on the application granularity; force is true, which is used to indicate that forced execution is needed when the routing result is empty; runtime is true, which is used to indicate that the routing rule is executed at each call; enabled is true, which is used to indicate that the current route takes effect; the key is a gosvernacen-conditionrouter-consumer and is used for representing that the current routing information acts on the gosvernacen-conditionrouter-consumer; conditions are two, wherein application= > app1= > address 20880 is used to indicate that a request sent by the first application app1 can only be routed to all service instances with ports 20880; application= > app1= > address 20881 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, the scope value is service, which is used to indicate that the current routing rule acts on the service granularity; force is true, which is used to indicate that forced execution is needed when the routing result is empty; runtime is true, which is used to indicate that the routing rule is executed at each call; enaled is true, which is used to indicate that the current route is in effect; the key is org.apache.dubbo.samples.governa.api.DemoService, and is used for indicating that the current route information acts on org.apache.dubbo.samples.governa.api.DemoService; two conditions exist, where method= > sayHello = > address is 20880, which is used to indicate that if the method of initiating the data request is sayHello method, the data request can only be used to route to the service instance with 20880 ports; method= > sayhi= > address. 20881 is used to indicate that if the method of initiating the data request is the sayHi method, the data request can only be used for routing to all service instances with ports 20881.
As can be seen from the parameter definitions of the conditional routing shown in fig. 3 and 4, the parameters for configuring the routing conditions in the conditional routing are rich, but the conditional routing depends on the internet protocol (Internet Protocol, IP) address of the container carrying the service instance, and thus the conditional routing is applicable to a scenario in which the IP address of the container carrying the service instance can be clearly determined. However, in practical applications, with long-term operation of a device or a container where a service instance is located, the container is prone to a situation that needs to be restarted, and once the container is restarted, the IP address of the container is reassigned, so that the set routing condition is disabled.
In the information processing method provided by the application, the data request is sent to the second equipment based on the identification of the second equipment, namely the first identification, and the identification of the second equipment is not changed in the restarting process of the second equipment or a container carried by the second equipment, so that the data request is sent to the second equipment based on the identification of the second equipment, namely the first identification, 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 the robustness of the routing control condition of the first equipment on the data request and laying a foundation for executing gray release efficiently and rapidly.
In practical applications, 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 (DIGITAL SIGNAL Processor, DSP), a digital signal processing device (DIGITAL SIGNAL Processing Device, DSPD), a programmable logic device (Programmable Logic Device, PLD), a field programmable gate array (Field Programmable GATE ARRAY, FPGA), a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, and a microprocessor.
From the above, it can be seen that, since the data request is sent by the information processing method according to the present application based on the identifier of the second device, instability caused by that conditional routing depends on the IP address of the container in the related art can be reduced, so that the validity and stability of the routing control at the first device side in the gray level publishing process are realized, and further stable progress of gray level publishing at the data request end, i.e. the first device, is realized.
In one implementation manner, the information processing method provided by the embodiment of the present application further includes:
determining additional information based on the data request and the first gray scale rule; wherein the additional information represents identification information of the target service node; a target service node, which represents a target node for providing service for the data request in the second device;
based on the first identification, 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 for servicing the data request.
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 serve the data request.
In one embodiment, the target service node may be used to represent a node in the second device that carries a grayscale version of the service instance that serves the data request, and/or a container of a formal version of the service instance.
In one embodiment, the target service node may be configured to represent a service instance incorporated into a Dubbo second device managed by the framework to service the data request.
In one embodiment, the target service node may be used to represent a node that carries a label in a 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 the routing control of the data requests carrying different labels can be realized through the matching operation of the labels, for example, the data requests can only flow in the service instance group with the designated label, and therefore, the purpose of traffic isolation can be realized by adopting the label routing. In practical application, the label routing can be used as a routing base of scenes such as blue-green distribution, gray distribution and the like.
In Dubbo framework, the labels mark the service instances at one end of the service provider mainly through two modes of dynamic rule marking and static rule marking, so that the service instances are grouped according to the labels. The dynamic rule marking is higher in priority than the static rule marking, and when two rules exist simultaneously and conflict occurs, the dynamic rule marking is usually the main rule marking.
In practical application, the label routing is suitable for service scenarios in which the data request directly carries a service instance label or the routing rule is less complex.
Accordingly, the additional information may be used to represent the tag information defined in the tag route described in the foregoing embodiment.
In one embodiment, the additional information is determined based on a first gray scale rule, after parsing the source of the data request.
In one embodiment, the additional information is determined based on a first gray rule, after parsing the type of the data request.
In one embodiment, the additional information is determined by analyzing the target data of the data request based on the first gray scale rule.
In one embodiment, the additional information is sent to the second device, which may be by 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 completed, the additional information may be encoded, encrypted, or the like according to a predetermined time sequence relationship, and then the additional information may be transmitted to the second device based on the first identifier.
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 first device may also send additional information indicating the identification information of the target service node to the second device based on the first identification. Thus, on the one hand, the sending operation of the additional information executed based on the first identifier can realize stable sending of the additional information; on the other hand, the second device may also perform the second-time gray scale routing control of the data request receiving end based on the additional information, because a condition basis is provided for the full-link gray scale routing control.
In one embodiment, obtaining the first gray 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 during gray level release; a second list representing an identification list of at least one service node in the second device at the time of gray level distribution; at least one service node for providing service for the data request sent by any first device;
based on the first information list, a first gray rule is obtained.
In one embodiment, the first list represents an identification list of at least one second device.
In one embodiment, at least one second device is used to process any data request from any first device at the time of gray scale distribution.
In one embodiment, at least one second device is used to process any data request from a given first device at gray level distribution.
In one embodiment, at least one second device is configured to process any data request sent by the first device within a set period of time at the time of gray scale distribution.
In one embodiment, at least one second device is used for processing any data request sent by a designated first device through an account at the time of gray level distribution.
In one embodiment, the second list may be used to represent an identification list of all service nodes in the at least one second device at the time of gray scale distribution.
In one embodiment, the second list may be used to represent an identification list of a specific service node in at least one second device when gray scale distribution is performed.
In one embodiment, the second list may be used to represent an identification list of a service node of a specified type in the at least one second device when the gray level is issued.
In one embodiment, the second list may be used to represent an identification list of service instances of the gray scale version and/or the formal version, for example, a tag list of the service instances, which is carried in at least one second device when the gray scale is released.
In one embodiment, the first information list includes a first list and a second list, wherein each second device identifier in the first list and the identifier of at least one service node in the second list may be associated with each other. For example, the K2 second device carries the P-L service instance, and then the identifier of the K2 second device and the identifier of the P-L 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 Dubbo framework, any service instance changes, including version and configuration information changes, are timely notified to the registry, and the registry can acquire the latest first information list; and, the registry may also publish the latest first information list to all the first devices in the Dubbo framework.
In one embodiment, the first gray rule may be obtained by filtering a first list and a second list in the first information list.
In the information processing method provided by the embodiment of the application, the first gray rule is acquired based on the first information list, so that the acquired first gray rule corresponds to the first information list, and a basis is provided for stable data communication between the data transmitting end and the data receiving end.
In one implementation manner, in the information processing method provided by the embodiment of the present application, based on the first information list, a first gray rule is obtained, including:
Determining gray release configuration information;
Determining first gray scale control information and second gray scale control information based on 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 an association relation between the type of any data request and a second equipment identifier in the first list when gray release is performed;
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 gray level release configuration information is used for performing route control on the data request in the gray level release process, so as to determine corresponding target nodes for different data requests.
In one embodiment, the gray release configuration information is used for performing routing control on the data request according to the type of the data request in the gray release process, so that the data request can be routed to the service instance with the appointed gray version or the service instance with the formal version.
In one embodiment, the gray release configuration information is used for performing routing control on the data request according to the source of the data request in the gray release process, so that the data request can be routed to the service instance with the designated gray version or the service instance with the formal version.
In one embodiment, the gray release configuration information is used for performing routing control on the data request according to the target data requested by the data request in the gray release process, so that the data request can be routed to the service instance with the designated gray version or the service instance with the formal version.
In one embodiment, the gray scale release configuration information is a list of a series of configuration information, in which control information in the gray scale release process is included, for example, a request initiated by a user of a first category is routed to a second device of a corresponding first category, and a data request initiated by a user of a U-th category is routed to a second device of a corresponding U-th category. Wherein U is an integer greater than 2.
In one embodiment, the first gray scale control information includes a condition for analyzing an identification of at least one service node in the second list.
In one embodiment, the first gray scale control information includes a condition that the identification of at least one service node in the second list is not analyzed.
In one embodiment, the first gray scale control information includes a manner how to analyze the identity of at least one service node in the second list.
In one embodiment, the first gray scale control information includes a condition of a resolution depth when resolving the identifier of the at least one service node in the second list, where the resolution depth includes whether an operation such as encoding or encrypting needs to be performed on the identifier of the at least one service node.
In one embodiment, the second gray level control information includes a condition for establishing an association relationship between a type of any data request and at least one second device identifier.
In one embodiment, the second gray level control information includes a condition that an association relationship between a type of any data request and at least one second device identifier is not established.
In one embodiment, the second gray level control information includes how to establish an association between the type of any data request and at least one second device identifier.
The first gray rule is obtained based on the first information list, the first gray control information and the second gray control information, which may be whether to parse the second list in the first information list based on the first gray control information to obtain a fourth parsing result, and then based on the second gray control information, an association relationship between any type of data request and the second device identifier is established for the fourth parsing result, so as to obtain the first gray rule.
In the information processing method provided by the embodiment of the application, the first gray rule is acquired based on the first gray control information, the second gray control information and the first information list in the gray release configuration information, so that the acquired first gray rule can fully and fully meet the gray release requirements contained in the first information list and the gray release configuration information, thereby laying a foundation for stable operation of the subsequent gray release at the first equipment.
In one embodiment, acquiring the first gray rule based on the first information list, the first gray control information, and the second gray 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 the first list and a second list;
And acquiring a first gray rule based on the second information list and the second gray control information.
In one embodiment, the first information list is parsed based on the first gray scale control information, and whether to parse the second list in the first information list may be determined based on the first gray scale control information.
In one embodiment, the first information list may be analyzed based on the first gradation control information, a condition for analyzing the 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 may be parsed based on the first gray scale control information, a manner of how to parse the second list in the first information list may be determined based on the first gray scale control information, and then the second list may be parsed based on the method.
Accordingly, if the first gray scale control information defines that the second list does not need to be analyzed, the obtained second information list only includes the first list.
If the first gray control information determines that the second list needs to be analyzed, 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 parsed in the first gray scale control information is based on the following:
when only one gray version and one formal version are released and service instances corresponding to the gray version and the formal version are respectively deployed on different second devices, the second list may not be parsed.
When versions for at least two grayscales, such as a first gray scale version and a second gray scale version, and a formal version are released, and 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, i.e. different versions are deployed on different second devices, at this time, the second list may not be parsed.
When publishing for at least two gray scale versions, such as a first gray scale version and a second gray scale version, and a formal version, 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 the data request, a service instance which is ultimately used to provide service for the data request may be determined according to the additional information.
When publishing for at least two gray scale versions, such as a first gray scale version and a second gray scale version, and a formal version, 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 that is ultimately used to provide a service for the data request may be determined according to additional information.
It should be noted that, when the second list does not need to be parsed, in order to facilitate the second device that receives the data request to process, 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, a specific identifier is sent to the second device according to a preset time sequence relation. The specific identifier may be used to represent a identifier customized for gray level distribution, or may be a certain identifier existing in Dubbo frames.
In addition, the first identifier may be stored in the first list of the first information list, or may be obtained by issuing configuration information in gray scale. When determining to release the grayscale of the software version providing the service, the identity of the at least one second device carrying the software version may be determined prior to release of the grayscale and the identity of the at least one second device may be added to the grayscale release configuration information. When the first gray rule needs to be acquired, the identifier of at least one second device can be directly obtained from the gray release configuration information, and the identifier is added into the first gray rule according to the gray routing requirement.
In the information processing method provided by the embodiment of the application, whether the second list in the first information list is analyzed is determined through the first gray control information to obtain the second information list, and the second information list is analyzed based on the second gray control information to obtain the first gray rule. Therefore, the obtained first gray rule can fully reflect the specific requirement of gray release in the gray release configuration information, and the stronger and flexible analysis of the first information list is realized.
Fig. 5 is a schematic diagram of 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 gray scale distribution, deployed with gray scale versions and/or formal versions.
In one embodiment, the second device may be used to represent a device in Dubbo framework that participates in gray distribution, deployed with gray versions and/or formal versions.
As shown in fig. 5, the information processing method may include the steps of:
step 501, a data request sent by a first device based on a first identifier is received.
Wherein the first identifier represents an identifier of a second device that processes the data request; a first identification determined based on a first gray rule and a data request; and the first gray rule is used for expressing that the first equipment executes the rule of the route control when the data request is subjected to gray release.
Step 502, performing route control on the data request during gray level release.
As can be seen from the above, during gray level distribution, after the first device performs the routing control when the data request is subjected to gray level distribution, the second device performs the routing control again on the received data request from the first device, so that the function of performing gray level routing control on the primary data request at the same time on the first device side and the second device side is realized, 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, and further the full-link gray level routing control on the data request is realized; and, since the route control operation performed by the first device based on the first gray rule is performed by the first identification of the second device, the stability and robustness of gray distribution are improved.
In one implementation manner, in the information processing method provided by the embodiment of the present application, when a gray level is issued, a routing control is performed on a data request, including:
receiving additional information sent by the first equipment based on the first identifier; wherein the additional information represents identification information of the target service node; a target service node, representing a target node that serves the data request;
Based on the additional information, the data request is routed at the time of gradation distribution.
In one embodiment, the target service node may be configured to represent a target node in the second device that carries a service instance capable of servicing the data request.
In one embodiment, the target service node may be used to represent a node in the second device that carries a container capable of having a service instance that serves the data request.
In one embodiment, the target service node may be a node representing a container in the second device carrying a grayscale version of the service instance capable of servicing the data request, and/or a formal version of the service instance.
In one embodiment, the target service node may be used to represent a node of a service instance in the second device of the Dubbo framework that serves the data request.
In one embodiment, the target service node may be used to represent a service instance carrying a label in the label routing definition described above.
Accordingly, the additional information may be used to represent the label information defined in the label routing described above.
In one embodiment, the additional information obtained by the second device may be obtained after the second device parses the data request.
In one embodiment, the additional information obtained by the second device may be a timing relationship preset by the second device, and after receiving the data request, the second device receives the encoded and encrypted additional information, and decrypts and decodes the encoded and encrypted additional information.
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 the second device that receives the data request to process, 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, a specific identifier is sent to the second device according to a preset time sequence relation. The specific identifier may be used to represent a identifier customized for gray level distribution, or may be a identifier existing in Dubbo frames.
In one implementation manner, in the information processing method provided by the embodiment of the present application, based on the additional information, the routing control is performed on the data request during the gray level distribution, including:
Determining a second gray scale rule; wherein the second gray scale rule represents a rule for determining a second identity; a second identity representing at least one service node identity; at least one service node representing a target node in the second device that serves any data request at the time of gray level publication;
And analyzing the additional information based on the second gray rule to obtain an additional information analysis result, and performing routing control on the data request during gray release based on the additional information analysis result.
In one embodiment, at least one service node may be used to represent a node in the second device that serves any data request at the time of gray scale publication, carrying a service instance.
In one embodiment, at least one service node may be configured to represent a service instance in the second device that serves any data request at the time of gray scale publication.
In one embodiment, at least one service node may be used to represent a node with a service instance in the second device that serves any data request during the gray scale distribution based on Dubbo frames.
In one embodiment, the second gray scale rule may be used to represent a rule for determining a second identifier corresponding to 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 the 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 identification.
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 means for matching and analyzing the additional information.
In one embodiment, the second gray scale rule includes a depth of matching analysis of the additional information, such as whether the additional information needs to be matched when the service instance is switched when the processing of the data request involves a plurality of service instances.
In one embodiment, the additional information is analyzed based on the second gray rule to obtain an additional information matching result, and the routing control is performed on the data request during gray distribution based on the additional information analysis result, which may be based on the condition of analyzing the additional information contained in the second gray rule, to obtain an additional information analysis result, and the routing control is performed on the data request during gray distribution based on the additional information analysis result. For example, when the data amount of the additional information is greater than a preset threshold, the additional information is parsed. .
In one embodiment, the additional information is analyzed based on the second gray rule to obtain an additional information analysis result, and the routing control is performed on the data request during gray distribution based on the additional information analysis result, which may be a method for performing matching analysis on the additional information included in the second gray rule, to analyze the additional information to obtain an additional information analysis result, and the routing control is performed on the data request during gray distribution based on the additional information analysis result. For example, parsing is performed on data of a specified field of the additional information, or parsing is performed on a specified number of fields.
In one embodiment, the additional information is analyzed based on the second gray rule to obtain an additional information analysis result, and the routing control is performed on the data request during gray distribution based on the additional information analysis result, which may be based on the depth of matching analysis of the additional information contained in the second gray rule, to obtain an additional information analysis result, and the routing control is performed on the data request during gray distribution based on the additional information analysis result. Such as: for a plurality of service instances or a plurality of systems generated by a long data request processing chain, whether to analyze the additional information at each service instance or each system or not is performed.
In the information processing method provided by the embodiment of the application, the routing control is performed on the data request, and the operation is performed after the additional information is analyzed based on the second gray rule. That is, the second device does not adopt a unified operation of resolving the additional information in the process of controlling the routing of the data request, but performs according to the second gray scale rule. Thus, both routing control pertinence and flexibility performed at the second device are improved.
In one implementation manner, in the information processing method provided by the embodiment of the present application, determining the 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 represents an identification list of at least one second device for processing any data request during gray level release; a first list comprising a first identification; a second list representing at least one service node identification list at gray level distribution;
A second gray scale rule is determined based on the first list of information.
In one embodiment, the second gray scale rule is determined based on the first information list, and the second gray scale rule may be determined by referring to the second list included in the first information list.
In the information processing method provided by the embodiment of the application, the determination of the second gray scale rule is performed based on the first information list, so that the second gray scale rule can reflect objective information of the data request receiving end equipment and the nodes in the gray scale release process, thereby improving the stability and reliability of subsequent route control.
Exemplary, the information processing method provided by the embodiment of the present application determines, based on the first information list, a second gray scale rule, including:
acquiring gray release configuration information;
Determining third gray scale control information based on 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 during gray release;
a second gray scale rule is determined based on the first information list and the third gray scale control information.
In one embodiment, the third gray scale control information includes a condition for analyzing an identification of at least one service node in the second list.
In one embodiment, the third gradation control information includes a condition that the identification of at least one service node in the second list is not analyzed.
In one embodiment, the third gray scale control information includes a manner how the identifier of at least one service node in the second list is analyzed.
In one embodiment, the third gray scale control information includes a condition of an analysis depth when analyzing the identifier of the at least one service node in the second list, where the analysis depth includes whether or not the identifier of the at least one service node needs to be encoded, encrypted, and the like.
The second gray scale rule may be obtained by determining whether to parse the second list in the first information list based on the first information list and the third gray scale control information to obtain a fifth parsing result, and then establishing an association relationship between the type of any data request and the second equipment identifier for the fifth parsing result based on the second gray scale control information, so as to determine the second gray scale rule.
The second gray scale rule may be obtained by determining how to parse the second list in the first information list based on the first information list and the third gray scale control information to obtain a sixth parsing result, and then establishing an association relationship between the type of any data request and the second device identifier for the sixth parsing result based on the second gray scale control information, so as to determine the second gray scale rule.
The second gray scale rule may be obtained by determining an analysis depth of the second list in the first information list based on the third gray scale control information to obtain a seventh analysis result, and then establishing an association relationship between the type of any data request and the second equipment identifier for the seventh analysis result based on the second gray scale control information to determine the second gray scale rule.
Taking a gray level publishing process based on Dubbo frames as an example, when the method for implementing information processing provided by the embodiment of the present application is applied to a first device and a second device, a flow for implementing cooperation between the first device and the second device is shown in fig. 6:
in fig. 6, the gray distribution process based on Dubbo framework is required to be completed by the first device, the second device, the registry of Dubbo framework and the gray distribution configuration information part cooperatively under the management of Dubbo framework.
In fig. 6, when the first device detects a data request, a first identification is determined based on the first gray rule and the data request, and the data request is transmitted to the second device based on the first identification, and at the same time, additional information of the data request, that is, a tag of the target service instance, may be transmitted to the second device based on the first identification.
When the second device receives the data request sent by the first device based on the first identifier, the routing control is performed on the data request during gray level distribution, specifically, the additional information sent by the first device based on the first identifier can be received, and then the routing control is performed on the data request during gray level distribution 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 obtains a first gray 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 obtains a first gray rule based on the first information list, the first gray control information, and the second gray 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 rule based on the second information list and the second gray control information.
Illustratively, the second device, based on the additional information, performs routing control on the data request at the time of gray scale distribution, includes: determining a second gray scale rule; and analyzing the additional information based on the second gray rule to obtain an additional information analysis result, and performing routing control on the data request during gray release based on the additional information analysis result.
Illustratively, the second device determining a second gray scale rule comprises: acquiring a first information list; and determining the second gray rule based on the first information list.
Illustratively, the second device determining the second gray rule based on the first information list comprises: acquiring gray release configuration information; determining third gray scale control information based on gray scale release configuration information; a second gray scale rule is determined based on the first information list and the third gray scale control information.
For example, the first device and the second device may acquire the same gradation release configuration information, respectively.
When the service instance in the second device is developed, the instance is registered with the registry.
The development of the Service instance may be based on Platform-as-a-Service (PAAS), and 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 be injected into an environment variable when the Service instance is started, and the Dubbo framework may obtain the tag injected into the environment variable and register the tag into a registry, where the registry generates a first information list according to the obtained environment variable and an identifier of each second device.
After receiving the new service instance registration, the registry issues Dubbo a latest first information list to each first device managed by the framework, so that the first device can acquire the latest first information list.
Correspondingly, the second device may also acquire the first information list from the registry according to the requirement of the second gray scale rule generation, and process the first information list based on the gray scale release configuration information, thereby determining the second gray scale rule.
Accordingly, the analysis of the additional information in the above description can be implemented by a method of attaching parameters to Dubbo. To facilitate the use of the parsing mechanism of Dubbo framework, the additional information may carry Dubbo attachment parameters. Thus, the tags of the target service instance in the Dubbo attachment parameters can be matched by the arithmetic function.
The matching operation functions supported at present are as follows: regular expression matching: judging Dubbo whether the specified parameters in the accessory match the regular expression; mathematical operation matching: judging Dubbo that the specified parameters in the accessory are matched according to the corresponding data operation; the IP address is matched with the province: performing IP address province for the appointed parameters in Dubbo accessories, and judging whether the parameters are matched; and (3) IP city-taking matching, namely carrying out IP address city-taking on the specified parameters in the Dubbo accessory, and judging whether the parameters are matched.
If the analysis result of the additional information shows that the label of the target service instance is not found in the second device, error information can be returned to the first device, or the current data request is redirected to the service instance with the public label for processing.
And if the analysis result of the additional information shows that the target service instance is found in the second equipment, the data request is routed to the target service instance so as to provide service for the data request.
That is, the information processing method provided by the embodiment of the application can respectively perform gray scale routing control on the data request sending end, namely the first equipment end, and the data request receiving end, namely the second equipment end when the data request is detected, thereby realizing gray scale routing control of the full link. Specifically, as shown in fig. 7: the full-link gray level routing control comprises three parts, namely routing control of a data request sending end, calling and transmitting a data request and routing control of a data request receiving end.
The routing control of the data request sending end can be used for representing gray level routing control of the data request sending end, and generally, gray level of the data request sending end is mainly realized through gateway equipment of the data request sending end, namely, the first equipment in the information processing method provided by the embodiment of the application can be gateway equipment.
The call chain may transmit the data request via a communication bus connecting the data request sender and the data request receiver devices.
The data request receiving end routing control may be gray level routing control at the second device, which is managed by the Dubbo framework and is deployed with a plurality of service instances, and the judgment of the label in the second device may be based on a relevant mechanism in the Dubbo framework.
In the full-link gray level routing control process shown in fig. 7, for the routing rule of any data request, the routing control may be performed at the 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 parsed at the data request sending end, the routing control of the data request is determined according to the first identifier of the data request receiving end device, such as the second device, obtained by parsing, and then the data request is transmitted by calling and connecting, and after the data request receiving end, such as the second device, obtains the data request, tag matching may be directly performed, so that the data request may be routed to the target service instance.
Exemplary, 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 tag for a service instance in at least one second device, register the service instance with the tag based on the management mechanism of Dubbo frames to a registry, and the registry may generate a first information list according to the service instances, where the first device and the second device may both obtain the first information list and issue configuration information based on the first information list and gray, and configure a routing rule, that is, the first device obtains a first gray rule, and the second device determines a second gray rule.
When a data request is sent, firstly, a first device analyzes a routing rule, and executes a routing rule matching operation based on the routing rule obtained by analysis, if matching is successful, namely, a corresponding first identifier is found for the data request, the data request is routed to a second device, 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 acquisition module 91, a first processing module 92, and a transmission 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 representing 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 identification 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 a data request to the second device based on the first identifier; the second device is used for executing route control when the data request is subjected to gray level release.
From the above, it can be seen that, since the data request sent by the first device is 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 the first device side in the gray scale release process are realized, and the efficient implementation of gray scale release is further realized.
In one implementation manner, the first device 9 provided by the 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; wherein the additional information represents identification information of the target service node; a target service node, which represents a target node for providing service for the data request in the second device;
And a sending module 93, configured to send the additional information to the second device based on the first identifier.
In one implementation manner, the first device 9 provided by the embodiment of the present application may further perform the following operations:
a first obtaining module 91, configured to obtain 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 during gray level release; a second list representing an identification list of at least one service node in the second device at the time of gray level distribution; at least one service node for providing service for the 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 one implementation manner, the first device 9 provided by the embodiment of the present application may further perform the following operations:
A first processing module 92 for determining gray scale release configuration information; determining first gray scale control information and second gray scale control information based on 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 an association relation between the type of any data request and a second equipment identifier in the first list when gray release is performed;
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 one implementation manner, the first device 9 provided by the embodiment of the present application may further perform the following operations:
A first obtaining module 91, configured to parse 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 the first list and a second list;
The first obtaining module 91 is further configured to obtain the first gray rule based on the second information list and the second gray control information.
The first acquiring module 91, the first processing module 92, and the transmitting module 93 may be at least one of ASIC, DSP, DSPD, PLD, FPGA, CPU, a controller, a microcontroller, and a microprocessor. The embodiment of the present application is not particularly limited.
Based on the foregoing embodiments, an embodiment of the present application provides a second device 10, as shown in fig. 10, where the second device 10 includes: the receiving module 1001 and the 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 comprises: an identification of a second device for representing processing the data request; the first identification is determined by the first device based on the first gray rule and the data request; the first gray rule is used for expressing that when the first equipment performs gray release on the data request, the rule of route control is executed;
A second processing module 1002, configured to perform routing control on the data request during gray level distribution.
In one implementation manner, the second device 10 provided by the embodiment of the present application may further perform the following operations:
The receiving module 1001 is further configured to receive additional information sent by the first device based on the first identifier; wherein the additional information represents identification information of the target service node; a target service node, representing a target node that serves the data request;
The second processing module 1002 is configured to perform routing control on the data request at the time of gray level distribution based on the additional information.
In one implementation manner, the second device 10 provided by 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; wherein the second gray scale rule represents a rule for determining a second identity; a second identity representing at least one service node identity; at least one service node representing a target node in the second device that serves any data request at the time of gray level publication;
the second processing module 1002 is further configured to parse the additional information based on the second gray rule to obtain an additional information parsing result, and perform route control on the data request during gray distribution based on the additional information parsing result.
In one implementation manner, the second device 10 provided by the 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 represents an identification list of at least one second device for processing any data request during gray level release; a second list representing at least one service node identification list at gray level distribution;
the second processing module 1002 is further configured to determine a second gray scale rule based on the first information list.
In one implementation manner, the second device 10 provided by the embodiment of the present application may further perform the following operations:
A second processing module 1002, configured to obtain gray release configuration information; determining third gray scale control information based on 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 during gray release;
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 ASIC, DSP, DSPD, PLD, FPGA, CPU, a controller, a microcontroller, and a microprocessor. The embodiment of the present application is not particularly limited.
As can be seen from the above, during gray scale distribution, after the first device performs the routing control when the gray scale distribution is performed on the data request, the second device performs the routing control again on the received data request from the first device, so that the function of performing the gray scale routing control on the primary data request on the first device side and the second device side simultaneously is realized, that is, the first device and the second device perform the full-link gray scale routing control on the same data request; and, since the route control operation performed by the first device based on the first gray rule is performed by the first identifier of the second device, the stability and the robustness of the full-link gray route control are realized.
Based on the same technical concept as the foregoing embodiment, the embodiment of the present application further provides a first device 11, referring to fig. 11, the first device 11 may include: a first memory 1101 and a first processor 1102; wherein,
A first memory 1101 configured to store a computer program and data;
The first processor 1102 is configured to execute a 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 device 11 is the same as the first device 9 described above.
Based on the same technical concept as the foregoing embodiments, referring to fig. 12, which illustrates a second device 12 provided by an embodiment of the present application, may include: a second memory 1201 and a second processor 1202; wherein,
A second memory 1201 configured to store computer programs and data;
the second processor 1202 is configured to execute a 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 as the second device 10 described above.
In practical applications, the first memory 1101 and the second memory 1201 may be volatile memory (such as random access memory (Random Access Memory, RAM); or a nonvolatile Memory (non-volatile Memory), such as a Read Only Memory (ROM), a flash Memory (flash Memory), a hard disk (HARD DISK DRIVE, HDD) or a Solid state disk (Solid-state disk-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 ASIC, DSP, DSPD, PLD, FPGA, CPU, a controller, a microcontroller, and a microprocessor. It will be appreciated that, for different augmented reality cloud platforms, the electronic device for implementing the above-described processor functions may also be other, and embodiments of the present application are not specifically limited.
Based on the foregoing embodiments, an embodiment of the present application provides an information processing system 13, as shown in fig. 13, the information processing system 13 including: 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 in the foregoing embodiment.
In practical application, a request chain corresponding to a data request is often longer, wherein a plurality of systems or a plurality of processes may be involved, and even so, in the gray level publishing process, the routing condition of a data request is often consistent, if a separate routing configuration principle is set for each service instance in a longer request chain, it is obviously unnecessary and very troublesome and complex, and the full-link gray level routing control scheme provided by the embodiment of the application can provide stable routing control at the data sending end, namely the first device, and the data receiving end, namely the second device, for each data request, thereby improving the efficiency of routing control.
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 a device mounted with the chip 14 performs steps of an information processing method of the first device; or for calling and running a computer program from the memory 1402 so that the device on which the chip 14 is mounted performs the steps of the information processing method of the second device.
Wherein the memory 1402 may be a separate device from the processor 1401 or may be integrated in the processor 1401.
In some embodiments, the chip 14 may also include an input interface 1403. Wherein the processor 1401 may control the input interface 1403 to communicate with other devices or chips, in particular may obtain information or data sent by the other devices or chips.
In some embodiments, the chip 14 may also include an output interface 1404. Wherein the processor 1401 may control the output interface 1404 to communicate with other devices or chips, in particular, may output information or data to 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 flows implemented by the first device and the second device in each method in the embodiments of the present application, which are not described herein for brevity.
Based on the foregoing embodiments, there is also provided a computer program product including a computer storage medium storing computer program code comprising instructions executable by at least one processor to implement the steps of the information processing method applied to the first device as described in the foregoing embodiments; or when executed by the at least one processor, to implement the steps of the information processing method applied to the first device described in the previous embodiment.
In addition, each functional module in the present embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional modules.
The integrated units, if implemented in the form of software functional modules, may be stored in a computer-readable storage medium, if not sold or used as separate products, and based on such understanding, the technical solution of the present embodiment may be embodied essentially or partly in the form of a software product, which is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) or processor to perform all or part of the steps of the method described in the present embodiment. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
Specifically, the computer program instructions corresponding to one information processing method in the present embodiment may be stored on a storage medium such as an optical disc, a hard disk, or a usb disk, and when the computer program instructions corresponding to one 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, a function or a module included in an apparatus provided by the embodiments of the present application may be used to perform a method described in the foregoing method embodiments, and a specific implementation of the function or module may refer to the description of the foregoing method embodiments, which is not repeated herein for brevity
The foregoing description of various embodiments is intended to highlight differences between the various embodiments, which may be the same or similar to each other by reference, and is not repeated herein for the sake of brevity.
The methods disclosed in the method embodiments provided by the application can be arbitrarily combined under the condition of no conflict to obtain a new method embodiment.
The features disclosed in the embodiments of the products provided by the application can be combined arbitrarily under the condition of no conflict to obtain new embodiments of the products.
The features disclosed in the embodiments of the method or the device provided by the application can be arbitrarily combined under the condition of no conflict to obtain a new embodiment of the method or the device.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.
Industrial applicability
The embodiment of the application provides an information processing method, information processing equipment, information processing media, information processing chips and information processing programs. The information processing method applied to the first device comprises the following steps: when the data request is detected, a first gray rule is acquired; the first gray rule is used for representing a rule for executing routing control when gray release is carried out on the data request; determining a first identity 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; transmitting the data request to a second device based on the first identification; the second device is configured to perform routing control when performing gray level distribution on the data request.

Claims (17)

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 representing a rule for executing routing control when gray release is carried out on the data request;
Determining a first identity 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;
transmitting the data request to a second device based on the first identification; the second device is configured to perform routing control when performing gray level distribution on the data request;
wherein, the acquiring the first gray rule includes:
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 during gray level release; the second list represents an identification list of at least one service node in the second device during gray level release; the at least one service node is used for providing service for the data request sent by any one of the first devices;
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 the second list in the first information list needs to be analyzed or not; the second gray level control information is used for establishing an association relation between the type of any data request and a second equipment identifier in the first list when gray level release is performed;
And acquiring the first gray rule based on the first information list, the first gray control information and the second gray control information.
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 the target service node; the target service node represents a target node in the second device for providing service for the data request;
and transmitting the additional information to the second device based on the first identification.
3. The method of claim 1, wherein the obtaining the first gray rule based on the first information list, the first gray control information, and the second gray 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 rule based on the second information list and the second gray control information.
4. An information processing method applied to a second device, the method comprising:
Receiving a data request sent by first equipment based on a 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 a first gray scale rule and the data request; the first gray rule is used for expressing that when the first device performs gray release on the data request, the rule of route control is executed; the first gray rule is obtained from a first information list, first gray control information and second gray control information; the first gray scale control information and the second gray scale control information are obtained by gray scale release configuration information; 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 during gray level release; the second list represents an identification list of at least one service node in the second device during gray level release; the at least one service node is used for providing service for the data request sent by any one of the first devices; the first gray control information is used for determining whether the second list in the first information list needs to be analyzed or not; the second gray level control information is used for establishing an association relation between the type of any data request and a second equipment identifier in the first list when gray level release is performed;
And carrying out route control on the data request during gray level release.
5. The method of claim 4, wherein the routing the data request at gray scale publication comprises:
Receiving additional information sent by the first equipment based on the first identifier; wherein the additional information represents identification information of the target service node; the target service node represents a target node for providing service for the data request;
and based on the additional information, carrying out routing control on the data request during gray level release.
6. The method of claim 5, wherein said routing the data request at gray scale distribution 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 identity; the second identifier represents at least one service node identifier; the at least one service node represents a target node in the second device for providing service for any data request during gray level release;
and analyzing the additional information based on the second gray rule to obtain an additional information analysis result, and performing routing control on the data request during gray release based on the additional information analysis result.
7. The method of claim 6, 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 represents an identification list of at least one second device for processing any data request during gray level release; the second list represents the at least one service node identification list during gray level release;
the second gray scale rule is determined based on the first information list.
8. The method of claim 7, wherein the determining the second gray 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 the service node identifier corresponding to any data request and at least one service node identifier in the second list when gray release is performed;
the second gray scale rule is determined based on the first information list and the third gray scale control information.
9. 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 representing a rule for executing routing control when gray release is carried out on the data request;
The first processing module is used for determining a first identification based on the first gray 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 performing gray level distribution on the data request;
The first acquisition module is specifically configured to acquire 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 during gray level release; the second list represents an identification list of at least one service node in the second device during gray level release; the at least one service node is used for providing service for the data request sent by any one of the first devices; 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 the second list in the first information list needs to be analyzed or not; the second gray level control information is used for establishing an association relation between the type of any data request and a second equipment identifier in the first list when gray level release is performed; and acquiring the first gray rule based on the first information list, the first gray control information and the second gray control information.
10. A second device comprising a receiving module and a second processing module,
The receiving module is used for receiving a data request sent by the first equipment based on the first identifier; the first identifier comprises: an identification of a second device for representing processing the data request; the first identification is determined by the first device based on a first gray scale rule and the data request; the first gray rule is used for expressing that when the first device performs gray release on the data request, the rule of route control is executed; the first gray rule is obtained from a first information list, first gray control information and second gray control information; the first gray scale control information and the second gray scale control information are obtained by gray scale release configuration information; 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 during gray level release; the second list represents an identification list of at least one service node in the second device during gray level release; the at least one service node is used for providing service for the data request sent by any one of the first devices; the first gray control information is used for determining whether the second list in the first information list needs to be analyzed or not; the second gray level control information is used for establishing an association relation between the type of any data request and a second equipment identifier in the first list when gray level release is performed;
and the second processing module is used for carrying out route control on the data request when the gray level is released.
11. A first device comprising a first processor and a first memory configured to store a computer program capable of running on the first processor; wherein,
The first processor being configured to execute the information processing method of any one of claims 1-3 when the computer program is run.
12. A second device comprising a second processor and a second memory configured to store a computer program capable of running on the second processor; wherein,
The second processor is configured to execute the information processing method of any one of claims 4-8 when the computer program is run.
13. An information handling system comprising the first device of claim 11, the second device of claim 12, and a communication bus for enabling data transfer between the first device and the second device.
14. A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the information processing method of any of claims 1-3.
15. A computer storage medium having stored thereon a computer program which, when executed by a processor, implements the information processing method of any of claims 4-8.
16. 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 3;
Or 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 4 to 8.
17. 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 3;
Or which when executed by the at least one processor, implements the steps of the information processing method of any of claims 4 to 8.
CN202080100504.4A 2020-06-04 2020-06-04 Information processing method, device, system, medium, chip and program product Active CN115516840B (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 (2)

Publication Number Publication Date
CN115516840A CN115516840A (en) 2022-12-23
CN115516840B true CN115516840B (en) 2024-10-08

Family

ID=78831587

Family Applications (1)

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

Country Status (2)

Country Link
CN (1) CN115516840B (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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791344A (en) * 2014-12-22 2016-07-20 华为软件技术有限公司 Grayscale release service processing method, system, load balancer and service bus device

Family Cites Families (11)

* 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
CN107733957B (en) * 2016-08-12 2020-10-16 北京融聚世界网络科技有限公司 Distributed service configuration system and version number distribution method
CN107770212A (en) * 2016-08-17 2018-03-06 中兴通讯股份有限公司 Rich communication suite distribution platform, method for updating edition and system, mobile terminal
CN107104970A (en) * 2017-04-27 2017-08-29 努比亚技术有限公司 A kind of regular and synchronized processing method, system, rule server and gray scale server
CN108376118B (en) * 2018-02-09 2021-07-13 腾讯科技(深圳)有限公司 Service distribution system, method, device and storage medium
CN108595207B (en) * 2018-03-23 2022-02-22 深圳乐信软件技术有限公司 Gray scale publishing method, rule engine, system, terminal and storage medium
CN109241734A (en) * 2018-08-10 2019-01-18 航天信息股份有限公司 A kind of securing software operational efficiency optimization method and system
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
CN110532008A (en) * 2019-08-29 2019-12-03 深圳前海环融联易信息科技服务有限公司 A kind of product gray scale dissemination method, device, computer equipment and storage medium
CN111181858A (en) * 2019-12-24 2020-05-19 浙江大华技术股份有限公司 Method, system, computer device and storage medium for gray scale distribution

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791344A (en) * 2014-12-22 2016-07-20 华为软件技术有限公司 Grayscale release service processing method, system, load balancer and service bus device

Also Published As

Publication number Publication date
CN115516840A (en) 2022-12-23
WO2021243666A1 (en) 2021-12-09

Similar Documents

Publication Publication Date Title
CN115516840B (en) Information processing method, device, system, medium, chip and program product
CN112003703B (en) Method and device for transmitting authenticatable message across chains
US10871953B2 (en) Application update method and apparatus
CN110311983B (en) Service request processing method, device and system, electronic equipment and storage medium
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN110781013B (en) Gray scale publishing method, device, equipment and medium
CN109388417B (en) Communication protocol updating method, system and terminal equipment
CN110377440B (en) Information processing method and device
CN110278161B (en) Message distribution method, device and system based on user mode protocol stack
CN111857733B (en) Construction method, device and system of service environment and readable storage medium
CN111082953B (en) Configuration method, device and related equipment
CN113259479A (en) Data processing method and equipment
CN111638891A (en) Equipment upgrading method and device, terminal equipment and storage medium
CN111988418B (en) Data processing method, device, equipment and computer readable storage medium
US8990286B2 (en) Integration of web services with a clustered actor based model
CN111857772A (en) Method and equipment for remote transmission and dynamic loading of terminal edge application program
CN114390044A (en) File uploading method, system, device and storage medium
CN106446138B (en) Data packet storage method and device
CN110930253B (en) Method and device for generating main key inside intelligent contract, computer equipment and storage medium
CN105049463A (en) Distributed database, method of sharing data, and apparatus for a distributed database
CN115514771A (en) Data transmission method and device, electronic equipment and computer readable storage medium
US11546405B2 (en) Methods for exposing mainframe data as a web service and devices thereof
CN112766486A (en) Searching method of neural network structure, terminal, server and readable storage medium
CA3176864A1 (en) General-purpose processing method and apparatus for data exchange
CN112612514B (en) Program development method and device, storage medium and electronic device

Legal Events

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