CN107957888B - Application program gray scale upgrading method and device - Google Patents

Application program gray scale upgrading method and device Download PDF

Info

Publication number
CN107957888B
CN107957888B CN201610899640.XA CN201610899640A CN107957888B CN 107957888 B CN107957888 B CN 107957888B CN 201610899640 A CN201610899640 A CN 201610899640A CN 107957888 B CN107957888 B CN 107957888B
Authority
CN
China
Prior art keywords
upgrading
application
application program
information
gray scale
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
CN201610899640.XA
Other languages
Chinese (zh)
Other versions
CN107957888A (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201610899640.XA priority Critical patent/CN107957888B/en
Publication of CN107957888A publication Critical patent/CN107957888A/en
Application granted granted Critical
Publication of CN107957888B publication Critical patent/CN107957888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44584Portable applications, i.e. making applications self-contained, e.g. U3 standard
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality

Abstract

The invention discloses a method and a device for upgrading the gray level of an application program, relates to the technical field of computer networks, and solves the problems that the use influence of the existing application program on a user during gray level upgrading is caused, the application program gray level upgrading efficiency is low, and the like. The main technical scheme of the invention is as follows: determining an application program to be subjected to gray scale upgrading in the terminal; acquiring upgrading application version information corresponding to the application program to be subjected to gray scale upgrading from a preset device assignment table, wherein the preset device assignment table stores the corresponding relationship between the upgrading application version information and the application program to be subjected to gray scale upgrading; acquiring background server entry information corresponding to the upgrade application version information; and sending the background server entry information corresponding to the upgrade application version information to the terminal so that the terminal is connected with the background server to perform gray scale upgrade on the application program to be subjected to gray scale upgrade. The invention is mainly used for the gray scale upgrading application program.

Description

Application program gray scale upgrading method and device
Technical Field
The invention relates to the technical field of computer networks, in particular to a method and a device for upgrading the gray level of an application program.
Background
With the development of the internet industry, the internet-related industry has also been rapidly developed, and the most obvious performance in terminal devices is the update and upgrade of the operating system and application programs. To ensure that all users can use the updated application or operating system properly after the upgrade, a few users need to be upgraded grayed out before all users are upgraded. Grayscale upgrading is a smooth transition at the time of upgrading.
At present, the grayscale is upgraded by the new version application service redeployed in the application background server, but because all versions of the application service are deployed in the same application background server, the application background server needs to be interrupted for a period of time when the new version application program is deployed, so that the normal use of a user is affected by the grayscale upgrade of the existing application program, and the grayscale upgrade efficiency of the application program is low.
Disclosure of Invention
The present invention has been made in view of the above problems, and aims to provide a method and apparatus for application program grayscale upgrading that overcomes or at least partially solves the above problems.
In order to achieve the purpose, the invention mainly provides the following technical scheme:
in one aspect, an embodiment of the present invention provides a method for upgrading a grayscale of an application program, where the method includes:
determining an application program to be subjected to gray scale upgrading in the terminal;
acquiring upgrading application version information corresponding to the application program to be subjected to gray scale upgrading from a preset device assignment table, wherein the preset device assignment table stores the corresponding relationship between the upgrading application version information and the application program to be subjected to gray scale upgrading;
acquiring background server entry information corresponding to the upgrade application version information;
and sending the background server entry information corresponding to the upgrade application version information to the terminal so that the terminal is connected with the background server to perform gray scale upgrade on the application program to be subjected to gray scale upgrade.
On the other hand, an embodiment of the present invention further provides a grayscale upgrading apparatus for an application program, where the apparatus includes:
the determining unit is used for determining the application program to be subjected to gray scale upgrading in the terminal;
the acquisition unit is used for acquiring upgrading application version information corresponding to the application program to be subjected to gray scale upgrading from a preset device assignment table, and the preset device assignment table stores the corresponding relation between the upgrading application version information and the application program to be subjected to gray scale upgrading;
the acquiring unit is further configured to acquire background server entry information corresponding to the upgrade application version information;
and the sending unit is used for sending the background server entry information corresponding to the upgrade application version information to the terminal so that the terminal is connected with the background server to perform gray scale upgrade on the application program to be subjected to gray scale upgrade.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
the method and the device for upgrading the gray scale of the application program provided by the embodiment of the invention firstly determine that the application program to be subjected to gray scale upgrading belongs to a terminal, then obtain upgraded application version information corresponding to the application program to be subjected to gray scale upgrading from a preset equipment assignment table, obtain background server entry information corresponding to the upgraded application version information, and finally send the background server entry information corresponding to the upgraded application version information to the terminal, so that the terminal is connected with the background server to perform gray scale upgrading on the application program to be subjected to gray scale upgrading. Compared with the existing gray scale upgrading through the redeployed new version application service in the application background server, the embodiment of the invention independently deploys a new background server under the condition that the existing version background server is not required to be closed when the gray scale upgrading application program is carried out, and then carries out gray scale upgrading through the new background server, namely, carries out gray scale upgrading through the background server corresponding to the upgraded application version information, thereby solving the problems that the normal use of a user is influenced by the gray scale upgrading of the application program in the prior art, the gray scale upgrading efficiency of the application program is low and the like.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a method for upgrading a gray scale by a program according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for upgrading a gray scale using a program according to an embodiment of the present invention;
fig. 3 is a block diagram of a grayscale upgrading apparatus for an application according to an embodiment of the present invention;
fig. 4 is a block diagram of a grayscale upgrading apparatus for another application according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to make the advantages of the technical solutions of the present invention clearer, the present invention is described in detail below with reference to the accompanying drawings and examples.
The embodiment of the invention provides a grayscale upgrading method of an application program, which is applied to a server, and as shown in fig. 1, the method comprises the following steps:
101. and determining the application program to be subjected to gray scale upgrading in the terminal.
The application program to be subjected to the gray scale upgrading is an application program that needs to be subjected to the gray scale upgrading, specifically, the embodiment of the present invention may determine whether the application program in the terminal is the application program to be subjected to the gray scale upgrading according to attribute information in the application program, where the attribute information may specifically be identification information of the application program, application version information, identification information of terminal equipment that operates the application program, a user name corresponding to the application program, and the like, and the embodiment of the present invention is not particularly limited.
In the embodiment of the present invention, the application program to be subjected to the grayscale upgrade may be determined according to a grayscale upgrade policy set in the server and attribute information of the application program, where the grayscale upgrade policy may be set according to an actual requirement, and may specifically be set to upgrade the application program in a specific terminal device, upgrade the application program of a specific area user, upgrade the application program of a specific user, and the like. For example, if the grayscale upgrading policy sets that office applications in a specific terminal device model are upgraded, when the model of the obtained user terminal device is the terminal device model in the grayscale upgrading policy, the office applications in the terminal device are upgraded. For another example, the grayscale upgrading policy set in the server is to upgrade the social application in the user terminal device in a specific area, and if the area corresponding to the acquired user account is the area set in the grayscale upgrading policy, the social application in the user is upgraded.
102. And acquiring upgrading application version information corresponding to the application program to be subjected to gray scale upgrading from a preset device assignment table.
The preset device assignment table stores a corresponding relationship between upgrade application version information and an application program to be subjected to gray scale upgrade, wherein the upgrade application version information is application version information to be subjected to gray scale upgrade. In the embodiment of the invention, the upgrading application version information corresponding to the application program to be subjected to gray scale upgrading can be determined according to the attribute information of the application program to be subjected to gray scale upgrading. Specifically, in the embodiment of the present invention, different grayscale upgrading policies may be set according to the upgrade application version information respectively corresponding to the attribute information of the application program to be grayscale upgraded, which is stored in the preset device assignment table, that is, the grayscale upgrading policies of different applications may be specified according to the embodiment of the present invention.
For example, if the attribute information is device identification information, application identification information, and application version information, upgrade application version information corresponding to the device identification information, the application identification information, and the application version information is set in the preset device assignment table, specifically as shown in table 1 below, when the device identification information of the application program to be grayscale upgraded is Galaxy On7, the application identification information is a WeChat, and the application version information is 1.0.1, the WeChat in the terminal device Galaxy On7 is upgraded from version 1.0.1 to version 1.0.2.
TABLE 1
Gray scale upgrade strategy Device identification information Application identification information Application version information Upgrading application version information
1 Galaxy On7 WeChat 1.0.1 1.0.2
2 iPhone 6s KEEP 2.1 2.2
3 X3c50 QQ 3.1 3.2
103. And acquiring background server entry information corresponding to the upgrade application version information.
The preset device assignment table further stores a corresponding relationship between the upgrade application version information and the background server entry information. In the embodiment of the invention, because different upgrading application version information corresponds to different background server entry information and background servers of a plurality of versions can be started simultaneously, when the application program is subjected to gray scale upgrading, a new background server can be independently deployed under the condition of not closing the background server of the existing version, then the background server entry information and the upgrading application version information corresponding to the background server entry information are correspondingly arranged in the preset equipment assignment table, if the upgrading application version information corresponding to the attribute information of the application program to be subjected to gray scale upgrading is acquired from the preset equipment assignment table, the application program to be subjected to gray scale upgrading in the terminal is subjected to gray scale upgrading according to the background server corresponding to the upgrading application version information, thereby solving the problem that the gray scale upgrading of the application program in the prior art can influence the normal use of a user, and the gray scale upgrading efficiency of the application program is low.
104. And sending the background server entry information corresponding to the upgrade application version information to the terminal.
Further, the terminal is connected with the background server to perform gray scale upgrading on the application program to be subjected to gray scale upgrading. In the embodiment of the invention, the terminal can realize the data interaction between the application program to be subjected to the gray scale upgrading and the background server after the background server entry information is correctly loaded, and then the gray scale upgrading is carried out on the application program to be subjected to the gray scale upgrading according to the background server connected with the terminal.
It should be noted that the background server entry information corresponding to the upgraded application version information may be set in the preset device assignment table, or may be set in the application information table separately, and when the background server entry information is set in the application information table separately, the preset device assignment table and the application information table need to be associated by the application identification information and the application version field. I.e. the application identification information and the corresponding version present in the application information table, are only likely to be present in the device assignment table. The application information table carries all version information of different applications and configuration information corresponding to all versions, and a specific application information table may include fields such as application identification information, application versions, software configuration information, and software version descriptions.
In the embodiment of the present invention, since the embodiment of the present invention can arbitrarily configure any version switching of the designated device and arbitrarily designate upgrade application version information in the preset device assignment table, the device in the preset device assignment table can implement grayscale degradation. And re-downgrading the application on the upgraded equipment into the production system version. The method is very convenient in the releasing and debugging stage, and the upgrading process of the existing version can be repeatedly tested after the new version is formally online in the mode.
The application program gray scale upgrading method provided by the embodiment of the invention comprises the steps of firstly determining that the application program to be subjected to gray scale upgrading belongs to a terminal, then obtaining upgrading application version information corresponding to the application program to be subjected to gray scale upgrading from a preset device assignment table, obtaining background server entry information corresponding to the upgrading application version information, and finally sending the background server entry information corresponding to the upgrading application version information to the terminal so that the terminal is connected with the background server to carry out gray scale upgrading on the application program to be subjected to gray scale upgrading. Compared with the existing gray scale upgrading through the redeployed new version application service in the application background server, the embodiment of the invention independently deploys a new background server under the condition that the existing version background server is not required to be closed when the gray scale upgrading application program is carried out, and then carries out gray scale upgrading through the new background server, namely, carries out gray scale upgrading through the background server corresponding to the upgraded application version information, thereby solving the problems that the normal use of a user is influenced by the gray scale upgrading of the application program in the prior art, the gray scale upgrading efficiency of the application program is low and the like.
An embodiment of the present invention provides another grayscale upgrading method for an application program, which is applied to a server, and as shown in fig. 2, the method includes:
201. and acquiring attribute information of the application program in the terminal.
The terminal device may specifically be a mobile phone, a computer, a tablet computer, and the like, and the attribute information may specifically be application program identification information, application version information, terminal device identification information for running the application program, a user name corresponding to the application program, and the like. Specifically, the embodiment of the present invention performs data interaction between an application program and a preset device assignment table based on a webserver of Http (Hypertext transfer protocol). The application program knows whether the application program should be upgraded to a certain version or not and whether the application program is an optional upgrade or not through the information returned by the server. The return information also has a configuration information field. The format of the configuration information is not mandatory in embodiments of the invention in order to leave room for the various applications to configure themselves flexibly.
For example, when an application program is started, a webserver based on the Http protocol acquires device identification information, application identification information, and application version information, and a protocol format input by the application program to a server is:
Figure BDA0001131216230000071
the protocol format returned by the server is:
Figure BDA0001131216230000072
further, the embodiment of the present invention stores the acquired device identification information, application identification information, and application version information of the application program in the device information table. The device information table provides a basis for gray scale distribution for a certain range. At the time of release of the gradation, a part of the device identification information in the table may be used to update the new version. If the feedback data of the part of users reaches the expected level, the subsequent full network formal online is carried out. The method performs sampling detection on the actual online user experience effect, and further enhances the online effect application predicting capability.
202. And judging whether the preset equipment assignment table correspondingly contains the equipment identification information and the application identification information.
Wherein the attribute information in the preset device assignment table includes device identification information and application identification information. For the embodiment of the present invention, the attribute information further includes application version information, and after the determining whether the preset device assignment table correspondingly includes the device identification information and the application identification information, the method further includes: if the preset device assignment table correspondingly contains the device identification information and the application identification information, judging whether the preset device assignment table contains the application version information, wherein the attribute information in the preset device assignment table also comprises the application version information.
203. And if the device identification information and the application identification information are correspondingly contained, determining that the application program is the application program to be subjected to gray scale upgrading.
In this embodiment of the present invention, the determining that the application program is the application program to be upgraded includes: and if the preset equipment assignment table contains the application version information, determining that the application program is the application program to be subjected to gray scale upgrading.
204. And acquiring upgrading application version information corresponding to the application program to be subjected to gray scale upgrading from a preset device assignment table.
The preset device assignment table stores a plurality of attribute information and upgrade application version information respectively corresponding to the attribute information, different upgrade application version information corresponds to different background server entry information, and the upgrade application version information is application version information to be subjected to gray scale upgrade.
It should be noted that, in the embodiment of the present invention, different grayscale upgrading policies may be set by using the upgrade application version information respectively corresponding to the attribute information of the application program to be grayscale upgraded, which is stored in the preset device assignment table, that is, the grayscale upgrading policies of different applications may be specified by the embodiment of the present invention.
205. And acquiring background server entry information corresponding to the upgrade application version information.
For a detailed description of the background server entry information corresponding to the upgrade application version information obtained in step 205, reference may be made to the description of the corresponding part in fig. 1, and details of the embodiment of the present invention will not be described here.
206. And sending the background server entry information corresponding to the upgrade application version information to the terminal.
Further, the terminal is connected with the background server to perform gray scale upgrading on the application program to be subjected to gray scale upgrading. For the detailed description that the step 206 sends the backend server entry information corresponding to the upgrade application version information to the terminal, reference may be made to the description of the corresponding part in fig. 1, and details of the embodiment of the present invention will not be described here again.
In this embodiment of the present invention, the preset device assignment table further includes an upgrade policy corresponding to the upgrade application version information, and before the background server entry information corresponding to the upgrade application version information is sent to the terminal, the method further includes: judging whether an upgrading strategy corresponding to the upgrading application version information is forced upgrading or not; if so, sending the background server entry information corresponding to the upgrade application version information to the terminal so that the terminal is connected with the background server and carries out gray scale upgrade on the application program to be subjected to gray scale upgrade; if not, sending the background server entry information corresponding to the upgrade application version information and the option information of the optional upgrade to the terminal, so that the terminal is connected with the background server and performs gray scale upgrade on the application program to be subjected to gray scale upgrade according to the received option information. When the upgrading strategy corresponding to the upgrading application version information is the forced upgrading, the version of the current application program in the terminal cannot be used continuously without upgrading, so that the application program to be subjected to gray scale upgrading must be subjected to forced upgrading; when the upgrading strategy corresponding to the upgrading application version information is optional upgrading, the version of the current application program in the terminal can be used continuously without upgrading, if the user selects the application program to be subjected to gray scale upgrading, the background server entry information corresponding to the upgrading application version information is sent to the terminal, so that the terminal is connected with the background server and performs gray scale upgrading on the application program to be subjected to gray scale upgrading, and if the user selects the application program not to be subjected to gray scale upgrading, the background server entry information corresponding to the application version information does not need to be sent to the terminal.
In the embodiment of the invention, after the application program in the designated equipment is subjected to gray scale upgrading, whether the application program of the whole network gray scale upgrading reaches the expectation is detected in a sampling mode, and if the application program of the whole network gray scale upgrading reaches the expectation, the formal online stage of the application program is required to be started. At this time, all versions of the application programs need to be upgraded according to data in a version assignment table, where the version assignment table includes fields such as application identification information, application version information, upgrade application version information, and upgrade application version information. And upgrading a plurality of old versions to the version numbers of the new online by adding the version assignment table. There is flexibility to configure non-mandatory upgrades to certain versions. Some very old versions may be configured to force upgrades. When a device accesses the navigation service, the navigation service first looks up the device assignment table in the database. When there is no current device in the device table, the version assignment table is continuously searched. The version assignment table will definitely give corresponding configuration information to the version of the current application and inform that the application is the latest version.
The invention provides another method for upgrading the gray scale of an application program, which comprises the steps of firstly determining that the application program to be subjected to gray scale upgrading belongs to a terminal, then judging whether the preset equipment assignment table contains the equipment identification information and the application identification information, if the preset equipment assignment table contains the equipment identification information and the application identification information, determining that the application program is the application program to be subjected to gray scale upgrading, then obtaining upgrade application version information corresponding to the application program to be subjected to gray scale upgrading from the preset equipment assignment table, and finally sending background server entry information corresponding to the upgrade application version information to the terminal so that the terminal is connected with a background server to carry out gray scale upgrading on the application program to be subjected to gray scale upgrading. Therefore, the embodiment of the invention realizes the functions of appointing the upgrading behavior to a certain terminal and issuing the information of different versions of the terminal. Based on the characteristic of upgrading a certain version by a specified terminal, the software version is upgraded in an expected manner according to a specified range after being released to a public network. The granularity of the specified range may reach every client. When the expected development result is ensured to be achieved after the software in the designated range is upgraded, the client in the range of the whole network can be upgraded to a new version through the arrangement of the invention.
Further, an embodiment of the present invention provides a grayscale upgrading apparatus for an application program, as shown in fig. 3, the apparatus includes: a determining unit 31, an acquiring unit 32, and a transmitting unit 33.
A determining unit 31 for performing the gray scale upgrade of the application program to be subjected to the gray scale upgrade
An obtaining unit 32, configured to obtain, from a preset device assignment table, upgrade application version information corresponding to the application program to be subjected to grayscale upgrade, where a correspondence between the upgrade application version information and the application program to be subjected to grayscale upgrade is stored in the preset device assignment table;
the obtaining unit 32 is further configured to obtain background server entry information corresponding to the upgrade application version information;
a sending unit 33, configured to send the backend server entry information corresponding to the upgrade application version information to the terminal, so that the terminal is connected to the backend server to perform grayscale upgrade on the application program to be grayscale upgraded.
It should be noted that, for other corresponding descriptions of the functional units related to the grayscale upgrading apparatus for an application provided in the embodiment of the present invention, reference may be made to corresponding descriptions of the method shown in fig. 1, which are not described herein again, but it should be clear that the apparatus in the embodiment can correspondingly implement all contents in the foregoing method embodiments.
The application program to be subjected to gray scale upgrading is determined in a terminal, then upgrading application version information corresponding to the application program to be subjected to gray scale upgrading is obtained from a preset device assignment table, background server entry information corresponding to the upgrading application version information is obtained, and finally the background server entry information corresponding to the upgrading application version information is sent to the terminal, so that the terminal is connected with the background server to perform gray scale upgrading on the application program to be subjected to gray scale upgrading. Compared with the existing gray scale upgrading through the redeployed new version application service in the application background server, the embodiment of the invention independently deploys a new background server under the condition that the existing version background server is not required to be closed when the gray scale upgrading application program is carried out, and then carries out gray scale upgrading through the new background server, namely, carries out gray scale upgrading through the background server corresponding to the upgraded application version information, thereby solving the problems that the normal use of a user is influenced by the gray scale upgrading of the application program in the prior art, the gray scale upgrading efficiency of the application program is low and the like.
Further, an embodiment of the present invention provides another grayscale upgrading apparatus for an application program, as shown in fig. 4, where the apparatus includes: a determining unit 41, an acquiring unit 42 and a transmitting unit 43.
A determining unit 41, configured to determine that an application program to be subjected to grayscale upgrading belongs to the terminal;
an obtaining unit 42, configured to obtain, from a preset device assignment table, upgrade application version information corresponding to the application program to be subjected to grayscale upgrade, where a correspondence relationship between the upgrade application version information and the application program to be subjected to grayscale upgrade is stored in the preset device assignment table;
the obtaining unit 42 is further configured to obtain background server entry information corresponding to the upgrade application version information;
a sending unit 43, configured to send the backend server entry information corresponding to the upgrade application version information to the terminal, so that the terminal is connected to the backend server to perform grayscale upgrade on the application program to be grayscale upgraded.
In the embodiment of the present invention, the determining unit 41 includes:
an obtaining module 411, configured to obtain attribute information of an application program in the terminal;
a determining module 412, configured to determine whether the preset device assignment table includes the attribute information;
a determining module 413, configured to determine that the application is an application to be grayscale-upgraded if the preset device assignment table includes the attribute information.
Further, the attribute information includes device identification information and application identification information,
the determining module 412 is specifically configured to determine whether the preset device assignment table correspondingly includes the device identification information and the application identification information, where attribute information in the preset device assignment table includes the device identification information and the application identification information;
the determining module 413 is specifically configured to determine that the application program is an application program to be subjected to grayscale upgrading if the preset device assignment table correspondingly includes the device identification information and the application identification information.
Further, the attribute information further includes application version information,
the determining module 412 is further configured to determine whether the preset device assignment table includes the application version information if the preset device assignment table correspondingly includes the device identification information and the application identification information, where attribute information in the preset device assignment table further includes the application version information;
the determining module 413 is configured to determine that the application program is an application program to be subjected to grayscale upgrading if the preset device assignment table includes the application version information.
Further, the preset device assignment table further includes an upgrade policy corresponding to the upgrade application version information, and the apparatus further includes:
a judging unit 44, configured to judge whether an upgrade policy corresponding to the upgrade application version information is a forced upgrade;
the sending unit 43 is configured to send the backend server entry information corresponding to the upgraded application version information to the terminal if the upgrade policy corresponding to the upgraded application version information is a forced upgrade, so that the terminal is connected to the backend server to perform grayscale upgrade on the application program to be grayscale upgraded;
the sending unit 43 is configured to send, if the upgrade policy corresponding to the upgrade application version information is not a forced upgrade, the background server entry information corresponding to the upgrade application version information and the option information of the optional upgrade to the terminal, so that the terminal is connected to the background server and performs grayscale upgrade on the application program to be grayscale upgraded according to the received option information.
It should be noted that, for other corresponding descriptions of the functional units related to the grayscale upgrading apparatus for an application provided in the embodiment of the present invention, reference may be made to corresponding descriptions of the method shown in fig. 2, which are not described herein again, but it should be clear that the apparatus in the embodiment can correspondingly implement all contents in the foregoing method embodiments.
The gray scale upgrading device for another application program provided in the embodiment of the present invention determines, first, that an application program to be gray scale upgraded belongs to a terminal, then determines whether the preset device assignment table includes the device identification information and the application identification information, determines, if the preset device assignment table includes the device identification information and the application identification information, that the application program is the application program to be gray scale upgraded, then obtains, from the preset device assignment table, upgrade application version information corresponding to the application program to be gray scale upgraded, and finally sends, to the terminal, entry information of a backend server corresponding to the upgrade application version information, so that the terminal is connected to the backend server to perform gray scale upgrading on the application program to be gray scale upgraded. Therefore, the embodiment of the invention realizes the functions of appointing the upgrading behavior to a certain terminal and issuing the information of different versions of the terminal. Based on the characteristic of upgrading a certain version by a specified terminal, the software version is upgraded in an expected manner according to a specified range after being released to a public network. The granularity of the specified range may reach every client. When the expected development result is ensured to be achieved after the software in the designated range is upgraded, the client in the range of the whole network can be upgraded to a new version through the arrangement of the invention.
The grayscale upgrading device of the application program comprises a processor and a memory, wherein the first determining unit, the acquiring unit, the sending unit, the judging unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the problems that the normal use of a user is influenced by the gray level upgrade of an application program in the prior art, the gray level upgrade efficiency of the application program is low and the like are solved by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The present application further provides a computer program product adapted to perform program code for initializing the following method steps when executed on a data processing device: determining an application program to be subjected to gray scale upgrading in the terminal; acquiring upgrading application version information corresponding to the application program to be subjected to gray scale upgrading from a preset device assignment table, wherein the preset device assignment table stores the corresponding relationship between the upgrading application version information and the application program to be subjected to gray scale upgrading; acquiring background server entry information corresponding to the upgrade application version information; and sending the background server entry information corresponding to the upgrade application version information to the terminal so that the terminal is connected with the background server to perform gray scale upgrade on the application program to be subjected to gray scale upgrade.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for upgrading the gray scale of an application program is characterized by comprising the following steps:
determining an application program to be subjected to gray scale upgrading in the terminal;
acquiring upgrading application version information corresponding to the application program to be subjected to gray scale upgrading from a preset device assignment table, wherein the preset device assignment table stores the corresponding relationship between the upgrading application version information and the application program to be subjected to gray scale upgrading and the corresponding relationship between the upgrading application version information and background server entry information, and the background server is a newly deployed server and is different from a server corresponding to the application program to be subjected to gray scale upgrading;
acquiring background server entry information corresponding to the upgrade application version information;
sending the background server entry information corresponding to the upgrade application version information to the terminal, so that the terminal is connected with the background server to perform gray scale upgrade on the application program to be subjected to gray scale upgrade;
wherein, the preset device assignment table further includes an upgrade policy corresponding to the upgrade application version information, and before the background server entry information corresponding to the upgrade application version information is sent to the terminal, the method further includes:
judging whether an upgrading strategy corresponding to the upgrading application version information is forced upgrading or not;
if yes, sending background server entry information corresponding to the upgrading application version information to the terminal, so that the terminal is connected with the background server to carry out gray scale upgrading on the application program to be subjected to gray scale upgrading;
if not, sending the background server entry information corresponding to the upgrade application version information and the option information for optional upgrade to the terminal, so that the terminal is connected with the background server and performs gray scale upgrade on the application program to be subjected to gray scale upgrade according to the received option information.
2. The method of claim 1, wherein the determining of the application program belonging to the application program to be grayed-up comprises:
acquiring attribute information of an application program in the terminal;
judging whether the preset equipment assignment table contains the attribute information or not;
and if so, determining that the application program is the application program to be subjected to gray scale upgrading.
3. The method of claim 2, wherein the attribute information comprises device identification information and application identification information, and wherein determining whether the preset device assignment table contains the attribute information comprises:
judging whether the preset device assignment table correspondingly contains the device identification information and the application identification information or not, wherein the attribute information in the preset device assignment table comprises the device identification information and the application identification information;
the determining that the application program is the application program to be subjected to the gray scale upgrading comprises the following steps:
and if the equipment identification information and the application identification information are contained, determining that the application program is the application program to be subjected to gray scale upgrading.
4. The method of claim 3, wherein the attribute information further includes application version information, and after determining whether the preset device assignment table includes the device identification information and the application identification information, the method further comprises:
if the preset device assignment table correspondingly contains the device identification information and the application identification information, judging whether the preset device assignment table contains the application version information, wherein the attribute information in the preset device assignment table also comprises the application version information;
the determining that the application program is the application program to be subjected to the gray scale upgrading comprises the following steps:
and if the application version information is contained, determining that the application program is the application program to be subjected to gray scale upgrading.
5. An apparatus for application program grayscale upgrade, comprising:
the determining unit is used for determining the application program to be subjected to gray scale upgrading in the terminal;
an obtaining unit, configured to obtain, from a preset device assignment table, upgrade application version information corresponding to the application program to be subjected to grayscale upgrade, where a correspondence between the upgrade application version information and the application program to be subjected to grayscale upgrade, and a correspondence between the upgrade application version information and entry information of a background server are stored in the preset device assignment table, and the background server is a newly deployed server and is different from a server corresponding to the application program to be subjected to grayscale upgrade;
the acquiring unit is further configured to acquire background server entry information corresponding to the upgrade application version information;
the preset equipment assignment table further comprises an upgrading strategy corresponding to the upgrading application version information;
the judging unit is used for judging whether the upgrading strategy corresponding to the upgrading application version information is forced upgrading or not;
a sending unit, configured to send the backend server entry information corresponding to the upgrade application version information to the terminal, so that the terminal is connected to the backend server to perform grayscale upgrade on the application program to be grayscale upgraded, where the sending unit further includes: if the upgrading strategy corresponding to the upgrading application version information is forced upgrading, sending background server entry information corresponding to the upgrading application version information to the terminal so that the terminal is connected with the background server and carries out gray scale upgrading on the application program to be subjected to gray scale upgrading; and if the upgrading strategy corresponding to the upgrading application version information is not forced upgrading, sending background server entry information and optional upgrading option information corresponding to the upgrading application version information to the terminal, so that the terminal is connected with the background server and carries out gray upgrading on the application program to be subjected to gray upgrading according to the received option information.
6. The apparatus of claim 5, wherein the determining unit comprises:
the acquisition module is used for acquiring the attribute information of the application program in the terminal;
the judging module is used for judging whether the preset equipment assignment table contains the attribute information or not;
and the determining module is used for determining that the application program is the application program to be subjected to gray scale upgrading if the attribute information is contained in the preset equipment assignment table.
7. The apparatus of claim 6, wherein the attribute information comprises device identification information and application identification information,
the judging module is specifically configured to judge whether the preset device assignment table correspondingly includes the device identification information and the application identification information, where attribute information in the preset device assignment table includes the device identification information and the application identification information;
the determining module is specifically configured to determine that the application program is an application program to be subjected to grayscale upgrading if the preset device assignment table correspondingly includes the device identification information and the application identification information.
8. The apparatus of claim 7, wherein the attribute information further comprises application version information,
the judging module is further configured to judge whether the preset device assignment table includes the application version information if the preset device assignment table correspondingly includes the device identification information and the application identification information, where attribute information in the preset device assignment table further includes the application version information;
the determining module is configured to determine that the application program is an application program to be subjected to grayscale upgrading if the preset device assignment table includes the application version information.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device where the storage medium is located is controlled to execute the grayscale upgrading method of any one of claims 1 to 4.
10. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the method for application program grayscaling according to any one of claims 1 to 4 when the program is run.
CN201610899640.XA 2016-10-14 2016-10-14 Application program gray scale upgrading method and device Active CN107957888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610899640.XA CN107957888B (en) 2016-10-14 2016-10-14 Application program gray scale upgrading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610899640.XA CN107957888B (en) 2016-10-14 2016-10-14 Application program gray scale upgrading method and device

Publications (2)

Publication Number Publication Date
CN107957888A CN107957888A (en) 2018-04-24
CN107957888B true CN107957888B (en) 2022-03-18

Family

ID=61954048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610899640.XA Active CN107957888B (en) 2016-10-14 2016-10-14 Application program gray scale upgrading method and device

Country Status (1)

Country Link
CN (1) CN107957888B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108632374B (en) * 2018-05-09 2021-06-18 恒大智慧科技有限公司 Software gray level release method and device
CN109117163B (en) * 2018-08-30 2022-03-15 北京奇艺世纪科技有限公司 Client upgrading method and device
CN109471647B (en) * 2018-11-06 2022-02-22 北京字节跳动网络技术有限公司 Data updating method and device, electronic equipment and readable medium
CN111782235A (en) * 2019-09-27 2020-10-16 北京沃东天骏信息技术有限公司 Data upgrading and querying method and device
CN111858311A (en) * 2020-06-22 2020-10-30 上海趣致网络科技股份有限公司 Version updating method and device of vending machine and electronic equipment
CN113553080A (en) * 2021-07-02 2021-10-26 深圳云之家网络有限公司 Application upgrading method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624771A (en) * 2011-08-05 2012-08-01 北京小米科技有限责任公司 Client upgrading method
CN103176790A (en) * 2011-12-26 2013-06-26 阿里巴巴集团控股有限公司 Application releasing method and application releasing system
CN104579768A (en) * 2014-12-29 2015-04-29 广州酷狗计算机科技有限公司 Client upgrading method and device
CN105791344A (en) * 2014-12-22 2016-07-20 华为软件技术有限公司 Grayscale release service processing method, system, load balancer and service bus device
JP2016532222A (en) * 2014-08-12 2016-10-13 シャオミ・インコーポレイテッド Grayscale upgrade method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624771A (en) * 2011-08-05 2012-08-01 北京小米科技有限责任公司 Client upgrading method
CN103176790A (en) * 2011-12-26 2013-06-26 阿里巴巴集团控股有限公司 Application releasing method and application releasing system
JP2016532222A (en) * 2014-08-12 2016-10-13 シャオミ・インコーポレイテッド Grayscale upgrade method and apparatus
CN105791344A (en) * 2014-12-22 2016-07-20 华为软件技术有限公司 Grayscale release service processing method, system, load balancer and service bus device
CN104579768A (en) * 2014-12-29 2015-04-29 广州酷狗计算机科技有限公司 Client upgrading method and device

Also Published As

Publication number Publication date
CN107957888A (en) 2018-04-24

Similar Documents

Publication Publication Date Title
CN107957888B (en) Application program gray scale upgrading method and device
US10956424B2 (en) Application recommending method and system, and server
US9836346B2 (en) Error troubleshooting using a correlated knowledge base
TWI622933B (en) Client update method and device
CN107534570B (en) Computer system, method and medium for virtualized network function monitoring
CN107168726B (en) Method and device for dynamically configuring application program
US10572285B2 (en) Method and apparatus for elastically scaling virtual machine cluster
US9647892B2 (en) Cloud-based service resource provisioning based on network characteristics
CN108696399B (en) Business service test method and device
US9158577B2 (en) Immediately launching applications
CN106886434B (en) Distributed application installation method and device
US20210209481A1 (en) Methods and systems for dynamic service performance prediction using transfer learning
US20150019722A1 (en) Determining, managing and deploying an application topology in a virtual environment
CN108845876B (en) Service distribution method and device
WO2021236697A1 (en) Embedded subscriber identity module (esim) profile adaptation based on context
JP2016517666A5 (en)
CN106326062B (en) The operating status control method and device of application program
CN109598526B (en) Method and device for analyzing media contribution
CN111625443B (en) Pressure testing method, device, equipment and storage medium
CN110933178A (en) Method for adjusting node configuration in cluster system and server
US9712407B2 (en) Hierarchical temporal clustering, metric clustering and attribute clustering of electronic terminal reports to identify electronic terminals for analysis
CN114090623A (en) Method and device for creating cache resources, electronic equipment and storage medium
CN109783221B (en) Virtual machine resource allocation method and device and resource server
CN106648913B (en) Data acquisition software identification method and device
CN108133123B (en) Application program identification method and system

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
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant