CN107920112B - Configuration file pushing method supporting gray mode, central server and storage medium - Google Patents

Configuration file pushing method supporting gray mode, central server and storage medium Download PDF

Info

Publication number
CN107920112B
CN107920112B CN201711060242.XA CN201711060242A CN107920112B CN 107920112 B CN107920112 B CN 107920112B CN 201711060242 A CN201711060242 A CN 201711060242A CN 107920112 B CN107920112 B CN 107920112B
Authority
CN
China
Prior art keywords
identification information
configuration file
client
gray
application program
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
CN201711060242.XA
Other languages
Chinese (zh)
Other versions
CN107920112A (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.)
Guangdong Xuerhua Network Equipment Co.,Ltd.
Original Assignee
Chongqing Financial Assets Exchange Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Financial Assets Exchange Co ltd filed Critical Chongqing Financial Assets Exchange Co ltd
Priority to CN201711060242.XA priority Critical patent/CN107920112B/en
Publication of CN107920112A publication Critical patent/CN107920112A/en
Application granted granted Critical
Publication of CN107920112B publication Critical patent/CN107920112B/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/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses an application program pushing method supporting a gray mode, a central server and a storage medium. The method comprises the following steps: after a request which is sent by a client and is used for acquiring a configuration file and is provided with first identification information is received, matching the first identification information in the request with the first identification information of each client recorded in a pre-stored gray list; if the gray scale list has first identification information matched with the first identification information in the request, acquiring a first configuration file corresponding to a prestored new version application program, and issuing the first configuration file to the gray scale of the client; and if the gray list has no first identification information matched with the first identification information in the request, acquiring a second configuration file corresponding to the pre-stored old version application program, and directly sending the second configuration file to the client. The method can reduce the influence degree of the new version application program when the new version application program has problems, and is low in workload and easy to maintain.

Description

Configuration file pushing method supporting gray mode, central server and storage medium
Technical Field
The invention relates to the field of application program development, in particular to a configuration file pushing method supporting a gray mode, a central server and a storage medium.
Background
In a traditional application program development process, an application program and a configuration file thereof are usually packaged and delivered together, so that before a new version of the application program is released, the configuration file corresponding to an old version of the application program operated by a client under each environment (such as a development environment, a test environment, an operation environment and the like) needs to be modified one by one, the workload is large, the maintenance is not easy, errors are easy to occur, and once errors occur, the stability of an overall operation system is influenced.
Disclosure of Invention
In view of the above, the present invention provides a method, a server, a central server and a storage medium for pushing a configuration file supporting a grayscale mode, which can reduce the influence of a new version application when a problem occurs, and are easy to maintain with less workload.
Firstly, in order to achieve the above object, the present invention provides a method for pushing a configuration file supporting a grayscale mode, wherein the method comprises the following steps:
s1, after receiving a request with first identification information for acquiring a configuration file, which is sent by a client, from a central server, matching the first identification information in the request with the first identification information of each client recorded in a gray list prestored in a database of the central server, wherein the first identification information is address identification information;
s2, if the first identification information in the gray scale list is matched with the first identification information in the request, acquiring a first configuration file corresponding to a new version application program prestored in the central server, and issuing the first configuration file to the client in a gray scale issuing mode;
and S3, if the first identification information in the gray scale list is not matched with the first identification information in the request, acquiring a second configuration file corresponding to the old version application program prestored in the central server, and directly sending the second configuration file to the client.
Further, the method comprises the following steps:
after receiving a request for acquiring a configuration file sent by a client with second identification information, a central server matches the second identification information in the request with the second identification information of each client recorded in the gray scale list, wherein the second identification information is non-address identification information;
if the gray scale list has second identification information matched with the second identification information in the request, acquiring the first configuration file, and issuing the first configuration file to the client in a gray scale issuing mode;
and if the second identification information in the gray list is not matched with the second identification information in the request, acquiring the second configuration file and directly sending the second configuration file to the client.
Further, before the step S1, the method further includes the following steps:
the first configuration file and the second configuration file are stored in a database of the central server in advance;
and writing the selected first identification information of each client into the gray list after receiving the first identification information of the client which is selected by the user based on the setting interface provided by the central server and releases the new version application program in a gray release manner, and/or writing the selected second identification information of each client into the gray list after receiving the second identification information of the client which is selected by the user based on the setting interface provided by the central server and releases the new version application program in a gray release manner.
Further, the first identification information includes an IP address or a MAC address, and the second identification information is an environment variable.
In addition, to achieve the above object, the present invention further provides a central server, including a memory and a processor, where the memory stores a profile pushing program supporting a grayscale mode, and when the processor executes the profile pushing program supporting the grayscale mode, the central server implements the following steps:
a1, after receiving a request with first identification information for acquiring a configuration file sent by a client, matching the first identification information in the request with the first identification information of each client recorded in a gray list prestored in a database of the central server, wherein the first identification information is address identification information;
a2, if the gray scale list has first identification information matched with the first identification information in the request, acquiring a first configuration file corresponding to a new version application program pre-stored in the central server, and issuing the first configuration file to the client in a gray scale issuing manner;
and A3, if no first identification information in the gray scale list is matched with the first identification information in the request, acquiring a second configuration file corresponding to an old version application program prestored in the central server, and directly sending the second configuration file to the client.
Further, when the configuration file pushing program supporting the grayscale mode is executed by the processor, the following steps are also implemented:
after receiving a request for acquiring a configuration file sent by a client with second identification information, matching the second identification information in the request with the second identification information of each client recorded in the gray list, wherein the second identification information is non-address identification information;
if the gray scale list has second identification information matched with the second identification information in the request, acquiring the first configuration file, and issuing the first configuration file to the client in a gray scale issuing mode;
and if the second identification information in the gray list is not matched with the second identification information in the request, acquiring the second configuration file and directly sending the second configuration file to the client.
Further, before the configuration file pushing program supporting the grayscale mode is executed by the processor to implement the step S1, the following steps are also implemented:
the first configuration file and the second configuration file are stored in a database of the central server in advance;
and writing the selected first identification information of each client into the gray list after receiving the first identification information of the client which is selected by the user based on the setting interface provided by the central server and releases the new version application program in a gray release manner, and/or writing the selected second identification information of each client into the gray list after receiving the second identification information of the client which is selected by the user based on the setting interface provided by the central server and releases the new version application program in a gray release manner.
Further, the first identification information includes an IP address or a MAC address, and the second identification information is an environment variable.
Further, the memory also stores a setting interface generating program, and the setting interface generating program is executed by the processor to realize the following steps:
after receiving an instruction of issuing a new version application program in a gray scale issuing manner, generating and displaying a setting interface, wherein the setting interface comprises preset first identification information of each client, a first option for a user to select to issue the new version application program in the gray scale issuing manner is correspondingly included behind each first identification information, and/or the setting interface comprises preset second identification information of each client, and a second option for the user to select to issue the new version application program in the gray scale issuing manner is correspondingly included behind each second identification information.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium storing a profile push program supporting a grayscale mode, the profile push program being executable by at least one processor to cause the at least one processor to perform the steps of the above-mentioned grayscale mode supporting profile push method.
Compared with the prior art, the configuration file pushing method supporting the gray scale mode, the central server and the computer readable storage medium provided by the invention have the advantages that firstly, after the central server receives a request for acquiring the configuration file sent by a client, first identification information in the request is matched with first identification information of each client recorded in a gray scale list pre-stored in a database of the central server; if the gray scale list has first identification information matched with the first identification information in the request, acquiring a first configuration file corresponding to a new version application program prestored in the central server, and issuing the first configuration file to the client in a gray scale issuing mode; and if the gray list has no first identification information matched with the first identification information in the request, acquiring a second configuration file of an old version application program prestored in the central server, and directly sending the second configuration file to the client. The method can reduce the influence degree of the new version application program when the new version application program has problems, and is low in workload and easy to maintain.
Drawings
FIG. 1 is a schematic diagram of an alternative application environment for various embodiments of the present invention;
FIG. 2 is a diagram of an alternative hardware architecture for the server of FIG. 1;
FIG. 3 is a block diagram of an exemplary configuration file pushing process for supporting the grayscale mode in the server of FIG. 2;
FIG. 4 is a flowchart illustrating a preferred embodiment of a profile pushing procedure supporting a grayscale mode according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. 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 invention.
It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Fig. 1 is a schematic diagram of an alternative application environment according to various embodiments of the present invention. As shown in fig. 1, the application environment of the embodiments of the present invention includes a central server 10, a client 20, and a network 30. The central server 10 includes at least one server and a database 12 (shown in fig. 2), in this embodiment, the server is an API server, a gray list, a first configuration file corresponding to a new version application program, and a second configuration file corresponding to an old version application program are stored in the database 12, and first identification information of each client 20 that runs the new version application program in a gray scale is recorded on the gray list, and/or second identification information of an environment (e.g., a development environment, a test environment, an operation environment, etc.) corresponding to each client 20 that runs the new version application program in a gray scale is recorded on the gray list, it should be noted that the first identification information is address-class identification information, such as an IP address or a MAC address, and the second identification information is non-address-class identification information, such as an environment variable, etc.
It should be noted that, in this embodiment, when an application has a new version, in order to ensure the stability of the whole operating system, reduce the influence of a problem occurring in the new version of the application, reduce workload, and facilitate maintenance, a preset proportion (for example, 30%) of the clients issue the new version of the application in a gray-scale release manner, and other clients temporarily and directly issue the old version of the application, so that an operator needs to write first identification information of the client that issues the new version of the application in the gray-scale release manner in advance or second identification information of the client that issues the new version of the application in the gray-scale release manner into a gray-scale list of the database 12, in an embodiment of this embodiment, the server 11 includes a memory 111 and a processor 112 (as shown in fig. 2), the memory 111 stores a setting interface generating program, the setup interface generator is executed by the processor 112 to perform the steps of: after receiving an instruction of issuing a new version application program in a gray scale issuing manner, generating and displaying a setting interface, wherein the setting interface comprises preset first identification information of each client, a first option for a user to select to issue the new version application program in the gray scale issuing manner is correspondingly included behind each first identification information, and/or the setting interface comprises preset second identification information of each client, and a second option for the user to select to issue the new version application program in the gray scale issuing manner is correspondingly included behind each second identification information.
Further, it can be understood that after receiving the first identification information of the client that the user issues the new version application program in the gray release manner selected based on the setting interface provided by the server 11, the selected first identification information of each client is written into the gray list, and/or after receiving the second identification information of the client that the user issues the new version application program in the gray release manner selected based on the setting interface provided by the center server, the selected second identification information of each client is written into the gray list.
The network 30 may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), Wi-Fi, or the like.
The central server 10 and the client 20 are connected in communication through a network 30. After receiving a request with first identification information for acquiring a configuration file sent by a client 20, an API server of the central server 10 matches the first identification information in the request sent by the client 20 with the first identification information recorded in a gray scale list stored in the database 12, if there is a match between the first identification information in the gray scale list and the first identification information in the request sent by the client 20, releases the first configuration file corresponding to a new version of an application program to the client 20 in a gray scale release manner, and if there is no match between the first identification information in the gray scale list and the first identification information in the request sent by the client 20, directly sends a second configuration file corresponding to an old version of the application program to the client 20.
Or, after receiving a request for acquiring a configuration file sent by a client 20 with second identification information, the API server of the central server 10 matches the second identification information with the second identification information recorded in the gray list stored in the database 12, if there is a match between the second identification information in the gray list and the second identification information in the request sent by the client 20, issues a first configuration file corresponding to a new version of application program to the client 20 in a gray release manner, and if there is no match between the second identification information in the gray list and the second identification information in the request sent by the client 20, directly sends a second configuration file corresponding to an old version of application program to the client 20.
Fig. 2 is a schematic diagram of an alternative hardware architecture of the central server 10 in fig. 1. In this embodiment, the central server 10 may include, but is not limited to, a memory 111, a processor 112, and a network interface 113 communicatively connected to each other via a communication bus 110. It is noted that FIG. 2 only shows the central server 10 with components 110 and 113, but it is understood that not all of the shown components are required and that more or fewer components may be implemented instead.
Among them, the memory 111 includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 111 may be an internal storage unit of the central server 10, such as a hard disk or a memory of the central server 10. In other embodiments, the memory 111 may also be an external storage device of the central server 10, such as a plug-in hard disk equipped on the central server, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Of course, the memory 111 may also include both an internal storage unit of the center server 10 and an external storage device thereof. In this embodiment, the memory 111 is generally used for storing an operating system and various application software installed in the central server 10, such as a configuration file pushing program supporting a grayscale mode. Further, the memory 111 may also be used to temporarily store various types of data that have been output or are to be output.
Processor 112 may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor, or other data Processing chip in some embodiments. The processor 112 is generally used to control the overall operation of the central server 10. In this embodiment, the processor 112 is configured to run program codes stored in the memory 111 or process data, for example, run a profile push program supporting a grayscale mode and the like stored in the memory 111.
The network interface 13 may comprise a wireless network interface or a wired network interface, and the network interface 13 is generally used to establish a communication connection between the central server 10 and other electronic devices.
A communication bus 110 is used to enable communication connections between these components.
Fig. 2 only shows the central server 10 with components 110 and 113 and a profile push program that supports a grayscale mode, but it should be understood that not all of the shown components need be implemented, and that more or fewer components may be implemented instead.
Optionally, the central server 10 may further include a user interface, which may include a Display (Display), an input unit such as a Keyboard (Keyboard), and an optional user interface may also include a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the social network based user keyword extraction apparatus and for displaying a visualized user interface.
In one embodiment, the configuration file pushing program supporting the grayscale mode stored in the memory 111 of the center server 10 when executed by the processor 112 implements the following steps:
A. after the central server 10 receives a request with first identification information for acquiring a configuration file sent by a client 20, matching the first identification information in the request sent by the client 20 with the first identification information of each client recorded in a gray scale list pre-stored in the database 12;
B. if the first identification information in the gray scale list is matched with the first identification information in the request, acquiring a first configuration file corresponding to a new version application program pre-stored in the database 12, and issuing the first configuration file to the client 20 by adopting a gray scale issuing mode;
C. if the first identification information in the gray list is not matched with the first identification information in the request sent by the client 20, the second configuration file corresponding to the old version application program pre-stored in the database 12 is obtained and directly sent to the client 20.
It should be noted that, when the new version of the application program is to be released, the new version of the application program is released at the preset ratio of the gray scale of the client, and the old version of the application program is still run at other clients, so that problems can be timely found and adjusted at the initial gray scale, the stability of the whole running system is ensured, and the influence degree of the new version of the application program when problems occur is reduced. It can be understood that, to implement the gray release of the new version application program at the client with the predetermined preset ratio, the configuration file of the old version application program and the configuration file of the new version application program are stored in the database 12 of the central server 10 in advance, and after receiving the first identification information of the client that uses the gray release method to release the new version application program, which is selected by the user based on the setting interface provided by the central server, the first identification information of each selected client is written into the gray list and/or after receiving the second identification information of the client that uses the gray release method to release the new version application program, which is selected by the user based on the setting interface provided by the central server, the second identification information of each selected client is written into the gray list.
In this way, after the central server 10 receives the request with the first identification information for obtaining the configuration file sent by the client 20, the first identification information (for example, an IP address or a MAC address) in the request sent by the client 20 is matched with the first identification information of each client recorded in the gray list stored in the database 12 in advance; if the first identification information in the gray scale list is matched with the identification information in the request sent by the client 20, acquiring a first configuration file of a new version application program pre-stored in the database 12, and issuing the first configuration file to the client 20 by adopting a gray scale issuing mode; if the first identification information in the gray list is not matched with the first identification information in the request sent by the client 20, the second configuration file of the old version application program pre-stored in the database 12 is obtained and sent to the client 20.
In other embodiments, when the new version of the application program is to be released, it may be necessary to select the application program with the new version of the gray release according to each predetermined operating environment (e.g., development environment, test environment, online environment, etc.) of the client, at this time, after the central server 10 receives the request for obtaining the configuration file sent by the client 20 with the second identifier, the second identifier information in the request is matched with the second identifier information recorded in the gray list, if there is a second identifier information in the gray list that is matched with the second identifier information in the request, the first configuration file corresponding to the new version application program stored in the database 12 in advance is obtained, and the first configuration file is released to the client 20 in a manner of gray release; if there is no second identification information in the gray list matching the second identification information in the request, a second configuration file of the old version application program pre-stored in the database 12 is obtained and directly sent to the client 20.
Alternatively, in other embodiments, the program supporting the grayscale mode profile pushing program may be further divided into one or more program modules, and the one or more program modules are stored in the memory 111 and executed by one or more processors (in this embodiment, the processor 112) to implement the present invention. For example, referring to fig. 3, a schematic diagram of a program module supporting a grayscale mode profile pushing program in an embodiment of the server of the present invention is shown, in this embodiment, the grayscale mode profile pushing program can be divided into a matching module 201, a grayscale publishing module 202, and a sending module 203, functions or operation steps implemented by the modules 201 and 203 are similar to those described above, and are not described in detail here, for example, wherein:
the matching module 201 is configured to match, after the central server receives a request with first identification information for acquiring a configuration file sent by the client 20, the first identification information in the request with the first identification information of each client recorded in a gray scale list pre-stored in a database of the central server;
the gray release module 202 is configured to, if the first identification information in the gray list matches the first identification information in the request, obtain a first configuration file corresponding to a new version application program pre-stored in the central server, and release the first configuration file to the client 20 in a gray release manner;
the sending module 203 is configured to, if there is no first identification information in the gray scale list matching the first identification information in the request, obtain a second configuration file corresponding to an old version application program pre-stored in the central server, and directly send the second configuration file to the client 20.
In addition, the invention also provides a configuration file pushing method supporting the gray mode. Referring to fig. 4, a flow chart of a preferred embodiment of a method for pushing a configuration file supporting a grayscale mode according to the invention is shown. The method may be performed by a server, which may be implemented by software and/or hardware.
In this embodiment, the method for pushing a profile supporting a grayscale mode includes:
step S301, after the central server receives a request with first identification information for acquiring a configuration file sent by the client 20, matching the first identification information in the request with the first identification information of each client recorded in a gray scale list prestored in a database of the central server;
step S302, if the first identification information in the gray scale list is matched with the first identification information in the request, acquiring a first configuration file corresponding to a new version application program pre-stored in the central server, and issuing the first configuration file to the client 20 by adopting a gray scale issuing mode;
step S303, if there is no first identification information in the gray scale list matching the first identification information in the request, a second configuration file corresponding to the old version application program pre-stored in the central server 10 is obtained and directly sent to the client 20.
It should be noted that, in the server in the embodiment of fig. 1 of the embodiment of the present embodiment, when the application program has a new version to be released, the server releases the application program of the new version through the gray scale of the client with the predetermined preset proportion, and runs the application program of the old version on other clients, so that problems can be timely found and adjusted during the initial gray scale, the stability of the whole running system is ensured, and the influence degree when the new version application program has problems is reduced. It can be understood that, to release the new version application program in the gray scale of the client at the predetermined preset ratio, the configuration file of the old version application program and the configuration file of the new version application program are stored in the database 12 of the central server 10 in advance, and a corresponding operator is required to select the first identification information (for example, IP address or MAC address) of the client that runs the new version application program in the gray scale based on the selection item of the setting interface 13 or input the first identification information of the client that runs the new version application program in the gray scale based on the input box of the setting interface 13, and write the selected first identification information or the input first identification information into the gray scale list. In this way, after receiving the request for obtaining the configuration file sent by the client 20, the server matches the identification information (e.g., IP address or MAC address) of the client 20 with the first identification information of each client recorded in the gray list pre-stored in the database 12; if the gray scale list has the first identification information matched with the identification information of the client, acquiring a first configuration file of a new version application program prestored in the database 12, and issuing the first configuration file to the gray scale of the client; if the gray list has no first identification information matched with the identification information of the client, a second configuration file corresponding to the old version application program pre-stored in the database 12 is obtained and sent to the client.
In other embodiments, when the new version of the application program is to be released, it may be necessary to select the application program of the new version of the grayscale release according to predetermined operating environments (e.g., development environment, test environment, online environment, etc.) of the client, at this time, second identification information of the predetermined operating environments is displayed on the setting interface 13, and a second selection item for an operator (e.g., a developer or a tester) to select the second identification information of the new version of the application program for grayscale release or a second input box for the operator to input the second identification information of the new version of the application program for grayscale release. Correspondingly, second identification information of each operating environment for running the new version application program in the grayscale is recorded in the grayscale list, when the server 11 receives a request for obtaining the configuration file sent by the client 20 with the second identification, the second identification information is matched with the second identification information recorded in the grayscale list, and if the second identification information is matched with the second identification information, a first configuration file corresponding to the new version application program pre-stored in the database 12 is obtained, and the first configuration file is released to the client 20 in the grayscale; if there is no second identification information in the gray list matching with the second identification information, a second configuration file of the old version application program pre-stored in the database 12 is obtained and sent to the client 20.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a configuration file pushing program supporting a grayscale mode is stored, and when executed by a processor, the configuration file pushing program supporting the grayscale mode implements the following steps:
after a central server receives a request for acquiring a configuration file sent by a client, matching first identification information in the request with first identification information of each client recorded in a gray list prestored in a database of the central server, wherein the first identification information is address identification information;
if the gray scale list has first identification information matched with the first identification information in the request, acquiring a first configuration file corresponding to a new version application program prestored in the central server, and issuing the first configuration file to the client in a gray scale issuing mode;
and if the gray list has no first identification information matched with the first identification information in the request, acquiring a second configuration file of an old version application program prestored in the central server, and directly sending the second configuration file to the client.
Further, when executed by the processor, the configuration file pushing program supporting the grayscale mode further implements the following steps:
after receiving a request for acquiring a configuration file sent by a client with second identification information, the central server matches the second identification information in the request with the second identification information of the client recorded in the gray scale list;
if the second identification information in the gray scale list is matched with the second identification information in the request, acquiring a first configuration file corresponding to a new version application program prestored in the central server, and issuing the first configuration file to the client in a gray scale issuing mode;
and if no second identification information in the gray list is matched with the second identification information in the request, acquiring a second configuration file corresponding to an old version application program prestored in the central server, and directly sending the second configuration file to the client.
The embodiment of the computer-readable storage medium of the present invention is substantially the same as the above-mentioned embodiments of the configuration file pushing method and the server supporting the grayscale mode, and will not be described herein in detail.
According to the configuration file pushing method, the server, the central server and the computer readable storage medium supporting the gray scale mode, the server of the central server receives the request for acquiring the configuration file sent by the client, and then matches the first identification information of the client with the first identification information of each client recorded in the gray scale list, wherein the gray scale list is prestored in the database of the central server; if the gray scale list has first identification information matched with the first identification information of the client, acquiring a first configuration file corresponding to a new version application program prestored in the central server, and issuing the first configuration file to the gray scale of the client; and if the gray list has no first identification information matched with the first identification information of the client, acquiring a second configuration file of an old version application program prestored in the central server, and sending the second configuration file to the client. The stability of the whole operation system can be ensured, the influence degree of the new version application program when the new version application program goes wrong is reduced, the workload is low, and the maintenance is easy.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (8)

1. A configuration file pushing method supporting a gray mode is characterized by comprising the following steps:
s1, after receiving a request with first identification information for acquiring a configuration file, which is sent by a client, from a central server, matching the first identification information in the request with first identification information of each client of a gray level operation new version application program recorded in a gray level list prestored in a database of the central server, wherein the first identification information is address identification information;
s2, if the first identification information in the gray scale list is matched with the first identification information in the request, acquiring a first configuration file corresponding to a new version application program prestored in the central server, and issuing the first configuration file to the client in a gray scale issuing mode;
s3, if the gray scale list has no first identification information matched with the first identification information in the request, acquiring a second configuration file corresponding to an old version application program prestored in the central server, and directly sending the second configuration file to the client;
after receiving a request for acquiring a configuration file sent by a client with second identification information, a central server matches the second identification information in the request with second identification information of environments corresponding to clients of a gray level running new version application program recorded in a gray level list, wherein the second identification information is non-address identification information;
if the gray scale list has second identification information matched with the second identification information in the request, acquiring the first configuration file, and issuing the first configuration file to the client in a gray scale issuing mode;
and if the second identification information in the gray list is not matched with the second identification information in the request, acquiring the second configuration file and directly sending the second configuration file to the client.
2. The profile pushing method for supporting a gray mode according to claim 1, wherein before said step S1, said method further comprises the steps of:
the first configuration file and the second configuration file are stored in a database of the central server in advance;
and writing the selected first identification information of each client into the gray list after receiving the first identification information of the client which is selected by the user based on the setting interface provided by the central server and releases the new version application program in a gray release manner, and/or writing the selected second identification information of each client into the gray list after receiving the second identification information of the client which is selected by the user based on the setting interface provided by the central server and releases the new version application program in a gray release manner.
3. The profile pushing method for supporting a grayscale mode according to claim 1, wherein the first identification information includes an IP address or a MAC address, and the second identification information is an environment variable.
4. A central server, comprising a memory and a processor, wherein the memory stores a profile pushing program supporting a grayscale mode, and when the profile pushing program supporting the grayscale mode is executed by the processor, the central server implements the following steps:
a1, after receiving a request with first identification information for acquiring a configuration file sent by a client, matching the first identification information in the request with the first identification information of each client of a gray level operation new version application program recorded in a gray level list prestored in a database of the central server, wherein the first identification information is address identification information;
a2, if the gray scale list has first identification information matched with the first identification information in the request, acquiring a first configuration file corresponding to a new version application program pre-stored in the central server, and issuing the first configuration file to the client in a gray scale issuing manner;
a3, if no first identification information in the gray scale list is matched with the first identification information in the request, acquiring a second configuration file corresponding to an old version application program prestored in the central server, and directly sending the second configuration file to the client;
after receiving a request for acquiring a configuration file sent by a client with second identification information, a central server matches the second identification information in the request with second identification information of environments corresponding to clients of a gray level running new version application program recorded in a gray level list, wherein the second identification information is non-address identification information;
if the gray scale list has second identification information matched with the second identification information in the request, acquiring the first configuration file, and issuing the first configuration file to the client in a gray scale issuing mode;
and if the second identification information in the gray list is not matched with the second identification information in the request, acquiring the second configuration file and directly sending the second configuration file to the client.
5. The center server according to claim 4, wherein before the configuration file pushing program supporting the grayscale mode is executed by the processor to implement the step S1, the following steps are further implemented:
the first configuration file and the second configuration file are stored in a database of the central server in advance;
and writing the selected first identification information of each client into the gray list after receiving the first identification information of the client which is selected by the user based on the setting interface provided by the central server and releases the new version application program in a gray release manner, and/or writing the selected second identification information of each client into the gray list after receiving the second identification information of the client which is selected by the user based on the setting interface provided by the central server and releases the new version application program in a gray release manner.
6. The center server according to claim 5, wherein the first identification information includes an IP address or a MAC address, and the second identification information is an environment variable.
7. The central server according to claim 6, wherein the memory further stores a settings interface generator program, the settings interface generator program being executed by the processor to perform the steps of:
after receiving an instruction of issuing a new version application program in a gray scale issuing manner, generating and displaying a setting interface, wherein the setting interface comprises preset first identification information of each client, a first option for a user to select to issue the new version application program in the gray scale issuing manner is correspondingly included behind each first identification information, and/or the setting interface comprises preset second identification information of each client, and a second option for the user to select to issue the new version application program in the gray scale issuing manner is correspondingly included behind each second identification information.
8. A computer-readable storage medium storing a profile push program supporting a grayscale mode, the profile push program being executable by at least one processor to cause the at least one processor to perform the steps of the grayscale mode supporting profile push method according to any one of claims 1 to 3.
CN201711060242.XA 2017-11-01 2017-11-01 Configuration file pushing method supporting gray mode, central server and storage medium Active CN107920112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711060242.XA CN107920112B (en) 2017-11-01 2017-11-01 Configuration file pushing method supporting gray mode, central server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711060242.XA CN107920112B (en) 2017-11-01 2017-11-01 Configuration file pushing method supporting gray mode, central server and storage medium

Publications (2)

Publication Number Publication Date
CN107920112A CN107920112A (en) 2018-04-17
CN107920112B true CN107920112B (en) 2022-04-22

Family

ID=61895143

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711060242.XA Active CN107920112B (en) 2017-11-01 2017-11-01 Configuration file pushing method supporting gray mode, central server and storage medium

Country Status (1)

Country Link
CN (1) CN107920112B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108881030B (en) * 2018-06-07 2022-02-25 腾讯科技(深圳)有限公司 Routing method and device in gray release scene
CN109189494B (en) * 2018-07-27 2022-01-21 创新先进技术有限公司 Configuration gray level publishing method, device and equipment and computer readable storage medium
CN110825425A (en) * 2018-08-09 2020-02-21 北京京东尚科信息技术有限公司 Configuration data management method and device, electronic equipment and storage medium
CN111090440B (en) * 2018-10-23 2023-06-20 阿里巴巴集团控股有限公司 Information processing method, system, device and storage medium
CN109788029A (en) * 2018-12-14 2019-05-21 平安信托有限责任公司 Gray scale call method, device, terminal and the readable storage medium storing program for executing of micro services
CN110022260B (en) * 2019-02-02 2021-12-24 创新先进技术有限公司 Cross-environment receipt message processing method and system
CN110336874A (en) * 2019-07-03 2019-10-15 北京蜜莱坞网络科技有限公司 A kind of method, apparatus, server and the storage medium of access service
CN111290779B (en) * 2020-03-04 2023-07-07 北京三快在线科技有限公司 Gray release method and device, storage medium and electronic equipment
CN111858312B (en) * 2020-06-24 2024-07-12 亚美智联数据科技有限公司 Page display method and device for application program, computer equipment and storage medium
CN114553855B (en) * 2020-11-25 2024-04-05 北京奇艺世纪科技有限公司 Plug-in gray level issuing method and device, electronic equipment and storage medium
CN112596770B (en) * 2020-12-24 2023-08-18 潍柴动力股份有限公司 Data processing method and device, electronic equipment and storage medium
CN112612550A (en) * 2020-12-30 2021-04-06 北京世纪互联宽带数据中心有限公司 File configuration method and device
CN113342595B (en) * 2021-05-26 2023-07-25 北京奇艺世纪科技有限公司 Gray scale verification method, device, equipment and storage medium
CN113377381B (en) * 2021-06-30 2023-11-14 北京百度网讯科技有限公司 Distribution method and device of small program package, electronic equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317914A (en) * 2014-10-28 2015-01-28 小米科技有限责任公司 Data acquiring method and device
CN105791341A (en) * 2014-12-22 2016-07-20 华为软件技术有限公司 Method, device and system for processing application release
CN105824745A (en) * 2015-01-04 2016-08-03 ***通信集团湖南有限公司 Grey level launch method and device
CN106469154A (en) * 2015-08-17 2017-03-01 阿里巴巴集团控股有限公司 A kind of method and apparatus for publishing web page application

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104317914A (en) * 2014-10-28 2015-01-28 小米科技有限责任公司 Data acquiring method and device
CN105791341A (en) * 2014-12-22 2016-07-20 华为软件技术有限公司 Method, device and system for processing application release
CN105824745A (en) * 2015-01-04 2016-08-03 ***通信集团湖南有限公司 Grey level launch method and device
CN106469154A (en) * 2015-08-17 2017-03-01 阿里巴巴集团控股有限公司 A kind of method and apparatus for publishing web page application

Also Published As

Publication number Publication date
CN107920112A (en) 2018-04-17

Similar Documents

Publication Publication Date Title
CN107920112B (en) Configuration file pushing method supporting gray mode, central server and storage medium
CN108388599B (en) Electronic device, data migration and calling method and storage medium
CN108259643B (en) Binding method and device of intelligent device and user operation terminal, and electronic device
CN107168726B (en) Method and device for dynamically configuring application program
CN107545181B (en) Program operating method, terminal, and computer-readable storage medium
CN108419089B (en) Component data processing method, device, equipment and storage medium
CN107911401B (en) Application plug-in extension function method and application server
CN106095432B (en) Method for identifying application type
WO2019071891A1 (en) Code coverage analysis method and application server
CN107908553B (en) Association testing method, application server and computer readable storage medium
CN111367518B (en) Page layout method, page layout device, computing equipment and computer storage medium
WO2019148721A1 (en) Electronic device, risk early warning method for internet service system, and storage medium
CN110830360B (en) Multi-application program intercommunication method, electronic device and computer readable storage medium
CN108255513A (en) Electronic device, the data-interface based on springmvc and its illustrate automatic generation method and storage medium
CN113448862B (en) Software version testing method and device and computer equipment
CN108243254B (en) Electronic device, method for releasing application upgrading version and storage medium
CN108351638B (en) Programmable display, information processing device, storage medium, and screen display system
CN111723077A (en) Data dictionary maintenance method and device and computer equipment
CN113434254B (en) Client deployment method, client deployment apparatus, computer device, and storage medium
CN105511914A (en) Application update method, device and system
CN104836820A (en) Method and system for client interaction, and client terminals
CN117194306A (en) Equipment information display method and system
CN112083925A (en) Data acquisition method, device, equipment and storage medium based on H5 page development
CN109710609A (en) Generate the method and device of tables of data mark
JP7230951B2 (en) Mobile terminal, information processing system, control method, and program

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
TR01 Transfer of patent right

Effective date of registration: 20230711

Address after: Shop 1010, Floor 1, Xinhongyun Computer City, Xingyun Building, No. 8, Fenjiang Middle Road, Chancheng District, Foshan, Guangdong 528000

Patentee after: Guangdong Xuerhua Network Equipment Co.,Ltd.

Address before: 400010 38 / F, 39 / F, unit 1, 99 Wuyi Road, Yuzhong District, Chongqing

Patentee before: CHONGQING FINANCIAL ASSETS EXCHANGE Co.,Ltd.

TR01 Transfer of patent right