CN110311989B - Gray scale publishing method, device, storage medium, equipment and system - Google Patents

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

Info

Publication number
CN110311989B
CN110311989B CN201910710790.5A CN201910710790A CN110311989B CN 110311989 B CN110311989 B CN 110311989B CN 201910710790 A CN201910710790 A CN 201910710790A CN 110311989 B CN110311989 B CN 110311989B
Authority
CN
China
Prior art keywords
resource request
server cluster
application server
type
mark
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
CN201910710790.5A
Other languages
Chinese (zh)
Other versions
CN110311989A (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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910710790.5A priority Critical patent/CN110311989B/en
Publication of CN110311989A publication Critical patent/CN110311989A/en
Application granted granted Critical
Publication of CN110311989B publication Critical patent/CN110311989B/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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • 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/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a gray scale publishing method, a gray scale publishing device, a storage medium, equipment and a gray scale publishing system. The method comprises the following steps: receiving a first resource request initiated by a client; the client comprises a web client; when the first cookie information corresponding to the first resource request does not contain the gray scale mark, providing the first resource request to a first type of application server cluster; and returning a redirection response to the client by the first type of application server cluster when the first resource request meets a preset shunting condition, wherein the redirection response carries second cookie information containing the gray scale mark. The application can be applied to an APP client and a web client (browser).

Description

Gray scale publishing method, device, storage medium, equipment and system
Technical Field
The present application relates to the field of network technologies, and in particular, to a method, an apparatus, a storage medium, a device, and a system for releasing a gray scale.
Background
The gray scale distribution refers to a distribution mode capable of smoothly transiting in the software distribution process. For example, there are two versions of current software, one is a formal version and one is a test version, and when a client sends a request to a server, a part of the client continues to use the formal version and another part of the client uses the test version. If no exception occurs in the process of using the test version, the release range of the test version is gradually expanded, all the clients are finally migrated to the test version, and finally the test version becomes a new formal version. The iterative update of the internet products is fast, and each update is accompanied by risks. The overall stability of the system can be ensured by adopting gray scale release, and the problem can be adjusted in time so as to reduce the risk.
However, in the prior art, the gray scale distribution has the following problems: in the prior art, gray scale release is usually performed based on mobile phone APP and other clients, and scenes such as a desktop browser cannot be supported. Therefore, a gray-level publishing method suitable for the APP client and the web client (Browser) under the Browser/Server architecture is needed.
Disclosure of Invention
An object of the embodiments of the present application is to provide a method, an apparatus, a storage medium, a device, and a system for gray-scale publishing, which are applicable to both an APP client and a web client (Browser) under a B/S architecture (Browser/Server architecture).
In order to achieve the above object, an embodiment of the present application provides a gray scale publishing method, including:
receiving a first resource request initiated by a client; the client comprises a web client;
when the first cookie information corresponding to the first resource request does not contain the gray scale mark, providing the first resource request to a first type of application server cluster; and returning a redirection response to the client by the first type of application server cluster when the first resource request meets a preset shunting condition, wherein the redirection response carries second cookie information containing the gray scale mark.
Preferably, when the first cookie information corresponding to the first resource request does not contain a grayscale flag, providing the first resource request to the first class of application server cluster includes:
when the first cookie information corresponding to the first resource request does not contain a gray mark, the first resource request is distributed to a first class of web server cluster, so that the first class of web server cluster is forwarded to a soft load balancing component of an application server cluster after the first mark is written in a host field of the first resource request, and the soft load balancing component of the application server cluster distributes the first resource request to the first class of application server cluster according to the first mark.
Preferably, the first type of application server cluster determines whether the first resource request meets a preset offloading condition through user information and user agent information of the first resource request.
Preferably, the gray scale issuing method further includes:
receiving a second resource request returned by the client according to the redirection response, wherein the appointed field of the second resource request comprises the gray mark;
providing the second resource request to a second type of application server cluster; so that the second type of application server cluster processes the second resource request.
Preferably, the second resource request is provided to the second type of application server cluster; so that the cluster of application servers of the second type processes the second resource request, further comprising:
allocating the second resource request to a second type of web server cluster; after the second mark is rewritten in the host field of the second resource request, the second type web server cluster forwards the second mark to a soft load balancing component of the application server cluster; and the soft load balancing component of the application server cluster allocates the second resource request to the second type of application server cluster according to the second mark.
The present application also provides a gray scale issuing apparatus, including:
the first resource request receiving module is used for receiving a first resource request initiated by a client; the client comprises a web client;
the first resource request forwarding module is used for providing the first resource request to a first class of application server cluster when the first cookie information corresponding to the first resource request does not contain a gray mark; and returning a redirection response to the client by the first type of application server cluster when the first resource request meets a preset shunting condition, wherein the redirection response carries second cookie information containing the gray scale mark.
The present application also provides another gray scale publishing method, including:
initiating a first resource request; when the first cookie information corresponding to the first resource request does not contain a gray mark, the first resource request is sent to a first-class application server cluster; so that the first type of application server cluster returns a redirection response when the first resource request meets a preset shunting condition;
and receiving a redirection response, wherein the redirection response carries second cookie information containing the gray mark.
Preferably, when the first cookie information corresponding to the first resource request does not contain a grayscale marker, the sending of the first resource request to the first class of application server cluster includes:
when the first cookie information corresponding to the first resource request does not contain a gray mark, the first resource request is allocated to a first class of web server cluster, so that the first class of web server cluster forwards the first mark to a soft load balancing component of an application server cluster after the first mark is written in a host field of the first resource request, and the soft load balancing component of the application server cluster allocates the first resource request to the first class of application server cluster according to the first mark.
Preferably, the first type of application server cluster determines whether the first resource request meets a preset offloading condition through user information and user agent information of the first resource request.
Preferably, the gray scale issuing method further includes:
initiating a second resource request according to the redirection response, wherein the appointed field of the second resource request comprises the gray mark; the second resource request is provided to a second class of application server cluster; so that the second type of application server cluster processes the second resource request;
and receiving a response returned by the second type of application server.
Preferably, the second resource request is provided to a second type of application server cluster; causing the cluster of application servers of the second type to process the second resource request, comprising:
the second resource request is assigned to a second type of web server cluster; after the second mark is rewritten in the host field of the second resource request, the second type web server cluster forwards the second mark to a soft load balancing component of the application server cluster; and enabling a soft load balancing component of the application server cluster to allocate the second resource request to the second type of application server cluster according to the second mark.
The present application also provides another gradation issuing apparatus including:
a first resource request initiating module, configured to initiate a first resource request; when the first cookie information corresponding to the first resource request does not contain a gray mark, the first resource request is sent to a first-class application server cluster; so that the first type of application server cluster returns a redirection response when the first resource request meets a preset shunting condition;
and the redirection response receiving module is used for receiving a redirection response, and the redirection response carries second cookie information containing the gray mark.
The present application also provides a gray scale issuing system, including: the system comprises a client, a soft load balancing device of a web server cluster and a first type of application server cluster; wherein;
the client is used for sending a first resource request to a soft load balancing device of the web server cluster;
the soft load balancing device of the web server cluster is used for sending the first resource request to the first type of application server cluster when the first cookie information of the first resource request does not contain a gray mark; and returning a redirection response when the first resource request meets a preset shunting condition by the first type of application server cluster.
The present application also provides a computer device comprising a processor and a memory for storing processor-executable instructions that when executed by the processor implement the steps of the method of any one of the above.
The present application also provides a computer readable storage medium having stored thereon computer instructions which, when executed, implement the steps of the method of any one of the above.
As can be seen from the technical solutions provided in the embodiments of the present application, when the first cookie information corresponding to the first resource request does not include a grayscale marker, the first resource request is provided to the first type of application server cluster; and returning a redirection response to the client when the first resource request meets a preset shunting condition by the first class of application server cluster, wherein the redirection response carries second cookie information containing a gray mark, so that gray shunting is realized by utilizing the cookies. It can be seen that the method is independent of the APP client, is also applicable to the web client (Browser) under the B/S architecture (Browser/Server architecture), and solves the defect that the gray release depends on the APP client in the prior art.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
Fig. 1 is a system architecture diagram of a gray scale distribution system provided in an embodiment of the present application;
fig. 2 is a flowchart of a gray scale publishing method provided in an embodiment of the present application;
fig. 3 is a block diagram of a gray scale issuing device according to an embodiment of the present application;
fig. 4 is a flowchart of another gray scale publishing method provided in the embodiment of the present application;
fig. 5 is a block diagram of another gray scale distribution apparatus according to an embodiment of the present application;
fig. 6 is a schematic diagram of a computer device provided in an embodiment of the present application.
Detailed Description
The embodiment of the application provides a gray scale release method, a gray scale release device, a storage medium, equipment and a gray scale release system.
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art without any inventive work based on the embodiments in the present application shall fall within the scope of protection of the present application.
Referring to fig. 1, a system architecture diagram of a gray scale distribution system according to an embodiment of the present application is shown. The method comprises the following steps: the system comprises a client, a soft load balancing device of a web server cluster and a first type of application server cluster; wherein;
the client may be operable to send a first resource request to a soft load balancing appliance of the cluster of web servers.
The soft load balancing device of the web server cluster can be used for sending the first resource request to the first type of application server cluster when the first cookie information of the first resource request does not contain a gray mark; and returning a redirection response when the first resource request meets a preset shunting condition by the first type of application server cluster.
Further, the gradation issuance system may further include: the system comprises a first type web server cluster, a second type web server cluster, a soft load balancing component of an application server cluster and a second type application server cluster.
The first type of web server cluster can be used for writing a first mark in a host field and sending a resource request to a soft load balancing component of the application server cluster; and providing static resources;
the second type of web server cluster can be used for writing a second mark in a host field and sending the resource request to a soft load balancing component of the application server cluster; and providing static resources;
the soft load balancing component of the application server cluster may be configured to allocate the resource request to the first type of application server cluster or the second type of application server cluster according to a flag of a host field;
the second type of application server cluster may be used to provide dynamic resources.
The first type of web server cluster and the first type of application server cluster can be used for providing services of formal versions of products; a second type of web server cluster and a second type of application server cluster may be used to provide a product test version of a service. In addition, the server in the present application may be a specific server, or may also be a virtual cloud server in cloud computing, which is not limited in the present application.
The web server may be configured to parse the HTTP request and return an HTTP response, specifically, respond to a static page or a static resource, such as a picture, a CSS (Cascading Style Sheets), a control, and the like. An application server refers to a program that exposes business logic to clients through the Application Programming Interfaces (APIs) of the components, and can be used to respond to dynamic requests, such as handling JSP requests.
When a client (browser) browses a certain website using specified data, a server generates a unique identification code for the client, and generates an item in a back-end database of the server by using the unique identification code as an index, and then adds a Set-head line of the specified data in an HTTP response message returned to the client. When the client (browser) receives the response, the identification code is taken out from the cookie file managed by the client (browser) and is placed in the specified data header line of the HTTP request message, and it can be seen that the server can identify the client based on the cookie.
Referring to fig. 2, a flowchart of a gray scale publishing method provided in an embodiment of the present application includes:
s101: receiving a first resource request initiated by a client; the client comprises a web client.
In some embodiments, the first resource request may be an HTTP request, and since a cookie is pre-stored in the client, the cookie is sent to the server when the request is sent; in particular, the value of the Cookie may be stored in an HTTP header named Cookie.
In some embodiments, the client may be an electronic device with a logical operation function, and the electronic device may be a desktop computer, a tablet computer, a notebook computer, a mobile phone, a workstation, or the like. Of course, the client is not limited to the electronic device with certain entities, and may also be software running in the electronic device. It may also be a program software formed by program development, which may be run in the above-mentioned electronic device, for example, and may also be a web client (Browser) in a B/S architecture (Browser/Server architecture).
S102: when the first cookie information corresponding to the first resource request does not contain the gray scale mark, providing the first resource request to a first type of application server cluster; and returning a redirection response to the client by the first type of application server cluster when the first resource request meets a preset shunting condition, wherein the redirection response carries second cookie information containing the gray scale mark.
In some embodiments, the reason why the first cookie information corresponding to the first resource request does not include the grayscale flag may be that the client accesses the server for the first time, or accesses the server for the first time after the test version is released, or may be that the grayscale flag of the first cookie information exceeds the set validity period.
In some embodiments, when the first cookie information corresponding to the first resource request does not contain the grayscale flag, providing the first resource request to the first type of application server cluster may be implemented by:
when the first cookie information corresponding to the first resource request does not contain a gray mark, the first resource request is distributed to a first class of web server cluster, so that the first class of web server cluster is forwarded to a soft load balancing component of an application server cluster after the first mark is written in a host field of the first resource request, and the soft load balancing component of the application server cluster distributes the first resource request to the first class of application server cluster according to the first mark.
In the request header of the HTTP request, the host field may be used to specify a domain name/IP address and a port number of the request server, and therefore, by writing the information of the first type of application server cluster in the host field, the soft load balancing component of the application server cluster may allocate the first resource request to the first type of application server cluster by identifying the host field.
In some embodiments, the first type of application server cluster determines whether the first resource request meets a preset offloading condition through the user information and the user agent information of the first resource request. Specifically, the user information may include a mobile phone number and a registration place of the user, and the user agent information may include a type of an operating system used by the client. For example, whether the client is an IOS device or an Android device is determined, and if the client is the IOS device, a preset shunting condition is met.
In some embodiments, after the first class of application server cluster determines that the first resource request satisfies the preset offloading condition, a gray flag is written in the first cookie information, and a validity period of the gray flag is set, and then a redirection response is returned, where the redirection response carries second cookie information containing the gray flag, and a flag value of the gray flag is gray, for example, the value of the gray flag is set to 1. After receiving the response, the client stores the second cookie information containing the gray scale mark in the local, stores the second cookie information containing the gray scale mark in an HTTP message header and initiates the second resource request.
In a specific embodiment, the grayscale flag may be set to feeversion ═ 1, indicating that the client may be grayed out.
In some embodiments, receiving a second resource request sent by the client according to the redirection response, wherein the second cookie information of the second resource request contains a gray mark; providing the second resource request to a second type of application server cluster; so that the cluster of application servers of the second type responds to the second resource request.
Specifically, the second resource request is provided to a second type of application server cluster; so that the second type of application server cluster responds to the second resource request, the method may include the following steps:
allocating the second resource request to a second type of web server cluster; after the second mark is rewritten in the host field of the second resource request, the second type web server cluster forwards the second mark to the soft load balancing component of the application server cluster; and the soft load balancing component of the application server cluster allocates a second resource request to the second type of application server cluster according to the second mark.
In a specific embodiment, the first flag written by the host field before redirection is fe.icbc.com.cn, and the second flag rewritten by the host field after redirection is ebank-app-fe.icbc. The first mark and the second mark point to the first type of application server cluster and the second type of application server cluster respectively.
In some embodiments, after the above steps, the client already contains the corresponding grayscale flag in the cookie, and the host field is also rewritten according to the set grayscale flag. For a resource request subsequently initiated by the client, whether the client requests a static resource or a dynamic resource can be determined by determining a URL (uniform resource locator) in the HTTP request, for example, a URL including jpg is a static resource, and a URL including jsp or servlet is a dynamic resource, so that the static resource can be allocated to the web server cluster according to the URL, so that the web server cluster provides the static resource; and allocating the dynamic resources to the application server cluster so that the application server cluster provides the dynamic resources.
Referring to fig. 3, the present application also provides a gray scale issuing apparatus including:
a resource request receiving module 10, configured to receive a first resource request initiated by a client; the client comprises a web client.
The resource request forwarding module 20 may be configured to provide the first resource request to the first class application server cluster when the first cookie information corresponding to the first resource request does not contain the grayscale marker; and returning a redirection response to the client by the first type of application server cluster when the first resource request meets a preset shunting condition, wherein the redirection response carries second cookie information containing the gray scale mark.
Referring to fig. 4, for another method for gray release provided by the present application, the method should be applied to the client side, and may include the following steps:
s201: initiating a first resource request; when the first cookie information corresponding to the first resource request does not contain a gray mark, the first resource request is sent to a first-class application server cluster; and returning a redirection response when the first resource request meets a preset shunting condition by the first type of application server cluster.
In some embodiments, when the first cookie information corresponding to the first resource request does not contain the grayscale flag, the first resource request is sent to the first class of application server cluster, and the following steps are performed:
when the first cookie information corresponding to the first resource request does not contain the gray mark, the first resource request is allocated to the first type of web server cluster, so that the first type of web server cluster forwards the first mark to the soft load balancing component of the application server cluster after the first mark is written in the host field of the first resource request, and the soft load balancing component of the application server cluster allocates the first resource request to the first type of application server cluster according to the first mark.
In some embodiments, the first type of application server cluster determines whether the first resource request satisfies a preset offloading condition through user information and user agent information of the first resource request.
S202: and receiving a redirection response, wherein the redirection response carries second cookie information containing the gray mark.
In some embodiments, after receiving the redirection response, the client initiates a second resource request, where second cookie information of the second resource request includes a grayscale flag; the second resource request is provided to the second type of application server cluster; so that the second type of application server cluster responds to the second resource request; and finally receiving the response returned by the second type of application server.
In some embodiments, the second resource request is provided to a second type of application server cluster; so that the second type of application server cluster responds to the second resource request, the following steps can be implemented:
the second resource request is distributed to a second type of web server cluster; after the second mark is rewritten in the host field of the second resource request, the second type web server cluster forwards the second mark to the soft load balancing component of the application server cluster; and enabling a soft load balancing component of the application server cluster to distribute the second resource request to the second type of application server cluster according to the second mark.
Referring to fig. 5, another apparatus for gray scale distribution provided by the present application includes:
a resource request initiating module 11, configured to initiate a first resource request; when the first cookie information corresponding to the first resource request does not contain a gray mark, the first resource request is sent to a first-class application server cluster; and returning a redirection response when the first resource request meets a preset shunting condition by the first type of application server cluster.
The redirection response receiving module 21 may be configured to receive a redirection response, where the redirection response carries the second cookie information including the grayscale flag.
As shown in fig. 6, the present application further provides a computer device, which includes a processor and a memory, where the memory can be used to store processor-executable instructions, and the processor executes the instructions to implement the steps of any one of the above methods.
The present application also provides a computer readable storage medium having stored thereon computer instructions which, when executed, implement the steps of any one of the methods described above.
From the above description, it can be seen that the embodiments of the present application achieve the following technical effects:
compared with the prior art, the method solves the problem of dependence on the APP client through the mobile phone APP client or the gray level issuing method based on program branches, and can be applied to the APP client and the web client (Browser) under a B/S architecture (Browser/Server architecture).
In addition, compared with the method for realizing gray level release by distinguishing different network operators in the prior art, the method has the advantages that the bottom layer framework of the system network is not required to be modified, the implementation cost is low, the complexity is reduced, and the gray level distribution strategy suitable for the self service condition can be flexibly customized. Meanwhile, the gray strategy is maintained by the application system, and the external dependence is reduced.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The apparatuses and modules illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. Of course, the functionality of the various modules may be implemented in the same one or more software and/or hardware implementations as the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. With this understanding in mind, the present solution, or portions thereof that contribute to the prior art, may be embodied in the form of a software product, which in a typical configuration includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory. The computer software product may include instructions for causing a computing device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in the various embodiments or portions of embodiments of the present application. The computer software product may be stored in a memory, which may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium. Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transient media), such as modulated data signals and carrier waves.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The application is operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
While the present application has been described with examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.

Claims (13)

1. A gray scale issuing method characterized by comprising:
receiving a first resource request initiated by a client; the client comprises a web client;
when the first cookie information corresponding to the first resource request does not contain a gray mark, allocating the first resource request to a first class of web server cluster, so that the first class of web server cluster is forwarded to a soft load balancing component of an application server cluster after the first mark is written in a host field of the first resource request, and the soft load balancing component of the application server cluster allocates the first resource request to the first class of application server cluster according to the first mark; when the first resource request meets a preset shunting condition, the first-class application server cluster returns a redirection response to the client, wherein the redirection response carries second cookie information containing the gray mark;
receiving a second resource request returned by the client according to the redirection response, wherein the appointed field of the second resource request comprises the gray mark;
providing the second resource request to a second type of application server cluster; so that the second type of application server cluster processes the second resource request;
the first type of application server cluster provides a formal version, and the second type of application server cluster provides a test version.
2. The method according to claim 1, wherein the first type of application server cluster determines whether the first resource request satisfies a preset offloading condition through user information and user agent information of the first resource request.
3. The method of claim 1, wherein providing the second resource request to a second class of application server clusters comprises:
allocating the second resource request to a second type of web server cluster; so that the second type web server cluster contains a second mark in the host field of the second resource request, and forwards the second mark to a soft load balancing component of the application server cluster; and the soft load balancing component of the application server cluster allocates the second resource request to the second type of application server cluster according to the second mark.
4. A soft load balancing apparatus for a Web server cluster, comprising:
the first resource request receiving module is used for receiving a first resource request initiated by a client; the client comprises a web client;
the first resource request forwarding module is configured to, when a gray mark is not included in first cookie information corresponding to the first resource request, allocate the first resource request to a first class of web server cluster, so that the first class of web server cluster forwards a first mark to a soft load balancing component of an application server cluster after the first mark is written in a host field of the first resource request, and allocate the first resource request to the first class of application server cluster by the soft load balancing component of the application server cluster according to the first mark; when the first resource request meets a preset shunting condition, the first-class application server cluster returns a redirection response to the client, wherein the redirection response carries second cookie information containing the gray mark;
receiving a second resource request returned by the client according to the redirection response, wherein the appointed field of the second resource request comprises the gray mark;
providing the second resource request to a second type of application server cluster; so that the second type of application server cluster processes the second resource request;
the first type of application server cluster provides a formal version, and the second type of application server cluster provides a test version.
5. A computer device comprising a processor and a memory for storing processor-executable instructions which, when executed by the processor, implement the steps of the method of any one of claims 1 to 3.
6. A computer readable storage medium having stored thereon computer instructions which, when executed, implement the steps of the method of any one of claims 1-3.
7. A gray scale issuing method characterized by comprising:
initiating a first resource request; when the first cookie information of the first resource request does not contain a gray mark, the first resource request is allocated to a first type of web server cluster, so that the first type of web server cluster forwards the first mark to a soft load balancing component of an application server cluster after writing the first mark in a host field of the first resource request, and the soft load balancing component of the application server cluster allocates the first resource request to the first type of application server cluster according to the first mark;
so that the first type of application server cluster returns a redirection response when the first resource request meets a preset shunting condition;
receiving a redirection response, wherein the redirection response carries second cookie information containing the gray mark;
initiating a second resource request according to the redirection response, wherein the appointed field of the second resource request comprises the gray mark; the second resource request is provided to a second class of application server cluster; so that the second type of application server cluster processes the second resource request;
receiving a response returned by the second type of application server;
the first type of application server cluster provides a formal version, and the second type of application server cluster provides a test version.
8. The method according to claim 7, wherein the first type of application server cluster determines whether the first resource request satisfies a preset offloading condition through user information and user agent information of the first resource request.
9. The method of claim 7, wherein the second resource request is provided to a second class of application server cluster; causing the cluster of application servers of the second type to process the second resource request, comprising:
the second resource request is assigned to a second type of web server cluster; so that the second type web server cluster contains a second mark in the host field of the second resource request, and forwards the second mark to a soft load balancing component of the application server cluster; and enabling a soft load balancing component of the application server cluster to allocate the second resource request to the second type of application server cluster according to the second mark.
10. A client, comprising:
a first resource request initiating module, configured to initiate a first resource request; when the first cookie information corresponding to the first resource request does not contain a gray mark, the first resource request is allocated to a first class of web server cluster, so that the first class of web server cluster forwards the first mark to a soft load balancing component of an application server cluster after the first mark is written in a host field of the first resource request, and the soft load balancing component of the application server cluster allocates the first resource request to the first class of application server cluster according to the first mark; so that the first type of application server cluster returns a redirection response when the first resource request meets a preset shunting condition;
a redirection response receiving module, configured to receive a redirection response, where the redirection response carries second cookie information including the grayscale marker;
initiating a second resource request according to the redirection response, wherein the appointed field of the second resource request comprises the gray mark; the second resource request is provided to a second class of application server cluster; so that the second type of application server cluster processes the second resource request;
receiving a response returned by the second type of application server;
the first type of application server cluster provides a formal version, and the second type of application server cluster provides a test version.
11. A computer device comprising a processor and a memory for storing processor-executable instructions which, when executed by the processor, implement the steps of the method of any one of claims 7 to 9.
12. A computer readable storage medium having stored thereon computer instructions which, when executed, implement the steps of the method of any one of claims 7-9.
13. A gradation issuance system, comprising: the system comprises a client, a soft load balancing device of a web server cluster and a first type of application server cluster; wherein;
the client is used for sending a first resource request to a soft load balancing device of the web server cluster; the client comprises a web client;
the soft load balancing device of the web server cluster is used for receiving the first resource request initiated by the client;
when the first cookie information corresponding to the first resource request does not contain a gray mark, allocating the first resource request to a first class of web server cluster, so that the first class of web server cluster is forwarded to a soft load balancing component of an application server cluster after the first mark is written in a host field of the first resource request, and the soft load balancing component of the application server cluster allocates the first resource request to the first class of application server cluster according to the first mark; when the first resource request meets a preset shunting condition, the first-class application server cluster returns a redirection response to the client, wherein the redirection response carries second cookie information containing the gray mark;
the soft load balancing device of the web server cluster is used for receiving a second resource request returned by the client according to the redirection response, and the appointed field of the second resource request contains the gray mark;
the soft load balancing device of the web server cluster is used for providing the second resource request to the second type of application server cluster; so that the second type of application server cluster processes the second resource request;
the first type of application server cluster provides a formal version, and the second type of application server cluster provides a test version.
CN201910710790.5A 2019-08-02 2019-08-02 Gray scale publishing method, device, storage medium, equipment and system Active CN110311989B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910710790.5A CN110311989B (en) 2019-08-02 2019-08-02 Gray scale publishing method, device, storage medium, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910710790.5A CN110311989B (en) 2019-08-02 2019-08-02 Gray scale publishing method, device, storage medium, equipment and system

Publications (2)

Publication Number Publication Date
CN110311989A CN110311989A (en) 2019-10-08
CN110311989B true CN110311989B (en) 2022-01-28

Family

ID=68082916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910710790.5A Active CN110311989B (en) 2019-08-02 2019-08-02 Gray scale publishing method, device, storage medium, equipment and system

Country Status (1)

Country Link
CN (1) CN110311989B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110750289B (en) * 2019-10-25 2022-05-31 中电福富信息科技有限公司 Gray switching state maintaining method for distributed system
CN110798524A (en) * 2019-10-31 2020-02-14 成都知道创宇信息技术有限公司 Page access method and device, electronic equipment and storage medium
CN111949313A (en) * 2020-08-14 2020-11-17 中国工商银行股份有限公司 Method and device for software product gray release
CN113055492A (en) * 2021-03-25 2021-06-29 深圳云之家网络有限公司 Control method and device for service gray scale link, computer equipment and storage medium
CN113411219B (en) * 2021-06-29 2023-04-21 山东派盟网络科技有限公司 Front-end service publishing method, device and equipment
CN114598553A (en) * 2022-03-29 2022-06-07 中国工商银行股份有限公司 Gray scale publishing method and gray scale publishing device
CN115314547A (en) * 2022-09-20 2022-11-08 北京结慧科技有限公司 Micro-service gray scale release method, device and system, storage medium and electronic equipment
CN115334006B (en) * 2022-10-14 2023-04-14 平安银行股份有限公司 Gray level verification method and system based on client implementation
CN117032991B (en) * 2023-10-08 2024-01-26 宁波银行股份有限公司 Gray scale publishing method, device and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103283209A (en) * 2011-04-18 2013-09-04 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
EP2710477A1 (en) * 2011-05-18 2014-03-26 Alibaba Group Holding Limited Distributed caching and cache analysis
CN105099988A (en) * 2014-04-24 2015-11-25 阿里巴巴集团控股有限公司 Method used for supporting gray releasing, access method, devices and system
CN106998369A (en) * 2017-05-26 2017-08-01 努比亚技术有限公司 Gray scale dissemination method, gateway blocker and computer-readable recording medium
CN108319468A (en) * 2017-01-16 2018-07-24 北京京东尚科信息技术有限公司 Gray scale dissemination method, device, system and electronic equipment
CN108470001A (en) * 2018-03-16 2018-08-31 北京腾云天下科技有限公司 A kind of web application gray scale dissemination method, server and system
CN109787830A (en) * 2019-01-21 2019-05-21 北京京东尚科信息技术有限公司 Gray scale distribution control method, device, system, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10108982B2 (en) * 2013-02-26 2018-10-23 Oath (Americas) Inc. Systems and methods for accessing first party cookies

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103283209A (en) * 2011-04-18 2013-09-04 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
EP2710477A1 (en) * 2011-05-18 2014-03-26 Alibaba Group Holding Limited Distributed caching and cache analysis
CN105099988A (en) * 2014-04-24 2015-11-25 阿里巴巴集团控股有限公司 Method used for supporting gray releasing, access method, devices and system
CN108319468A (en) * 2017-01-16 2018-07-24 北京京东尚科信息技术有限公司 Gray scale dissemination method, device, system and electronic equipment
CN106998369A (en) * 2017-05-26 2017-08-01 努比亚技术有限公司 Gray scale dissemination method, gateway blocker and computer-readable recording medium
CN108470001A (en) * 2018-03-16 2018-08-31 北京腾云天下科技有限公司 A kind of web application gray scale dissemination method, server and system
CN109787830A (en) * 2019-01-21 2019-05-21 北京京东尚科信息技术有限公司 Gray scale distribution control method, device, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110311989A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN110311989B (en) Gray scale publishing method, device, storage medium, equipment and system
US11159411B2 (en) Distributed testing service
US11711420B2 (en) Automated management of resource attributes across network-based services
US10693972B2 (en) Secure cross-domain session storage
CN107038041B (en) Data processing method, error code dynamic compatibility method, device and system
WO2022007638A1 (en) Data processing method, apparatus, device and system
JP6404816B2 (en) Method and apparatus for responding to web page access request
US10235223B2 (en) High-performance computing framework for cloud computing environments
CN105488125A (en) Page access method and apparatus
CN107528885B (en) Service request processing method and device
CN111639278A (en) Webpage loading method and device
CN113536174A (en) Interface loading method, device and equipment
US20190379748A1 (en) Systems, devices, and methods for presenting customized content through web api
CN112930530A (en) Client application for network application execution
CN107704464B (en) Method and device for analyzing path of static resource
CN111209009B (en) Content distribution method and device, storage medium and electronic equipment
US9805177B1 (en) Processing large data sets from heterogeneous data sources using federated computing resources
CN116595047A (en) Rights management method, rights management device, electronic device and computer-readable storage medium
CN112491943A (en) Data request method, device, storage medium and electronic equipment
CN111143327B (en) Data processing method and device
CN114328435A (en) Stream processing method and system of unstructured file based on distributed architecture
CN112765503A (en) Static processing method and device for page loading data
US20210042334A1 (en) Multi-cloud object store access
CN112541327A (en) Data reading method and device, electronic equipment and storage medium
CN109213943B (en) Webpage loading method and device, terminal equipment, processor and storage medium

Legal Events

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