CN111538527A - Method and device for verifying gray release, electronic equipment and storage medium - Google Patents
Method and device for verifying gray release, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111538527A CN111538527A CN202010240274.3A CN202010240274A CN111538527A CN 111538527 A CN111538527 A CN 111538527A CN 202010240274 A CN202010240274 A CN 202010240274A CN 111538527 A CN111538527 A CN 111538527A
- Authority
- CN
- China
- Prior art keywords
- domain name
- gray
- client
- page
- production
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
Abstract
The application relates to process optimization and discloses a verification method, a verification device, electronic equipment and a storage medium for gray scale release, wherein the method comprises the following steps: receiving a first HTTP request sent by a client, wherein the first HTTP request carries a first domain name and a gray field, the first HTTP request is sent by the client when a gray switch parameter of the client is a first gray switch parameter, and the first domain name comprises one of the following: the first grayscale domain name is a domain name corresponding to a new version of the first page, and the first production domain name is a domain name corresponding to an old version of the first page; detecting whether the gray field is a preset gray field or not; if so, determining a first gray page according to the first domain name; and issuing the first gray scale page to the client. By implementing the embodiment of the application, the client side for gray release under the scene without the authentication parameters can be accurately determined.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for verifying gray release, an electronic device, and a storage medium.
Background
And (3) gray level publishing, namely enabling a part of users to continue to experience the product characteristics A, enabling a part of users to begin to experience the product characteristics B, and enabling all the users to begin to experience the product characteristics B if the data fed back by the part of users experiencing the product characteristics B do not have any place needing improvement. The use feedback of the user can be obtained in advance through gray release, and the missing and the deficiency can be checked and repaired according to the feedback result, so that the deficiency of the product is supplemented and perfected.
In the existing H5 page gray scale publishing process, a large number of mobile phone numbers need to be added into a white list, and a client for gray scale publishing is determined by adopting a mode of analyzing the white list based on a user unique authentication parameter securityToken. However, this method is not suitable for a scenario without authentication parameters, so that the client performing gray release in the scenario cannot be accurately determined.
Disclosure of Invention
The embodiment of the application provides a method and a device for verifying gray release, electronic equipment and a storage medium, and by implementing the embodiment of the application, a client side for gray release under a scene without authentication parameters can be accurately determined.
The application provides a verification method for gray release in a first aspect, which includes:
receiving a first HTTP request sent by a client, wherein the first HTTP request carries a first domain name and a gray field, the first HTTP request is sent by the client when a gray switch parameter of the client is a first gray switch parameter, and the first domain name comprises one of the following: the method comprises the steps that a first gray domain name or a first production domain name is obtained, wherein the first gray domain name is a domain name corresponding to a new version of a first page, and the first production domain name is a domain name corresponding to an old version of the first page;
detecting whether the gray field is a preset gray field or not;
if so, determining a first gray page according to the first domain name, wherein the first gray page is a new version of the first page;
and issuing the first gray scale page to the client.
A second aspect of the present application provides a verification apparatus for gray scale distribution, including:
the client-side comprises a transceiving module and a processing module, wherein the transceiving module is used for receiving a first HTTP request sent by a client side, the first HTTP request carries a first domain name and a gray field, the first HTTP request is sent by the client side when a gray switch parameter of the client side is a first gray switch parameter, and the first domain name comprises one of the following: the method comprises the steps that a first gray domain name or a first production domain name is obtained, wherein the first gray domain name is a domain name corresponding to a new version of a first page, and the first production domain name is a domain name corresponding to an old version of the first page;
the processing module is used for detecting whether the gray field is a preset gray field or not;
the processing module is further configured to determine a first grayscale page according to the first domain name if the first domain name is true, where the first grayscale page is a new version of the first page;
the transceiver module is further configured to issue the first grayscale page to the client.
A third aspect of the application provides an electronic device for grey scale distributed validation comprising a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and are generated with instructions for execution by the processor to perform steps in any one of a method for grey scale distributed validation.
A fourth aspect of the present application provides a computer-readable storage medium for storing a computer program, the stored computer program being executable by the processor to implement the method of any one of the verification methods of gray scale distribution.
It can be seen that, in the above technical solution, a first HTTP request sent by a client is received, where the first HTTP request carries a first domain name and a grayscale field, the first HTTP request is sent by the client when a grayscale switching parameter of the client is a first grayscale switching parameter, and the first domain name includes one of: the method comprises the steps that a first gray domain name or a first production domain name is obtained, wherein the first gray domain name is a domain name corresponding to a new version of a first page, and the first production domain name is a domain name corresponding to an old version of the first page; detecting whether the gray field is a preset gray field or not; if so, determining a first gray page according to the first domain name, wherein the first gray page is a new version of the first page; and issuing the first gray scale page to the client, and determining the client capable of performing gray scale issue by detecting whether the gray scale field carried by the HTTP request is a preset gray scale field, so that the client capable of performing gray scale issue is prevented from being determined by adopting a mode of analyzing a white list based on the user unique authentication parameter securityToken. Meanwhile, the client side for gray release under the scene without the authentication parameters is accurately determined.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1A is a schematic diagram illustrating an architecture of a verification method for gray scale publishing according to an embodiment of the present disclosure;
fig. 1B is a schematic flowchart of a verification method for gray scale publishing according to an embodiment of the present disclosure;
fig. 1C is a schematic diagram of a request message structure provided in the embodiment of the present application;
fig. 2 is a schematic flowchart of another verification method for gray scale publishing according to an embodiment of the present application;
fig. 3 is a schematic diagram of a verification apparatus for gray scale distribution according to an embodiment of the present application;
fig. 4 is a schematic server structure diagram of a hardware operating environment according to an embodiment of the present application.
Detailed Description
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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The following are detailed below.
The terms "first" and "second" in the description and claims of the present application and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
First, referring to fig. 1A, fig. 1A is a schematic structural diagram of a verification method for gray scale publishing according to an embodiment of the present application. As shown in fig. 1A, the client 10 may send a first HTTP request carrying a first domain name and a grayscale field to the server 11, and when detecting that the grayscale field is a preset grayscale field, the server 11 may determine a first grayscale page according to the first domain name. Further, as shown in fig. 1A, the page resource 12 includes a plurality of production pages, and each of the production pages is different from each other. For example, the first production page in the page resource 12 is an old version of the first page, and further, the first page may be a first HTML5 page. For example, the second production page in the page resource 12 is an old version of the second page, and further, the second page may also be a second HTML5 page.
The page resource 12 includes a plurality of gray pages. Wherein each of the plurality of gray pages is different from each other. For example, the first gray page in the page resource 12 is a new version of the first page. For example, the second gray page in the page resource 12 is a new version of the second page. Further, the new version of the first page is added with one or more new functions or updated with one or more new functions or deleted with one or more old functions which are defective on the basis of the old version of the first page. The new version of the second page is one in which one or more new functions are added to, or one or more new functions are updated, or one or more defective old functions are deleted, based on the old version of the second page.
Further, the client 10 may send different HTTP requests to the server 11 to access different pages. For example, the client 10 may access different production pages, as well as different grayscale pages. For example, the client 10 can only access different production pages. For example, the client 10 can only access different grayscale pages. As shown in fig. 1A, the server 11 issues a first gray page to the client 10.
Referring to fig. 1B, fig. 1B is a schematic flowchart of a verification method for gray scale publishing according to an embodiment of the present application. As shown in fig. 1B, the method includes:
101. the method comprises the following steps that a server receives a first HTTP request sent by a client, wherein the first HTTP request carries a first domain name and a gray field, the first HTTP request is sent by the client when a gray switch parameter of the client is a first gray switch parameter, and the first domain name comprises one of the following: the method comprises the steps that a first gray domain name or a first production domain name is obtained, wherein the first gray domain name is a domain name corresponding to a new version of a first page, and the first production domain name is a domain name corresponding to an old version of the first page;
the request message format corresponding to the first HTTP request is as follows: request line-request header-empty line-request body. Specifically, referring to fig. 1C, fig. 1C is a schematic diagram of a request message structure provided in the embodiment of the present application. As shown in fig. 1C, the request message structure includes: request line request-line, request header headers, empty line blankline, and request body request-body. The Request line includes a Request Method, a uniform resource identifier Request-URL, and an HTTP protocol Version HTTP-Version. The HTTP protocol version may include, for example, one of the following: HTTP1.0 or HTTP 1.1. Furthermore, the request method and the uniform resource identifier are separated by adopting a blank space, the uniform resource identifier and the HTTP protocol version are separated by adopting a blank space, and a carriage return symbol CR and a line feed symbol LF can also be arranged behind the HTTP protocol version. The request header includes a header field name, a value. For example, Host: www.baidu.com, then Host is the header field name and www.baidu.com is the value. The head field name and the value are separated by a space, and the space is as follows: .
Further, the gray field is located at a request header of the first HTTP request.
The gray scale switch parameters of the client comprise on or off. The first gray scale switch parameter is on.
The first gray domain name is a domain name of a new version of the first page; the first production domain name is a domain name of an old version of the first page. Further, the new version of the first page is added with one or more new functions or updated with one or more new functions or deleted with one or more old functions which are defective on the basis of the old version of the first page. In addition, a Domain Name (also called "Domain") is the Name of a computer or a group of computers on the Internet, which is composed of a string of names separated by points, and is used to identify the computer (sometimes referred to as a geographical location) during data transmission.
For example, the first grayscale domain name is http:// www.diyihuidu.com; the first production domain name is http:// www.diyishengchan.com.
102. The server detects whether the gray field is a preset gray field;
wherein the preset gray field is a beta field.
103. If so, the server side determines a first gray page according to the first domain name, wherein the first gray page is a new version of the first page;
104. and the server side issues the first gray scale page to the client side.
It can be seen that, in the above technical solution, a first HTTP request sent by a client is received, where the first HTTP request carries a first domain name and a grayscale field, the first HTTP request is sent by the client when a grayscale switching parameter of the client is a first grayscale switching parameter, and the first domain name includes one of: the method comprises the steps that a first gray domain name or a first production domain name is obtained, wherein the first gray domain name is a domain name corresponding to a new version of a first page, and the first production domain name is a domain name corresponding to an old version of the first page; detecting whether the gray field is a preset gray field or not; if so, determining a first gray page according to the first domain name; and issuing the first gray page to the client, wherein the first gray page is a new version of the first page, and determining the client capable of performing gray release by detecting whether the gray field carried by the HTTP request is a preset gray field, so that the client capable of performing gray release is prevented from being determined by adopting a mode of analyzing a white list based on a user unique authentication parameter securityToken. Meanwhile, the client side for gray release under the scene without the authentication parameters is accurately determined.
Optionally, in a possible implementation manner, the determining a first grayscale page according to the first domain name includes: when the first domain name is the first gray domain name, analyzing the first gray domain name to obtain an IP address corresponding to the first gray domain name, and determining the first gray page according to the IP address corresponding to the first gray domain name; when the first domain name is the first production domain name, determining the first gray-scale domain name according to the first domain name mapping relation corresponding to the first production domain name, analyzing the first gray-scale domain name to obtain an IP address corresponding to the first gray-scale domain name, and determining the first gray-scale page according to the IP address corresponding to the first gray-scale domain name.
Wherein, the Internet Protocol (IP) address is a network layer protocol in the TCP/IP system.
It can be seen that, in the above technical solution, when the first domain name is the first grayscale domain name, the first grayscale domain name is analyzed to obtain an IP address corresponding to the first grayscale domain name, and the first grayscale page is determined according to the IP address corresponding to the first grayscale domain name; when the first domain name is the first production domain name, the first gray-scale domain name is determined according to the first domain name mapping relation corresponding to the first production domain name, the first gray-scale domain name is analyzed to obtain the IP address corresponding to the first gray-scale domain name, the first gray-scale page is determined according to the IP address corresponding to the first gray-scale domain name, and determination of the gray-scale page based on the gray-scale domain name or the production domain name is achieved.
Optionally, in a possible implementation, the method further includes: sending a gray test end message to the client and canceling the permission of the client for accessing the first gray page, where the gray test end message is used to instruct the client to adjust a gray switch parameter of the client to a second gray switch parameter or a first production switch parameter, the second gray switch parameter is used to instruct the client to send the second HTTP request, the second HTTP request carries a second domain name and the gray field, and the second domain name includes one of: the second grayscale domain name is a domain name corresponding to a new version of the second page, the second production domain name is a domain name corresponding to an old version of the second page, the first production switch parameter is used for indicating the client to send a third HTTP request, and the third HTTP request carries the second domain name and does not carry the grayscale field.
The gray scale test ending message is sent when the access frequency of the client accessing the first gray scale page is a preset access frequency, and the preset access frequency is set by an administrator or configured in a configuration file of a server.
Wherein the second gray scale switching parameter is off, and the first production switching parameter is off. That is, the client may adjust the grayscale switching parameter of the client from on to off, that is, the client may adjust the grayscale switching parameter of the client from the first grayscale switching parameter to off. Further, if the gray scale switch parameter of the client includes the first gray scale switch parameter and the second gray scale switch parameter, the client sends the second HTTP request to the server when the gray scale switch parameter of the client is the second gray scale switch parameter. If the gray scale switch parameter of the client comprises the first gray scale switch parameter and the first production switch parameter, the client sends the third HTTP request to the server when the gray scale switch parameter of the client is the first production switch parameter.
Further, the new version of the second page is added with one or more new functions or updated with one or more new functions or deleted with one or more old functions which are defective based on the old version of the second page.
Therefore, according to the technical scheme, the client is prompted to adjust the gray switch parameters of the client when the gray test of the client is finished, the permission of the client to access the tested gray page is cancelled, and the problem that the test data is single due to repeated tests of the same client is solved.
Optionally, in a possible implementation, the method further includes: receiving the second HTTP request sent by the client, wherein the gray scale identifier corresponding to the second gray scale domain name is different from the first gray scale identifier; determining a second gray level page according to the second domain name and the gray level field; and issuing the second gray page to the client.
Determining a second grayscale page according to the second domain name and the grayscale field, including analyzing the second grayscale domain name to obtain an IP address corresponding to the second grayscale domain name when the second domain name is the second grayscale domain name, and determining the second grayscale page according to the IP address corresponding to the second grayscale domain name; when the second domain name is the second production domain name, determining the second grayscale domain name according to a second domain name mapping relation corresponding to the second production domain name, analyzing the second grayscale domain name to obtain an IP address corresponding to the second grayscale domain name, and determining the second grayscale page according to the IP address corresponding to the second grayscale domain name.
Therefore, in the technical scheme, the client side for gray scale release under the scene without the authentication parameters is accurately determined, the gray scale switch parameters of the client side are adjusted from on to off, the same client side can access another gray scale page, and the test efficiency is improved.
Optionally, in a possible implementation, the method further includes: receiving the third HTTP request sent by the client; determining a second production page according to the second domain name; and issuing the second production page to the client.
When the second domain name is the second grey domain name, determining the second production domain name according to the second domain name mapping relation corresponding to the second grey domain name, analyzing the second production domain name to obtain an IP address corresponding to the second production domain name, and determining a second production page according to the IP address corresponding to the second production domain name; when the second domain name is the first production domain name, the second production domain name is analyzed to obtain an IP address corresponding to the second production domain name, and the second production page is determined according to the IP address corresponding to the first production domain name.
Therefore, in the technical scheme, the same client accesses the production page when the gray switch parameter of the client is adjusted from on to off.
Optionally, in a possible implementation, the method further includes:
if not, when the first domain name is the first grayscale domain name, determining the first production domain name according to the first domain name mapping relation corresponding to the first grayscale domain name, analyzing the first production domain name to obtain an IP address corresponding to the first production domain name, determining a first production page according to the IP address corresponding to the first production domain name, and issuing the first production page to the client; when the first domain name is the first production domain name, analyzing the first production domain name to obtain an IP address corresponding to the first production domain name, determining the first production page according to the IP address corresponding to the first production domain name, and issuing the first production page to the client, wherein the first production page is an old version of the first page.
It can be seen that, in the above technical solution, when the gray field is not the preset gray field, the production page is sent to the client.
Referring to fig. 2, fig. 2 is a schematic flowchart of a verification method for gray scale distribution according to an embodiment of the present application. As shown in fig. 2, before the receiving a first HTTP request sent by a client, the method further includes:
201. receiving a gray level domain name request sent by the client, wherein the gray level domain name request carries a first gray level identifier;
wherein the first grayscale identification is used to identify the first grayscale page.
202. Acquiring a domain name mapping relation corresponding to the first gray scale identifier to obtain a first domain name mapping relation, wherein the first domain name mapping relation is a mapping relation between the first gray scale domain name and the first production domain name;
optionally, in a possible implementation manner, before the obtaining of the domain name mapping relationship corresponding to the first grayscale marker, the method further includes: acquiring the first grayscale domain name and the first production domain name; constructing a mapping relation between the first grayscale domain name and the first production domain name to obtain a first domain name mapping relation; and storing the first domain name mapping relation and the first gray scale identifier in an associated manner.
It can be seen that, in the above technical solution, the mapping relationship between the grayscale domain name and the production domain name is established, and the domain name mapping relationship and the grayscale identifier are stored in association, so as to prepare for obtaining the domain name mapping relationship based on the grayscale identifier.
203. And sending a gray-scale domain name response to the client, wherein the gray-scale domain name response carries the first domain name mapping relation.
It can be seen that, in the above technical solution, a grayscale domain name request sent by the client is received, where the grayscale domain name request carries a first grayscale identifier; acquiring a domain name mapping relation corresponding to the first gray scale identifier to obtain a first domain name mapping relation, wherein the first domain name mapping relation is a mapping relation between the first gray scale domain name and the first production domain name; and sending a gray-scale domain name response to the client, wherein the gray-scale domain name response carries the first domain name mapping relation, so that the domain name mapping relation is synchronized to the client to prepare for subsequent access to a gray-scale page.
Referring to fig. 3, fig. 3 is a schematic diagram of a verification apparatus for gray scale distribution according to an embodiment of the present application. As shown in fig. 3, a verification apparatus 300 for gray scale distribution according to an embodiment of the present application may include:
the transceiving module 301 is configured to receive a first HTTP request sent by a client, where the first HTTP request carries a first domain name and a grayscale field, the first HTTP request is sent by the client when a grayscale switching parameter of the client is a first grayscale switching parameter, and the first domain name includes one of: the method comprises the steps that a first gray domain name or a first production domain name is obtained, wherein the first gray domain name is a domain name corresponding to a new version of a first page, and the first production domain name is a domain name corresponding to an old version of the first page;
a processing module 302, configured to detect whether the grayscale field is a preset grayscale field;
the processing module 302 is further configured to determine, if yes, a first grayscale page according to the first domain name, where the first grayscale page is a new version of the first page;
the transceiver module 301 is further configured to issue the first grayscale page to the client.
Optionally, in a possible implementation manner, the transceiver module 301 is further configured to receive a grayscale domain name request sent by the client, where the grayscale domain name request carries a first grayscale identifier; the processing module 302 is further configured to obtain a domain name mapping relationship corresponding to the first grayscale identifier to obtain a first domain name mapping relationship, where the first domain name mapping relationship is a mapping relationship between the first grayscale domain name and the first production domain name; the transceiver module 301 is further configured to send a grayscale domain name response to the client, where the grayscale domain name response carries the first domain name mapping relationship.
Optionally, in a possible implementation manner, the verification apparatus further includes a storage module 303, and the processing module 302 is further configured to obtain the first grayscale domain name and the first production domain name; constructing a mapping relation between the first grayscale domain name and the first production domain name to obtain a first domain name mapping relation; the storage module 303 is configured to store the first domain name mapping relationship and the first grayscale identifier in an associated manner.
Optionally, in a possible implementation manner, the processing module 302 is specifically configured to, when the first domain name is the first grayscale domain name, analyze the first grayscale domain name to obtain an IP address corresponding to the first grayscale domain name, and determine the first grayscale page according to the IP address corresponding to the first grayscale domain name; when the first domain name is the first production domain name, determining the first gray-scale domain name according to the first domain name mapping relation corresponding to the first production domain name, analyzing the first gray-scale domain name to obtain an IP address corresponding to the first gray-scale domain name, and determining the first gray-scale page according to the IP address corresponding to the first gray-scale domain name.
Optionally, in a possible implementation, the transceiver module 301 is further configured to send a grayscale test end message to the client, where the grayscale test end message is used to instruct the client to adjust a grayscale switching parameter of the client to a second grayscale switching parameter or a first production switching parameter, the second grayscale switching parameter is used to instruct the client to send the second HTTP request, and the second HTTP request carries a second domain name and the grayscale field, where the second domain name includes one of: the first production switch parameter is used for indicating the client to send a third HTTP request, and the third HTTP request carries the second domain name and does not carry the gray field; the processing module 302 is further configured to cancel the right of the client to access the first grayscale page.
Optionally, in a possible implementation manner, the transceiver module 301 is further configured to receive the second HTTP request sent by the client; the processing module 302 is further configured to determine a second grayscale page according to the second domain name and the grayscale field; the transceiver module 301 is further configured to issue the second grayscale page to the client.
Optionally, in a possible implementation manner, if the first domain name is the first grayscale domain name, the processing module 302 is further configured to determine the first production domain name according to the first domain name mapping relationship corresponding to the first grayscale domain name, analyze the first production domain name to obtain an IP address corresponding to the first production domain name, determine a first production page according to the IP address corresponding to the first production domain name, and issue the first production page to the client; when the first domain name is the first production domain name, analyzing the first production domain name to obtain an IP address corresponding to the first production domain name, determining the first production page according to the IP address corresponding to the first production domain name, and issuing the first production page to the client.
Referring to fig. 4, fig. 4 is a schematic diagram of a server structure of a hardware operating environment according to an embodiment of the present application.
An embodiment of the application provides an electronic device for verification of grey scale release, comprising a processor, a memory, a communication interface and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor to execute instructions comprising steps in any of the grey scale release verification methods. As shown in fig. 4, a server of a hardware operating environment according to an embodiment of the present application may include:
a processor 401, such as a CPU.
The memory 402 may alternatively be a high speed RAM memory or a stable memory such as a disk memory.
A communication interface 403 for implementing connection communication between the processor 401 and the memory 402.
Those skilled in the art will appreciate that the configuration of the server shown in fig. 4 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 4, the memory 402 may include an operating system, a network communication module, and a program for verification of the gray scale publication. An operating system is a program that manages and controls the server hardware and software resources, supporting the execution of one or more programs. The network communication module is used to implement communication between the components within the memory 402 and with other hardware and software within the server.
In the server shown in fig. 4, a processor 401 is configured to execute a program for personnel management stored in a memory 402, and implement the following steps: receiving a first HTTP request sent by a client, wherein the first HTTP request carries a first domain name and a gray field, the first HTTP request is sent by the client when a gray switch parameter of the client is a first gray switch parameter, and the first domain name comprises one of the following: the method comprises the steps that a first gray domain name or a first production domain name is obtained, wherein the first gray domain name is a domain name corresponding to a new version of a first page, and the first production domain name is a domain name corresponding to an old version of the first page; detecting whether the gray field is a preset gray field or not; if so, determining a first gray page according to the first domain name, wherein the first gray page is a new version of the first page; and issuing the first gray scale page to the client.
For specific implementation of the server according to the present application, reference may be made to the above embodiments of the verification method for gray scale publishing, which are not described herein again.
The present application further provides a computer readable storage medium for storing a computer program, the stored computer program being executable by the processor to perform the steps of: receiving a first HTTP request sent by a client, wherein the first HTTP request carries a first domain name and a gray field, the first HTTP request is sent by the client when a gray switch parameter of the client is a first gray switch parameter, and the first domain name comprises one of the following: the method comprises the steps that a first gray domain name or a first production domain name is obtained, wherein the first gray domain name is a domain name corresponding to a new version of a first page, and the first production domain name is a domain name corresponding to an old version of the first page; detecting whether the gray field is a preset gray field or not; if so, determining a first gray page according to the first domain name, wherein the first gray page is a new version of the first page; and issuing the first gray scale page to the client.
For specific implementation of the computer-readable storage medium related to the present application, reference may be made to the embodiments of the verification method for gray scale publishing, which are not described herein again.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art should understand that the present application is not limited by the order of acts described, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in this specification are preferred embodiments and that the acts and modules involved are not necessarily required for this application.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (10)
1. A method for verifying gray scale release, comprising:
receiving a first HTTP request sent by a client, wherein the first HTTP request carries a first domain name and a gray field, the first HTTP request is sent by the client when a gray switch parameter of the client is a first gray switch parameter, and the first domain name comprises one of the following: the method comprises the steps that a first gray domain name or a first production domain name is obtained, wherein the first gray domain name is a domain name corresponding to a new version of a first page, and the first production domain name is a domain name corresponding to an old version of the first page;
detecting whether the gray field is a preset gray field or not;
if so, determining a first gray page according to the first domain name, wherein the first gray page is a new version of the first page;
and issuing the first gray scale page to the client.
2. The method of claim 1, wherein prior to receiving the first HTTP request sent by the client, the method further comprises:
receiving a gray level domain name request sent by the client, wherein the gray level domain name request carries a first gray level identifier;
acquiring a domain name mapping relation corresponding to the first gray scale identifier to obtain a first domain name mapping relation, wherein the first domain name mapping relation is a mapping relation between the first gray scale domain name and the first production domain name;
and sending a gray-scale domain name response to the client, wherein the gray-scale domain name response carries the first domain name mapping relation.
3. The method of claim 1 or 2, wherein determining a first grayscale page according to the first domain name comprises:
when the first domain name is the first gray domain name, analyzing the first gray domain name to obtain an IP address corresponding to the first gray domain name, and determining the first gray page according to the IP address corresponding to the first gray domain name;
when the first domain name is the first production domain name, determining the first gray-scale domain name according to the first domain name mapping relation corresponding to the first production domain name, analyzing the first gray-scale domain name to obtain an IP address corresponding to the first gray-scale domain name, and determining the first gray-scale page according to the IP address corresponding to the first gray-scale domain name.
4. The method of claim 3, further comprising:
sending a gray test end message to the client and canceling the permission of the client for accessing the first gray page, where the gray test end message is used to instruct the client to adjust a gray switch parameter of the client to a second gray switch parameter or a first production switch parameter, the second gray switch parameter is used to instruct the client to send the second HTTP request, the second HTTP request carries a second domain name and the gray field, and the second domain name includes one of: the second grayscale domain name is a domain name corresponding to a new version of the second page, the second production domain name is a domain name corresponding to an old version of the second page, the first production switch parameter is used for indicating the client to send a third HTTP request, and the third HTTP request carries the second domain name and does not carry the grayscale field.
5. The method of claim 4, further comprising:
receiving the second HTTP request sent by the client;
determining a second gray level page according to the second domain name and the gray level field;
and issuing the second gray page to the client.
6. The method of claim 1, further comprising:
if not, when the first domain name is the first grayscale domain name, determining the first production domain name according to the first domain name mapping relation corresponding to the first grayscale domain name, analyzing the first production domain name to obtain an IP address corresponding to the first production domain name, determining a first production page according to the IP address corresponding to the first production domain name, and issuing the first production page to the client, wherein the first production page is an old version of the first page;
when the first domain name is the first production domain name, analyzing the first production domain name to obtain an IP address corresponding to the first production domain name, determining the first production page according to the IP address corresponding to the first production domain name, and issuing the first production page to the client.
7. A verification apparatus for gray scale distribution, comprising:
the client-side comprises a transceiving module and a processing module, wherein the transceiving module is used for receiving a first HTTP request sent by a client side, the first HTTP request carries a first domain name and a gray field, the first HTTP request is sent by the client side when a gray switch parameter of the client side is a first gray switch parameter, and the first domain name comprises one of the following: the method comprises the steps that a first gray domain name or a first production domain name is obtained, wherein the first gray domain name is a domain name corresponding to a new version of a first page, and the first production domain name is a domain name corresponding to an old version of the first page;
the processing module is used for detecting whether the gray field is a preset gray field or not;
the processing module is further configured to determine a first grayscale page according to the first domain name if the first domain name is true, where the first grayscale page is a new version of the first page;
the transceiver module is further configured to issue the first grayscale page to the client.
8. The apparatus of claim 7,
the receiving and sending module is further configured to receive a grayscale domain name request sent by the client, where the grayscale domain name request carries a first grayscale identifier;
the processing module is further configured to obtain a domain name mapping relationship corresponding to the first grayscale identifier to obtain a first domain name mapping relationship, where the first domain name mapping relationship is a mapping relationship between the first grayscale domain name and the first production domain name;
the transceiver module is further configured to send a grayscale domain name response to the client, where the grayscale domain name response carries the first domain name mapping relationship.
9. An electronic device for gray scale release verification, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and are generated as instructions that are executed by the processor to perform the steps of the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium is used to store a computer program, which is executed by the processor, to implement the method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010240274.3A CN111538527A (en) | 2020-03-30 | 2020-03-30 | Method and device for verifying gray release, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010240274.3A CN111538527A (en) | 2020-03-30 | 2020-03-30 | Method and device for verifying gray release, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111538527A true CN111538527A (en) | 2020-08-14 |
Family
ID=71976916
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010240274.3A Pending CN111538527A (en) | 2020-03-30 | 2020-03-30 | Method and device for verifying gray release, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111538527A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113946353A (en) * | 2021-09-30 | 2022-01-18 | 北京五八信息技术有限公司 | Data processing method and device, electronic equipment and storage medium |
-
2020
- 2020-03-30 CN CN202010240274.3A patent/CN111538527A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113946353A (en) * | 2021-09-30 | 2022-01-18 | 北京五八信息技术有限公司 | Data processing method and device, electronic equipment and storage medium |
CN113946353B (en) * | 2021-09-30 | 2022-08-09 | 北京五八信息技术有限公司 | Data processing method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9578040B2 (en) | Packet receiving method, deep packet inspection device and system | |
KR101560185B1 (en) | Method for controlling device using URL in distributed network environment and apparatus thereof | |
CN108270882A (en) | The analysis method and device of domain name, storage medium, electronic device | |
CN103391312B (en) | Resource offline method for down loading and device | |
CN109088909B (en) | Service gray level publishing method and device based on merchant type | |
US20200327045A1 (en) | Test System and Test Method | |
EP3249882A1 (en) | Data uploading method, device and system | |
CN111327647A (en) | Method and device for providing service to outside by container and electronic equipment | |
CN103237089A (en) | Method and device for repairing domain name system (DNS) polling mode-based webpages and server | |
CN109617966A (en) | A kind of cloud pipe Platform deployment system and method based on Openstack | |
CN108683631A (en) | A kind of method and system preventing scanning authority | |
CN112825524B (en) | Method, device and system for determining network service node | |
CN113467780A (en) | Data acquisition method and device, electronic equipment and storage medium | |
CN111538527A (en) | Method and device for verifying gray release, electronic equipment and storage medium | |
CN109522202B (en) | Software testing method and device | |
CN113114503B (en) | Deployment method and device based on application delivery network requirements | |
CN109474484B (en) | CDN (content delivery network) checking method, device and system | |
US20150095496A1 (en) | System, method and medium for information processing | |
KR20190021848A (en) | Method for monitoring server, apparatus and system for executing the method | |
US20140047014A1 (en) | Network access system | |
CN107872493B (en) | Information processing method, terminal and server | |
CN104754029A (en) | Method, device and system for determining primary management server | |
CN111478901B (en) | Account weak password detection method and device, server and storage medium | |
CN114520784A (en) | Dynamic content accelerated access method and device | |
JP6787845B2 (en) | Suspected location estimation device and suspected location estimation method |
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 |