CN113315824A - Application gray level publishing method and device and application gray level publishing system - Google Patents

Application gray level publishing method and device and application gray level publishing system Download PDF

Info

Publication number
CN113315824A
CN113315824A CN202110563158.XA CN202110563158A CN113315824A CN 113315824 A CN113315824 A CN 113315824A CN 202110563158 A CN202110563158 A CN 202110563158A CN 113315824 A CN113315824 A CN 113315824A
Authority
CN
China
Prior art keywords
gateway
application
gray scale
data
gray
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110563158.XA
Other languages
Chinese (zh)
Other versions
CN113315824B (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.)
Wuhan Yuexuebang Network Technology Co ltd
Original Assignee
Wuhan Yuexuebang Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Yuexuebang Network Technology Co ltd filed Critical Wuhan Yuexuebang Network Technology Co ltd
Priority to CN202110563158.XA priority Critical patent/CN113315824B/en
Publication of CN113315824A publication Critical patent/CN113315824A/en
Application granted granted Critical
Publication of CN113315824B publication Critical patent/CN113315824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The embodiment of the application provides an application gray level publishing method and device and an application gray level publishing system, and relates to the technical field of computers. The method comprises receiving flow distribution rule data for a current application and a gray release; acquiring a gateway corresponding to the current application according to preset mapping relation data of the gateway and the application; and calling a configuration management center interface, and sending the flow distribution rule data to the gateway, so that the gateway realizes the gray release of the current application according to the flow distribution rule, and realizes the gray release of a new version of flow which can be accurately controlled, thereby solving the problem that the relevant technology possibly has great influence on user operation when online application is released.

Description

Application gray level publishing method and device and application gray level publishing system
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for issuing an application gray scale, and a system for issuing an application gray scale.
Background
The existing application release methods comprise two methods, one is full rolling release, only all application examples on the line can be released once, regression verification is carried out on a new version after release is completed, and if bug exists in the application of the new version, great influence can be caused on user operation, and more dirty data can also be generated; the other is batch release, the verification of the new version application can be completed by releasing a specified number of new version instances, but the flow of the new version application can be controlled only by the ratio of the number of the new version container instances to the number of the old version container instances, and the possibility of influencing more users also exists.
Disclosure of Invention
The embodiment of the application aims to provide an application gray level release method and device and an application gray level release system, so that gray level release with accurately controllable new version flow is realized, and the problem that the existing method possibly has great influence on user operation when online application is released is solved.
The embodiment of the application provides an application gray level release method, which comprises the following steps:
receiving flow distribution rule data which are applied at present and issued in a gray scale mode;
acquiring a gateway corresponding to the current application according to preset mapping relation data of the gateway and the application;
and calling a configuration management center interface, and sending the flow distribution rule data to the gateway so that the gateway can realize the gray level release of the current application according to the flow distribution rule.
In the implementation process, the number of the examples of the new version container is controlled through the flow distribution rule data, and the gray release of the new version flow which can be accurately controlled is performed, so that the problem that the existing method possibly has great influence on user operation when online application is released is solved.
Further, the receiving the flow distribution rule data issued in gray scale for the current application includes:
receiving the number of gray containers sent by a user through a gray data configuration interface;
modifying the copy number attribute value for controlling the number of application copies to control the number of grayscale application instances;
adding a gray scale mark in a starting script of the gray scale application example so that the gateway finds the gray scale application example through the gray scale mark;
and receiving the gray level flow proportion sent by a user through a gray level data configuration interface so that the gateway sends the flow corresponding to the gray level flow proportion to the corresponding gray level application example.
In the implementation process, the number of the grayscale application examples is controlled by the number of the grayscale containers, and by adding the grayscale marks, preparation is made for carrying out flow distribution on the grayscale application examples in the subsequent gateway.
Further, before the step of obtaining the gateway corresponding to the current application according to the preset mapping relationship data between the gateway and the application, the method further includes:
receiving mapping relation data of a gateway and an application, which is sent by a gateway management interface through a gateway management service;
and storing the mapping relation data to a database.
In the implementation process, the mapping relation between the gateway and the application is stored in the MySQL database, and subsequently, when the application is released, the traffic entry gateway corresponding to the application can be acquired.
Further, the invoking a configuration management center interface and sending the traffic distribution rule data to the gateway includes:
generating a gray level flow configuration data structure according to the flow distribution rule data, wherein the gray level flow configuration data structure comprises a gateway ID and a flow proportion;
and calling a configuration management center interface, and issuing the gateway ID and the corresponding flow proportion to the corresponding gateway.
In the implementation process, the gateway ID and the corresponding traffic proportion are sent to the corresponding gateway, so that the gateway can distribute traffic to the new version according to the traffic proportion.
Further, the gateway implements the gray scale publishing of the current application according to the flow distribution rule, including:
the gateway publishes the application and runs the application on a cloud host or a k8s container platform.
In the implementation process, the application is run on the common cloud host, and is not run in the container, so that the method is not limited to publishing and running the object.
Further, the gateway is a gray level traffic proportional control route, and comprises a Spring Cloud Zuul gateway and/or a Kong gateway.
In the implementation process, the method can be applied as long as the gray-scale flow proportion control routing is provided.
The embodiment of the present application further provides a device for issuing grayscale of an application, where the device includes:
the receiving module is used for receiving the flow distribution rule data which are applied at present and issued in a gray scale mode;
the gateway acquisition module is used for acquiring a gateway corresponding to the current application according to preset mapping relation data of the gateway and the application;
and the issuing module is used for calling a configuration management center interface and sending the flow distribution rule data to the gateway so as to enable the gateway to realize the gray level issuing of the current application according to the flow distribution rule.
In the implementation process, the gray release of the accurate control is carried out on the new version flow, so that development or testing personnel can carry out online release operation on the application at any time in the daytime, risks and losses caused by problems generated when the online application is released can be avoided through accurate flow control, the online release of the new application can only be carried out in late night flow low-peak time periods, and the convenience is improved.
An embodiment of the present application further provides a gray scale publishing system for application, where the system includes:
the system comprises a gray data configuration interface, a gateway management service and a data processing module, wherein the gray data configuration interface is used for receiving flow distribution rule data sent by a user and sending the flow distribution rule data to the gateway management service;
the gateway management service is used for storing the flow distribution rule data to a database, calling a configuration management center interface when an application is issued, and sending the flow distribution rule data to a gateway corresponding to the current application based on the pre-stored mapping relation data of the gateway and the application;
and the configuration management center is connected with the plurality of gateways and is used for issuing flow distribution rule data to the gateways so that the gateways realize the gray level release of the current application according to the flow distribution rules.
In the implementation process, the accurate control of the new version flow is realized during gray scale release through the mutual cooperation of the gray scale data configuration interface, the gateway management service, the configuration management center and the gateway.
Further, the gateway is further configured to, when performing regression testing on a new version example, add an application example start flag to a request header of an http test request, and then send the http test request to the new version example.
In the implementation process, the flow is routed in percentage in the gateway through the application example starting mark, and meanwhile, specific routing is carried out on the http test request of a specific header label, and the http test request is directly routed to a new version example to carry out effective regression test.
An embodiment of the present application further provides an electronic device, where the electronic device includes a memory and a processor, where the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the grayscale issuing method of the application according to any one of the above descriptions.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of an applied gray scale publishing method according to an embodiment of the present application;
fig. 2 is a flow chart illustrating a flow distribution ratio modification for gray scale distribution according to an embodiment of the present disclosure;
fig. 3 is a block diagram of a structure of a gray scale publishing system according to an embodiment of the present application;
fig. 4 is a schematic interface diagram of adjusting the number of gray containers according to an embodiment of the present disclosure;
fig. 5 is a schematic interface diagram for adjusting a gray scale flow ratio according to an embodiment of the present disclosure;
FIG. 6 is a schematic diagram of a flow rate distribution according to an embodiment of the present disclosure;
fig. 7 is a block diagram of a structure of a gray scale issuing apparatus according to an embodiment of the present application;
fig. 8 is a block diagram of a specific structure of a gray scale issuing apparatus according to an embodiment of the present application;
fig. 9 is a schematic diagram of a regression test provided in the embodiment of the present application.
Icon:
100-a receiving module; 101-a container number receiving module; 102-a modification module; 103-a labeling module; 104-flow ratio receiving module; 200-a gateway acquisition module; 210-a storage module; 300-issuing module; 301-a data structure generation module; 302-calling a module; 11-gateway management services; 12-grayscale data configuration interface; 13-MySQL database; 14-configuration management center; 15-a gateway; 16-gateway management interface.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a flowchart illustrating a gray scale publishing method according to an embodiment of the present application. The method realizes the purpose of accurately controlling to release the gray scale by accurately controlling the flow of the new version.
The method can be based on a k8s (container arrangement management tool) container platform and is combined with a Spring Cloud Gateway to realize accurate controllability of the number of new-version container instances, wherein the Spring Cloud Gateway is a Gateway component in a Spring bound micro-service administration framework and is responsible for distributing and routing external traffic requests to each micro-service. Of course, other types of gray scale traffic proportional control routing implementations can be used, such as implemented by Spring Cloud Zuul gateway or Kong gateway, and the type of gateway is not limited herein.
The method specifically comprises the following steps:
step S100: receiving flow distribution rule data which are applied at present and issued in a gray scale mode;
the flow distribution rule data includes the number of grayscale containers and the grayscale flow proportion, as shown in fig. 2, the flow chart is modified for the flow distribution proportion issued by grayscale, and the step may specifically include:
step S101: receiving the number of gray containers sent by the user through the gray data configuration interface 12;
step S102: modifying the copy number attribute value for controlling the number of application copies to control the number of grayscale application instances;
step S103: adding a gray mark in the start script of the gray application example, so that the gateway 15 finds the gray application example through the gray mark;
step S104: and receiving the gray scale flow proportion sent by the user through the gray scale data configuration interface 12, so that the gateway 15 sends the flow corresponding to the gray scale flow proportion to the corresponding gray scale application example.
As shown in fig. 3, the configuration interface 12 is a configuration interface of a gray scale publishing system, wherein the gray scale data configuration interface may be a configuration interface of a multimedia publishing system (such as a canoe CD publishing system), and when an application is published on the configuration interface, the number of new version container instances may be controlled during the publishing process, and the percentage of flow reaching the new version container instances may also be controlled.
Fig. 4 is a schematic diagram of an interface for adjusting the number of gray containers. The number of gray level containers can be modified on an operation interface, and after the number of gray level containers is modified on the operation interface, the bottom layer modifies the copy number attribute value of the deployment controlling the number of application copies through a k8s container management platform, so that the purpose of controlling the number of gray level application instances is achieved.
For the grayscale application example, adding a start parameter (making a grayscale mark) in a start script of the grayscale application example, such as: origin, metadatamap, version, and gray test are prepared for the subsequent gateway 15 to perform traffic distribution on the gray application instances, and the gray application instances requiring traffic distribution can be accurately found through the gray marks.
As shown in fig. 5, to adjust the interface schematic diagram of the gray scale flow ratio, the gray scale flow ratio can be modified on the operation interface. After the gray scale flow proportion is modified on the operation interface, the corresponding gateway 15 can be found through the mapping relation between the gateway 15 and the application, the gray scale flow distribution rule of the gateway 15 for the current application is updated, and accurate distribution of the flow for the gray scale container example is completed.
Step S200: acquiring a gateway 15 corresponding to the current application according to preset mapping relation data of the gateway 15 and the application;
before this step, it is also necessary:
step S210: receiving mapping relation data of the gateway 15 and the application, which is sent by the gateway management interface 16 through the gateway management service 11;
step S211: and storing the mapping relation data to a database.
Since different applications may correspond to different gateways 15, a mapping relationship between the gateway 15 and the applications needs to be maintained through a gateway management interface 16, such as a canoe gateway management interface 16. The mapping relationship between the Gateway 15 and the application is stored in the MySQL database 13 through the Gateway management Service 11, such as the Gateway Admin Service, so that the traffic ingress Gateway 15 corresponding to the application can be acquired when the application is subsequently released.
Step S300: and calling an interface of a configuration management center 14, and sending the flow distribution rule data to the gateway 15, so that the gateway 15 realizes the gray level release of the current application according to the flow distribution rule.
The step may specifically include:
step S301: generating a gray level flow configuration data structure according to the flow distribution rule data, wherein the gray level flow configuration data structure comprises a gateway ID and a flow proportion;
the gray level traffic configuration data structure issued to the gateway 15 is as follows:
Figure BDA0003085944240000071
Figure BDA0003085944240000081
step S302: and calling an interface of the configuration management center 14, and sending the gateway ID and the corresponding flow proportion to the corresponding gateway 15.
In the application release process, the number of the new version container instances can be controlled, and the flow percentage reaching the new version container instances can also be controlled.
Through the above-mentioned association relationship between the application and the gateway 15, the gateway 15 corresponding to the application is found, then a new interface in the apollo configuration is called, the gray level traffic distribution rule for the application in the gateway 15 is updated, and the accurate distribution of the traffic to the gray level container instance is completed.
As shown in fig. 6, which is a schematic diagram of traffic proportion allocation, when a user initiates an http request, the gateway 15 allocates 10% of user traffic to a new version example by using a label (a gray label) of a gray application example, such as eureka.
Besides, the application runs on the k8s container platform, as another embodiment, the application also runs on a common cloud host instead of in a container, and the running subjects of various micro service applications are not limited to expand the application range of the method.
An embodiment of the present application further provides an applied gray scale issuing apparatus, which is applied to the above-mentioned applied gray scale issuing method, as shown in fig. 7, and is a structural block diagram of the gray scale issuing apparatus, where the apparatus includes:
a receiving module 100, configured to receive flow distribution rule data issued in a grayscale for a current application;
a gateway obtaining module 200, configured to obtain, according to preset mapping relationship data between a gateway 15 and an application, a gateway 15 corresponding to the current application;
the issuing module 300 is configured to invoke an interface of the configuration management center 14, and send the traffic distribution rule data to the gateway 15, so that the gateway implements the gray level issue of the current application according to the traffic distribution rule.
As shown in fig. 8, which is a specific structural block diagram of the gray scale issuing apparatus, the receiving module 100 includes:
a container quantity receiving module 101, configured to receive the number of grayscale containers sent by the user through the grayscale data configuration interface 12;
a modification module 102, configured to modify the copy number attribute value of the control application copy number to control the number of grayscale application instances;
a marking module 103, configured to add a grayscale marker in the start script of the grayscale application instance, so that the gateway 15 finds the grayscale application instance through the grayscale marker;
the flow ratio receiving module 104 receives the gray level flow ratio sent by the user through the gray level data configuration interface 12, so that the gateway 15 sends the flow corresponding to the gray level flow ratio to the corresponding gray level application instance.
The device also includes: the storage module 210:
receiving mapping relation data of the gateway 15 and the application, which is sent by the gateway management interface 16 through the gateway management service 11;
and storing the mapping relation data to a database.
The issuing module 300 includes:
a data structure generating module 301, configured to generate a gray-scale traffic configuration data structure according to the traffic distribution rule data, where the gray-scale traffic configuration data structure includes a gateway ID and a traffic proportion;
the calling module 302 is configured to call an interface of the configuration management center 14, and issue the gateway ID and the corresponding flow rate ratio to the corresponding gateway 15.
An embodiment of the present application further provides an applied gray scale publishing system, a structural block diagram of which is shown in fig. 3, and the system includes:
a gray data configuration interface 12, configured to receive traffic distribution rule data sent by a user, and send the traffic distribution rule data to the gateway management service 11;
the gateway management service 11 is configured to store the traffic distribution rule data in a database, and when an application is issued, invoke an interface of a configuration management center 14, and send the traffic distribution rule data to a gateway 15 corresponding to a current application based on pre-stored mapping relationship data between the gateway 15 and the application;
and the configuration management center 14 is connected with the plurality of gateways 15 and is used for issuing flow distribution rule data to the gateways 15 so that the gateways realize the gray level distribution of the current application according to the flow distribution rule.
In addition, a MySQL database 13 is also included for storing mapping relationship data of the gateway 15 and the application. Because different applications may correspond to different gateways 15, the relationship data between the two applications can be stored, which is not only beneficial to updating and maintaining the relationship data in time, but also convenient for locating the gateway 15 corresponding to the current application through the relationship data.
For another role of the gateway 15, the QA staff may use the gateway 15 to perform regression testing after the new version instance comes online.
As shown in fig. 9, which is a schematic diagram of regression testing, when a new version instance comes online, if a QA person is required to perform regression testing first, the user traffic cannot be distributed to the new version instance. QA personnel can add traffic-tag in the header of http test request: GrayTest, so that only the QA person's http test request will hit the new version instance.
The gateway 15 performs traffic percentage routing through the application instance start mark, and performs specific routing for an http request with a specific header tag (graftest), and directly routes the http request to the new version instance, thereby implementing regression testing of the new version instance.
An embodiment of the present application further provides an electronic device, where the electronic device includes a memory and a processor, the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the grayscale publishing method of the application according to the embodiment.
The embodiment of the present application further provides a readable storage medium, where computer program instructions are stored, and when the computer program instructions are read and executed by a processor, the gray scale publishing method of the application according to the embodiment is executed.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A method for gray scale publishing for an application, the method comprising:
receiving flow distribution rule data which are applied at present and issued in a gray scale mode;
acquiring a gateway corresponding to the current application according to preset mapping relation data of the gateway and the application;
and calling a configuration management center interface, and sending the flow distribution rule data to the gateway so that the gateway can realize the gray level release of the current application according to the flow distribution rule.
2. The applied gray scale publishing method according to claim 1, wherein the flow distribution rule data comprises a gray scale container number and a gray scale flow ratio, and the receiving the gray scale published flow distribution rule data for the current application comprises:
receiving the number of gray containers sent by a user through a gray data configuration interface;
modifying the copy number attribute value for controlling the number of application copies to control the number of grayscale application instances;
adding a gray scale mark in a starting script of the gray scale application example so that the gateway finds the gray scale application example through the gray scale mark;
and receiving the gray level flow proportion sent by a user through a gray level data configuration interface so that the gateway sends the flow corresponding to the gray level flow proportion to the corresponding gray level application example.
3. The gray scale publishing method for application according to claim 1, wherein before the step of obtaining the gateway corresponding to the current application according to the preset mapping relationship data between the gateway and the application, the method further comprises:
receiving mapping relation data of a gateway and an application, which is sent by a gateway management interface through a gateway management service;
and storing the mapping relation data to a database.
4. The gray scale publishing method of claim 1, wherein the invoking of the configuration management center interface to send the traffic distribution rule data to the gateway comprises:
generating a gray level flow configuration data structure according to the flow distribution rule data, wherein the gray level flow configuration data structure comprises a gateway ID and a flow proportion;
and calling a configuration management center interface, and issuing the gateway ID and the corresponding flow proportion to the corresponding gateway.
5. The gray scale publishing method of claim 1, wherein the gateway implements the gray scale publishing of the current application according to the traffic distribution rule, comprising:
the gateway publishes the application and runs the application on a cloud host or a k8s container platform.
6. A gray scale distribution method of an application according to claim 1, characterized in that:
the gateway is a gray level traffic proportion control route and comprises a Spring Cloud Zuul gateway and/or a Kong gateway.
7. An apparatus for gray scale distribution for an application, the apparatus comprising:
the receiving module is used for receiving the flow distribution rule data which are applied at present and issued in a gray scale mode;
the gateway acquisition module is used for acquiring a gateway corresponding to the current application according to preset mapping relation data of the gateway and the application;
and the issuing module is used for calling a configuration management center interface and sending the flow distribution rule data to the gateway so as to enable the gateway to realize the gray level issuing of the current application according to the flow distribution rule.
8. A gray scale publishing system for an application, the system comprising:
the system comprises a gray data configuration interface, a gateway management service and a data processing module, wherein the gray data configuration interface is used for receiving flow distribution rule data sent by a user and sending the flow distribution rule data to the gateway management service;
the gateway management service is used for storing the flow distribution rule data to a database, calling a configuration management center interface when an application is issued, and sending the flow distribution rule data to a gateway corresponding to the current application based on the pre-stored mapping relation data of the gateway and the application;
and the configuration management center is connected with the plurality of gateways and is used for issuing flow distribution rule data to the gateways so that the gateways realize the gray level release of the current application according to the flow distribution rules.
9. A gray scale distribution system for applications according to claim 8, characterized in that:
and the gateway is also used for sending the http test request to the new version example after an application example starting mark is added in a request head of the http test request when the regression test is carried out on the new version example.
10. An electronic device, characterized in that the electronic device comprises a memory for storing a computer program and a processor for executing the computer program to cause the electronic device to perform the gray scale publishing method of the application according to any of claims 1-6.
CN202110563158.XA 2021-05-26 2021-05-26 Application gray scale publishing method and device and application gray scale publishing system Active CN113315824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110563158.XA CN113315824B (en) 2021-05-26 2021-05-26 Application gray scale publishing method and device and application gray scale publishing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110563158.XA CN113315824B (en) 2021-05-26 2021-05-26 Application gray scale publishing method and device and application gray scale publishing system

Publications (2)

Publication Number Publication Date
CN113315824A true CN113315824A (en) 2021-08-27
CN113315824B CN113315824B (en) 2023-04-18

Family

ID=77374428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110563158.XA Active CN113315824B (en) 2021-05-26 2021-05-26 Application gray scale publishing method and device and application gray scale publishing system

Country Status (1)

Country Link
CN (1) CN113315824B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422440A (en) * 2022-03-28 2022-04-29 北京沃丰时代数据科技有限公司 Gray scale distribution method and device, electronic equipment and storage medium
CN114726919A (en) * 2022-03-22 2022-07-08 新华三大数据技术有限公司 Method and device for controlling gray level flow, computer equipment and storage medium
CN114884915A (en) * 2022-04-19 2022-08-09 阿里巴巴(中国)有限公司 Information processing method, device and equipment based on gray release
CN115102853A (en) * 2022-06-27 2022-09-23 平安银行股份有限公司 Gateway configuration method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150295972A1 (en) * 2012-11-16 2015-10-15 Chris Hagan System for optimising wireless data downloads
US20160142393A1 (en) * 2014-11-17 2016-05-19 Huawei Technologies Co., Ltd. Terminal Authentication Apparatus and Method
US20170289323A1 (en) * 1999-10-06 2017-10-05 Behnov GMBH, LLC Apparatus for internetworked wireless integrated network sensors (wins)
CN107948284A (en) * 2017-11-24 2018-04-20 泰康保险集团股份有限公司 A kind of service inserting method, equipment and system based on micro services framework
US20180152313A1 (en) * 2014-12-31 2018-05-31 Bull Sas Box for communication and management of devices
CN111181858A (en) * 2019-12-24 2020-05-19 浙江大华技术股份有限公司 Method, system, computer device and storage medium for gray scale distribution
CN112532490A (en) * 2020-11-30 2021-03-19 武汉悦学帮网络技术有限公司 Regression testing system and method and electronic equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170289323A1 (en) * 1999-10-06 2017-10-05 Behnov GMBH, LLC Apparatus for internetworked wireless integrated network sensors (wins)
US20150295972A1 (en) * 2012-11-16 2015-10-15 Chris Hagan System for optimising wireless data downloads
US20160142393A1 (en) * 2014-11-17 2016-05-19 Huawei Technologies Co., Ltd. Terminal Authentication Apparatus and Method
US20180152313A1 (en) * 2014-12-31 2018-05-31 Bull Sas Box for communication and management of devices
CN107948284A (en) * 2017-11-24 2018-04-20 泰康保险集团股份有限公司 A kind of service inserting method, equipment and system based on micro services framework
CN111181858A (en) * 2019-12-24 2020-05-19 浙江大华技术股份有限公司 Method, system, computer device and storage medium for gray scale distribution
CN112532490A (en) * 2020-11-30 2021-03-19 武汉悦学帮网络技术有限公司 Regression testing system and method and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114726919A (en) * 2022-03-22 2022-07-08 新华三大数据技术有限公司 Method and device for controlling gray level flow, computer equipment and storage medium
CN114726919B (en) * 2022-03-22 2024-02-13 新华三大数据技术有限公司 Gray scale flow control method, device, computer equipment and storage medium
CN114422440A (en) * 2022-03-28 2022-04-29 北京沃丰时代数据科技有限公司 Gray scale distribution method and device, electronic equipment and storage medium
CN114422440B (en) * 2022-03-28 2022-07-12 北京沃丰时代数据科技有限公司 Gray scale distribution method and device, electronic equipment and storage medium
CN114884915A (en) * 2022-04-19 2022-08-09 阿里巴巴(中国)有限公司 Information processing method, device and equipment based on gray release
CN114884915B (en) * 2022-04-19 2024-03-26 阿里巴巴(中国)有限公司 Message processing method, device and equipment based on gray release
CN115102853A (en) * 2022-06-27 2022-09-23 平安银行股份有限公司 Gateway configuration method and device
CN115102853B (en) * 2022-06-27 2023-07-28 平安银行股份有限公司 Gateway configuration method and device

Also Published As

Publication number Publication date
CN113315824B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
CN113315824B (en) Application gray scale publishing method and device and application gray scale publishing system
CN101243365B (en) Server-side project manager
US20050120061A1 (en) Updating and maintaining data in a multi-system network using asynchronous message transfer
US11494709B2 (en) System and method for integrating heterogeneous data objects
WO2022142121A1 (en) Abstract sentence extraction method and apparatus, and server and computer-readable storage medium
CN113268336B (en) Service acquisition method, device, equipment and readable medium
JP5923691B2 (en) Logistics cloud system and program
JP2010267302A (en) System, server, method and program for managing physical distribution
US20200379982A1 (en) Information processing system and method of controlling information processing system
CN108111598B (en) Cloud disk data issuing method and device and storage medium
US8863133B2 (en) License management in a cluster environment
EP3745278A1 (en) System and method for integrating heterogeneous data objects
CN109344653A (en) A kind of method, apparatus, system, equipment and storage medium connecting database
CN113391921A (en) Resource quota checking method for application example
CN116303250A (en) Accounting archive data management method and device, electronic equipment and medium
JP2006011806A (en) Data distribution method, server device, and sale support system
CN111192088B (en) Method and device for determining settlement object of point and computer readable storage medium
CN114064678A (en) Event data processing method and device and terminal equipment
GB2614012A (en) Tag-driven scheduling of computing resources for function execution
CN115442420A (en) Block chain cross-chain service management method and device
CN108459887A (en) A kind of service flow management method, engine and computer readable storage medium
CN115361390B (en) Method for joining a blockchain network, computer storage medium and electronic device
JP6978017B2 (en) Real estate inheritance estimation system, real estate inheritance estimation method and program
CN110727647B (en) Freight rate data storage method and device
Mazare et al. Designing a Currier Optimized Route Mobile Application.

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