CN112087325B - Gray scale publishing method, device, equipment and readable storage medium - Google Patents

Gray scale publishing method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN112087325B
CN112087325B CN202010851185.2A CN202010851185A CN112087325B CN 112087325 B CN112087325 B CN 112087325B CN 202010851185 A CN202010851185 A CN 202010851185A CN 112087325 B CN112087325 B CN 112087325B
Authority
CN
China
Prior art keywords
gray scale
gray
calling
service
micro service
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010851185.2A
Other languages
Chinese (zh)
Other versions
CN112087325A (en
Inventor
毕千筠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202010851185.2A priority Critical patent/CN112087325B/en
Publication of CN112087325A publication Critical patent/CN112087325A/en
Priority to PCT/CN2021/103459 priority patent/WO2022037272A1/en
Application granted granted Critical
Publication of CN112087325B publication Critical patent/CN112087325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • 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/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Abstract

The invention provides a gray scale publishing method, a gray scale publishing device, gray scale publishing equipment and a readable storage medium. The method comprises the following steps: adding a gray label and a permitted calling proportion in a YAML file of a gray micro service, wherein the gray micro service comprises a gray micro service realized based on a base mode and a gray micro service realized based on a side car mode; the gray label and the allowable calling proportion are used as registration information to complete the registration of the gray micro service, and the gray micro service is set to be in a non-calling state; setting a registered calling control strategy of the gray scale micro service, setting the gray scale micro service to be in a calling state, and releasing the gray scale micro service online. By the method and the system, the gray scale micro service realized based on the base mode and the gray scale micro service realized based on the sidecar mode are subjected to unified gray scale release and strategy control.

Description

Gray scale publishing method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for releasing a gray scale.
Background
For a micro-service application system, gray scale publishing is a very important functional characteristic and is an important ring for realizing agile service delivery.
There are generally two modes of traditional application microservices: a base mode and a non-base mode (i.e., sidecar mode). The former provides support of micro-service related characteristics for applications in a Lib library mode, and the latter provides micro-service characteristics for applications in a proxy mode through a sidecar process running independently, and the two modes have advantages and disadvantages respectively, and are not described herein.
In practical applications, in order to simultaneously consider the micro-services of the new and old systems, an application scenario of a hybrid micro-service framework often appears, such as: the micro-service of Java new application is realized in a base mode, and the micro-service of C + + old application is realized in a side car mode. Then it is a technical challenge how to perform uniform gray scale distribution control for this mixed scene.
Disclosure of Invention
The present invention is directed to a method, an apparatus, a device and a readable storage medium for gray scale distribution, which are used to solve the above technical problems in the prior art.
In a first aspect, the present invention provides a gray scale issuing method, including:
adding a gray label and a permitted calling proportion in a YAML file of a gray micro service, wherein the gray micro service comprises a gray micro service realized based on a base mode and a gray micro service realized based on a side car mode;
the gray label and the allowable calling proportion are used as registration information to complete the registration of the gray micro service, and the gray micro service is set to be in a non-calling state;
setting a registered calling control strategy of the gray scale micro service, setting the gray scale micro service to be in a calling state, and releasing the gray scale micro service online.
Optionally, after the step of publishing the grayscale microservice online, the method further includes:
when an API call request is received, obtaining requester information from the API call request;
and when the information list corresponding to the calling control strategy comprises the requester information, injecting a gray label into the request context of the API calling request.
Optionally, after the step of injecting the grayscale tag into the request context of the API call request, the method further includes:
and when the gray scale micro service which is published on line exists on the node on the calling chain corresponding to the API calling request and the calling proportion of the gray scale micro service is smaller than the corresponding allowable calling proportion, calling the gray scale micro service.
Optionally, after the step of publishing the grayscale microservice online, the method further includes:
modifying the allowable calling proportion corresponding to the gray scale microservice;
and broadcasting the allowed calling proportion corresponding to the modified gray scale micro service to all online micro services.
Optionally, after the step of publishing the grayscale microservice online, the method further includes:
after the trial operation of the gray scale micro service is passed, deleting the gray scale labels in the registration information, and changing the load strategy into a target load strategy to obtain new registration information of the gray scale micro service;
and broadcasting the new registration information of the gray scale micro service to all online micro services.
In a second aspect, the present invention also provides a gradation issuing apparatus comprising:
the definition module is used for adding a gray label and allowing calling proportion in a service description YAML file of a gray micro-service, wherein the gray micro-service comprises a gray micro-service realized based on a base mode and a gray micro-service realized based on a side car mode;
the registration module is used for finishing registration of the gray scale microservice by taking the gray scale label and the allowable calling proportion as registration information and setting the gray scale microservice to be in a non-calling state;
and the release module is used for setting a registered calling control strategy of the gray scale micro service, setting the gray scale micro service into a calling state and releasing the gray scale micro service online.
In a third aspect, the present invention also provides a gray scale issuing apparatus comprising a processor, a memory, and a gray scale issuing program stored on the memory and executable by the processor, wherein the gray scale issuing program, when executed by the processor, implements the steps of the gray scale issuing method as described above.
In a fourth aspect, the present invention further provides a readable storage medium, on which a gray scale issuing program is stored, wherein the gray scale issuing program, when executed by a processor, implements the steps of the gray scale issuing method as described above.
In the invention, a gray label and an allowable calling proportion are added in a service description YAML file of a gray micro-service, wherein the gray micro-service comprises a gray micro-service realized based on a base mode and a gray micro-service realized based on a side car mode; the gray label and the allowable calling proportion are used as registration information to complete the registration of the gray micro service, and the gray micro service is set to be in a non-calling state; setting a registered calling control strategy of the gray scale micro service, setting the gray scale micro service to be in a calling state, and releasing the gray scale micro service online. By the method and the system, the gray scale micro service realized based on the base mode and the gray scale micro service realized based on the sidecar mode are subjected to unified gray scale release and strategy control.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of a gray scale issuing apparatus according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a gray scale publishing method according to an embodiment of the present invention;
FIG. 3 is a block diagram of a hybrid microservice system in accordance with an embodiment;
fig. 4 is a schematic diagram of functional modules of an embodiment of a gray scale publishing device.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In a first aspect, an embodiment of the present invention provides a gray scale issuing apparatus.
Referring to fig. 1, fig. 1 is a schematic diagram of a hardware structure of a gray scale issuing device according to an embodiment of the present invention. In this embodiment of the present invention, the grayscale issuing device may include a processor 1001 (e.g., a Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used for realizing connection communication among the components; the user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WI-FI interface, WI-FI interface); the memory 1005 may be a Random Access Memory (RAM) or a non-volatile memory (non-volatile memory), such as a magnetic disk memory, and the memory 1005 may optionally be a storage device independent of the processor 1001. Those skilled in the art will appreciate that the hardware configuration depicted in FIG. 1 is not intended to be limiting of the present invention, and may include more or less components than those shown, or some components in combination, or a different arrangement of components.
With continued reference to fig. 1, a memory 1005, which is one type of computer storage medium in fig. 1, may include an operating system, a network communication module, a user interface module, and a grayscale distribution program. The processor 1001 may call the gray scale issuing program stored in the memory 1005, and execute the gray scale issuing method according to the embodiment of the present invention.
In a second aspect, an embodiment of the present invention provides a gray scale publishing method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a gray scale publishing method according to an embodiment of the present invention. In one embodiment, the gray scale publishing method comprises the following steps:
step S10, adding a gray label and an allowable calling proportion in a YAML file of the gray micro-service, wherein the gray micro-service comprises a gray micro-service realized based on a base mode and a gray micro-service realized based on a sidecar mode;
in this embodiment, the grayscale microservice is a grayscale microservice to be run on. And adding a gray label in a YAML file of the service description of the gray micro-service and configuring a load strategy of the gray micro-service. In the process of commissioning the grayscale microservice, the access flow of the grayscale microservice must be continuously adjusted to verify the operational reliability of the grayscale microservice, such as: from the first 10%, 20% flow, to the last 100% full flow. Thus, the grayscale service must be configured as a weight-based load balancing strategy. The load strategy for configuring the gray scale micro service is to add the allowed calling proportion in the YAML file of the service description of the gray scale micro service. The gray scale micro service comprises a gray scale micro service realized based on a pedestal mode and a gray scale micro service realized based on a side car mode.
Step S20, using the gray label and the allowed calling proportion as registration information to complete the registration of gray micro service, and setting the gray micro service to be in a non-calling state;
in this embodiment, in the process of initializing the base mode-based grayscale microservice, the base automatically parses the YAML file of the service description, reads the grayscale tag and the allowable call proportion in the YAML file of the service description, registers the YAML file with the grayscale tag and the allowable call proportion as registration information, completes registration of the grayscale microservice implemented based on the base mode, and sets the grayscale microservice to be in a non-callable state, for example, sets the state of the grayscale microservice to "No Ready", which indicates that the grayscale microservice cannot be called by other services currently.
In the starting and initializing process of the gray scale micro service realized based on the sidecar mode, the sidecar searches for the YAML files of the service descriptions of all the micro services on the node according to the fixed search path, completes the analysis of the YAML files one by one, and registers the YAML files to the micro service registration center by taking the read gray scale labels and the allowed calling proportion as registration information, completes the registration of the gray scale micro service realized based on the sidecar mode, and sets the gray scale micro service to be in a non-calling state, for example, the state of the gray scale micro service is set to be No Ready, which indicates that the gray scale micro service cannot be called by other services at present.
And step S30, setting the registered calling control strategy of the gray scale micro service, setting the gray scale micro service to be in a calling state, and releasing the gray scale micro service online.
In this embodiment, a call control policy of the registered grayscale microservice is set, for example, a user ID list, a client IP list, and the like that allow the registered grayscale microservice to be called are set. After the calling control strategy of the registered gray scale micro service is set, the gray scale micro service is set to be in a calling state, for example, the state of the gray scale micro service is set to be 'Ready', the gray scale micro service can be called by other services at present, the gray scale micro service is released online, and the gray scale micro service starts to run in a trial mode.
In the embodiment, a gray label and an allowable calling proportion are added in a YAML file of a gray micro-service, wherein the gray micro-service comprises a gray micro-service realized based on a base mode and a gray micro-service realized based on a sidecar mode; the gray label and the allowable calling proportion are used as registration information to complete the registration of the gray micro service, and the gray micro service is set to be in a non-calling state; setting a registered calling control strategy of the gray scale micro service, setting the gray scale micro service to be in a calling state, and releasing the gray scale micro service online. Through the embodiment, the gray scale micro service realized based on the base mode and the gray scale micro service realized based on the side car mode are subjected to unified gray scale release and strategy control.
Further, in an embodiment, after step S30, the method further includes:
step S40, when receiving API call request, obtaining request information from the API call request;
in this embodiment, when the API call request is received, the requestor information is extracted from the API call request. The requester information includes information such as a user ID and a client IP.
Step S50, when the information list corresponding to the calling control strategy includes the information of the request party, injecting a gray label into the request context of the API calling request;
in this embodiment, it is detected whether the user ID and/or the client IP included in the requester information are present in the call-allowed user ID list and/or the client IP list corresponding to the call control policy, and if the user ID included in the requester information is present in the call-allowed user ID list corresponding to the call control policy, or the client IP included in the requester information is present in the call-allowed client IP list corresponding to the call control policy, the grayscale tag is injected into the request context of the API call request.
Further, in an embodiment, after step S50, the method further includes:
and step S60, when the gray scale micro service published on line exists on the node on the calling chain corresponding to the API calling request and the calling proportion of the gray scale micro service is smaller than the corresponding allowable calling proportion, calling the gray scale micro service.
In this embodiment, a call chain corresponding to the API call request is determined according to the service logic, where the call chain includes one or more nodes, which is the prior art and is not described herein again. When the calling chain only comprises the node 1, and the gateway receives the API calling request, the gray scale label is injected into the request context of the API calling request, so that the gray scale micro service is required to be called. And detecting whether the gray scale micro service published on line exists on the node 1, if so, continuously judging that the calling proportion of the gray scale micro service is smaller than the corresponding allowable calling proportion, and if so, calling the gray scale micro service. When the calling chain comprises a plurality of nodes, such as nodes 1 to 3, and the gateway receives an API calling request, detecting whether the gray level micro service published on line exists on the node 1, if so, continuously judging that the calling proportion of the gray level micro service is smaller than the corresponding allowable calling proportion, and if so, calling the gray level micro service; otherwise, the non-grayscale microservice on node 1 is invoked. Then, the node 1 detects whether the gray scale micro service which is released online exists on the node 2, if so, the calling proportion of the gray scale micro service is continuously judged to be smaller than the corresponding allowable calling proportion, and if so, the gray scale micro service is called; otherwise, the non-grayscale microservice on node 2 is invoked. Similarly, the node 2 detects whether the gray scale micro service published on line exists on the node 3, if so, the calling proportion of the gray scale micro service is continuously judged to be smaller than the corresponding allowable calling proportion, and if so, the gray scale micro service is called; otherwise, the non-grayscale microservice on node 3 is invoked. Wherein, the node refers to a base or a sidecar.
If the calling frequency of a micro service in the preset time length is x, and the calling frequency of the gray scale micro service corresponding to the micro service is y, the calling proportion of the gray scale micro service is y/(x + y).
Further, in an embodiment, after step S30, the method further includes:
modifying the allowable calling proportion corresponding to the gray scale microservice;
and broadcasting the allowed calling proportion corresponding to the modified gray scale micro service to all online micro services.
In this embodiment, as the commissioning proceeds, the allowable invocation ratio of the grayscale microservice must be continuously adjusted to verify the operational reliability of the grayscale microservice, such as: from the initial 10%, 20%, to the final 100%, and after each adjustment, broadcasting the allowed call rate corresponding to the modified gray scale micro service to all online micro services.
Further, in an embodiment, after step S30, the method further includes:
after the trial operation of the gray scale micro service is passed, deleting the gray scale labels in the registration information, and changing the load strategy into a target load strategy to obtain new registration information of the gray scale micro service;
and broadcasting the new registration information of the gray scale micro service to all online micro services.
In this embodiment, after the trial operation of the grayscale microservice passes, the grayscale label is deleted from the registration information, the load policy is changed to the target load policy, new registration information of the grayscale microservice is obtained, and the new registration information of the grayscale microservice is broadcast to all online microservices. The target load policy is, for example, a polling policy, a random policy, or the like.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating an architecture of a hybrid microservice system according to an embodiment. As shown in fig. 3, the hybrid microservice system includes: the system comprises a service API gateway, an old version service and a Gray level service realized based on a micro-service base, an old version service and a Gray level service realized based on a micro-service sidecar, a micro-service bus, a service registration Center (Registry Center) and a service monitoring Center (Admin Center), wherein the service monitoring Center comprises a Gray level release control panel (Gray Dashboard). The micro-service base is a Java Lib library and provides function support of gray release and micro-service management for Java micro-services; the micro-service sidecar is an independent agent process and provides function support of gray release and micro-service treatment for a plurality of C + + micro-services; a service registration Center (Registry Center) provides a uniform service registration and discovery function, and configuration information of the gray level service related to gray level release is also stored in the service registration and discovery function; the service monitoring Center (Admin Center) provides uniform monitoring and management for the micro-service, and a Gray publishing control panel (Gray Dashboard) is arranged in the service monitoring Center for realizing user visual regulation and control of the Gray publishing process. Based on the framework, on one hand, the unified gray level configuration can be flexibly carried out on two types of micro services (side cars and bases), and the safe and reliable access of different users to different micro service instances (gray levels and non-gray levels) can be controlled by utilizing the existing technical facilities (such as a service registration discovery mechanism, a load balancing strategy, a service API gateway technology and the like) of the micro service framework. Based on the framework, the following functions can be realized:
the first function is: definition and registration of gray-scale service, and online operation and release. The method comprises the following specific steps:
s1: adding a gray label to a YAML file of the service description of the micro service to be released, such as: true "and configure the load policy of the gray level service as a weighted way, such as: "loadbalance: weight". Note: the microservice framework typically supports multiple load policies, such as: random, polling, fastest response and the like, and a weighting mode should be selected in the gray scale release process, because the flow adjustment test needs to be continuously carried out on the gray scale service subsequently.
S2: in the base mode, in the process of initializing the micro-service at the start, the base automatically analyzes the YAML file, reads the gray label and the load strategy in the YAML file, and registers the YAML file with a micro-service Registry (hereinafter referred to as "Registry Center"). In the side car mode, the side car searches for the YAML files of the service descriptions of all the micro services on the node according to the fixed search path, and completes the analysis of the YAML files, the reading of the gray labels and the load strategies one by one and the registration to the micro service registration center. The state of the gray level service is set to No Ready during registration, which indicates that the gray level service can not be called by other services at present.
S3: the micro-service monitoring Center (hereinafter referred to as "Admin Center") automatically obtains the instance information of the newly registered Gray scale micro-service and the related Gray scale strategy information by monitoring the information change on the service registration Center, and displays the instance information and the related Gray scale strategy information on a Gray scale publishing control panel (hereinafter referred to as "Gray Dashboard").
S4: and (3) establishing a Gray scale publishing task on the Gray Dashboard, setting a Gray scale service access control strategy, such as a user ID list and a user IP list which are allowed to access the Gray scale service, storing and publishing.
S5: admin Center automatically uploads the gray release information to registration Center, modifies the state of the gray service instance to be 'Ready', and completes the online release of the gray service.
S6: all online services acquire the updated registered service list from the Registry Center and update the local cache book. And performing service discovery and client load balancing on the basis of the updated cache by using a subsequent ServiceDiscovery component, a subsequent LoadBalancer component and the like in the micro service bus.
The second function is: grayscale service routing decision. The method comprises the following specific steps:
s1: when a front-end application (or 3 rd party APP) initiates an API request, firstly intercepting the API request in a micro service gateway, and acquiring related information such as a user ID (identity), a user IP (Internet protocol) and the like from a request context;
s2: the micro service gateway obtains the access control strategy of the gray level service from the Registry Center, and performs matching comparison on the user ID, the user IP and the like initiating the API request according to the strategy. To improve the processing performance of the gateway, the gateway can read the gray control strategy information from the Registry Center in advance, buffer the information in the map, and keep the information synchronous with the Registry Center.
S3: and injecting a gray label into the request context for the successfully matched user API request, and forwarding the gray label to the micro service bus. For a service API request (such as RESTAPI and the like) of an HTTP interface type, a gray label can be directly written in the HEAD of an HTTP protocol for implicit transfer; for other binary RPC interface type requests (such as POJO, ICE, etc.), display transfer is generally performed by constructing a Map structure of RpcContext and writing a Key/Value type gray label.
S4: in a subsequent calling chain of the API request, each service provider on the calling chain automatically extracts a gray label from the request context through a micro-service base, a ServiceDiscovery component in the base acquires a next station service provider list, and the next station routing is performed by comparing whether the service provider is matched with the gray label or not.
The third function is: grayscale service flow control. The method comprises the following specific steps:
s1: after the Gray scale service is tested online, the percentage weight of the traffic allowed to be accessed on a certain Gray scale service instance can be changed in the Gray Dashboard, that is, the load balance configuration of the Gray scale service instance is changed. After the configuration change is stored and validated, the configuration change is synchronously written into the Registry Center for information publishing.
S2: all online micro services acquire service information change notification from a Registry Center, automatically acquire the latest configuration information of the gray-scale service, convert and calculate the service providing side flow weight of the gray-scale service into a consumption side flow weight, and buffer-store the consumption side flow weight in the local.
S3: and subsequently, requesting an API of the gray-scale service instance, and carrying out load calculation and routing by a LoadBalancer component of the micro-service base according to the new flow weight.
A fourth function: the gray scale service formally goes online and removes gray. The method comprises the following specific steps:
s1: after the Gray scale service test run test is passed, the Gray Dashboard can execute the operation of 'formal online' on the Gray scale service instance passed by the test run.
S2: admin Center modifies the service registration information of the relevant gray level service, and removes the gray level label from the service registration information; and modifying the load strategy of the gray-scale service, and restoring the load strategy to the default load strategy of the service system.
S3: admin Center issues the above information changes to the Registry Center for the issuance to take effect.
S4: all online microservices get service information changes from the Registry Center and update their respective local caches.
S5: and synchronously updating the YAML file by the gray-scale service instance, removing the related gray-scale mark and finishing formal online.
By the embodiment, the gray level service and the gray level strategy are defined based on the YAML file, and the development is simple and flexible; meanwhile, the gray level release control panel is combined to perform unified control on the on-line testing, strategy configuration, flow regulation, positive turning and gray removal and the like of the gray level service, and the release process is convenient, safe and reliable. The method has the advantages that the existing technical facilities of the micro-service framework are fully utilized in the main technical implementation of strategy configuration, routing control, flow regulation, online release and the like of gray release, effective technical integration is added, development cost is low, productization is easy, and meanwhile, zero invasiveness is realized on upper-layer application codes, and transplantation is easy.
In a third aspect, an embodiment of the present invention further provides a gray scale issuing apparatus.
Referring to fig. 4, fig. 4 is a functional module schematic diagram of an embodiment of a gray scale publishing device.
In this embodiment, the grayscale issuing device includes:
the definition module 10 is used for adding a gray label and allowing calling proportion in a YAML file of a gray micro service, wherein the gray micro service comprises a gray micro service realized based on a base mode and a gray micro service realized based on a sidecar mode;
the registration module 20 is configured to use the grayscale label and the allowable call proportion as registration information to complete registration of the grayscale microservice, and set the grayscale microservice in a non-callable state;
and the publishing module 30 is configured to set a call control policy of the registered grayscale microservice, set the grayscale microservice in a call-able state, and publish the grayscale microservice online.
Further, in an embodiment, the gray scale publishing device further includes a labeling module, configured to:
when an API call request is received, obtaining requester information from the API call request;
and when the information list corresponding to the calling control strategy comprises the requester information, injecting a gray label into the request context of the API calling request.
Further, in an embodiment, the gray scale issuing apparatus further includes a calling module, configured to:
and when the gray scale micro service which is published on line exists on the node on the calling chain corresponding to the API calling request and the calling proportion of the gray scale micro service is smaller than the corresponding allowable calling proportion, calling the gray scale micro service.
Further, in an embodiment, the gray scale issuing apparatus further includes a scale adjustment module, configured to:
modifying the allowable calling proportion corresponding to the gray scale microservice;
and broadcasting the allowed calling proportion corresponding to the modified gray scale micro service to all online micro services.
Further, in an embodiment, the gray releasing apparatus further includes a gray removing module, configured to:
after the trial operation of the gray scale micro service is passed, deleting the gray scale labels in the registration information, and changing the load strategy into a target load strategy to obtain new registration information of the gray scale micro service;
and broadcasting the new registration information of the gray scale micro service to all online micro services.
The function implementation of each module in the gray scale publishing device corresponds to each step in the embodiment of the gray scale publishing method, and the function and implementation process are not described in detail here.
In a fourth aspect, the embodiment of the present invention further provides a readable storage medium.
The readable storage medium of the present invention stores a gray scale distribution program, wherein the gray scale distribution program realizes the steps of the gray scale distribution method as described above when being executed by a processor.
The method for implementing the gray scale publishing program when executed can refer to the embodiments of the gray scale publishing method of the present invention, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A gradation issuance method, characterized by comprising:
adding a gray label and a permitted calling proportion in a YAML file of a gray micro service, wherein the gray micro service comprises a gray micro service realized based on a base mode and a gray micro service realized based on a side car mode;
the gray label and the allowable calling proportion are used as registration information to complete registration of the gray micro service, wherein the gray micro service is set to be in a non-calling state when the registration of the gray micro service is carried out or after the registration of the gray micro service is completed;
setting a registered calling control strategy of the gray scale micro service, setting the gray scale micro service to be in a calling state, and releasing the gray scale micro service online.
2. The gray scale publishing method of claim 1, wherein after the step of publishing the gray scale microservice online, further comprising:
when an API call request is received, obtaining requester information from the API call request;
and when the information list corresponding to the calling control strategy comprises the requester information, injecting a gray label into the request context of the API calling request.
3. The gray scale publishing method of claim 2, wherein after the step of injecting a gray scale tag into the request context of an API call request, further comprising:
and when the gray scale micro service which is published on line exists on the node on the calling chain corresponding to the API calling request and the calling proportion of the gray scale micro service is smaller than the corresponding allowable calling proportion, calling the gray scale micro service.
4. The gray scale publishing method of claim 1, wherein after the step of publishing the gray scale microservice online, further comprising:
modifying the allowable calling proportion corresponding to the gray scale microservice;
and broadcasting the allowed calling proportion corresponding to the modified gray scale micro service to all online micro services.
5. The gray scale publishing method of claim 1, wherein after the step of publishing the gray scale microservice online, further comprising:
after the trial operation of the gray scale micro service is passed, deleting the gray scale labels in the registration information, and changing the load strategy into a target load strategy to obtain new registration information of the gray scale micro service;
and broadcasting the new registration information of the gray scale micro service to all online micro services.
6. A gradation issuing apparatus characterized by comprising:
the definition module is used for adding a gray label and allowing calling proportion in a service description YAML file of a gray micro-service, wherein the gray micro-service comprises a gray micro-service realized based on a base mode and a gray micro-service realized based on a side car mode;
the registration module is used for finishing the registration of the gray scale microservice by taking the gray scale label and the allowable calling proportion as registration information, wherein the gray scale microservice is set to be in a non-calling state when the registration of the gray scale microservice is carried out or after the registration of the gray scale microservice is finished;
and the release module is used for setting a registered calling control strategy of the gray scale micro service, setting the gray scale micro service into a calling state and releasing the gray scale micro service online.
7. The gray scale issuing apparatus according to claim 6, wherein the gray scale issuing apparatus further comprises a labeling module configured to:
when an API call request is received, obtaining requester information from the API call request;
and when the information list corresponding to the calling control strategy comprises the requester information, injecting a gray label into the request context of the API calling request.
8. A gray scale issuing apparatus according to claim 7, wherein said gray scale issuing apparatus further comprises a calling module for:
and when the gray scale micro service which is published on line exists on the node on the calling chain corresponding to the API calling request and the calling proportion of the gray scale micro service is smaller than the corresponding allowable calling proportion, calling the gray scale micro service.
9. A gradation issuance apparatus comprising a processor, a memory, and a gradation issuance program stored on the memory and executable by the processor, wherein the gradation issuance program when executed by the processor implements the steps of the gradation issuance method according to any one of claims 1 to 5.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a gray scale distribution program, wherein the gray scale distribution program, when executed by a processor, implements the steps of the gray scale distribution method according to any one of claims 1 to 5.
CN202010851185.2A 2020-08-21 2020-08-21 Gray scale publishing method, device, equipment and readable storage medium Active CN112087325B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202010851185.2A CN112087325B (en) 2020-08-21 2020-08-21 Gray scale publishing method, device, equipment and readable storage medium
PCT/CN2021/103459 WO2022037272A1 (en) 2020-08-21 2021-06-30 Gray release method, apparatus and device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010851185.2A CN112087325B (en) 2020-08-21 2020-08-21 Gray scale publishing method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN112087325A CN112087325A (en) 2020-12-15
CN112087325B true CN112087325B (en) 2021-07-20

Family

ID=73729483

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010851185.2A Active CN112087325B (en) 2020-08-21 2020-08-21 Gray scale publishing method, device, equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN112087325B (en)
WO (1) WO2022037272A1 (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112087325B (en) * 2020-08-21 2021-07-20 烽火通信科技股份有限公司 Gray scale publishing method, device, equipment and readable storage medium
CN113254063B (en) * 2021-06-30 2021-09-21 四川新网银行股份有限公司 Gray level verification filter and filtering method
CN113301168A (en) * 2021-07-23 2021-08-24 浩鲸云计算科技股份有限公司 Method and system for realizing accurate shunting of requests by dynamic policy gray scale release engine
CN113949708B (en) * 2021-09-03 2023-04-25 中国人民解放军军事科学院战争研究院 Service bus design method supporting gray scale upgrade access flow control
CN114265607B (en) * 2022-03-03 2022-06-28 杭州朗澈科技有限公司 Gray scale publishing method and system, electronic device and storage medium
CN114884915B (en) * 2022-04-19 2024-03-26 阿里巴巴(中国)有限公司 Message processing method, device and equipment based on gray release
CN114785787B (en) * 2022-04-24 2024-03-22 天津银行股份有限公司 Full-link gray level publishing method
CN114928479B (en) * 2022-05-12 2024-02-02 中国工商银行股份有限公司 Gray scale issuing method, system, device, computer equipment and storage medium
CN115250233B (en) * 2022-09-22 2022-12-16 中邮消费金融有限公司 Gray scale routing control method, gray scale routing assembly and computer equipment
CN117155994B (en) * 2023-10-27 2024-02-02 广州市千钧网络科技有限公司 Service registration management method, device, equipment and readable storage medium
CN117149747B (en) * 2023-10-30 2024-02-02 建信金融科技有限责任公司 Gray level release method and system for database change and computer equipment
CN117472617B (en) * 2023-12-28 2024-04-09 中移(苏州)软件技术有限公司 Message processing method and device, electronic equipment and readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106257894A (en) * 2016-08-29 2016-12-28 北京海誉动想科技股份有限公司 Gray scale dissemination method based on micro services
CN107341008A (en) * 2017-06-22 2017-11-10 上海艾融软件股份有限公司 Micro services gray scale dissemination method
CN107911430A (en) * 2017-11-06 2018-04-13 上海电机学院 A kind of micro services infrastructure equipment
CN108427581A (en) * 2018-02-07 2018-08-21 平安普惠企业管理有限公司 System micro services method and terminal device
CN108574601A (en) * 2018-03-27 2018-09-25 无锡华云数据技术服务有限公司 A kind of gray scale dissemination method and system
CN108848092A (en) * 2018-06-20 2018-11-20 中国联合网络通信集团有限公司 The processing method and processing device of micro services gray scale publication based on call chain
CN109992273A (en) * 2019-01-03 2019-07-09 蔚来汽车有限公司 A kind of gray scale dissemination method and gray scale delivery system
CN110798502A (en) * 2019-09-18 2020-02-14 平安科技(深圳)有限公司 Grayscale publishing method and device based on micro-service framework and computer equipment
US10671946B2 (en) * 2016-02-28 2020-06-02 Quabbin Patent Holdings, Inc. Multinodal power sensing, aggregation, and transmission

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130145244A1 (en) * 2011-12-05 2013-06-06 Microsoft Corporation Quick analysis tool for spreadsheet application programs
CN107872334B (en) * 2016-09-23 2022-05-20 中兴通讯股份有限公司 Method and device for gray scale upgrading in micro-service architecture system
US20190332522A1 (en) * 2018-04-27 2019-10-31 Satori Worldwide, Llc Microservice platform with messaging system
CN109788029A (en) * 2018-12-14 2019-05-21 平安信托有限责任公司 Gray scale call method, device, terminal and the readable storage medium storing program for executing of micro services
CN110851145B (en) * 2019-09-30 2022-06-03 烽火通信科技股份有限公司 Container arrangement-based edge cloud installation and maintenance method and system
CN111181858A (en) * 2019-12-24 2020-05-19 浙江大华技术股份有限公司 Method, system, computer device and storage medium for gray scale distribution
CN111163085B (en) * 2019-12-29 2022-10-14 北京车与车科技有限公司 Gray level release scene optimization method
CN112087325B (en) * 2020-08-21 2021-07-20 烽火通信科技股份有限公司 Gray scale publishing method, device, equipment and readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10671946B2 (en) * 2016-02-28 2020-06-02 Quabbin Patent Holdings, Inc. Multinodal power sensing, aggregation, and transmission
CN106257894A (en) * 2016-08-29 2016-12-28 北京海誉动想科技股份有限公司 Gray scale dissemination method based on micro services
CN107341008A (en) * 2017-06-22 2017-11-10 上海艾融软件股份有限公司 Micro services gray scale dissemination method
CN107911430A (en) * 2017-11-06 2018-04-13 上海电机学院 A kind of micro services infrastructure equipment
CN108427581A (en) * 2018-02-07 2018-08-21 平安普惠企业管理有限公司 System micro services method and terminal device
CN108574601A (en) * 2018-03-27 2018-09-25 无锡华云数据技术服务有限公司 A kind of gray scale dissemination method and system
CN108848092A (en) * 2018-06-20 2018-11-20 中国联合网络通信集团有限公司 The processing method and processing device of micro services gray scale publication based on call chain
CN109992273A (en) * 2019-01-03 2019-07-09 蔚来汽车有限公司 A kind of gray scale dissemination method and gray scale delivery system
CN110798502A (en) * 2019-09-18 2020-02-14 平安科技(深圳)有限公司 Grayscale publishing method and device based on micro-service framework and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
银行系统互联网服务灰度发布的应用实践;楼晔等;《金融电子化》;20180315;全文 *

Also Published As

Publication number Publication date
WO2022037272A1 (en) 2022-02-24
CN112087325A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
CN112087325B (en) Gray scale publishing method, device, equipment and readable storage medium
RU2738088C1 (en) Method of detecting services provided by network repository function
US20080082646A1 (en) Access Control System And Method For Wireless Application Provisioning
CN111163130B (en) Network service system and data transmission method thereof
US8856365B2 (en) Computer-implemented method, computer system and computer readable medium
US20210410057A1 (en) Service Discovery Extension in a 5G Mobile Communication Network
CN109104368B (en) Connection request method, device, server and computer readable storage medium
CN110546607A (en) Credential-based active discovery of remote micro-services by spreadsheet application
JP2013157748A (en) Service bus system, service bus device, and method for assuring connection uniqueness
CN111431818B (en) Cross-domain request flow distribution method and device, storage medium and computer equipment
CN110750780B (en) User role permission fusion method, device and equipment based on multi-service system
CN102724165A (en) Control method and device for terminal communication, and management server
CN112714042B (en) Pressure testing method and device, electronic equipment and storage medium
CN111782260B (en) Gray level distribution method and gray level distribution device
CN109977126A (en) Replacing options, device, electronic equipment and the storage medium of identity
CN107045452B (en) Virtual machine scheduling method and device
CN107679871B (en) List management method, device, system and computer readable storage medium
CN112860437B (en) Micro-service processing method and device
CN113259146B (en) Micro-service access control method and device and micro-service system
CN112636986A (en) Gateway plug-in updating method and device
CN115442420A (en) Block chain cross-chain service management method and device
CN111930626A (en) Automatic testing method and device based on PaaS cloud service
CN113157436B (en) Resource request distribution method, device, server and storage medium
CN115604333B (en) Distributed big data analysis service scheduling method and system based on dubbo
US11936530B1 (en) System, method, and computer program for AWS autoscaling of Tuxedo systems

Legal Events

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