WO2022267677A1 - Version updating method, apparatus, and device based on entire site grayscale, and storage medium - Google Patents

Version updating method, apparatus, and device based on entire site grayscale, and storage medium Download PDF

Info

Publication number
WO2022267677A1
WO2022267677A1 PCT/CN2022/088889 CN2022088889W WO2022267677A1 WO 2022267677 A1 WO2022267677 A1 WO 2022267677A1 CN 2022088889 W CN2022088889 W CN 2022088889W WO 2022267677 A1 WO2022267677 A1 WO 2022267677A1
Authority
WO
WIPO (PCT)
Prior art keywords
grayscale
routing
information
node
version
Prior art date
Application number
PCT/CN2022/088889
Other languages
French (fr)
Chinese (zh)
Inventor
邱炜
Original Assignee
康键信息技术(深圳)有限公司
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 康键信息技术(深圳)有限公司 filed Critical 康键信息技术(深圳)有限公司
Publication of WO2022267677A1 publication Critical patent/WO2022267677A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/14Routing performance; Theoretical aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Definitions

  • the present application relates to the field of cloud transmission, and in particular to a version update method, device, equipment and storage medium based on the gray scale of the whole station.
  • the present application provides a version update method, device, equipment and storage medium based on the gray scale of the whole station, which solves the problem that the version update cannot be performed quickly and accurately.
  • the first aspect of the present application provides a version update method based on the gray scale of the whole site, including:
  • the grayscale application node Receives the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway, and the system update request includes the request entry gateway, the request entry method, and the grayscale application node’s User ID number and node traffic information of the grayscale application node;
  • the request entry gateway is a grayscale gateway, then compare and analyze the request entry method and the preset priority request method to obtain the analysis result;
  • the grayscale application node performs a route version service call.
  • the second aspect of the present application provides a version update device based on the gray scale of the whole station, including a memory, a processor, and a computer-readable instruction program stored on the memory and operable on the processor.
  • a version update device based on the gray scale of the whole station, including a memory, a processor, and a computer-readable instruction program stored on the memory and operable on the processor.
  • the grayscale application node Receives the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway, and the system update request includes the request entry gateway, the request entry method, and the grayscale application node’s User ID number and node traffic information of the grayscale application node;
  • the request entry gateway is a grayscale gateway, then compare and analyze the request entry method and the preset priority request method to obtain the analysis result;
  • the grayscale application node performs a route version service call.
  • the third aspect of the present application provides a computer-readable storage medium, where computer program instructions are stored in the computer-readable storage medium, and when the computer program instructions are run on a computer, the computer is made to perform the following steps:
  • the grayscale application node Receives the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway, and the system update request includes the request entry gateway, the request entry method, and the grayscale application node’s User ID number and node traffic information of the grayscale application node;
  • the request entry gateway is a grayscale gateway, then compare and analyze the request entry method and the preset priority request method to obtain the analysis result;
  • the grayscale application node performs a route version service call.
  • the fourth aspect of the present application provides a version update device based on the grayscale of the whole site, including:
  • a judging module configured to receive a system update request sent by a grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway.
  • the system update request includes a request entry gateway, a request entry method, the The user identification number of the grayscale application node and the node traffic information of the grayscale application node;
  • a comparative analysis module configured to compare and analyze the request entry method and the preset priority request method to obtain the analysis result if the request entry gateway is a grayscale gateway;
  • the first acquisition module is used to invoke the preset gray-scale routing system according to the analysis result, and obtain the initial gray-scale cluster information and target node gray-scale calculation rules from the preset gray-scale cluster system based on the user identification number ;
  • An operation module configured to perform version calculation based on the node traffic information, the initial gray-scale cluster information, and the target node gray-scale calculation rules through the gray-scale routing system, to obtain a node routing version
  • the second obtaining module is used to obtain target gray-scale cluster information corresponding to the node routing version, and obtain target routing rule information from a preset routing rule system according to the target gray-scale cluster information;
  • the invoking module is configured to, through the preset routing rule system, call the service of the routing version of the grayscale application node based on the target routing rule information and the node routing version.
  • the system update request sent by the grayscale application node is received, and it is judged whether the request entry gateway in the system update request is a grayscale gateway.
  • the system update request includes the request entry gateway, the request entry method, and the grayscale application The user ID number of the node and the node traffic information of the grayscale application node; if the request entry gateway is a grayscale gateway, compare and analyze the request entry method with the preset priority request method to obtain the analysis result; call the preset according to the analysis result
  • the grayscale routing system obtains the initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system; through the grayscale routing system, based on node traffic information and initial grayscale cluster information Perform version calculation with the target node grayscale calculation rules to obtain the node routing version; obtain the target grayscale cluster information corresponding to the node routing version, and obtain the target routing rule information from the preset routing rule system according to the target grayscale cluster information; Through the preset routing rule system,
  • the stability of the overall system corresponding to the updated version is guaranteed through the form of gray scale release, avoiding the compatibility of old and new versions and the risk of system downtime, and can effectively realize the version update of the short, flat and fast characteristics of the business side, and can effectively
  • precise data analysis and calculations are performed on node routing versions, which improves the speed and accuracy of version updates, thus solving the problem that version updates cannot be performed quickly and accurately.
  • Fig. 1 is a schematic diagram of an embodiment of a version update method based on the whole station gray scale in the embodiment of the present application;
  • Fig. 2 is a schematic diagram of another embodiment of the version update method based on the whole station grayscale in the embodiment of the present application;
  • Fig. 3 is a schematic diagram of an embodiment of a version update device based on the whole station grayscale in the embodiment of the present application;
  • Fig. 4 is a schematic diagram of another embodiment of the version update device based on the whole station grayscale in the embodiment of the present application;
  • Fig. 5 is a schematic diagram of an embodiment of a version update device based on the whole station grayscale in the embodiment of the present application.
  • the embodiment of the present application provides a version update method, device, device and storage medium based on the gray scale of the whole station, which solves the problem that the version update cannot be performed quickly and accurately.
  • An embodiment of the version update method based on the grayscale of the whole station in the embodiment of the present application includes:
  • the system update request includes the request entry gateway, the request entry method, and the user ID number of the grayscale application node and the node traffic information of grayscale application nodes.
  • the subject of execution of the present application may be a version update device based on the gray scale of the whole station, and may also be a terminal or a server, which is not specifically limited here.
  • the embodiment of the present application is described by taking the server as an execution subject as an example.
  • the server corresponding to the grayscale system is used as an example to illustrate.
  • the grayscale system includes the grayscale routing system, the grayscale cluster system and the routing rule system, and the grayscale routing system, the grayscale cluster system and the routing rule system The connection relationship between them is a serial relationship.
  • the grayscale application node is a node that has been grayscale marked in advance, and one grayscale application node corresponds to one grayscale client, and the grayscale client may be a mobile terminal.
  • Each grayscale application node reports its own reported information to the preset grayscale cluster system, and the server performs grayscale policy configuration, grayscale grouping and grayscale Grayscale cluster deployment to obtain initial configuration information, wherein the grayscale strategy in the grayscale strategy configuration can include application grayscale strategy, function grayscale strategy and display location grayscale strategy; grayscale calculation rules for each grayscale application node Perform configuration to obtain the gray scale calculation rules of the target node, wherein the reported information includes the user traffic identification information (ie, node traffic information) and user identification number of the gray scale client corresponding to the gray scale application node, and the user traffic identification information is dynamic It is variable and determined by the business; the server determines the initial configuration information and the gray calculation rules of the target node as the target configuration information through the grayscale cluster system, and sends the target configuration information to each grayscale application node.
  • the reported information includes the user traffic identification information (ie, node traffic information) and user identification number of the gray scale client corresponding to the gray scale application node, and the user traffic identification information is dynamic It is variable
  • the gray system includes the gray gateway and the formal environment gateway.
  • the grayscale application node corresponding to the grayscale client sends a system update request through the preset grayscale route.
  • the server receives the system update request through the preset grayscale route, it analyzes the system update request and obtains the parsed information, the analysis information includes the request entry gateway, the request entry method, and the user ID number of the preset grayscale application node and the node flow information of the grayscale application node; the server judges whether the request entry gateway in the analysis information is a grayscale gateway , if yes, compare and analyze the request entry method with the preset priority request method, and obtain the analysis result; if not, then judge whether the request entry gateway is a formal environment gateway, and if so, maintain the current routing rules unchanged, that is, do not modify the current routing rules.
  • the routing rule is updated, and the routing (updating) based on the routing version is performed through the current routing rule, and if not, the execution is stopped.
  • the request entry gateway is a grayscale gateway, compare and analyze the request entry method and the preset priority request method to obtain the analysis result.
  • the request entry method is the request entry method, for example: the request entry method is the entry method from the grayscale domain name. If the request entry gateway is a grayscale gateway, the server will judge whether the request entry method of the system update request is a preset priority request method, and the priority request method is a grayscale request entered from a grayscale domain name (or from a grayscale tag) method or the interface request method of the call chain (that is, the call chain interface request method), if yes, return the grayscale request method or call chain request method, if not, return the field value indicating No, and set the grayscale request method or call chain request method A request mode or a field value indicating no is determined as an analysis result.
  • the execution process of the server judging whether the request entry method of the system update request is the preset priority request method may be: the server acquires the first key character of the request entry method of the system update request, and the second key character of the preset priority request method , to determine whether the first key character is the same as the second key character.
  • the server calls the preset non-grayscale execution system, and through the non-grayscale execution system, based on the user identification number and node traffic information in the system update request Calculate to obtain the version to be updated, and update the current version of the grayscale application node according to the version to be updated.
  • the server analyzes that the grayscale application node routing information exists in the preset grayscale routing system, call the preset grayscale routing system to generate a user ID number
  • the hash value is used to retrieve the gray-scale cluster information and node gray-scale calculation rules in the preset gray-scale cluster system, so as to obtain the initial gray-scale cluster information and target node gray-scale calculation rules.
  • the target node grayscale calculation rule is used to calculate the routing version of the grayscale application node to be updated.
  • the preset grayscale cluster system includes grayscale clusters and default clusters, the grayscale cluster information corresponding to the grayscale cluster, and the default cluster information corresponding to the default cluster.
  • the initial grayscale cluster information cannot be obtained from the preset grayscale cluster system, that is When the corresponding grayscale cluster cannot be matched, the microservices of the default cluster are addressed according to the default cluster information.
  • the server obtains the node grayscale configuration information in the system update request through the grayscale routing system, and performs version calculation based on node traffic information and initial grayscale cluster information to obtain the routing version to be updated, based on the target node grayscale calculation rules and node Grayscale configuration information, calculate the grayscale percentage of version update, perform version calculation based on the grayscale percentage of version update and the route version to be updated, and obtain the node routing version corresponding to the grayscale application node.
  • the server obtains the total traffic information corresponding to the initial grayscale cluster information, and performs percentage calculation on the total traffic information and node traffic information through the grayscale routing system to obtain the grayscale percentage, and loads the initial grayscale based on the user identification number
  • the version configuration data corresponding to the cluster information and obtain the node routing version according to the gray percentage and the version configuration data.
  • the grayscale routing system updates the grouping of the preset grayscale clusters according to the node routing version, and updates the grayscale cluster information accordingly.
  • the server retrieves the updated gray-scale cluster information based on the node routing version through the gray-scale routing system to obtain the target gray-scale cluster information, and retrieves the preset routing rule system through the target gray-scale cluster information to obtain the corresponding target Routing rule information.
  • the grayscale cluster system is used to query and manage the management console, such as: which grayscale application nodes form a certain grayscale version of the grayscale cluster, and the route that the grayscale cluster needs to push to the grayscale application node Control of rule information.
  • the preset routing rule system is used for adding, deleting, modifying and querying routing rules, real-time distribution, historical modification record query, effective testing, application-based information management, and AND/OR calculation solution display.
  • the server obtains application editing information or default routing rule editing information in advance, edits and updates the rule information in the preset routing rule system through the application editing information or default routing rule editing information, obtains the current rule information, and copies the preset temporary version Sf version (a temporary version before the official release of the rule, used for review, confirmation and testing) to the current rule information to trigger the distribution of routing rules.
  • the server obtains the target routing rule information and node routing version, and obtains the grayscale application
  • the client application rule version corresponding to the node is compared
  • the node routing version is compared with the client application rule version, and the service call of the routing version is made to the grayscale application node, and the routing delivery status of the target routing rule information is updated.
  • the stability of the overall system corresponding to the updated version is guaranteed through the form of gray scale release, avoiding the compatibility of old and new versions and the risk of system downtime, and can effectively realize the version update of the short, flat and fast characteristics of the business side, and can effectively
  • precise data analysis and calculations are performed on node routing versions, which improves the speed and accuracy of version updates, thus solving the problem that version updates cannot be performed quickly and accurately.
  • FIG. 2 another embodiment of the version update method based on the whole station grayscale in the embodiment of the present application includes:
  • the 201 Receive the system update request sent by the grayscale application node, and determine whether the request entry gateway in the system update request is a grayscale gateway.
  • the system update request includes the request entry gateway, the request entry method, and the user ID number of the grayscale application node and the node traffic information of grayscale application nodes.
  • the execution process of this step 201 is similar to the execution process of the above step 101, and will not be repeated here.
  • the server obtains the grayscale registration information of grayscale application nodes, and according to the grayscale registration information, performs grayscale grouping of grayscale application nodes to obtain grouped grayscale application nodes.
  • the registration information includes user identification numbers and grayscale configuration information; obtain the target grayscale cluster environment corresponding to the grouped grayscale application nodes, and deploy the grouped grayscale application nodes to the target grayscale cluster of the target grayscale cluster in the preset grayscale cluster system environment.
  • the server When the server detects that the status of the grayscale service application is started, it obtains the application data of the grayscale service application, and judges whether there is configured grayscale label information in the application data, and if so, sends an instruction to the corresponding grayscale application node grayscale client, so that the grayscale client corresponding to the grayscale application node starts the corresponding application in the grayscale client based on this instruction, obtains the grayscale registration information input by the user, and sends the grayscale registration information to To the server, when the server receives the grayscale registration information of the grayscale application node, group the user identification numbers in the grayscale registration information into the corresponding grayscale intervals, and obtain the corresponding grayscale version according to the grayscale configuration information , group the grayscale application nodes into the target grayscale cluster corresponding to the grayscale version, obtain the grouped grayscale application nodes, and obtain the target grayscale cluster environment corresponding to the target grayscale cluster in the preset grayscale cluster system, And deploy the grouped grayscale application nodes to the target grayscale cluster environment,
  • the request entry gateway is a grayscale gateway, compare and analyze the request entry method and the preset priority request method to obtain an analysis result.
  • the server judges whether the request entry method is the grayscale request method or the call link interface request method in the preset priority request method; if the request entry method is the preset priority selection request method
  • the grayscale request method or the call chain interface request method returns the analysis result, and the analysis result is used to indicate the grayscale request method or the call chain request method.
  • the call link interface request mode is used to indicate that the routing status of the last call link node is routed to the preset non-gray service cluster, and the system update request is sent by the current call link node.
  • the preset priority request methods include the grayscale request method and the call link interface request method.
  • an execution process corresponding to the judgment order of the grayscale request method or the call link interface request method can be: if the request enters the gateway as a grayscale gateway, then The server judges whether the request entry method is the grayscale request method in the preset priority request method, and if so, returns the grayscale request method; if not, then judges whether the request entry method is the call link interface request method, and if so, returns the call link Request method, and determine the grayscale request method and call chain request method as the analysis results, if not, stop the execution;
  • Another execution process corresponding to the judging order of the grayscale request method or the call link interface request method can be: if the request enters the gateway as a grayscale gateway, the server judges whether the request entry method is the call link interface request in the preset priority request method method, if yes, return the call chain request method; if not, then judge whether the request entry method is the grayscale request method, if so, return the grayscale request method, and determine the call chain request method and the grayscale request method as the analysis result , if not, stop execution.
  • the version data analysis of multiple gateways can be realized, thereby improving the efficiency and accuracy of version update.
  • the server analyzes the routing information of the grayscale application node to obtain the routing result; according to the routing result, the preset grayscale routing system is invoked to determine the user ID number Whether it exists in the preset grayscale whitelist; if the user ID number exists in the preset grayscale whitelist, then use the user ID number to retrieve the grayscale cluster information in the preset grayscale cluster system to obtain the initial grayscale degree cluster information; create a rule information query language for user ID numbers, and retrieve the gray-scale calculation rule information in the preset gray-scale cluster system through the rule information query language to obtain the target node gray-scale calculation rules.
  • the server judges whether there is routing information corresponding to the grayscale application node in the preset grayscale routing system, and obtains the routing result.
  • the routing result includes "yes” or “ “No” fields and field values, grayscale routing results, and routing selection results.
  • the server calls the preset grayscale routing system to determine whether the user identification number is in the preset grayscale whitelist, If yes, return the result of yes, if not, return the result of no, and determine the result of yes or no as the target result; if the target result is yes, the server obtains the node grayscale configuration information of the grayscale application node , according to the user ID number and node gray configuration information, retrieve the gray cluster information in the preset gray cluster system to obtain the corresponding initial gray cluster information; if the target result is no, call the preset non The grayscale execution system, through the non-grayscale execution system, calculates based on the user ID number and node flow information in the system update request, obtains the version to be updated, and applies the current version of the grayscale application node according to the version to be updated Update; if the routing result is the field and field value indicating "No", stop execution; when the analysis result is not the grayscale request
  • the server creates a structured query language for the first query of the user identification number, and creates a structured query language for the second query of grayscale calculation rule information, and splices the first query structured query language and the second query structured query language , to obtain the rule information query language, through which the gray-scale calculation rule information in the preset gray-scale cluster system is retrieved, and the target node gray-scale calculation rule is obtained.
  • the server obtains the initial thread storage class of the grayscale application node, and judges whether there is grayscale routing information in the initial thread storage class; if the initial thread storage class If there is gray-scale routing information, return the gray-scale routing result; if there is no gray-scale routing information in the initial thread storage class, call the preset gray-scale interface through the preset gray-scale routing node to perform traffic on the initial thread storage class
  • the identification information is added to obtain the target thread storage class; through the gray interface, the gray-scale routing selection is performed based on the target thread storage class to obtain the routing selection result; the gray-scale routing result and the routing selection result are determined as the routing result.
  • the server obtains the initial thread storage class threadLocal of the grayscale application node, and judges whether there is grayscale routing information in the initial thread storage class threadLocal, and if so, returns grayscale
  • the gray-scale routing result includes "yes" and the existing gray-scale routing information; if not, the server performs traffic identification on the gray-scale application node, obtains the traffic identification information, and uses the preset gray-scale routing node to call
  • the preset grayscale interface shunt api sets the traffic identification information into the initial thread storage class threadLocal to obtain the target thread storage class, and through the grayscale interface shunt api, based on the target thread storage class, it is judged whether there is a grayscale in the preset database.
  • the preset priority the data format of the priority field representing the priority is an integer, and the smaller the value of the priority field, the higher the priority.
  • the server obtains the total flow information corresponding to the initial grayscale cluster information, and calculates the grayscale percentage based on the node grayscale calculation rules, node flow information, and total flow information through the grayscale routing system; the acquisition corresponds to the initial grayscale cluster information version configuration data, and perform version calculation based on the gray percentage and version configuration data to obtain the node routing version.
  • the server obtains the total flow information corresponding to the initial grayscale cluster information, and performs modulo calculation on the node flow information and the total flow information through the grayscale routing system based on the node grayscale calculation rules to obtain the grayscale percentage; judge the user identity Whether the number exists in the preset grayscale interval, if so, load the version configuration data corresponding to the initial grayscale cluster information, if not, do not execute; obtain the node grayscale configuration information in the system update request, according to the grayscale percentage , version configuration data and node grayscale configuration information, and perform version statistical analysis on the official release version of the preset rules, so as to obtain the node routing version.
  • the execution process of the steps 205-206 is similar to the execution process of the above-mentioned steps 105-106, and will not be repeated here.
  • the server performs routing and grayscale identification settings on the grayscale cluster corresponding to the target grayscale cluster information, and obtains the target directory information of the preset grayscale cluster system.
  • the target directory information includes grayscale stream directory information and cluster directory information; monitor the target directory information, and when the target directory information is monitored, update the gray-scale cluster information in the preset gray-scale cluster system through the target gray-scale cluster information, and generate a cluster information update Information; obtain application name change information based on the cluster information update information, and update the service cluster and service information corresponding to the target grayscale cluster information through the application name change information.
  • the server obtains the grayscale service node corresponding to the node routing version through the node routing version, routes the grayscale cluster corresponding to the target grayscale cluster information through the grayscale service node, obtains the routing information, and uses the open source distributed service framework dubbo to route the
  • the information is transparently transmitted to the next node of the grayscale application node, and the preset grayscale interface is called to set the grayscale identification of the grayscale cluster of the route.
  • the server obtains the target directory information of the preset grayscale cluster system (grayscale stream shunt directory information and cluster cluster directory information), and monitors the target directory information through the preset monitoring and change notification mechanism.
  • the target directory information is monitored
  • the grayscale cluster information in the preset grayscale cluster system is updated, and cluster information update information is generated to provide subsequent historical queries.
  • the application name change information includes (grayscale flow shunt application name change information and cluster cluster application name change information), which are compatible with the target
  • the service cluster and service information corresponding to the gray cluster information are updated, and service update information is generated to provide subsequent historical queries.
  • the monitoring and change notification mechanism can be an event listener zookeeper watcher mechanism.
  • the preset grayscale cluster system can support client node registration discovery, data writing function, node data monitoring function and Parent node monitoring function, such as: the server accepts client data through the temporary node registered by the preset grayscale client; similarly, the client receives the data pushed by the server by listening to the permanent node registered by the server .
  • the information obtained from the management console of the preset grayscale cluster system is as follows: information of each grayscale node; each grayscale node managed by the application as a dimension; node status display (node status includes online status and offline status): (online, offline), offline display and offline duration; for machines that are offline for more than a certain period of time, information deleted from the service cluster; grayscale cluster display information and status change history information; grayscale information composed of applications corresponding to a certain grayscale version Degree cluster identification information; grayscale service information of an application.
  • the grayscale cluster corresponding to the target grayscale cluster information is set for routing and grayscale identification, and the target grayscale cluster information is monitored and updated, which can be obtained in time without affecting system stability.
  • Feedback information from users on the update of the routing version is conducive to timely improvement of the product functions of the routing version and the timely improvement of the product quality of the routing version. It is further conducive to the acceleration of the R&D process, the version update of the short-term, flat and fast features of the business side, and the avoidance of version release risks to a certain extent.
  • the stability of the overall system corresponding to the updated version is guaranteed not only through the form of gray scale release, but also avoids the risk of compatibility between the old and new versions and system downtime, and can effectively realize the version update of the short, flat and fast characteristics of the business side, and can Effectively perform accurate data analysis and calculation on the node routing version according to the system update request of the grayscale application node, which improves the speed and accuracy of the version update, thereby solving the problem that the version cannot be updated quickly and accurately, and can also On the basis of not affecting the stability of the system, timely acquisition of user feedback information on the update of the routing version is conducive to timely improvement of the product functions of the routing version, as well as timely improvement of the product quality of the routing version, and is conducive to rapid trial and error of new services, and further It is conducive to the acceleration of the research and development process, the version update of the short-term, flat and fast features of the business side, and the avoidance of version release risks to a certain extent.
  • An embodiment of the grayscale version update device includes:
  • the judging module 301 is used to receive the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway.
  • the system update request includes the request entry gateway, the request entry method, and the grayscale application node. User ID number and node traffic information of Grayscale application nodes;
  • the comparison and analysis module 302 is used to compare and analyze the request entry method and the preset priority request method if the request entry gateway is a grayscale gateway, and obtain the analysis result;
  • the first acquisition module 303 is used to call the preset grayscale routing system according to the analysis result, and obtain initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user identification number;
  • the calculation module 304 is used to perform version calculation based on the node traffic information, the initial gray cluster information and the target node gray calculation rules through the gray routing system to obtain the node routing version;
  • the second acquiring module 305 is configured to acquire target grayscale cluster information corresponding to the node routing version, and acquire target routing rule information from the preset routing rule system according to the target grayscale cluster information;
  • the invoking module 306 is configured to call the service of the routing version of the grayscale application node based on the target routing rule information and the node routing version through the preset routing rule system.
  • each module in the version update device based on the whole station gray scale corresponds to each step in the above embodiment of the version update method based on the whole station gray scale, and its functions and implementation processes will not be repeated here.
  • the stability of the overall system corresponding to the updated version is guaranteed through the form of gray scale release, avoiding the compatibility of old and new versions and the risk of system downtime, and can effectively realize the version update of the short, flat and fast characteristics of the business side, and can effectively
  • precise data analysis and calculations are performed on node routing versions, which improves the speed and accuracy of version updates, thus solving the problem that version updates cannot be performed quickly and accurately.
  • FIG. 4 another embodiment of the version update device based on the whole station grayscale in the embodiment of the present application includes:
  • the judging module 301 is used to receive the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway.
  • the system update request includes the request entry gateway, the request entry method, and the grayscale application node. User ID number and node traffic information of Grayscale application nodes;
  • the comparison and analysis module 302 is used to compare and analyze the request entry method and the preset priority request method if the request entry gateway is a grayscale gateway, and obtain the analysis result;
  • the first acquisition module 303 is used to call the preset grayscale routing system according to the analysis result, and obtain initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user identification number;
  • the calculation module 304 is used to perform version calculation based on the node traffic information, the initial gray cluster information and the target node gray calculation rules through the gray routing system to obtain the node routing version;
  • the second acquiring module 305 is configured to acquire target grayscale cluster information corresponding to the node routing version, and acquire target routing rule information from the preset routing rule system according to the target grayscale cluster information;
  • the calling module 306 is used to call the service of the routing version of the grayscale application node based on the target routing rule information and the node routing version through the preset routing rule system;
  • the monitoring and updating module 307 is configured to set the routing and gray-scale identification of the gray-scale cluster corresponding to the target gray-scale cluster information through the node routing version, and monitor and update the target gray-scale cluster information.
  • the first obtaining module 303 includes:
  • the routing analysis unit 3031 is configured to analyze the routing information of the gray-scale application node to obtain the routing result if the analysis result is the gray-scale request mode or the call chain request mode;
  • Judging unit 3032 configured to call the preset grayscale routing system according to the routing result, and judge whether the user identification number exists in the preset grayscale whitelist;
  • the first retrieval unit 3033 is used to retrieve the gray-scale cluster information in the preset gray-scale cluster system through the user ID number if the user ID number exists in the preset gray-scale white list, and obtain the initial gray-scale cluster information;
  • the second retrieval unit 3034 is used to create the rule information query language for the user ID number, and retrieve the gray-scale calculation rule information in the preset gray-scale cluster system through the rule information query language to obtain the target node gray-scale calculation rule.
  • routing analysis unit 3031 can also be specifically used for:
  • the analysis result is the grayscale request method or the call chain request method
  • obtain the initial thread storage class of the grayscale application node and judge whether there is grayscale routing information in the initial thread storage class; if there is grayscale routing in the initial thread storage class information, return the grayscale routing result; if there is no grayscale routing information in the initial thread storage class, call the preset grayscale interface through the preset grayscale routing node, and add flow identification information to the initial thread storage class , to obtain the target thread storage class; through the gray-scale interface, perform gray-scale routing selection based on the target thread storage class, and obtain the routing selection result; determine the gray-scale routing result and the routing selection result as the routing result.
  • calculation module 304 can also be specifically used for:
  • the comparative analysis module 302 can also be specifically used for:
  • the request entry gateway is a grayscale gateway, it is judged whether the request entry method is the grayscale request method in the preset priority request method or the call link interface request method; if the request entry method is the grayscale request in the preset priority selection request method method or call chain interface request method, the analysis result is returned, and the analysis result is used to indicate the grayscale request method or call chain request method.
  • the monitoring update module 307 may also be specifically used for:
  • the target directory information includes grayscale flow directory information and cluster directory information ;Monitor the target directory information, and when the target directory information is monitored, update the gray-scale cluster information in the preset gray-scale cluster system through the target gray-scale cluster information, and generate cluster information update information; obtain based on The application name change information of the cluster information update information updates the service cluster and service information corresponding to the target grayscale cluster information through the application name change information.
  • each module and each unit in the version update device based on the whole station gray scale is corresponding to each step in the above embodiment of the version update method based on the whole station gray scale, and its function and implementation process will not be described here one by one. repeat.
  • the stability of the overall system corresponding to the updated version is guaranteed not only through the form of gray scale release, but also avoids the risk of compatibility between the old and new versions and system downtime, and can effectively realize the version update of the short, flat and fast characteristics of the business side, and can Effectively perform accurate data analysis and calculation on the node routing version according to the system update request of the grayscale application node, which improves the speed and accuracy of the version update, thereby solving the problem that the version cannot be updated quickly and accurately, and can also
  • timely acquisition of user feedback information on the update of the routing version is conducive to timely improvement of the product functions of the routing version, as well as timely improvement of the product quality of the routing version, and is conducive to rapid trial and error of new services, and further It is conducive to the acceleration of the R&D process, the version update of the short-term, flat and fast features of the business side, and the avoidance of version release risks to a certain extent.
  • FIG. 3 and Figure 4 above describe in detail the version update device based on the whole station grayscale in the embodiment of the present application from the perspective of the modular functional entity, and the version update device based on the whole station grayscale in the embodiment of the present application is described below from the perspective of hardware processing.
  • the update device is described in detail.
  • Fig. 5 is a schematic structural diagram of a version update device based on the whole station grayscale provided by the embodiment of the present application.
  • the version update device 500 based on the whole station grayscale may have relatively large differences due to different configurations or performances, and may include One or more processors (central processing units, CPU) 510 (for example, one or more processors) and memory 520, one or more storage media 530 for storing application programs 533 or data 532 (for example, one or more storage device).
  • the memory 520 and the storage medium 530 may be temporary storage or persistent storage.
  • the program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations for the version update device 500 based on the gray scale of the whole station.
  • the processor 510 may be configured to communicate with the storage medium 530, and execute a series of instruction operations in the storage medium 530 on the version update device 500 based on the total station gray scale.
  • the version update device 500 based on the whole station grayscale can also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and/or, one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
  • operating systems 531 such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
  • the present application also provides a version update device based on the gray scale of the whole station, including: a memory and at least one processor, instructions are stored in the memory, and the memory and the at least one processor are interconnected through a line; the At least one processor invokes the instruction in the memory, so that the device for updating the version based on the whole station grayscale executes the steps in the method for updating the version based on the whole station grayscale.
  • the present application also provides a computer-readable storage medium
  • the computer-readable storage medium may be a non-volatile computer-readable storage medium
  • the computer-readable storage medium may also be a volatile computer-readable storage medium
  • the computer-readable storage medium may be There are instructions stored in the read storage medium, and when the instructions are run on the computer, the computer is made to perform the following steps:
  • the grayscale application node Receives the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway, and the system update request includes the request entry gateway, the request entry method, and the grayscale application node’s User ID number and node traffic information of the grayscale application node;
  • the request entry gateway is a grayscale gateway, then compare and analyze the request entry method and the preset priority request method to obtain the analysis result;
  • the grayscale application node performs a route version service call.
  • the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function, etc.; Use the created data etc.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with each other using cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify its Validity of information (anti-counterfeiting) and generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application relates to the field of cloud services, and provides a version updating method, apparatus, and device based on entire site grayscale, and a storage medium, for use in solving the problem that version updating cannot be quickly and accurately performed. The version updating method based on entire site grayscale comprises: if a gateway requested to enter is a grayscale gateway, performing comparative analysis on a requested entry mode and a request mode in priority; according to the analysis result, invoking a grayscale routing system to obtain initial grayscale cluster information and a target node grayscale calculation rule; obtaining a node routing version by means of the grayscale routing system on the basis of node flow information, the initial grayscale cluster information, and the target node grayscale calculation rule; obtaining target grayscale cluster information, and determining target routing rule information according to the target grayscale cluster information; and performing routing version service invocation on a grayscale application node on the basis of the target routing rule information and the node routing version. In addition, the present application also relates to blockchain technology, and the node routing version can be stored in a blockchain.

Description

基于全站灰度的版本更新方法、装置、设备及存储介质Version update method, device, equipment and storage medium based on total station grayscale
本申请要求于2021年6月22日提交中国专利局、申请号为202110691937.8、发明名称为“基于全站灰度的版本更新方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on June 22, 2021, with the application number 202110691937.8, and the title of the invention is "version update method, device, equipment, and storage medium based on the gray scale of the whole station". The entire contents of this application are incorporated by reference.
技术领域technical field
本申请涉及云传输领域,尤其涉及一种基于全站灰度的版本更新方法、装置、设备及存储介质。The present application relates to the field of cloud transmission, and in particular to a version update method, device, equipment and storage medium based on the gray scale of the whole station.
背景技术Background technique
随着互联网技术的发展,各种互联网产品的应用需求逐渐增大,而具互联网产品有用户规模大、版本更新频繁的特点,为了应对该特点,一般都是采用按照每周一次的发布频率,通过正式网关环境将旧版本切换到新版本的版本更新方式。With the development of Internet technology, the application requirements of various Internet products are gradually increasing, and Internet products have the characteristics of large user scale and frequent version updates. The version update method of switching the old version to the new version through the official gateway environment.
但是,发明人意识到上述版本更新方式存在新旧版本兼容和***宕机的风险,并且,对于线上环境的应用,正式环境网关只有一个,难以有效实现业务方短平快特性的版本更新,以及无法获取到有效的数据反馈,并根据反馈的有效数据对版本进行精确的数据分析,因而,导致了无法快速而准确地进行版本更新。However, the inventor realized that the above-mentioned version update method has the risk of compatibility between old and new versions and system downtime, and, for the application of the online environment, there is only one gateway in the official environment, so it is difficult to effectively implement the version update of the short, smooth and fast features of the business side, and it is impossible to obtain Feedback of effective data, and conduct accurate data analysis on the version based on the effective data fed back, thus resulting in the inability to update the version quickly and accurately.
发明内容Contents of the invention
本申请提供一种基于全站灰度的版本更新方法、装置、设备及存储介质,解决了无法快速而准确地进行版本更新的问题。The present application provides a version update method, device, equipment and storage medium based on the gray scale of the whole station, which solves the problem that the version update cannot be performed quickly and accurately.
本申请第一方面提供了一种基于全站灰度的版本更新方法,包括:The first aspect of the present application provides a version update method based on the gray scale of the whole site, including:
接收灰度应用节点发送的***更新请求,并判断所述***更新请求中的请求进入网关是否为灰度网关,所述***更新请求包括请求进入网关、请求进入方式、所述灰度应用节点的用户身份标识号和所述灰度应用节点的节点流量信息;Receive the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway, and the system update request includes the request entry gateway, the request entry method, and the grayscale application node’s User ID number and node traffic information of the grayscale application node;
若所述请求进入网关为灰度网关,则将所述请求进入方式与预设优先请求方式进行对比分析,得到分析结果;If the request entry gateway is a grayscale gateway, then compare and analyze the request entry method and the preset priority request method to obtain the analysis result;
根据所述分析结果调用预置的灰度路由***,基于所述用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则;Invoke a preset grayscale routing system according to the analysis result, and obtain initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user ID number;
通过所述灰度路由***,基于所述节点流量信息、所述初始灰度集群信息和所述目标节点灰度计算规则进行版本运算,得到节点路由版本;performing version calculation based on the node traffic information, the initial gray cluster information and the target node gray calculation rules through the gray routing system to obtain a node routing version;
获取与所述节点路由版本对应的目标灰度集群信息,并根据所述目标灰度集群信息,从预置路由规则***中获取目标路由规则信息;Acquiring target grayscale cluster information corresponding to the node routing version, and obtaining target routing rule information from a preset routing rule system according to the target grayscale cluster information;
通过所述预置路由规则***,基于所述目标路由规则信息和所述节点路由版本,对所述灰度应用节点进行路由版本的服务调用。Through the preset routing rule system, based on the target routing rule information and the node routing version, the grayscale application node performs a route version service call.
本申请第二方面提供了一种基于全站灰度的版本更新设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令程序,所述处理器执行所述计算机程序可读指令时实现如下步骤:The second aspect of the present application provides a version update device based on the gray scale of the whole station, including a memory, a processor, and a computer-readable instruction program stored on the memory and operable on the processor. When the device executes the computer program readable instructions, the following steps are implemented:
接收灰度应用节点发送的***更新请求,并判断所述***更新请求中的请求进入网关是否为灰度网关,所述***更新请求包括请求进入网关、请求进入方式、所述灰度应用节点的用户身份标识号和所述灰度应用节点的节点流量信息;Receive the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway, and the system update request includes the request entry gateway, the request entry method, and the grayscale application node’s User ID number and node traffic information of the grayscale application node;
若所述请求进入网关为灰度网关,则将所述请求进入方式与预设优先请求方式进行对比分析,得到分析结果;If the request entry gateway is a grayscale gateway, then compare and analyze the request entry method and the preset priority request method to obtain the analysis result;
根据所述分析结果调用预置的灰度路由***,基于所述用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则;Invoke a preset grayscale routing system according to the analysis result, and obtain initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user ID number;
通过所述灰度路由***,基于所述节点流量信息、所述初始灰度集群信息和所述目标节点灰度计算规则进行版本运算,得到节点路由版本;performing version calculation based on the node traffic information, the initial gray cluster information and the target node gray calculation rules through the gray routing system to obtain a node routing version;
获取与所述节点路由版本对应的目标灰度集群信息,并根据所述目标灰度集群信息,从预置路由规则***中获取目标路由规则信息;Acquiring target grayscale cluster information corresponding to the node routing version, and obtaining target routing rule information from a preset routing rule system according to the target grayscale cluster information;
通过所述预置路由规则***,基于所述目标路由规则信息和所述节点路由版本,对所述灰度应用节点进行路由版本的服务调用。Through the preset routing rule system, based on the target routing rule information and the node routing version, the grayscale application node performs a route version service call.
本申请第三方面提供了一种计算机可读存储介质,所述计算机可读存储介质中存储计算机程序指令,当所述计算机程序指令在计算机上运行时,使得计算机执行如下步骤:The third aspect of the present application provides a computer-readable storage medium, where computer program instructions are stored in the computer-readable storage medium, and when the computer program instructions are run on a computer, the computer is made to perform the following steps:
接收灰度应用节点发送的***更新请求,并判断所述***更新请求中的请求进入网关是否为灰度网关,所述***更新请求包括请求进入网关、请求进入方式、所述灰度应用节点的用户身份标识号和所述灰度应用节点的节点流量信息;Receive the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway, and the system update request includes the request entry gateway, the request entry method, and the grayscale application node’s User ID number and node traffic information of the grayscale application node;
若所述请求进入网关为灰度网关,则将所述请求进入方式与预设优先请求方式进行对比分析,得到分析结果;If the request entry gateway is a grayscale gateway, then compare and analyze the request entry method and the preset priority request method to obtain the analysis result;
根据所述分析结果调用预置的灰度路由***,基于所述用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则;Invoke a preset grayscale routing system according to the analysis result, and obtain initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user ID number;
通过所述灰度路由***,基于所述节点流量信息、所述初始灰度集群信息和所述目标节点灰度计算规则进行版本运算,得到节点路由版本;performing version calculation based on the node traffic information, the initial gray cluster information and the target node gray calculation rules through the gray routing system to obtain a node routing version;
获取与所述节点路由版本对应的目标灰度集群信息,并根据所述目标灰度集群信息,从预置路由规则***中获取目标路由规则信息;Acquiring target grayscale cluster information corresponding to the node routing version, and obtaining target routing rule information from a preset routing rule system according to the target grayscale cluster information;
通过所述预置路由规则***,基于所述目标路由规则信息和所述节点路由版本,对所述灰度应用节点进行路由版本的服务调用。Through the preset routing rule system, based on the target routing rule information and the node routing version, the grayscale application node performs a route version service call.
本申请第四方面提供了一种基于全站灰度的版本更新装置,包括:The fourth aspect of the present application provides a version update device based on the grayscale of the whole site, including:
判断模块,用于接收灰度应用节点发送的***更新请求,并判断所述***更新请求中的请求进入网关是否为灰度网关,所述***更新请求包括请求进入网关、请求进入方式、所述灰度应用节点的用户身份标识号和所述灰度应用节点的节点流量信息;A judging module, configured to receive a system update request sent by a grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway. The system update request includes a request entry gateway, a request entry method, the The user identification number of the grayscale application node and the node traffic information of the grayscale application node;
对比分析模块,用于若所述请求进入网关为灰度网关,则将所述请求进入方式与预设优先请求方式进行对比分析,得到分析结果;A comparative analysis module, configured to compare and analyze the request entry method and the preset priority request method to obtain the analysis result if the request entry gateway is a grayscale gateway;
第一获取模块,用于根据所述分析结果调用预置的灰度路由***,基于所述用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则;The first acquisition module is used to invoke the preset gray-scale routing system according to the analysis result, and obtain the initial gray-scale cluster information and target node gray-scale calculation rules from the preset gray-scale cluster system based on the user identification number ;
运算模块,用于通过所述灰度路由***,基于所述节点流量信息、所述初始灰度集群信息和所述目标节点灰度计算规则进行版本运算,得到节点路由版本;An operation module, configured to perform version calculation based on the node traffic information, the initial gray-scale cluster information, and the target node gray-scale calculation rules through the gray-scale routing system, to obtain a node routing version;
第二获取模块,用于获取与所述节点路由版本对应的目标灰度集群信息,并根据所述目标灰度集群信息,从预置路由规则***中获取目标路由规则信息;The second obtaining module is used to obtain target gray-scale cluster information corresponding to the node routing version, and obtain target routing rule information from a preset routing rule system according to the target gray-scale cluster information;
调用模块,用于通过所述预置路由规则***,基于所述目标路由规则信息和所述节点路由版本,对所述灰度应用节点进行路由版本的服务调用。The invoking module is configured to, through the preset routing rule system, call the service of the routing version of the grayscale application node based on the target routing rule information and the node routing version.
本申请提供的技术方案中,接收灰度应用节点发送的***更新请求,并判断***更新请求中的请求进入网关是否为灰度网关,***更新请求包括请求进入网关、请求进入方式、灰度应用节点的用户身份标识号和灰度应用节点的节点流量信息;若请求进入网关为灰度网关,则将请求进入方式与预设优先请求方式进行对比分析,得到分析结果;根据分析结果调用预置的灰度路由***,基于用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则;通过灰度路由***,基于节点流量信息、初始灰度集群信息和目标节点灰度计算规则进行版本运算,得到节点路由版本;获取与节点路由版本对应的目标灰度集群信息,并根据目标灰度集群信息,从预置路由规则***中获取目标路由规则信息;通过预置路由规则***,基于目标路由规则信息和节点路由版本,对灰度应用节点进行路由版本的服务调用。本申请实施例中,通过灰度发布的形式,保证了更新版本对应的整体***的稳定,避免了新旧版本兼容和***宕机的风险,能够有效地实现业务 方短平快特性的版本更新,能够有效地根据灰度应用节点的***更新请求,对节点路由版本进行精确的数据分析和运算,提高了版本更新的速度和准确性,从而解决了无法快速而准确地进行版本更新的问题。In the technical solution provided by this application, the system update request sent by the grayscale application node is received, and it is judged whether the request entry gateway in the system update request is a grayscale gateway. The system update request includes the request entry gateway, the request entry method, and the grayscale application The user ID number of the node and the node traffic information of the grayscale application node; if the request entry gateway is a grayscale gateway, compare and analyze the request entry method with the preset priority request method to obtain the analysis result; call the preset according to the analysis result Based on the user ID number, the grayscale routing system obtains the initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system; through the grayscale routing system, based on node traffic information and initial grayscale cluster information Perform version calculation with the target node grayscale calculation rules to obtain the node routing version; obtain the target grayscale cluster information corresponding to the node routing version, and obtain the target routing rule information from the preset routing rule system according to the target grayscale cluster information; Through the preset routing rule system, based on the target routing rule information and the node routing version, the service call of the routing version is made to the grayscale application node. In the embodiment of this application, the stability of the overall system corresponding to the updated version is guaranteed through the form of gray scale release, avoiding the compatibility of old and new versions and the risk of system downtime, and can effectively realize the version update of the short, flat and fast characteristics of the business side, and can effectively According to the system update request of grayscale application nodes, precise data analysis and calculations are performed on node routing versions, which improves the speed and accuracy of version updates, thus solving the problem that version updates cannot be performed quickly and accurately.
附图说明Description of drawings
图1为本申请实施例中基于全站灰度的版本更新方法的一个实施例示意图;Fig. 1 is a schematic diagram of an embodiment of a version update method based on the whole station gray scale in the embodiment of the present application;
图2为本申请实施例中基于全站灰度的版本更新方法的另一个实施例示意图;Fig. 2 is a schematic diagram of another embodiment of the version update method based on the whole station grayscale in the embodiment of the present application;
图3为本申请实施例中基于全站灰度的版本更新装置的一个实施例示意图;Fig. 3 is a schematic diagram of an embodiment of a version update device based on the whole station grayscale in the embodiment of the present application;
图4为本申请实施例中基于全站灰度的版本更新装置的另一个实施例示意图;Fig. 4 is a schematic diagram of another embodiment of the version update device based on the whole station grayscale in the embodiment of the present application;
图5为本申请实施例中基于全站灰度的版本更新设备的一个实施例示意图。Fig. 5 is a schematic diagram of an embodiment of a version update device based on the whole station grayscale in the embodiment of the present application.
具体实施方式detailed description
本申请实施例提供了一种基于全站灰度的版本更新方法、装置、设备及存储介质,解决了无法快速而准确地进行版本更新的问题。The embodiment of the present application provides a version update method, device, device and storage medium based on the gray scale of the whole station, which solves the problem that the version update cannot be performed quickly and accurately.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”或“具有”及其任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、***、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and not necessarily Used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the term "comprising" or "having" and any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to those explicitly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
为便于理解,下面对本申请实施例的具体流程进行描述,请参阅图1,本申请实施例中基于全站灰度的版本更新方法的一个实施例包括:For ease of understanding, the following describes the specific process of the embodiment of the present application. Please refer to FIG. 1. An embodiment of the version update method based on the grayscale of the whole station in the embodiment of the present application includes:
101、接收灰度应用节点发送的***更新请求,并判断***更新请求中的请求进入网关是否为灰度网关,***更新请求包括请求进入网关、请求进入方式、灰度应用节点的用户身份标识号和灰度应用节点的节点流量信息。101. Receive the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway. The system update request includes the request entry gateway, the request entry method, and the user ID number of the grayscale application node and the node traffic information of grayscale application nodes.
可以理解的是,本申请的执行主体可以为基于全站灰度的版本更新装置,还可以是终端或者服务器,具体此处不做限定。本申请实施例以服务器为执行主体为例进行说明。It can be understood that the subject of execution of the present application may be a version update device based on the gray scale of the whole station, and may also be a terminal or a server, which is not specifically limited here. The embodiment of the present application is described by taking the server as an execution subject as an example.
本实施例中,以灰度***对应的服务器为执行主体为例说明,灰度***包含灰度路由***、灰度集群***和路由规则***,灰度路由***、灰度集群***和路由规则***之间的连接关系为串联关系。其中,灰度应用节点为预先经过灰度标记的节点,一个灰度应用节点对应一个灰度客户端,该灰度客户端可为移动端。各灰度应用节点将各自的上报信息,上报到预置的灰度集群***中,服务器通过灰度集群***根据该上报信息,对各灰度应用节点进行灰度策略配置、灰度分组和灰度集群部署,得到初始配置信息,其中,该灰度策略配置中的灰度策略可包括应用灰度策略、功能灰度策略和展示位灰度策略;对各灰度应用节点的灰度计算规则进行配置,得到目标节点灰度计算规则,其中,该上报信息包括灰度应用节点对应的灰度客户端的用户流量标识信息(即节点流量信息)和用户身份标识号,该用户流量标识信息是动态变化的,且由业务决定;服务器通过灰度集群***,将初始配置信息和目标节点灰度计算规则确定为目标配置信息,并将该目标配置信息下发到各灰度应用节点。In this embodiment, the server corresponding to the grayscale system is used as an example to illustrate. The grayscale system includes the grayscale routing system, the grayscale cluster system and the routing rule system, and the grayscale routing system, the grayscale cluster system and the routing rule system The connection relationship between them is a serial relationship. Wherein, the grayscale application node is a node that has been grayscale marked in advance, and one grayscale application node corresponds to one grayscale client, and the grayscale client may be a mobile terminal. Each grayscale application node reports its own reported information to the preset grayscale cluster system, and the server performs grayscale policy configuration, grayscale grouping and grayscale Grayscale cluster deployment to obtain initial configuration information, wherein the grayscale strategy in the grayscale strategy configuration can include application grayscale strategy, function grayscale strategy and display location grayscale strategy; grayscale calculation rules for each grayscale application node Perform configuration to obtain the gray scale calculation rules of the target node, wherein the reported information includes the user traffic identification information (ie, node traffic information) and user identification number of the gray scale client corresponding to the gray scale application node, and the user traffic identification information is dynamic It is variable and determined by the business; the server determines the initial configuration information and the gray calculation rules of the target node as the target configuration information through the grayscale cluster system, and sends the target configuration information to each grayscale application node.
其中,灰度***包括灰度网关和正式环境网关。灰度客户端对应的灰度应用节点,通过预置的灰度路由发送***更新请求,当服务器通过预置的灰度路由接收到该***更新请求时,对该***更新请求进行解析,得到解析信息,该解析信息包括请求进入网关、请求进入方式,以及预置灰度应用节点的用户身份标识号和灰度应用节点的节点流量信息;服务器判断解析信息中的请求进入网关是否为灰度网关,若是,则将请求进入方式与预设优先请求方式进行对比分析,得到分析结果;若否,则判断请求进入网关是否为正式环境网 关,若是,则维持当前的路由规则不变,即不对当前的路由规则进行更新,并通过当前的路由规则进行基于路由版本的路由(更新),若否,则停止执行。Among them, the gray system includes the gray gateway and the formal environment gateway. The grayscale application node corresponding to the grayscale client sends a system update request through the preset grayscale route. When the server receives the system update request through the preset grayscale route, it analyzes the system update request and obtains the parsed information, the analysis information includes the request entry gateway, the request entry method, and the user ID number of the preset grayscale application node and the node flow information of the grayscale application node; the server judges whether the request entry gateway in the analysis information is a grayscale gateway , if yes, compare and analyze the request entry method with the preset priority request method, and obtain the analysis result; if not, then judge whether the request entry gateway is a formal environment gateway, and if so, maintain the current routing rules unchanged, that is, do not modify the current routing rules. The routing rule is updated, and the routing (updating) based on the routing version is performed through the current routing rule, and if not, the execution is stopped.
102、若请求进入网关为灰度网关,则将请求进入方式与预设优先请求方式进行对比分析,得到分析结果。102. If the request entry gateway is a grayscale gateway, compare and analyze the request entry method and the preset priority request method to obtain the analysis result.
其中,请求进入方式为请求进入的方式,例如:请求进入的方式为从灰度域名进入的方式。若请求进入网关为灰度网关,则服务器判断***更新请求的请求进入方式是否为预设优先请求方式,该优先选择请求方式为从灰度域名(或者从灰度标签tag)进入的灰度请求方式或调用链的接口请求方式(即调用链接口请求方式),若是,则返回灰度请求方式或调用链请求方式,若否,则返回表示否的字段值,将灰度请求方式或调用链请求方式或表示否的字段值确定为分析结果。其中,服务器判断***更新请求的请求进入方式是否为预设优先请求方式的执行过程可为:服务器获取***更新请求的请求进入方式的第一关键字符,以及预设优先请求方式的第二关键字符,判断第一关键字符是否与第二关键字符相同。Wherein, the request entry method is the request entry method, for example: the request entry method is the entry method from the grayscale domain name. If the request entry gateway is a grayscale gateway, the server will judge whether the request entry method of the system update request is a preset priority request method, and the priority request method is a grayscale request entered from a grayscale domain name (or from a grayscale tag) method or the interface request method of the call chain (that is, the call chain interface request method), if yes, return the grayscale request method or call chain request method, if not, return the field value indicating No, and set the grayscale request method or call chain request method A request mode or a field value indicating no is determined as an analysis result. Wherein, the execution process of the server judging whether the request entry method of the system update request is the preset priority request method may be: the server acquires the first key character of the request entry method of the system update request, and the second key character of the preset priority request method , to determine whether the first key character is the same as the second key character.
103、根据分析结果调用预置的灰度路由***,基于用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则。103. Call the preset grayscale routing system according to the analysis result, and obtain the initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user ID number.
当分析结果不为灰度请求方式或调用链请求方式时,服务器调用预置的非灰度执行***,通过该非灰度执行***,基于***更新请求中的用户身份标识号和节点流量信息进行运算,得到待更新的版本,并根据待更新的版本对灰度应用节点的当前版本进行更新。当分析结果为灰度请求方式或调用链请求方式,且服务器分析到预置的灰度路由***中存在灰度应用节点的路由信息时,调用预置的灰度路由***,生成用户身份标识号的哈希值,通过该哈希值对预置灰度集群***中的灰度集群信息和节点灰度计算规则进行检索,从而得到初始灰度集群信息和目标节点灰度计算规则。When the analysis result is not a grayscale request method or a call chain request method, the server calls the preset non-grayscale execution system, and through the non-grayscale execution system, based on the user identification number and node traffic information in the system update request Calculate to obtain the version to be updated, and update the current version of the grayscale application node according to the version to be updated. When the analysis result is the grayscale request method or the call chain request method, and the server analyzes that the grayscale application node routing information exists in the preset grayscale routing system, call the preset grayscale routing system to generate a user ID number The hash value is used to retrieve the gray-scale cluster information and node gray-scale calculation rules in the preset gray-scale cluster system, so as to obtain the initial gray-scale cluster information and target node gray-scale calculation rules.
其中,目标节点灰度计算规则用于对灰度应用节点的待更新的路由版本进行运算。预置灰度集群***包括灰度集群和默认集群、灰度集群对应的灰度集群信息以及默认集群对应的默认集群信息,当无法从预置灰度集群***中获取初始灰度集群信息,即无法匹配到对应的灰度集群时,根据默认集群信息对默认集群的微服务进行寻址。Among them, the target node grayscale calculation rule is used to calculate the routing version of the grayscale application node to be updated. The preset grayscale cluster system includes grayscale clusters and default clusters, the grayscale cluster information corresponding to the grayscale cluster, and the default cluster information corresponding to the default cluster. When the initial grayscale cluster information cannot be obtained from the preset grayscale cluster system, that is When the corresponding grayscale cluster cannot be matched, the microservices of the default cluster are addressed according to the default cluster information.
104、通过灰度路由***,基于节点流量信息、初始灰度集群信息和目标节点灰度计算规则进行版本运算,得到节点路由版本。104. Through the grayscale routing system, perform version calculation based on node traffic information, initial grayscale cluster information, and target node grayscale calculation rules to obtain node routing versions.
例如:服务器通过灰度路由***,获取***更新请求中的节点灰度配置信息,基于节点流量信息和初始灰度集群信息进行版本运算得到待更新的路由版本,基于目标节点灰度计算规则和节点灰度配置信息,计算版本更新的灰度百分比,基于版本更新的灰度百分比以及待更新的路由版本进行版本运算,得到灰度应用节点对应的节点路由版本。For example: the server obtains the node grayscale configuration information in the system update request through the grayscale routing system, and performs version calculation based on node traffic information and initial grayscale cluster information to obtain the routing version to be updated, based on the target node grayscale calculation rules and node Grayscale configuration information, calculate the grayscale percentage of version update, perform version calculation based on the grayscale percentage of version update and the route version to be updated, and obtain the node routing version corresponding to the grayscale application node.
进一步地,服务器获取初始灰度集群信息对应的总流量信息,通过该灰度路由***,对总流量信息和节点流量信息进行百分比运算,得到灰度百分比,并基于用户身份标识号加载初始灰度集群信息对应的版本配置数据,并根据灰度百分比和版本配置数据获取节点路由版本。Further, the server obtains the total traffic information corresponding to the initial grayscale cluster information, and performs percentage calculation on the total traffic information and node traffic information through the grayscale routing system to obtain the grayscale percentage, and loads the initial grayscale based on the user identification number The version configuration data corresponding to the cluster information, and obtain the node routing version according to the gray percentage and the version configuration data.
105、获取与节点路由版本对应的目标灰度集群信息,并根据目标灰度集群信息,从预置路由规则***中获取目标路由规则信息。105. Obtain the target grayscale cluster information corresponding to the node routing version, and obtain the target routing rule information from the preset routing rule system according to the target grayscale cluster information.
服务器通过灰度路由***运算得到节点路由版本后,通过灰度路由***根据该节点路由版本,对预置的灰度集群的分组进行更新,并对应更新灰度集群信息。服务器通过灰度路由***基于节点路由版本,对更新后的灰度集群信息进行检索,得到目标灰度集群信息,并通过目标灰度集群信息,对预置路由规则***进行检索,得到对应的目标路由规则信息。其中,灰度集群***用于管理控制台进行查询和管理,如:哪些灰度应用节点组成了某个灰度版本的灰度集群,以及对灰度集群需要推送给该灰度应用节点的路由规则信息的控制。After the server obtains the node routing version through the calculation of the grayscale routing system, the grayscale routing system updates the grouping of the preset grayscale clusters according to the node routing version, and updates the grayscale cluster information accordingly. The server retrieves the updated gray-scale cluster information based on the node routing version through the gray-scale routing system to obtain the target gray-scale cluster information, and retrieves the preset routing rule system through the target gray-scale cluster information to obtain the corresponding target Routing rule information. Among them, the grayscale cluster system is used to query and manage the management console, such as: which grayscale application nodes form a certain grayscale version of the grayscale cluster, and the route that the grayscale cluster needs to push to the grayscale application node Control of rule information.
106、通过预置路由规则***,基于目标路由规则信息和节点路由版本,对灰度应用节点进行路由版本的服务调用。106. Through the preset routing rule system, based on the target routing rule information and the node routing version, call the service of the routing version on the grayscale application node.
其中,预置路由规则***用于对路由规则进行增删改查、实时下发、历史修改记录查询、有效测试、以应用为维度的信息管理以及AND/OR计算方案展示。服务器预先获取应用编辑信息或默认路由规则编辑信息,通过应用编辑信息或默认路由规则编辑信息,对预置路由规则***中的规则信息进行编辑更新,得到当前规则信息,拷贝预置的临时版本Sf版本(为规则正式发布生效前的临时版本,用于审核、确认和测试)至当前规则信息,以触发路由规则的下发,当服务器获得目标路由规则信息和节点路由版本,并获得灰度应用节点对应的客户应用规则版本时,将节点路由版本与客户应用规则版本进行对比,并对灰度应用节点进行路由版本的服务调用,并更新目标路由规则信息的路由下发状态。Among them, the preset routing rule system is used for adding, deleting, modifying and querying routing rules, real-time distribution, historical modification record query, effective testing, application-based information management, and AND/OR calculation solution display. The server obtains application editing information or default routing rule editing information in advance, edits and updates the rule information in the preset routing rule system through the application editing information or default routing rule editing information, obtains the current rule information, and copies the preset temporary version Sf version (a temporary version before the official release of the rule, used for review, confirmation and testing) to the current rule information to trigger the distribution of routing rules. When the server obtains the target routing rule information and node routing version, and obtains the grayscale application When the client application rule version corresponding to the node is compared, the node routing version is compared with the client application rule version, and the service call of the routing version is made to the grayscale application node, and the routing delivery status of the target routing rule information is updated.
本申请实施例中,通过灰度发布的形式,保证了更新版本对应的整体***的稳定,避免了新旧版本兼容和***宕机的风险,能够有效地实现业务方短平快特性的版本更新,能够有效地根据灰度应用节点的***更新请求,对节点路由版本进行精确的数据分析和运算,提高了版本更新的速度和准确性,从而解决了无法快速而准确地进行版本更新的问题。In the embodiment of this application, the stability of the overall system corresponding to the updated version is guaranteed through the form of gray scale release, avoiding the compatibility of old and new versions and the risk of system downtime, and can effectively realize the version update of the short, flat and fast characteristics of the business side, and can effectively According to the system update request of grayscale application nodes, precise data analysis and calculations are performed on node routing versions, which improves the speed and accuracy of version updates, thus solving the problem that version updates cannot be performed quickly and accurately.
请参阅图2,本申请实施例中基于全站灰度的版本更新方法的另一个实施例包括:Please refer to Fig. 2, another embodiment of the version update method based on the whole station grayscale in the embodiment of the present application includes:
201、接收灰度应用节点发送的***更新请求,并判断***更新请求中的请求进入网关是否为灰度网关,***更新请求包括请求进入网关、请求进入方式、灰度应用节点的用户身份标识号和灰度应用节点的节点流量信息。201. Receive the system update request sent by the grayscale application node, and determine whether the request entry gateway in the system update request is a grayscale gateway. The system update request includes the request entry gateway, the request entry method, and the user ID number of the grayscale application node and the node traffic information of grayscale application nodes.
该步骤201的执行过程与上述步骤101的执行过程类似,在此不再赘述。The execution process of this step 201 is similar to the execution process of the above step 101, and will not be repeated here.
该步骤201之前,服务器获取灰度应用节点的灰度注册信息,并根据灰度注册信息,对灰度应用节点进行灰度分组,得到分组后的灰度应用节点,注册信息包括用户身份标识号和灰度配置信息;获取与分组后的灰度应用节点对应的目标灰度集群环境,并将分组后的灰度应用节点部署至预置灰度集群***中目标灰度集群的目标灰度集群环境。Before step 201, the server obtains the grayscale registration information of grayscale application nodes, and according to the grayscale registration information, performs grayscale grouping of grayscale application nodes to obtain grouped grayscale application nodes. The registration information includes user identification numbers and grayscale configuration information; obtain the target grayscale cluster environment corresponding to the grouped grayscale application nodes, and deploy the grouped grayscale application nodes to the target grayscale cluster of the target grayscale cluster in the preset grayscale cluster system environment.
当服务器检测到灰度服务应用的状态为启动状态时,获取灰度服务应用的应用数据,并判断应用数据中是否存在经过配置的灰度标签信息,若是,则发送指令给灰度应用节点对应的灰度客户端,以使得灰度应用节点对应的灰度客户端,基于该指令启动灰度客户端中对应的应用,并获取用户输入的灰度注册信息,并将该灰度注册信息发送至服务器,当服务器接收到该灰度应用节点的灰度注册信息时,将灰度注册信息中的用户身份标识号分组到对应的灰度区间,以及根据灰度配置信息获取对应的灰度版本,将灰度应用节点分组到与该灰度版本对应的目标灰度集群中,得到分组后的灰度应用节点,获取预置灰度集群***中目标灰度集群对应的目标灰度集群环境,并将分组后的灰度应用节点部署至目标灰度集群环境,以实现将灰度客户端的应用注册到对应的目标灰度集群中,便于后续根据灰度客户端,有针对性地进行需更新的灰度路由版本的数据分析。When the server detects that the status of the grayscale service application is started, it obtains the application data of the grayscale service application, and judges whether there is configured grayscale label information in the application data, and if so, sends an instruction to the corresponding grayscale application node grayscale client, so that the grayscale client corresponding to the grayscale application node starts the corresponding application in the grayscale client based on this instruction, obtains the grayscale registration information input by the user, and sends the grayscale registration information to To the server, when the server receives the grayscale registration information of the grayscale application node, group the user identification numbers in the grayscale registration information into the corresponding grayscale intervals, and obtain the corresponding grayscale version according to the grayscale configuration information , group the grayscale application nodes into the target grayscale cluster corresponding to the grayscale version, obtain the grouped grayscale application nodes, and obtain the target grayscale cluster environment corresponding to the target grayscale cluster in the preset grayscale cluster system, And deploy the grouped grayscale application nodes to the target grayscale cluster environment, so as to register the application of the grayscale client to the corresponding target grayscale cluster, so as to facilitate subsequent targeted updates according to the grayscale client Data analysis of the grayscale routing version.
202、若请求进入网关为灰度网关,则将请求进入方式与预设优先请求方式进行对比分析,得到分析结果。202. If the request entry gateway is a grayscale gateway, compare and analyze the request entry method and the preset priority request method to obtain an analysis result.
具体地,若请求进入网关为灰度网关,则服务器判断请求进入方式是否为预设优先请求方式中的灰度请求方式或调用链接口请求方式;若请求进入方式为预设优先选择请求方式中的灰度请求方式或调用链接口请求方式,则返回分析结果,分析结果用于指示灰度请求方式或调用链请求方式。Specifically, if the request entry gateway is a grayscale gateway, the server judges whether the request entry method is the grayscale request method or the call link interface request method in the preset priority request method; if the request entry method is the preset priority selection request method The grayscale request method or the call chain interface request method returns the analysis result, and the analysis result is used to indicate the grayscale request method or the call chain request method.
其中,调用链接口请求方式用于指示上一调用链节点的路由状态为路由到预设非灰度服务集群中,且***更新请求由当前调用链节点发出。预设优先请求方式包括灰度请求方式和调用链接口请求方式。Wherein, the call link interface request mode is used to indicate that the routing status of the last call link node is routed to the preset non-gray service cluster, and the system update request is sent by the current call link node. The preset priority request methods include the grayscale request method and the call link interface request method.
灰度请求方式或调用链接口请求方式的判断顺序不进行限制,例如:灰度请求方式或调用链接口请求方式的判断顺序对应的一个执行过程可为:若请求进入网关为灰度网关, 则服务器判断请求进入方式是否为预设优先请求方式中的灰度请求方式,若是,则返回灰度请求方式;若否,则判断请求进入方式是否为调用链接口请求方式,若是,则返回调用链请求方式,并将灰度请求方式和调用链请求方式确定为分析结果,若否,则停止执行;There are no restrictions on the judgment order of the grayscale request method or the call link interface request method. For example, an execution process corresponding to the judgment order of the grayscale request method or the call link interface request method can be: if the request enters the gateway as a grayscale gateway, then The server judges whether the request entry method is the grayscale request method in the preset priority request method, and if so, returns the grayscale request method; if not, then judges whether the request entry method is the call link interface request method, and if so, returns the call link Request method, and determine the grayscale request method and call chain request method as the analysis results, if not, stop the execution;
灰度请求方式或调用链接口请求方式的判断顺序对应的另一个执行过程可为:若请求进入网关为灰度网关,则服务器判断请求进入方式是否为预设优先请求方式中的调用链接口请求方式,若是,则返回调用链请求方式;若否,则判断请求进入方式是否为灰度请求方式,若是,则返回灰度请求方式,并将调用链请求方式和灰度请求方式确定为分析结果,若否,则停止执行。Another execution process corresponding to the judging order of the grayscale request method or the call link interface request method can be: if the request enters the gateway as a grayscale gateway, the server judges whether the request entry method is the call link interface request in the preset priority request method method, if yes, return the call chain request method; if not, then judge whether the request entry method is the grayscale request method, if so, return the grayscale request method, and determine the call chain request method and the grayscale request method as the analysis result , if not, stop execution.
通过将请求进入方式与预设优先请求方式的判断分析,能够实现多个网关的版本数据分析,从而提高版本更新的效率和准确性。By judging and analyzing the request entry method and the preset priority request method, the version data analysis of multiple gateways can be realized, thereby improving the efficiency and accuracy of version update.
203、根据分析结果调用预置的灰度路由***,基于用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则。203. Call the preset grayscale routing system according to the analysis result, and obtain initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user ID number.
具体地,若分析结果为灰度请求方式或调用链请求方式,则服务器对灰度应用节点进行路由信息分析,得到路由结果;根据路由结果调用预置的灰度路由***,判断用户身份标识号是否存在预置灰度白名单中;若用户身份标识号存在预置灰度白名单中,则通过用户身份标识号,对预置灰度集群***中的灰度集群信息进行检索,得到初始灰度集群信息;创建用户身份标识号的规则信息查询语言,通过规则信息查询语言,对预置灰度集群***中的灰度计算规则信息进行检索,得到目标节点灰度计算规则。Specifically, if the analysis result is the grayscale request method or the call chain request method, the server analyzes the routing information of the grayscale application node to obtain the routing result; according to the routing result, the preset grayscale routing system is invoked to determine the user ID number Whether it exists in the preset grayscale whitelist; if the user ID number exists in the preset grayscale whitelist, then use the user ID number to retrieve the grayscale cluster information in the preset grayscale cluster system to obtain the initial grayscale degree cluster information; create a rule information query language for user ID numbers, and retrieve the gray-scale calculation rule information in the preset gray-scale cluster system through the rule information query language to obtain the target node gray-scale calculation rules.
若分析结果为灰度请求方式或调用链请求方式,则服务器判断预置的灰度路由***中是否存在灰度应用节点对应的路由信息,得到路由结果,该路由结果包括表示“是”或“否”的字段和字段值、灰度路由结果和路由选择结果。若路由结果为表示“是”的字段和字段值、灰度路由结果或路由选择结果时,则服务器调用预置的灰度路由***,判断用户身份标识号是否在预置灰度白名单中,若是,则返回是的结果,若否,则返回否的结果,并将是的结果或否的结果确定为目标结果;若目标结果为是,则服务器获取灰度应用节点的节点灰度配置信息,根据用户身份标识号和节点灰度配置信息,对预置灰度集群***中的灰度集群信息进行检索,得到对应的初始灰度集群信息;若目标结果为否,则调用预置的非灰度执行***,通过该非灰度执行***,基于***更新请求中的用户身份标识号和节点流量信息进行运算,得到待更新的版本,并根据待更新的版本对灰度应用节点的当前版本进行更新;若路由结果为表示“否”的字段和字段值,则停止执行;当分析结果不为灰度请求结果或调用链请求结果时,服务器调用预置的非灰度执行***,通过该非灰度执行***,基于***更新请求中的用户身份标识号和节点流量信息进行运算,得到待更新的版本,并根据待更新的版本对灰度应用节点的当前版本进行更新。If the analysis result is the grayscale request method or the call chain request method, the server judges whether there is routing information corresponding to the grayscale application node in the preset grayscale routing system, and obtains the routing result. The routing result includes "yes" or " "No" fields and field values, grayscale routing results, and routing selection results. If the routing result is the field and field value indicating "yes", the grayscale routing result or the routing selection result, the server calls the preset grayscale routing system to determine whether the user identification number is in the preset grayscale whitelist, If yes, return the result of yes, if not, return the result of no, and determine the result of yes or no as the target result; if the target result is yes, the server obtains the node grayscale configuration information of the grayscale application node , according to the user ID number and node gray configuration information, retrieve the gray cluster information in the preset gray cluster system to obtain the corresponding initial gray cluster information; if the target result is no, call the preset non The grayscale execution system, through the non-grayscale execution system, calculates based on the user ID number and node flow information in the system update request, obtains the version to be updated, and applies the current version of the grayscale application node according to the version to be updated Update; if the routing result is the field and field value indicating "No", stop execution; when the analysis result is not the grayscale request result or the call chain request result, the server calls the preset non-grayscale execution system, through which The non-grayscale execution system performs calculations based on the user ID number and node flow information in the system update request to obtain the version to be updated, and updates the current version of the grayscale application node according to the version to be updated.
服务器创建用户身份标识号的第一查询结构化查询语言,并创建灰度计算规则信息查询的第二查询结构化查询语言,将第一查询结构化查询语言和第二查询结构化查询语言进行拼接,得到规则信息查询语言,通过该规则信息查询语言,对预置灰度集群***中的灰度计算规则信息进行检索,得到目标节点灰度计算规则。通过路由信息分析、灰度集群信息检索和灰度计算规则信息检索的执行过程,提高了初始灰度集群信息和目标节点灰度计算规则的准确性。The server creates a structured query language for the first query of the user identification number, and creates a structured query language for the second query of grayscale calculation rule information, and splices the first query structured query language and the second query structured query language , to obtain the rule information query language, through which the gray-scale calculation rule information in the preset gray-scale cluster system is retrieved, and the target node gray-scale calculation rule is obtained. Through the execution process of routing information analysis, gray-scale cluster information retrieval and gray-scale calculation rule information retrieval, the accuracy of initial gray-scale cluster information and target node gray-scale calculation rules is improved.
具体地,当分析结果为灰度请求方式或调用链请求方式时,服务器获取灰度应用节点的初始线程存储类,并判断初始线程存储类中是否存在灰度路由信息;若初始线程存储类中存在灰度路由信息,则返回灰度路由结果;若初始线程存储类中不存在灰度路由信息,则通过预置的灰度路由节点调用预置的灰度接口,对初始线程存储类进行流量标识信息添加处理,得到目标线程存储类;通过灰度接口,基于目标线程存储类执行灰度路由选择,得到路由选择结果;将灰度路由结果和路由选择结果确定为路由结果。Specifically, when the analysis result is the grayscale request method or the call chain request method, the server obtains the initial thread storage class of the grayscale application node, and judges whether there is grayscale routing information in the initial thread storage class; if the initial thread storage class If there is gray-scale routing information, return the gray-scale routing result; if there is no gray-scale routing information in the initial thread storage class, call the preset gray-scale interface through the preset gray-scale routing node to perform traffic on the initial thread storage class The identification information is added to obtain the target thread storage class; through the gray interface, the gray-scale routing selection is performed based on the target thread storage class to obtain the routing selection result; the gray-scale routing result and the routing selection result are determined as the routing result.
例如,当分析结果为灰度请求方式或调用链请求方式时,服务器获取灰度应用节点的初始线程存储类threadLocal,并判断初始线程存储类threadLocal中是否存在灰度路由信息,若是,则返回灰度路由结果,该灰度路由结果包括“是”和存在的灰度路由信息;若否,则服务器对灰度应用节点进行流量标识,得到流量标识信息,通过预置的灰度路由节点,调用预置的灰度接口shunt api,将流量标识信息设置到初始线程存储类threadLocal中,从而得到目标线程存储类,并通过灰度接口shunt api,基于目标线程存储类,判断预置数据库是否存在灰度应用节点的应用路由配置信息,若是,则获取灰度应用节点的应用路由配置信息,若否,则获取***默认路由(泛指***正式路由)的默认路由配置信息,并启动预置的优先级,根据应用路由配置信息或默认路由配置信息对预置的路由进行基于触发点的条件匹配,从而得到路由选择结果,路由选择结果为当匹配到相应触发点后的路由输出结果,将灰度路由结果和路由选择结果确定为路由分析结果,其中,预置的优先级:表示优先级的优先级字段的数据格式为整形,优先级字段的值越小,代表其优先级越高。For example, when the analysis result is the grayscale request method or the call chain request method, the server obtains the initial thread storage class threadLocal of the grayscale application node, and judges whether there is grayscale routing information in the initial thread storage class threadLocal, and if so, returns grayscale The gray-scale routing result, the gray-scale routing result includes "yes" and the existing gray-scale routing information; if not, the server performs traffic identification on the gray-scale application node, obtains the traffic identification information, and uses the preset gray-scale routing node to call The preset grayscale interface shunt api sets the traffic identification information into the initial thread storage class threadLocal to obtain the target thread storage class, and through the grayscale interface shunt api, based on the target thread storage class, it is judged whether there is a grayscale in the preset database. If yes, obtain the application routing configuration information of the grayscale application node; if not, obtain the default routing configuration information of the system default route (generally refers to the system official route), and start the preset priority Level, according to the application routing configuration information or default routing configuration information, the preset route is matched based on the condition of the trigger point, so as to obtain the routing selection result. The routing selection result is the routing output result after matching the corresponding trigger point, and the grayscale The routing result and the routing selection result are determined as the routing analysis result, wherein, the preset priority: the data format of the priority field representing the priority is an integer, and the smaller the value of the priority field, the higher the priority.
204、通过灰度路由***,基于节点流量信息、初始灰度集群信息和目标节点灰度计算规则进行版本运算,得到节点路由版本。204. Through the grayscale routing system, perform version calculation based on node traffic information, initial grayscale cluster information, and target node grayscale calculation rules to obtain a node routing version.
具体地,服务器获取初始灰度集群信息对应的总流量信息,通过灰度路由***,基于节点灰度计算规则、节点流量信息和和总流量信息计算灰度百分比;获取与初始灰度集群信息对应的版本配置数据,并基于灰度百分比和版本配置数据进行版本运算,得到节点路由版本。Specifically, the server obtains the total flow information corresponding to the initial grayscale cluster information, and calculates the grayscale percentage based on the node grayscale calculation rules, node flow information, and total flow information through the grayscale routing system; the acquisition corresponds to the initial grayscale cluster information version configuration data, and perform version calculation based on the gray percentage and version configuration data to obtain the node routing version.
服务器获取初始灰度集群信息对应的总流量信息,并通过灰度路由***,基于节点灰度计算规则,对节点流量信息和和总流量信息进行取模运算,得到灰度百分比;判断用户身份标识号是否存在预置的灰度区间中,若是,则加载与初始灰度集群信息对应的版本配置数据,若否,则不执行;获取***更新请求中的节点灰度配置信息,根据灰度百分比、版本配置数据和节点灰度配置信息,对预置的规则正式发布版本进行版本统计分析,从而得到节点路由版本。The server obtains the total flow information corresponding to the initial grayscale cluster information, and performs modulo calculation on the node flow information and the total flow information through the grayscale routing system based on the node grayscale calculation rules to obtain the grayscale percentage; judge the user identity Whether the number exists in the preset grayscale interval, if so, load the version configuration data corresponding to the initial grayscale cluster information, if not, do not execute; obtain the node grayscale configuration information in the system update request, according to the grayscale percentage , version configuration data and node grayscale configuration information, and perform version statistical analysis on the official release version of the preset rules, so as to obtain the node routing version.
205、获取与节点路由版本对应的目标灰度集群信息,并根据目标灰度集群信息,从预置路由规则***中获取目标路由规则信息。205. Obtain target grayscale cluster information corresponding to the node routing version, and obtain target routing rule information from a preset routing rule system according to the target grayscale cluster information.
206、通过预置路由规则***,基于目标路由规则信息和节点路由版本,对灰度应用节点进行路由版本的服务调用。206. Through the preset routing rule system, based on the target routing rule information and the node routing version, call the service of the routing version on the grayscale application node.
该步骤205-206的执行过程与上述步骤105-106的执行过程类似,在此不再赘述。The execution process of the steps 205-206 is similar to the execution process of the above-mentioned steps 105-106, and will not be repeated here.
207、通过节点路由版本,对目标灰度集群信息对应的灰度集群进行路由和灰度标识设置,并对目标灰度集群信息进行监听和更新。207. Through the node routing version, perform routing and grayscale identification setting for the grayscale cluster corresponding to the target grayscale cluster information, and monitor and update the target grayscale cluster information.
具体地,服务器通过节点路由版本,对目标灰度集群信息对应的灰度集群进行路由和灰度标识设置,并获取预置灰度集群***的目标目录信息,目标目录信息包括灰度流目录信息和集群目录信息;对目标目录信息进行监听,当监听到目标目录信息发生变化时,通过目标灰度集群信息,对预置灰度集群***中的灰度集群信息进行更新,并生成集群信息更新信息;获取基于集群信息更新信息的应用名称变化信息,通过应用名称变化信息,对与目标灰度集群信息对应的服务集群和服务信息进行更新。Specifically, through the node routing version, the server performs routing and grayscale identification settings on the grayscale cluster corresponding to the target grayscale cluster information, and obtains the target directory information of the preset grayscale cluster system. The target directory information includes grayscale stream directory information and cluster directory information; monitor the target directory information, and when the target directory information is monitored, update the gray-scale cluster information in the preset gray-scale cluster system through the target gray-scale cluster information, and generate a cluster information update Information; obtain application name change information based on the cluster information update information, and update the service cluster and service information corresponding to the target grayscale cluster information through the application name change information.
服务器通过节点路由版本,获取与节点路由版本对应的灰度服务节点,通过灰度服务节点对目标灰度集群信息对应的灰度集群进行路由,得到路由信息,通过开源分布式服务框架dubbo将路由信息透传到灰度应用节点的下一个节点,并调用预置的灰度接口,对路由的灰度集群进行灰度标识设置。The server obtains the grayscale service node corresponding to the node routing version through the node routing version, routes the grayscale cluster corresponding to the target grayscale cluster information through the grayscale service node, obtains the routing information, and uses the open source distributed service framework dubbo to route the The information is transparently transmitted to the next node of the grayscale application node, and the preset grayscale interface is called to set the grayscale identification of the grayscale cluster of the route.
服务器获取预置灰度集群***的目标目录信息(灰度流shunt目录信息和集群cluster目录信息),并通过预置的监听和变化通知机制,对目标目录信息进行监听,当监听到目标目录信息发生变化,并接收到目录变化通知时,对预置灰度集群***中的灰度集群信息进 行更新,并生成集群信息更新信息,以提供后续的历史查询,当通过预置的监听和变化通知机制,监听到基于集群信息更新信息的应用名称变化信息,并接收到名称变化通知时,该应用名称变化信息包括(灰度流shunt应用名称变化信息和集群cluster应用名称变化信息),对与目标灰度集群信息对应的服务集群和服务信息进行更新,并生成服务更新信息,以提供后续的历史查询。The server obtains the target directory information of the preset grayscale cluster system (grayscale stream shunt directory information and cluster cluster directory information), and monitors the target directory information through the preset monitoring and change notification mechanism. When the target directory information is monitored When a change occurs and a directory change notification is received, the grayscale cluster information in the preset grayscale cluster system is updated, and cluster information update information is generated to provide subsequent historical queries. Mechanism, when the application name change information based on cluster information update information is monitored and the name change notification is received, the application name change information includes (grayscale flow shunt application name change information and cluster cluster application name change information), which are compatible with the target The service cluster and service information corresponding to the gray cluster information are updated, and service update information is generated to provide subsequent historical queries.
其中,该监听和变化通知机制可为事件***zookeeper watcher机制,预置灰度集群***通过事件***zookeeper watcher机制,能够实现支持客户端节点注册发现、数据写入功能、节点数据监听功能和父节点监听功能,如:服务端通过预置的灰度客户端注册的临时节点,以***方式接受客户端数据;同理,客户端通过监听服务端注册的永久节点接收服务端推送的数据。Among them, the monitoring and change notification mechanism can be an event listener zookeeper watcher mechanism. The preset grayscale cluster system can support client node registration discovery, data writing function, node data monitoring function and Parent node monitoring function, such as: the server accepts client data through the temporary node registered by the preset grayscale client; similarly, the client receives the data pushed by the server by listening to the permanent node registered by the server .
可预置灰度集群***的管理控制台得到的信息如下:各个灰度节点信息;以应用为维度管理的各个灰度节点;节点状态显示(节点状态包括在线状态online和下线状态offline):(online,offline)、offline显示和offline时长;对于offline超过一定时长的机器,从服务集群中删除的信息;灰度集群展示信息和状态变化历史信息;某个灰度版本对应的应用组成的灰度集群标识信息;某个应用的灰度服务信息。The information obtained from the management console of the preset grayscale cluster system is as follows: information of each grayscale node; each grayscale node managed by the application as a dimension; node status display (node status includes online status and offline status): (online, offline), offline display and offline duration; for machines that are offline for more than a certain period of time, information deleted from the service cluster; grayscale cluster display information and status change history information; grayscale information composed of applications corresponding to a certain grayscale version Degree cluster identification information; grayscale service information of an application.
通过节点路由版本,对目标灰度集群信息对应的灰度集群进行路由和灰度标识设置,并对与目标灰度集群信息进行监听和更新管理,能够在不影响***稳定性的基础上及时获取用户对路由版本更新的意见反馈信息,有利于及时完善路由版本的产品功能,以及及时提升路由版本的产品质量,并且有利于新业务快速试错,提升不同用户群对不同类目商品的搜索满意度,进一步有利于研发流程的加快、业务方短平快特性的版本更新和版本发布风险的一定程度的规避。Through the node routing version, the grayscale cluster corresponding to the target grayscale cluster information is set for routing and grayscale identification, and the target grayscale cluster information is monitored and updated, which can be obtained in time without affecting system stability. Feedback information from users on the update of the routing version is conducive to timely improvement of the product functions of the routing version and the timely improvement of the product quality of the routing version. It is further conducive to the acceleration of the R&D process, the version update of the short-term, flat and fast features of the business side, and the avoidance of version release risks to a certain extent.
本申请实施例中,不仅通过灰度发布的形式,保证了更新版本对应的整体***的稳定,避免了新旧版本兼容和***宕机的风险,能够有效地实现业务方短平快特性的版本更新,能够有效地根据灰度应用节点的***更新请求,对节点路由版本进行精确的数据分析和运算,提高了版本更新的速度和准确性,从而解决了无法快速而准确地进行版本更新的问题,还能够在不影响***稳定性的基础上及时获取用户对路由版本更新的意见反馈信息,有利于及时完善路由版本的产品功能,以及及时提升路由版本的产品质量,并且有利于新业务快速试错,进一步有利于研发流程的加快、业务方短平快特性的版本更新和版本发布风险的一定程度的规避。In the embodiment of this application, the stability of the overall system corresponding to the updated version is guaranteed not only through the form of gray scale release, but also avoids the risk of compatibility between the old and new versions and system downtime, and can effectively realize the version update of the short, flat and fast characteristics of the business side, and can Effectively perform accurate data analysis and calculation on the node routing version according to the system update request of the grayscale application node, which improves the speed and accuracy of the version update, thereby solving the problem that the version cannot be updated quickly and accurately, and can also On the basis of not affecting the stability of the system, timely acquisition of user feedback information on the update of the routing version is conducive to timely improvement of the product functions of the routing version, as well as timely improvement of the product quality of the routing version, and is conducive to rapid trial and error of new services, and further It is conducive to the acceleration of the research and development process, the version update of the short-term, flat and fast features of the business side, and the avoidance of version release risks to a certain extent.
上面对本申请实施例中基于全站灰度的版本更新方法进行了描述,下面对本申请实施例中基于全站灰度的版本更新装置进行描述,请参阅图3,本申请实施例中基于全站灰度的版本更新装置一个实施例包括:The above describes the version update method based on the whole station grayscale in the embodiment of the present application. The following describes the version update device based on the whole station grayscale in the embodiment of the present application. Please refer to FIG. 3 . An embodiment of the grayscale version update device includes:
判断模块301,用于接收灰度应用节点发送的***更新请求,并判断***更新请求中的请求进入网关是否为灰度网关,***更新请求包括请求进入网关、请求进入方式、灰度应用节点的用户身份标识号和灰度应用节点的节点流量信息;The judging module 301 is used to receive the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway. The system update request includes the request entry gateway, the request entry method, and the grayscale application node. User ID number and node traffic information of Grayscale application nodes;
对比分析模块302,用于若请求进入网关为灰度网关,则将请求进入方式与预设优先请求方式进行对比分析,得到分析结果;The comparison and analysis module 302 is used to compare and analyze the request entry method and the preset priority request method if the request entry gateway is a grayscale gateway, and obtain the analysis result;
第一获取模块303,用于根据分析结果调用预置的灰度路由***,基于用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则;The first acquisition module 303 is used to call the preset grayscale routing system according to the analysis result, and obtain initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user identification number;
运算模块304,用于通过灰度路由***,基于节点流量信息、初始灰度集群信息和目标节点灰度计算规则进行版本运算,得到节点路由版本;The calculation module 304 is used to perform version calculation based on the node traffic information, the initial gray cluster information and the target node gray calculation rules through the gray routing system to obtain the node routing version;
第二获取模块305,用于获取与节点路由版本对应的目标灰度集群信息,并根据目标灰度集群信息,从预置路由规则***中获取目标路由规则信息;The second acquiring module 305 is configured to acquire target grayscale cluster information corresponding to the node routing version, and acquire target routing rule information from the preset routing rule system according to the target grayscale cluster information;
调用模块306,用于通过预置路由规则***,基于目标路由规则信息和节点路由版本, 对灰度应用节点进行路由版本的服务调用。The invoking module 306 is configured to call the service of the routing version of the grayscale application node based on the target routing rule information and the node routing version through the preset routing rule system.
上述基于全站灰度的版本更新装置中各个模块的功能实现与上述基于全站灰度的版本更新方法实施例中各步骤相对应,其功能和实现过程在此处不再一一赘述。The function realization of each module in the version update device based on the whole station gray scale corresponds to each step in the above embodiment of the version update method based on the whole station gray scale, and its functions and implementation processes will not be repeated here.
本申请实施例中,通过灰度发布的形式,保证了更新版本对应的整体***的稳定,避免了新旧版本兼容和***宕机的风险,能够有效地实现业务方短平快特性的版本更新,能够有效地根据灰度应用节点的***更新请求,对节点路由版本进行精确的数据分析和运算,提高了版本更新的速度和准确性,从而解决了无法快速而准确地进行版本更新的问题。In the embodiment of this application, the stability of the overall system corresponding to the updated version is guaranteed through the form of gray scale release, avoiding the compatibility of old and new versions and the risk of system downtime, and can effectively realize the version update of the short, flat and fast characteristics of the business side, and can effectively According to the system update request of grayscale application nodes, precise data analysis and calculations are performed on node routing versions, which improves the speed and accuracy of version updates, thus solving the problem that version updates cannot be performed quickly and accurately.
请参阅图4,本申请实施例中基于全站灰度的版本更新装置的另一个实施例包括:Please refer to Fig. 4, another embodiment of the version update device based on the whole station grayscale in the embodiment of the present application includes:
判断模块301,用于接收灰度应用节点发送的***更新请求,并判断***更新请求中的请求进入网关是否为灰度网关,***更新请求包括请求进入网关、请求进入方式、灰度应用节点的用户身份标识号和灰度应用节点的节点流量信息;The judging module 301 is used to receive the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway. The system update request includes the request entry gateway, the request entry method, and the grayscale application node. User ID number and node traffic information of Grayscale application nodes;
对比分析模块302,用于若请求进入网关为灰度网关,则将请求进入方式与预设优先请求方式进行对比分析,得到分析结果;The comparison and analysis module 302 is used to compare and analyze the request entry method and the preset priority request method if the request entry gateway is a grayscale gateway, and obtain the analysis result;
第一获取模块303,用于根据分析结果调用预置的灰度路由***,基于用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则;The first acquisition module 303 is used to call the preset grayscale routing system according to the analysis result, and obtain initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user identification number;
运算模块304,用于通过灰度路由***,基于节点流量信息、初始灰度集群信息和目标节点灰度计算规则进行版本运算,得到节点路由版本;The calculation module 304 is used to perform version calculation based on the node traffic information, the initial gray cluster information and the target node gray calculation rules through the gray routing system to obtain the node routing version;
第二获取模块305,用于获取与节点路由版本对应的目标灰度集群信息,并根据目标灰度集群信息,从预置路由规则***中获取目标路由规则信息;The second acquiring module 305 is configured to acquire target grayscale cluster information corresponding to the node routing version, and acquire target routing rule information from the preset routing rule system according to the target grayscale cluster information;
调用模块306,用于通过预置路由规则***,基于目标路由规则信息和节点路由版本,对灰度应用节点进行路由版本的服务调用;The calling module 306 is used to call the service of the routing version of the grayscale application node based on the target routing rule information and the node routing version through the preset routing rule system;
监听更新模块307,用于通过节点路由版本,对目标灰度集群信息对应的灰度集群进行路由和灰度标识设置,并对目标灰度集群信息进行监听和更新。The monitoring and updating module 307 is configured to set the routing and gray-scale identification of the gray-scale cluster corresponding to the target gray-scale cluster information through the node routing version, and monitor and update the target gray-scale cluster information.
可选的,第一获取模块303包括:Optionally, the first obtaining module 303 includes:
路由分析单元3031,用于若分析结果为灰度请求方式或调用链请求方式,则对灰度应用节点进行路由信息分析,得到路由结果;The routing analysis unit 3031 is configured to analyze the routing information of the gray-scale application node to obtain the routing result if the analysis result is the gray-scale request mode or the call chain request mode;
判断单元3032,用于根据路由结果调用预置的灰度路由***,判断用户身份标识号是否存在预置灰度白名单中;Judging unit 3032, configured to call the preset grayscale routing system according to the routing result, and judge whether the user identification number exists in the preset grayscale whitelist;
第一检索单元3033,用于若用户身份标识号存在预置灰度白名单中,则通过用户身份标识号,对预置灰度集群***中的灰度集群信息进行检索,得到初始灰度集群信息;The first retrieval unit 3033 is used to retrieve the gray-scale cluster information in the preset gray-scale cluster system through the user ID number if the user ID number exists in the preset gray-scale white list, and obtain the initial gray-scale cluster information;
第二检索单元3034,用于创建用户身份标识号的规则信息查询语言,通过规则信息查询语言,对预置灰度集群***中的灰度计算规则信息进行检索,得到目标节点灰度计算规则。The second retrieval unit 3034 is used to create the rule information query language for the user ID number, and retrieve the gray-scale calculation rule information in the preset gray-scale cluster system through the rule information query language to obtain the target node gray-scale calculation rule.
可选的,路由分析单元3031还可以具体用于:Optionally, the routing analysis unit 3031 can also be specifically used for:
当分析结果为灰度请求方式或调用链请求方式时,获取灰度应用节点的初始线程存储类,并判断初始线程存储类中是否存在灰度路由信息;若初始线程存储类中存在灰度路由信息,则返回灰度路由结果;若初始线程存储类中不存在灰度路由信息,则通过预置的灰度路由节点调用预置的灰度接口,对初始线程存储类进行流量标识信息添加处理,得到目标线程存储类;通过灰度接口,基于目标线程存储类执行灰度路由选择,得到路由选择结果;将灰度路由结果和路由选择结果确定为路由结果。When the analysis result is the grayscale request method or the call chain request method, obtain the initial thread storage class of the grayscale application node, and judge whether there is grayscale routing information in the initial thread storage class; if there is grayscale routing in the initial thread storage class information, return the grayscale routing result; if there is no grayscale routing information in the initial thread storage class, call the preset grayscale interface through the preset grayscale routing node, and add flow identification information to the initial thread storage class , to obtain the target thread storage class; through the gray-scale interface, perform gray-scale routing selection based on the target thread storage class, and obtain the routing selection result; determine the gray-scale routing result and the routing selection result as the routing result.
可选的,运算模块304还可以具体用于:Optionally, the calculation module 304 can also be specifically used for:
获取初始灰度集群信息对应的总流量信息,通过灰度路由***,基于节点灰度计算规则、节点流量信息和和总流量信息计算灰度百分比;获取与初始灰度集群信息对应的版本配置数据,并基于灰度百分比和版本配置数据进行版本运算,得到节点路由版本。Obtain the total traffic information corresponding to the initial grayscale cluster information, and calculate the grayscale percentage based on the node grayscale calculation rules, node traffic information and total traffic information through the grayscale routing system; obtain the version configuration data corresponding to the initial grayscale cluster information , and perform version calculation based on the gray percentage and version configuration data to obtain the node routing version.
可选的,对比分析模块302还可以具体用于:Optionally, the comparative analysis module 302 can also be specifically used for:
若请求进入网关为灰度网关,则判断请求进入方式是否为预设优先请求方式中的灰度请求方式或调用链接口请求方式;若请求进入方式为预设优先选择请求方式中的灰度请求方式或调用链接口请求方式,则返回分析结果,分析结果用于指示灰度请求方式或调用链请求方式。If the request entry gateway is a grayscale gateway, it is judged whether the request entry method is the grayscale request method in the preset priority request method or the call link interface request method; if the request entry method is the grayscale request in the preset priority selection request method method or call chain interface request method, the analysis result is returned, and the analysis result is used to indicate the grayscale request method or call chain request method.
可选的,监听更新模块307还可以具体用于:Optionally, the monitoring update module 307 may also be specifically used for:
通过节点路由版本,对目标灰度集群信息对应的灰度集群进行路由和灰度标识设置,并获取预置灰度集群***的目标目录信息,目标目录信息包括灰度流目录信息和集群目录信息;对目标目录信息进行监听,当监听到目标目录信息发生变化时,通过目标灰度集群信息,对预置灰度集群***中的灰度集群信息进行更新,并生成集群信息更新信息;获取基于集群信息更新信息的应用名称变化信息,通过应用名称变化信息,对与目标灰度集群信息对应的服务集群和服务信息进行更新。Through the node routing version, set the routing and grayscale identification of the grayscale cluster corresponding to the target grayscale cluster information, and obtain the target directory information of the preset grayscale cluster system. The target directory information includes grayscale flow directory information and cluster directory information ;Monitor the target directory information, and when the target directory information is monitored, update the gray-scale cluster information in the preset gray-scale cluster system through the target gray-scale cluster information, and generate cluster information update information; obtain based on The application name change information of the cluster information update information updates the service cluster and service information corresponding to the target grayscale cluster information through the application name change information.
上述基于全站灰度的版本更新装置中各模块和各单元的功能实现与上述基于全站灰度的版本更新方法实施例中各步骤相对应,其功能和实现过程在此处不再一一赘述。The function realization of each module and each unit in the version update device based on the whole station gray scale is corresponding to each step in the above embodiment of the version update method based on the whole station gray scale, and its function and implementation process will not be described here one by one. repeat.
本申请实施例中,不仅通过灰度发布的形式,保证了更新版本对应的整体***的稳定,避免了新旧版本兼容和***宕机的风险,能够有效地实现业务方短平快特性的版本更新,能够有效地根据灰度应用节点的***更新请求,对节点路由版本进行精确的数据分析和运算,提高了版本更新的速度和准确性,从而解决了无法快速而准确地进行版本更新的问题,还能够在不影响***稳定性的基础上及时获取用户对路由版本更新的意见反馈信息,有利于及时完善路由版本的产品功能,以及及时提升路由版本的产品质量,并且有利于新业务快速试错,进一步有利于研发流程的加快、业务方短平快特性的版本更新和版本发布风险的一定程度的规避。In the embodiment of this application, the stability of the overall system corresponding to the updated version is guaranteed not only through the form of gray scale release, but also avoids the risk of compatibility between the old and new versions and system downtime, and can effectively realize the version update of the short, flat and fast characteristics of the business side, and can Effectively perform accurate data analysis and calculation on the node routing version according to the system update request of the grayscale application node, which improves the speed and accuracy of the version update, thereby solving the problem that the version cannot be updated quickly and accurately, and can also On the basis of not affecting the stability of the system, timely acquisition of user feedback information on the update of the routing version is conducive to timely improvement of the product functions of the routing version, as well as timely improvement of the product quality of the routing version, and is conducive to rapid trial and error of new services, and further It is conducive to the acceleration of the R&D process, the version update of the short-term, flat and fast features of the business side, and the avoidance of version release risks to a certain extent.
上面图3和图4从模块化功能实体的角度对本申请实施例中的基于全站灰度的版本更新装置进行详细描述,下面从硬件处理的角度对本申请实施例中基于全站灰度的版本更新设备进行详细描述。Figure 3 and Figure 4 above describe in detail the version update device based on the whole station grayscale in the embodiment of the present application from the perspective of the modular functional entity, and the version update device based on the whole station grayscale in the embodiment of the present application is described below from the perspective of hardware processing. The update device is described in detail.
图5是本申请实施例提供的一种基于全站灰度的版本更新设备的结构示意图,该基于全站灰度的版本更新设备500可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上处理器(central processing units,CPU)510(例如,一个或一个以上处理器)和存储器520,一个或一个以上存储应用程序533或数据532的存储介质530(例如一个或一个以上海量存储设备)。其中,存储器520和存储介质530可以是短暂存储或持久存储。存储在存储介质530的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对基于全站灰度的版本更新设备500中的一系列指令操作。更进一步地,处理器510可以设置为与存储介质530通信,在基于全站灰度的版本更新设备500上执行存储介质530中的一系列指令操作。Fig. 5 is a schematic structural diagram of a version update device based on the whole station grayscale provided by the embodiment of the present application. The version update device 500 based on the whole station grayscale may have relatively large differences due to different configurations or performances, and may include One or more processors (central processing units, CPU) 510 (for example, one or more processors) and memory 520, one or more storage media 530 for storing application programs 533 or data 532 (for example, one or more storage device). Wherein, the memory 520 and the storage medium 530 may be temporary storage or persistent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations for the version update device 500 based on the gray scale of the whole station. Furthermore, the processor 510 may be configured to communicate with the storage medium 530, and execute a series of instruction operations in the storage medium 530 on the version update device 500 based on the total station gray scale.
基于全站灰度的版本更新设备500还可以包括一个或一个以上电源540,一个或一个以上有线或无线网络接口550,一个或一个以上输入输出接口560,和/或,一个或一个以上操作***531,例如Windows Serve,Mac OS X,Unix,Linux,FreeBSD等等。本领域技术人员可以理解,图5示出的基于全站灰度的版本更新设备结构并不构成对基于全站灰度的版本更新设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The version update device 500 based on the whole station grayscale can also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and/or, one or more operating systems 531, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Those skilled in the art can understand that the version update device structure based on the whole station grayscale shown in Figure 5 does not constitute a limitation on the version update device based on the whole station grayscale, and may include more or less components than those shown in the figure , or combinations of certain components, or different arrangements of components.
本申请还提供一种基于全站灰度的版本更新设备,包括:存储器和至少一个处理器,所述存储器中存储有指令,所述存储器和所述至少一个处理器通过线路互连;所述至少一个处理器调用所述存储器中的所述指令,以使得所述基于全站灰度的版本更新设备执行上述基于全站灰度的版本更新方法中的步骤。The present application also provides a version update device based on the gray scale of the whole station, including: a memory and at least one processor, instructions are stored in the memory, and the memory and the at least one processor are interconnected through a line; the At least one processor invokes the instruction in the memory, so that the device for updating the version based on the whole station grayscale executes the steps in the method for updating the version based on the whole station grayscale.
本申请还提供一种计算机可读存储介质,该计算机可读存储介质可以为非易失性计算机可读存储介质,该计算机可读存储介质也可以为易失性计算机可读存储介质,计算机可读存储介质中存储有指令,当指令在计算机上运行时,使得计算机执行如下步骤:The present application also provides a computer-readable storage medium, the computer-readable storage medium may be a non-volatile computer-readable storage medium, the computer-readable storage medium may also be a volatile computer-readable storage medium, and the computer-readable storage medium may be There are instructions stored in the read storage medium, and when the instructions are run on the computer, the computer is made to perform the following steps:
接收灰度应用节点发送的***更新请求,并判断所述***更新请求中的请求进入网关是否为灰度网关,所述***更新请求包括请求进入网关、请求进入方式、所述灰度应用节点的用户身份标识号和所述灰度应用节点的节点流量信息;Receive the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway, and the system update request includes the request entry gateway, the request entry method, and the grayscale application node’s User ID number and node traffic information of the grayscale application node;
若所述请求进入网关为灰度网关,则将所述请求进入方式与预设优先请求方式进行对比分析,得到分析结果;If the request entry gateway is a grayscale gateway, then compare and analyze the request entry method and the preset priority request method to obtain the analysis result;
根据所述分析结果调用预置的灰度路由***,基于所述用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则;Invoke a preset grayscale routing system according to the analysis result, and obtain initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user ID number;
通过所述灰度路由***,基于所述节点流量信息、所述初始灰度集群信息和所述目标节点灰度计算规则进行版本运算,得到节点路由版本;performing version calculation based on the node traffic information, the initial gray cluster information and the target node gray calculation rules through the gray routing system to obtain a node routing version;
获取与所述节点路由版本对应的目标灰度集群信息,并根据所述目标灰度集群信息,从预置路由规则***中获取目标路由规则信息;Acquiring target grayscale cluster information corresponding to the node routing version, and obtaining target routing rule information from a preset routing rule system according to the target grayscale cluster information;
通过所述预置路由规则***,基于所述目标路由规则信息和所述节点路由版本,对所述灰度应用节点进行路由版本的服务调用。Through the preset routing rule system, based on the target routing rule information and the node routing version, the grayscale application node performs a route version service call.
进一步地,计算机可读存储介质可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序等;存储数据区可存储根据区块链节点的使用所创建的数据等。Further, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function, etc.; Use the created data etc.
本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in this application is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain (Blockchain), essentially a decentralized database, is a series of data blocks associated with each other using cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的***,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or part of the contribution to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the application.

Claims (20)

  1. 一种基于全站灰度的版本更新方法,其中,所述基于全站灰度的版本更新方法包括:A version update method based on the grayscale of the whole station, wherein, the version update method based on the grayscale of the whole station includes:
    接收灰度应用节点发送的***更新请求,并判断所述***更新请求中的请求进入网关是否为灰度网关,所述***更新请求包括请求进入网关、请求进入方式、所述灰度应用节点的用户身份标识号和所述灰度应用节点的节点流量信息;Receive the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway, and the system update request includes the request entry gateway, the request entry method, and the grayscale application node’s User ID number and node traffic information of the grayscale application node;
    若所述请求进入网关为灰度网关,则将所述请求进入方式与预设优先请求方式进行对比分析,得到分析结果;If the request entry gateway is a grayscale gateway, then compare and analyze the request entry method and the preset priority request method to obtain the analysis result;
    根据所述分析结果调用预置的灰度路由***,基于所述用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则;Invoke a preset grayscale routing system according to the analysis result, and obtain initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user ID number;
    通过所述灰度路由***,基于所述节点流量信息、所述初始灰度集群信息和所述目标节点灰度计算规则进行版本运算,得到节点路由版本;performing version calculation based on the node traffic information, the initial gray cluster information and the target node gray calculation rules through the gray routing system to obtain a node routing version;
    获取与所述节点路由版本对应的目标灰度集群信息,并根据所述目标灰度集群信息,从预置路由规则***中获取目标路由规则信息;Acquiring target grayscale cluster information corresponding to the node routing version, and obtaining target routing rule information from a preset routing rule system according to the target grayscale cluster information;
    通过所述预置路由规则***,基于所述目标路由规则信息和所述节点路由版本,对所述灰度应用节点进行路由版本的服务调用。Through the preset routing rule system, based on the target routing rule information and the node routing version, the grayscale application node performs a route version service call.
  2. 根据权利要求1所述的基于全站灰度的版本更新方法,其中,所述根据所述分析结果调用预置的灰度路由***,基于所述用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则,包括:The version update method based on the whole station gray scale according to claim 1, wherein the preset gray scale routing system is invoked according to the analysis result, based on the user identification number, from the preset gray scale cluster system Obtain initial grayscale cluster information and target node grayscale calculation rules, including:
    若所述分析结果为灰度请求方式或调用链请求方式,则对所述灰度应用节点进行路由信息分析,得到路由结果;If the analysis result is a grayscale request method or a call chain request method, then analyze the routing information of the grayscale application node to obtain a routing result;
    根据所述路由结果调用预置的灰度路由***,判断所述用户身份标识号是否存在预置灰度白名单中;Calling the preset grayscale routing system according to the routing result, and judging whether the user ID number exists in the preset grayscale whitelist;
    若所述用户身份标识号存在预置灰度白名单中,则通过所述用户身份标识号,对预置灰度集群***中的灰度集群信息进行检索,得到初始灰度集群信息;If the user ID number exists in the preset grayscale white list, the grayscale cluster information in the preset grayscale cluster system is retrieved through the user ID number to obtain the initial grayscale cluster information;
    创建所述用户身份标识号的规则信息查询语言,通过所述规则信息查询语言,对预置灰度集群***中的灰度计算规则信息进行检索,得到目标节点灰度计算规则。A rule information query language for the user ID number is created, and the gray-scale calculation rule information in the preset gray-scale cluster system is retrieved through the rule information query language to obtain the target node gray-scale calculation rule.
  3. 根据权利要求2所述的基于全站灰度的版本更新方法,其中,所述若所述分析结果为灰度请求方式或调用链请求方式,则对所述灰度应用节点进行路由信息分析,得到路由结果,包括:The version update method based on the gray level of the whole station according to claim 2, wherein if the analysis result is a gray level request method or a call chain request method, the routing information analysis is performed on the gray level application node, Get routing results, including:
    当所述分析结果为灰度请求方式或调用链请求方式时,获取所述灰度应用节点的初始线程存储类,并判断所述初始线程存储类中是否存在灰度路由信息;When the analysis result is a grayscale request method or a call chain request method, obtain the initial thread storage class of the grayscale application node, and determine whether there is grayscale routing information in the initial thread storage class;
    若所述初始线程存储类中存在灰度路由信息,则返回灰度路由结果;If there is gray-scale routing information in the initial thread storage class, return the gray-scale routing result;
    若所述初始线程存储类中不存在灰度路由信息,则通过预置的灰度路由节点调用预置的灰度接口,对所述初始线程存储类进行流量标识信息添加处理,得到目标线程存储类;If there is no gray-scale routing information in the initial thread storage class, call the preset gray-scale interface through the preset gray-scale routing node, and add traffic identification information to the initial thread storage class to obtain the target thread storage kind;
    通过所述灰度接口,基于所述目标线程存储类执行灰度路由选择,得到路由选择结果;Execute grayscale routing selection based on the target thread storage class through the grayscale interface to obtain a routing selection result;
    将所述灰度路由结果和所述路由选择结果确定为路由结果。The grayscale routing result and the routing selection result are determined as routing results.
  4. 根据权利要求1所述的基于全站灰度的版本更新方法,其中,所述通过所述灰度路由***,基于所述节点流量信息、所述初始灰度集群信息和所述目标节点灰度计算规则进行版本运算,得到节点路由版本,包括:The version update method based on the gray scale of the whole station according to claim 1, wherein the gray scale routing system is based on the node traffic information, the initial gray scale cluster information and the target node gray scale The calculation rules perform version calculations to obtain node routing versions, including:
    获取所述初始灰度集群信息对应的总流量信息,通过所述灰度路由***,基于所述节点灰度计算规则、所述节点流量信息和和所述总流量信息计算灰度百分比;Obtain the total flow information corresponding to the initial grayscale cluster information, and calculate the grayscale percentage based on the node grayscale calculation rule, the node flow information and the total flow information through the grayscale routing system;
    获取与所述初始灰度集群信息对应的版本配置数据,并基于所述灰度百分比和所述版本配置数据进行版本运算,得到节点路由版本。Obtain version configuration data corresponding to the initial grayscale cluster information, and perform version calculation based on the grayscale percentage and the version configuration data to obtain a node routing version.
  5. 根据权利要求1所述的基于全站灰度的版本更新方法,其中,所述若所述请求进入网关为灰度网关,则将所述请求进入方式与预设优先请求方式进行对比分析,得到分析结果,包括:The version update method based on the grayscale of the whole station according to claim 1, wherein, if the request entry gateway is a grayscale gateway, then compare and analyze the request entry method and the preset priority request method to obtain Analysis results, including:
    若所述请求进入网关为灰度网关,则判断所述请求进入方式是否为预设优先请求方式中的灰度请求方式或调用链接口请求方式;If the request entry gateway is a grayscale gateway, it is judged whether the request entry method is the grayscale request method or the call link interface request method in the preset priority request method;
    若所述请求进入方式为预设优先选择请求方式中的灰度请求方式或调用链接口请求方式,则返回分析结果,所述分析结果用于指示灰度请求方式或调用链请求方式。If the request entry mode is grayscale request mode or call link interface request mode in the preset priority selection request mode, return the analysis result, and the analysis result is used to indicate the grayscale request mode or call chain request mode.
  6. 根据权利要求1-5中任一项所述的基于全站灰度的版本更新方法,其中,所述通过所述预置路由规则***,基于所述目标路由规则信息和所述节点路由版本,对所述灰度应用节点进行路由版本的服务调用之后,还包括:The version update method based on the whole station grayscale according to any one of claims 1-5, wherein, through the preset routing rule system, based on the target routing rule information and the node routing version, After invoking the routing version of the service on the grayscale application node, it also includes:
    通过所述节点路由版本,对所述目标灰度集群信息对应的灰度集群进行路由和灰度标识设置,并对所述目标灰度集群信息进行监听和更新。Through the node routing version, the grayscale cluster corresponding to the target grayscale cluster information is configured with routing and grayscale identification, and the target grayscale cluster information is monitored and updated.
  7. 根据权利要求6所述的基于全站灰度的版本更新方法,其中,所述通过所述节点路由版本,对所述目标灰度集群信息对应的灰度集群进行路由和灰度标识设置,并对所述目标灰度集群信息进行监听和更新,包括:The version update method based on the grayscale of the whole station according to claim 6, wherein, the routing version through the node is used to perform routing and grayscale identification settings for the grayscale cluster corresponding to the target grayscale cluster information, and Monitor and update the target grayscale cluster information, including:
    通过所述节点路由版本,对所述目标灰度集群信息对应的灰度集群进行路由和灰度标识设置,并获取所述预置灰度集群***的目标目录信息,所述目标目录信息包括灰度流目录信息和集群目录信息;Through the node routing version, the grayscale cluster corresponding to the target grayscale cluster information is configured with routing and grayscale identification, and the target directory information of the preset grayscale cluster system is obtained, and the target directory information includes grayscale Degree stream directory information and cluster directory information;
    对所述目标目录信息进行监听,当监听到所述目标目录信息发生变化时,通过所述目标灰度集群信息,对所述预置灰度集群***中的灰度集群信息进行更新,并生成集群信息更新信息;Monitor the target directory information, and update the gray-scale cluster information in the preset gray-scale cluster system through the target gray-scale cluster information when monitoring the change of the target directory information, and generate Cluster information update information;
    获取基于所述集群信息更新信息的应用名称变化信息,通过所述应用名称变化信息,对与所述目标灰度集群信息对应的服务集群和服务信息进行更新。Acquire application name change information based on the cluster information update information, and update the service cluster and service information corresponding to the target grayscale cluster information through the application name change information.
  8. 一种基于全站灰度的版本更新设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令程序,所述处理器执行所述计算机程序可读指令时实现如下步骤:A version update device based on the grayscale of the whole station, comprising a memory, a processor, and a computer-readable instruction program stored in the memory and operable on the processor, the processor executing the computer program can The following steps are implemented when reading instructions:
    接收灰度应用节点发送的***更新请求,并判断所述***更新请求中的请求进入网关是否为灰度网关,所述***更新请求包括请求进入网关、请求进入方式、所述灰度应用节点的用户身份标识号和所述灰度应用节点的节点流量信息;Receive the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway, and the system update request includes the request entry gateway, the request entry method, and the grayscale application node’s User ID number and node traffic information of the grayscale application node;
    若所述请求进入网关为灰度网关,则将所述请求进入方式与预设优先请求方式进行对比分析,得到分析结果;If the request entry gateway is a grayscale gateway, then compare and analyze the request entry method and the preset priority request method to obtain the analysis result;
    根据所述分析结果调用预置的灰度路由***,基于所述用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则;Invoke a preset grayscale routing system according to the analysis result, and obtain initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user ID number;
    通过所述灰度路由***,基于所述节点流量信息、所述初始灰度集群信息和所述目标节点灰度计算规则进行版本运算,得到节点路由版本;performing version calculation based on the node traffic information, the initial gray cluster information and the target node gray calculation rules through the gray routing system to obtain a node routing version;
    获取与所述节点路由版本对应的目标灰度集群信息,并根据所述目标灰度集群信息,从预置路由规则***中获取目标路由规则信息;Acquiring target grayscale cluster information corresponding to the node routing version, and obtaining target routing rule information from a preset routing rule system according to the target grayscale cluster information;
    通过所述预置路由规则***,基于所述目标路由规则信息和所述节点路由版本,对所述灰度应用节点进行路由版本的服务调用。Through the preset routing rule system, based on the target routing rule information and the node routing version, the grayscale application node performs a route version service call.
  9. 根据权利要求8所述的基于全站灰度的版本更新设备,其中,所述根据所述分析结果调用预置的灰度路由***,基于所述用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则,包括:The version update device based on the whole station grayscale according to claim 8, wherein the preset grayscale routing system is invoked according to the analysis result, based on the user identification number, from the preset grayscale cluster system Obtain initial grayscale cluster information and target node grayscale calculation rules, including:
    若所述分析结果为灰度请求方式或调用链请求方式,则对所述灰度应用节点进行路由信息分析,得到路由结果;If the analysis result is a grayscale request method or a call chain request method, then analyze the routing information of the grayscale application node to obtain a routing result;
    根据所述路由结果调用预置的灰度路由***,判断所述用户身份标识号是否存在预置灰度白名单中;Calling the preset grayscale routing system according to the routing result, and judging whether the user ID number exists in the preset grayscale whitelist;
    若所述用户身份标识号存在预置灰度白名单中,则通过所述用户身份标识号,对预置灰度集群***中的灰度集群信息进行检索,得到初始灰度集群信息;If the user ID number exists in the preset grayscale white list, the grayscale cluster information in the preset grayscale cluster system is retrieved through the user ID number to obtain the initial grayscale cluster information;
    创建所述用户身份标识号的规则信息查询语言,通过所述规则信息查询语言,对预置灰度集群***中的灰度计算规则信息进行检索,得到目标节点灰度计算规则。A rule information query language for the user ID number is created, and the gray-scale calculation rule information in the preset gray-scale cluster system is retrieved through the rule information query language to obtain the target node gray-scale calculation rule.
  10. 根据权利要求9所述的基于全站灰度的版本更新设备,其中,所述若所述分析结果为灰度请求方式或调用链请求方式,则对所述灰度应用节点进行路由信息分析,得到路由结果,包括:The version update device based on the whole station grayscale according to claim 9, wherein if the analysis result is a grayscale request method or a call chain request method, then analyze the routing information of the grayscale application node, Get routing results, including:
    当所述分析结果为灰度请求方式或调用链请求方式时,获取所述灰度应用节点的初始线程存储类,并判断所述初始线程存储类中是否存在灰度路由信息;When the analysis result is a grayscale request method or a call chain request method, obtain the initial thread storage class of the grayscale application node, and determine whether there is grayscale routing information in the initial thread storage class;
    若所述初始线程存储类中存在灰度路由信息,则返回灰度路由结果;If there is gray-scale routing information in the initial thread storage class, return the gray-scale routing result;
    若所述初始线程存储类中不存在灰度路由信息,则通过预置的灰度路由节点调用预置的灰度接口,对所述初始线程存储类进行流量标识信息添加处理,得到目标线程存储类;If there is no gray-scale routing information in the initial thread storage class, call the preset gray-scale interface through the preset gray-scale routing node, and add traffic identification information to the initial thread storage class to obtain the target thread storage kind;
    通过所述灰度接口,基于所述目标线程存储类执行灰度路由选择,得到路由选择结果;Execute grayscale routing selection based on the target thread storage class through the grayscale interface to obtain a routing selection result;
    将所述灰度路由结果和所述路由选择结果确定为路由结果。The grayscale routing result and the routing selection result are determined as routing results.
  11. 根据权利要求8所述的基于全站灰度的版本更新设备,其中,所述通过所述灰度路由***,基于所述节点流量信息、所述初始灰度集群信息和所述目标节点灰度计算规则进行版本运算,得到节点路由版本,包括:The version update device based on the grayscale of the whole station according to claim 8, wherein said passing through the grayscale routing system is based on the node traffic information, the initial grayscale cluster information and the target node grayscale The calculation rules perform version calculations to obtain node routing versions, including:
    获取所述初始灰度集群信息对应的总流量信息,通过所述灰度路由***,基于所述节点灰度计算规则、所述节点流量信息和和所述总流量信息计算灰度百分比;Obtain the total flow information corresponding to the initial grayscale cluster information, and calculate the grayscale percentage based on the node grayscale calculation rule, the node flow information and the total flow information through the grayscale routing system;
    获取与所述初始灰度集群信息对应的版本配置数据,并基于所述灰度百分比和所述版本配置数据进行版本运算,得到节点路由版本。Obtain version configuration data corresponding to the initial grayscale cluster information, and perform version calculation based on the grayscale percentage and the version configuration data to obtain a node routing version.
  12. 根据权利要求8所述的基于全站灰度的版本更新设备,其中,所述若所述请求进入网关为灰度网关,则将所述请求进入方式与预设优先请求方式进行对比分析,得到分析结果,包括:The version update device based on the whole station gray scale according to claim 8, wherein if the request entry gateway is a gray scale gateway, then compare and analyze the request entry method and the preset priority request method to obtain Analysis results, including:
    若所述请求进入网关为灰度网关,则判断所述请求进入方式是否为预设优先请求方式中的灰度请求方式或调用链接口请求方式;If the request entry gateway is a grayscale gateway, it is judged whether the request entry method is the grayscale request method or the call link interface request method in the preset priority request method;
    若所述请求进入方式为预设优先选择请求方式中的灰度请求方式或调用链接口请求方式,则返回分析结果,所述分析结果用于指示灰度请求方式或调用链请求方式。If the request entry mode is grayscale request mode or call link interface request mode in the preset priority selection request mode, return the analysis result, and the analysis result is used to indicate the grayscale request mode or call chain request mode.
  13. 根据权利要求8-12中任一项所述的基于全站灰度的版本更新设备,其中,所述通过所述预置路由规则***,基于所述目标路由规则信息和所述节点路由版本,对所述灰度应用节点进行路由版本的服务调用之后,还包括:The version update device based on the whole station grayscale according to any one of claims 8-12, wherein, through the preset routing rule system, based on the target routing rule information and the node routing version, After invoking the routing version of the service on the grayscale application node, it also includes:
    通过所述节点路由版本,对所述目标灰度集群信息对应的灰度集群进行路由和灰度标识设置,并对所述目标灰度集群信息进行监听和更新。Through the node routing version, the grayscale cluster corresponding to the target grayscale cluster information is configured with routing and grayscale identification, and the target grayscale cluster information is monitored and updated.
  14. 根据权利要求13所述的基于全站灰度的版本更新设备,其中,所述通过所述节点路由版本,对所述目标灰度集群信息对应的灰度集群进行路由和灰度标识设置,并对所述目标灰度集群信息进行监听和更新,包括:The version update device based on the gray scale of the whole station according to claim 13, wherein, in the routing version through the node, the gray scale cluster corresponding to the target gray scale cluster information is routed and gray scale identification is set, and Monitor and update the target grayscale cluster information, including:
    通过所述节点路由版本,对所述目标灰度集群信息对应的灰度集群进行路由和灰度标识设置,并获取所述预置灰度集群***的目标目录信息,所述目标目录信息包括灰度流目录信息和集群目录信息;Through the node routing version, the grayscale cluster corresponding to the target grayscale cluster information is configured with routing and grayscale identification, and the target directory information of the preset grayscale cluster system is obtained, and the target directory information includes grayscale Degree stream directory information and cluster directory information;
    对所述目标目录信息进行监听,当监听到所述目标目录信息发生变化时,通过所述目标灰度集群信息,对所述预置灰度集群***中的灰度集群信息进行更新,并生成集群信息更新信息;Monitor the target directory information, and update the gray-scale cluster information in the preset gray-scale cluster system through the target gray-scale cluster information when monitoring the change of the target directory information, and generate Cluster information update information;
    获取基于所述集群信息更新信息的应用名称变化信息,通过所述应用名称变化信息,对与所述目标灰度集群信息对应的服务集群和服务信息进行更新。Acquire application name change information based on the cluster information update information, and update the service cluster and service information corresponding to the target grayscale cluster information through the application name change information.
  15. 一种计算机可读存储介质,所述计算机可读存储介质中存储计算机程序指令,当所述计算机程序指令在计算机上运行时,使得计算机执行如下步骤:A computer-readable storage medium, wherein computer program instructions are stored in the computer-readable storage medium, and when the computer program instructions are run on a computer, the computer is made to perform the following steps:
    接收灰度应用节点发送的***更新请求,并判断所述***更新请求中的请求进入网关是否为灰度网关,所述***更新请求包括请求进入网关、请求进入方式、所述灰度应用节点的用户身份标识号和所述灰度应用节点的节点流量信息;Receive the system update request sent by the grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway, and the system update request includes the request entry gateway, the request entry method, and the grayscale application node’s User ID number and node traffic information of the grayscale application node;
    若所述请求进入网关为灰度网关,则将所述请求进入方式与预设优先请求方式进行对比分析,得到分析结果;If the request entry gateway is a grayscale gateway, then compare and analyze the request entry method and the preset priority request method to obtain the analysis result;
    根据所述分析结果调用预置的灰度路由***,基于所述用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则;Invoke a preset grayscale routing system according to the analysis result, and obtain initial grayscale cluster information and target node grayscale calculation rules from the preset grayscale cluster system based on the user ID number;
    通过所述灰度路由***,基于所述节点流量信息、所述初始灰度集群信息和所述目标节点灰度计算规则进行版本运算,得到节点路由版本;performing version calculation based on the node traffic information, the initial gray cluster information and the target node gray calculation rules through the gray routing system to obtain a node routing version;
    获取与所述节点路由版本对应的目标灰度集群信息,并根据所述目标灰度集群信息,从预置路由规则***中获取目标路由规则信息;Acquiring target grayscale cluster information corresponding to the node routing version, and obtaining target routing rule information from a preset routing rule system according to the target grayscale cluster information;
    通过所述预置路由规则***,基于所述目标路由规则信息和所述节点路由版本,对所述灰度应用节点进行路由版本的服务调用。Through the preset routing rule system, based on the target routing rule information and the node routing version, the grayscale application node performs a route version service call.
  16. 根据权利要求15所述的计算机可读存储介质,其中,所述根据所述分析结果调用预置的灰度路由***,基于所述用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则,包括:The computer-readable storage medium according to claim 15, wherein the preset grayscale routing system is invoked according to the analysis result, and the initial grayscale is obtained from the preset grayscale cluster system based on the user identification number. Degree cluster information and target node gray calculation rules, including:
    若所述分析结果为灰度请求方式或调用链请求方式,则对所述灰度应用节点进行路由信息分析,得到路由结果;If the analysis result is a grayscale request method or a call chain request method, then analyze the routing information of the grayscale application node to obtain a routing result;
    根据所述路由结果调用预置的灰度路由***,判断所述用户身份标识号是否存在预置灰度白名单中;Calling the preset grayscale routing system according to the routing result, and judging whether the user ID number exists in the preset grayscale white list;
    若所述用户身份标识号存在预置灰度白名单中,则通过所述用户身份标识号,对预置灰度集群***中的灰度集群信息进行检索,得到初始灰度集群信息;If the user ID number exists in the preset grayscale white list, the grayscale cluster information in the preset grayscale cluster system is retrieved through the user ID number to obtain the initial grayscale cluster information;
    创建所述用户身份标识号的规则信息查询语言,通过所述规则信息查询语言,对预置灰度集群***中的灰度计算规则信息进行检索,得到目标节点灰度计算规则。A rule information query language for the user ID number is created, and the gray-scale calculation rule information in the preset gray-scale cluster system is retrieved through the rule information query language to obtain the target node gray-scale calculation rule.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述若所述分析结果为灰度请求方式或调用链请求方式,则对所述灰度应用节点进行路由信息分析,得到路由结果,包括:The computer-readable storage medium according to claim 16, wherein if the analysis result is a grayscale request method or a call chain request method, then analyze the routing information of the grayscale application node to obtain a routing result, include:
    当所述分析结果为灰度请求方式或调用链请求方式时,获取所述灰度应用节点的初始线程存储类,并判断所述初始线程存储类中是否存在灰度路由信息;When the analysis result is a grayscale request method or a call chain request method, obtain the initial thread storage class of the grayscale application node, and determine whether there is grayscale routing information in the initial thread storage class;
    若所述初始线程存储类中存在灰度路由信息,则返回灰度路由结果;If there is gray-scale routing information in the initial thread storage class, return the gray-scale routing result;
    若所述初始线程存储类中不存在灰度路由信息,则通过预置的灰度路由节点调用预置的灰度接口,对所述初始线程存储类进行流量标识信息添加处理,得到目标线程存储类;If there is no gray-scale routing information in the initial thread storage class, call the preset gray-scale interface through the preset gray-scale routing node, and add traffic identification information to the initial thread storage class to obtain the target thread storage kind;
    通过所述灰度接口,基于所述目标线程存储类执行灰度路由选择,得到路由选择结果;Execute grayscale routing selection based on the target thread storage class through the grayscale interface to obtain a routing selection result;
    将所述灰度路由结果和所述路由选择结果确定为路由结果。The grayscale routing result and the routing selection result are determined as routing results.
  18. 根据权利要求15所述的计算机可读存储介质,其中,所述通过所述灰度路由***,基于所述节点流量信息、所述初始灰度集群信息和所述目标节点灰度计算规则进行版本运算,得到节点路由版本,包括:The computer-readable storage medium according to claim 15, wherein the grayscale routing system performs versioning based on the node traffic information, the initial grayscale cluster information, and the target node grayscale calculation rules. Operation to get the node routing version, including:
    获取所述初始灰度集群信息对应的总流量信息,通过所述灰度路由***,基于所述节点灰度计算规则、所述节点流量信息和和所述总流量信息计算灰度百分比;Obtain the total flow information corresponding to the initial grayscale cluster information, and calculate the grayscale percentage based on the node grayscale calculation rule, the node flow information and the total flow information through the grayscale routing system;
    获取与所述初始灰度集群信息对应的版本配置数据,并基于所述灰度百分比和所述版 本配置数据进行版本运算,得到节点路由版本。Obtain the version configuration data corresponding to the initial gray scale cluster information, and perform version calculation based on the gray scale percentage and the version configuration data to obtain the node routing version.
  19. 根据权利要求15所述的计算机可读存储介质,其中,所述若所述请求进入网关为灰度网关,则将所述请求进入方式与预设优先请求方式进行对比分析,得到分析结果,包括:The computer-readable storage medium according to claim 15, wherein, if the request entry gateway is a grayscale gateway, compare and analyze the request entry method and the preset priority request method to obtain the analysis result, including :
    若所述请求进入网关为灰度网关,则判断所述请求进入方式是否为预设优先请求方式中的灰度请求方式或调用链接口请求方式;If the request entry gateway is a grayscale gateway, it is judged whether the request entry method is the grayscale request method or the call link interface request method in the preset priority request method;
    若所述请求进入方式为预设优先选择请求方式中的灰度请求方式或调用链接口请求方式,则返回分析结果,所述分析结果用于指示灰度请求方式或调用链请求方式。If the request entry mode is grayscale request mode or call link interface request mode in the preset priority selection request mode, return the analysis result, and the analysis result is used to indicate the grayscale request mode or call chain request mode.
  20. 一种基于全站灰度的版本更新装置,其中,所述基于全站灰度的版本更新装置包括:A version update device based on the whole station grayscale, wherein the version update device based on the whole station grayscale includes:
    判断模块,用于接收灰度应用节点发送的***更新请求,并判断所述***更新请求中的请求进入网关是否为灰度网关,所述***更新请求包括请求进入网关、请求进入方式、所述灰度应用节点的用户身份标识号和所述灰度应用节点的节点流量信息;A judging module, configured to receive a system update request sent by a grayscale application node, and judge whether the request entry gateway in the system update request is a grayscale gateway. The system update request includes a request entry gateway, a request entry method, the The user identification number of the grayscale application node and the node traffic information of the grayscale application node;
    对比分析模块,用于若所述请求进入网关为灰度网关,则将所述请求进入方式与预设优先请求方式进行对比分析,得到分析结果;A comparative analysis module, configured to compare and analyze the request entry method and the preset priority request method to obtain the analysis result if the request entry gateway is a grayscale gateway;
    第一获取模块,用于根据所述分析结果调用预置的灰度路由***,基于所述用户身份标识号,从预置灰度集群***中获取初始灰度集群信息和目标节点灰度计算规则;The first acquisition module is used to invoke the preset gray-scale routing system according to the analysis result, and obtain the initial gray-scale cluster information and target node gray-scale calculation rules from the preset gray-scale cluster system based on the user identification number ;
    运算模块,用于通过所述灰度路由***,基于所述节点流量信息、所述初始灰度集群信息和所述目标节点灰度计算规则进行版本运算,得到节点路由版本;An operation module, configured to perform version calculation based on the node traffic information, the initial gray-scale cluster information, and the target node gray-scale calculation rules through the gray-scale routing system, to obtain a node routing version;
    第二获取模块,用于获取与所述节点路由版本对应的目标灰度集群信息,并根据所述目标灰度集群信息,从预置路由规则***中获取目标路由规则信息;The second obtaining module is used to obtain target gray-scale cluster information corresponding to the node routing version, and obtain target routing rule information from a preset routing rule system according to the target gray-scale cluster information;
    调用模块,用于通过所述预置路由规则***,基于所述目标路由规则信息和所述节点路由版本,对所述灰度应用节点进行路由版本的服务调用。The invoking module is configured to, through the preset routing rule system, call the service of the routing version of the grayscale application node based on the target routing rule information and the node routing version.
PCT/CN2022/088889 2021-06-22 2022-04-25 Version updating method, apparatus, and device based on entire site grayscale, and storage medium WO2022267677A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110691937.8 2021-06-22
CN202110691937.8A CN113422732A (en) 2021-06-22 2021-06-22 Version updating method, device, equipment and storage medium based on total station gray scale

Publications (1)

Publication Number Publication Date
WO2022267677A1 true WO2022267677A1 (en) 2022-12-29

Family

ID=77716041

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/088889 WO2022267677A1 (en) 2021-06-22 2022-04-25 Version updating method, apparatus, and device based on entire site grayscale, and storage medium

Country Status (2)

Country Link
CN (1) CN113422732A (en)
WO (1) WO2022267677A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117170718A (en) * 2023-11-02 2023-12-05 绿城科技产业服务集团有限公司 Gray scale release method and device based on micro-service architecture and electronic equipment

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113422732A (en) * 2021-06-22 2021-09-21 康键信息技术(深圳)有限公司 Version updating method, device, equipment and storage medium based on total station gray scale
CN114615135B (en) * 2022-02-18 2024-03-22 佐朋数科(深圳)信息技术有限责任公司 Front-end gray level publishing method, system and storage medium
CN114666343A (en) * 2022-03-24 2022-06-24 康键信息技术(深圳)有限公司 Method, device and equipment for releasing gray scale of static resource and storage medium
CN114422440B (en) * 2022-03-28 2022-07-12 北京沃丰时代数据科技有限公司 Gray scale distribution method and device, electronic equipment and storage medium
CN117215596A (en) * 2023-08-02 2023-12-12 广州优谷信息技术有限公司 Helm-based gray level publishing method and device, electronic equipment and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108376118A (en) * 2018-02-09 2018-08-07 腾讯科技(深圳)有限公司 Service delivery system, method, equipment and storage medium
CN108768875A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Gray scale dissemination method, device and the computer readable storage medium of application
CN108848092A (en) * 2018-06-20 2018-11-20 中国联合网络通信集团有限公司 The processing method and processing device of micro services gray scale publication based on call chain
CN111988416A (en) * 2020-08-27 2020-11-24 广州市百果园信息技术有限公司 Gray scale publishing method, device, equipment and medium
CN112000348A (en) * 2020-07-28 2020-11-27 金蝶医疗软件科技有限公司 Control method and device for service gray release and computer equipment
CN112118565A (en) * 2020-08-14 2020-12-22 金蝶医疗软件科技有限公司 Multi-tenant service gray level publishing method and device, computer equipment and storage medium
US20210011834A1 (en) * 2018-03-26 2021-01-14 Huawei Technologies Co., Ltd. Service Upgrade Management Method, Apparatus, And Storage Medium
CN112367684A (en) * 2020-10-13 2021-02-12 北京健康之家科技有限公司 Flow control method, flow control device, storage medium and computer equipment
CN113422732A (en) * 2021-06-22 2021-09-21 康键信息技术(深圳)有限公司 Version updating method, device, equipment and storage medium based on total station gray scale

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10785122B2 (en) * 2018-10-05 2020-09-22 Cisco Technology, Inc. Canary release validation mechanisms for a containerized application or service mesh
CN109739527B (en) * 2018-11-20 2022-07-08 北京奇艺世纪科技有限公司 Method, device, server and storage medium for client gray scale release
CN110784530A (en) * 2019-10-22 2020-02-11 聚好看科技股份有限公司 Gray scale publishing method and server

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108376118A (en) * 2018-02-09 2018-08-07 腾讯科技(深圳)有限公司 Service delivery system, method, equipment and storage medium
US20210011834A1 (en) * 2018-03-26 2021-01-14 Huawei Technologies Co., Ltd. Service Upgrade Management Method, Apparatus, And Storage Medium
CN108768875A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 Gray scale dissemination method, device and the computer readable storage medium of application
CN108848092A (en) * 2018-06-20 2018-11-20 中国联合网络通信集团有限公司 The processing method and processing device of micro services gray scale publication based on call chain
CN112000348A (en) * 2020-07-28 2020-11-27 金蝶医疗软件科技有限公司 Control method and device for service gray release and computer equipment
CN112118565A (en) * 2020-08-14 2020-12-22 金蝶医疗软件科技有限公司 Multi-tenant service gray level publishing method and device, computer equipment and storage medium
CN111988416A (en) * 2020-08-27 2020-11-24 广州市百果园信息技术有限公司 Gray scale publishing method, device, equipment and medium
CN112367684A (en) * 2020-10-13 2021-02-12 北京健康之家科技有限公司 Flow control method, flow control device, storage medium and computer equipment
CN113422732A (en) * 2021-06-22 2021-09-21 康键信息技术(深圳)有限公司 Version updating method, device, equipment and storage medium based on total station gray scale

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117170718A (en) * 2023-11-02 2023-12-05 绿城科技产业服务集团有限公司 Gray scale release method and device based on micro-service architecture and electronic equipment
CN117170718B (en) * 2023-11-02 2024-02-02 绿城科技产业服务集团有限公司 Gray scale release method and device based on micro-service architecture and electronic equipment

Also Published As

Publication number Publication date
CN113422732A (en) 2021-09-21

Similar Documents

Publication Publication Date Title
WO2022267677A1 (en) Version updating method, apparatus, and device based on entire site grayscale, and storage medium
US11726828B2 (en) Managing a virtualized application workspace on a managed computing device
US8407349B2 (en) Discovering and identifying manageable information technology resources
JP5391276B2 (en) Intelligent mobile device management client
US20150212708A1 (en) Providing application and device management using entitlements
WO2020253079A1 (en) Jmeter-based distributed performance test method and apparatus, device, and storage medium
EP1589691B1 (en) Method, system and apparatus for managing computer identity
JP2021526751A (en) Secure consensus endorsement for self-monitoring blockchain
WO2017173928A1 (en) Service processing system, service processing method and service updating method
KR20110110223A (en) Selective database replication
US11354152B2 (en) Self-evolving microservices
US7512619B2 (en) Real time work queue notification
US11663172B2 (en) Cascading payload replication
EP1480381A2 (en) Method and system for message based policy distribution
CN110990335B (en) Log archiving method, device, equipment and computer readable storage medium
WO2020253344A1 (en) Authorization control method and apparatus, and storage medium
US7716678B2 (en) Processing messages in a message queueing system
CN116701330A (en) Logistics information sharing method, device, equipment and storage medium
US20070043752A1 (en) Disparate network model synchronization
CN113177179B (en) Data request connection management method, device, equipment and storage medium
US20080281969A1 (en) Controlling access to versions of application software by a server, based on site ID
CN110175043A (en) The generation method and device of protocol interface code release update notification
US20090313307A1 (en) Manipulation of network management information
EP4190122A1 (en) Apparatus and methods for coordination of analytics information accessing in communication networks
CN111314460B (en) Service iteration method, service iteration device and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22827176

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE