CN104579768A - Client upgrading method and device - Google Patents
Client upgrading method and device Download PDFInfo
- Publication number
- CN104579768A CN104579768A CN201410837892.0A CN201410837892A CN104579768A CN 104579768 A CN104579768 A CN 104579768A CN 201410837892 A CN201410837892 A CN 201410837892A CN 104579768 A CN104579768 A CN 104579768A
- Authority
- CN
- China
- Prior art keywords
- statistical information
- module
- upgrading
- client
- selecting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000012545 processing Methods 0.000 claims description 8
- 238000012360 testing method Methods 0.000 abstract description 11
- 230000006870 function Effects 0.000 description 64
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 8
- 230000000694 effects Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000006399 behavior Effects 0.000 description 2
- 230000002354 daily effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a client upgrading method and device, and belongs to the field of software. The method comprises the following steps: obtaining a function module upgraded by an upgrade version of a client, wherein the client comprises at least one function module; selecting statistical information from a prestored statistical information base, wherein the statistical information comprises a use record of the function module by a target client before upgrading; determining the target client to be a gray level upgrading object according to the statistical information. According to the method and the device, the problems that relevant techniques are not reasonable sufficiently aiming at the selection of clients participating in gray level upgrading, and cannot accurately and efficiently test problems in upgrading versions is solved, the fact that a target client adopting a function module before upgrading is specifically selected to participate in gray level upgrading according to the function module upgraded by the upgrading versions is realized, the accuracy degree for selecting the gray level upgrading object is improved, and further the purpose of more accurately and efficiently testing the upgrading versions is achieved.
Description
Technical Field
The invention relates to the field of software, in particular to a client upgrading method and device.
Background
At present, the upgrading mode of the client includes a unified upgrading mode and a gray scale upgrading mode. Because the problem of large-area faults is possibly caused by a uniform upgrading mode, a plurality of clients adopt a gray scale upgrading mode to upgrade versions.
The gray scale upgrading is a smooth processing scheme of batch upgrading. When the client has the upgrading version release, a part of clients are selected to firstly carry out version upgrading, whether the upgrading version has problems is tested through the part of clients, and large-area upgrading is carried out after the upgrading version is confirmed to have no problems or the existing problems are repaired. For example, clients used by several users are randomly selected to participate in the gray scale upgrading, or clients used by users in a certain area are selected to participate in the gray scale upgrading.
In the process of implementing the invention, the inventor finds that the technology at least has the following problems: when the client is upgraded by adopting a gray scale upgrading mode, the selection of the client participating in the gray scale upgrading is not reasonable enough, and the problem that the upgrading version can not be accurately and efficiently tested exists.
Disclosure of Invention
In order to solve the problems that the selection of the client participating in the gray scale upgrading is not reasonable enough and the upgrading version cannot be accurately and efficiently tested, the embodiment of the invention provides a client upgrading method and a client upgrading device. The technical scheme is as follows:
in a first aspect, a client upgrading method is provided, where the method includes:
acquiring a function module upgraded by an upgrade version of a client, wherein the client comprises at least one function module;
selecting statistical information from a pre-stored statistical information base, wherein the statistical information comprises a use record of a target client for the functional module before upgrading;
and determining the target client as a gray scale upgrading object according to the statistical information.
Optionally, the selecting statistical information from a pre-stored statistical information base includes:
when each piece of statistical information in the statistical information base records the module identification and the use times of each function module used by a client, selecting the module identification of the function module before upgrading from each module identification recorded in the statistical information for each piece of statistical information;
reading the use times corresponding to the selected module identification;
and selecting the statistical information of which the using times are greater than a first threshold value.
Optionally, the selecting statistical information from a pre-stored statistical information base includes:
when each piece of statistical information in the statistical information base records a module identifier of each function module used by a client, selecting the module identifier of the function module before upgrading from the module identifiers of the statistical information records for each piece of statistical information;
counting the total number of the selected module identifications;
and selecting the statistical information of which the total number is greater than a second threshold value.
Optionally, the determining the target client as a grayscale upgrading object according to the statistical information includes:
acquiring an equipment identifier corresponding to the statistical information from a preset corresponding relation according to the statistical information, wherein the preset corresponding relation comprises the corresponding relation between the statistical information and the equipment identifier;
and adding the equipment identification to a preset identification set, wherein the preset identification set is used for storing the equipment identification corresponding to the gray scale upgrading object.
Optionally, after determining the target client as a grayscale upgrading object according to the statistical information, the method further includes:
sending a prompt upgrading instruction to the target client;
or,
and sending a forced upgrading instruction to the target client, wherein the forced upgrading instruction comprises an upgrading file corresponding to the upgrading version.
In a second aspect, a client upgrading device is provided, the device comprising:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a functional module upgraded by an upgrade version of a client, and the client comprises at least one functional module;
the selecting module is used for selecting statistical information from a pre-stored statistical information base, wherein the statistical information comprises the use record of a target client on the functional module before upgrading;
and the determining module is used for determining the target client as a gray scale upgrading object according to the statistical information.
Optionally, the selecting module includes: the device comprises a first selection unit, a reading unit and a second selection unit;
the first selecting unit is configured to, when each piece of statistical information in the statistical information base records a module identifier and a use frequency of each function module used by a client, select, for each piece of statistical information, a module identifier of the function module before upgrading from each module identifier recorded in the statistical information base;
the reading unit is used for reading the use times corresponding to the selected module identification;
and the second selecting unit is used for selecting the statistical information of which the using times is greater than the first threshold value.
Optionally, the selecting module includes: the device comprises a third selection unit, a statistical unit and a fourth selection unit;
the third selecting unit is configured to, when each piece of statistical information in the statistical information base records a module identifier of each function module used by a client, select, for each piece of statistical information, a module identifier of the function module before upgrading from each module identifier recorded in the statistical information base;
the counting unit is used for counting the total number of the selected module identifications;
and the second selecting unit is used for selecting the statistical information of which the total number is greater than a second threshold value.
Optionally, the determining module includes: an acquisition unit and an addition unit;
the acquiring unit is used for acquiring the equipment identifier corresponding to the statistical information from a preset corresponding relation according to the statistical information, wherein the preset corresponding relation comprises the corresponding relation between the statistical information and the equipment identifier;
the adding unit is configured to add the device identifier to a predetermined identifier set, where the predetermined identifier set is used to store the device identifier corresponding to the grayscale upgrade object.
Optionally, the apparatus further comprises:
the first sending module is used for sending a prompt upgrading instruction to the target client;
or,
and the second sending module is used for sending a forced upgrading instruction to the target client, wherein the forced upgrading instruction comprises an upgrading file corresponding to the upgrading version.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
acquiring a function module upgraded by an upgrading version of a client, and determining a target client with a use record of the function module before upgrading as a gray scale upgrading object; the problem that the selection of the client side participating in the gray scale upgrading is not reasonable enough and the upgrading version cannot be accurately and efficiently tested in the related technology is solved; according to the function module upgraded according to the upgraded version, the target client using the function module before upgrading is selected in a targeted mode to participate in the gray scale upgrading, the accuracy of selecting the gray scale upgrading object is improved, and the effect of testing the upgraded version more accurately and efficiently is achieved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic block diagram of an implementation environment in which various embodiments of the present invention are implemented;
FIG. 2 is a flowchart of a method for upgrading a client according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for upgrading a client according to another embodiment of the present invention;
fig. 4 is a block diagram illustrating a structure of a client upgrading apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating a structure of a client upgrading apparatus according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Referring to fig. 1, a schematic structural diagram of an implementation environment according to various embodiments of the present invention is shown, where the implementation environment includes: at least one terminal 120 and a server 140. Wherein:
the terminal 120 may be a mobile phone, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer III, mpeg Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, mpeg Audio Layer 4) player, a laptop, a desktop computer, and the like. The terminal 120 has a client installed therein, and the client may be a browser client, a social application client, an instant messaging client, a live broadcast client, or the like.
The terminal 120 is connected to the server 140 through a wireless network or a wired network.
The server 140 may be a server, a server cluster composed of several servers, or a cloud computing service center.
Referring to fig. 2, a flowchart of a method for upgrading a client according to an embodiment of the present invention is shown, where the method for upgrading a client is applied to a server in the implementation environment shown in fig. 1 for example. The client upgrading method can comprise the following steps:
step 202, obtaining a function module upgraded by an upgrade version of a client, where the client includes at least one function module.
And 204, selecting statistical information from a pre-stored statistical information base, wherein the statistical information comprises the use record of the target client on the functional module before upgrading.
And step 206, determining the target client as a gray scale upgrading object according to the statistical information.
In summary, in the client upgrading method provided in this embodiment, the functional module upgraded by the upgrade version of the client is obtained, and then the target client having the usage record of the functional module before upgrading is determined as the grayscale upgrading object; the problem that the selection of the client side participating in the gray scale upgrading is not reasonable enough and the upgrading version cannot be accurately and efficiently tested in the related technology is solved; according to the function module upgraded according to the upgraded version, the target client using the function module before upgrading is selected in a targeted mode to participate in the gray scale upgrading, the accuracy of selecting the gray scale upgrading object is improved, and the effect of testing the upgraded version more accurately and efficiently is achieved.
Referring to fig. 3, a flowchart of a method for upgrading a client according to another embodiment of the present invention is shown, where the method for upgrading a client is applied to a server in the implementation environment shown in fig. 1 for example. The client upgrading method can comprise the following steps:
step 301, obtaining a function module upgraded by an upgrade version of a client, where the client includes at least one function module.
The server acquires the function module upgraded by the upgrade version of the client. The client comprises at least one functional module, and different functional modules are used for realizing different functions. For example, an instant messaging client typically includes: the client side comprises a message function module for realizing a message transceiving function, a voice function module for realizing voice communication, a video function module for realizing video communication, a skin changing function module for changing the appearance of a main panel of the client side and the like. In different embodiments, the functional module of the client may be divided more finely, for example, the message functional module is further divided into: a functional module for realizing message receiving, a functional module for realizing message single sending, a functional module for realizing message group sending, and the like. Or, the function module of the client may also be divided more roughly, for example, the message function module, the voice function module and the video function module are integrated into one communication function module. In the embodiment of the present invention, the dividing manner, the dividing type, and the dividing number of the functional modules included in the client are not specifically limited.
The number of the function modules upgraded by the upgraded version of the client side can be one or more.
Still taking the instant messaging client as an example, in an upgrade version of a certain time, only the skin-changing function module can be upgraded; or in another upgrading version, the voice function module and the video function module are upgraded at the same time.
Step 302, selecting statistical information from a pre-stored statistical information base, wherein the statistical information comprises the use record of the target client for the functional module before upgrading.
The server is provided with a statistical information base, the statistical information base comprises at least one piece of statistical information, and each piece of statistical information corresponds to one client.
In a first possible implementation manner, each piece of statistical information records the module identification and the number of times of use of each function module used by one client. For example, the statistical information contained in the statistical information base is shown in the following table-1:
TABLE-1
The module identifier may be a name, a number, or other identifier of the functional module, and different functional modules correspond to different module identifiers. The statistical information is obtained by counting according to daily operation behaviors of the user using the client by each client, the client reports the statistical information to the server, and the server maintains the statistical information reported by each client in the statistical information base.
In addition, in order to distinguish the clients installed in different terminals, when the clients report the statistical information to the server, the clients need to report the device identifiers of the terminals where the clients are located together. Wherein the device identifier is used to distinguish different terminals. The device identification may be a MAC (Media Access Control) address; or, when the client is a Mobile phone-oriented application, the device identifier may also be an IMEI (International Mobile Equipment Identity). As shown in the above table-1, the client installed in the terminal of the device identification 1 corresponds to the statistical information 1, and the client installed in the terminal of the device identification 2 corresponds to the statistical information 2.
In addition, the client may report the statistical information to the server periodically, for example, report the statistical information to the server at a predetermined time every day; alternatively, the client may report the statistical information to the server non-periodically, for example, reporting the statistical information to the server every time logging out.
In addition, the distribution time period of the statistical information stored in the statistical information base of the server can also be set according to actual requirements. For example, the server stores the statistical information of each client within the last month; or, the server stores the statistical information of each client from the last version upgrade to the current time, and the like.
When each piece of statistical information records the module identification and the number of times of use of each function module used by one client, step 302 may include the following sub-steps:
1. and for each piece of statistical information, selecting the module identification of the functional module before upgrading from the module identifications of the statistical information record.
For each piece of statistical information, the recorded content includes a module identifier, denoted as a, of each functional module used by the user. And the module identification of the function module upgraded by the upgraded version before upgrading is marked as B. The server chooses B in a.
For example, with reference to table-1, in statistical information 1, a includes a module identifier 1, a module identifier 2, and a module identifier 5, and assuming that the module identifier (i.e., B) of the functional module upgraded in the upgraded version before upgrading is module identifier 1, the server selects module identifier 1 from a. For another example, assuming that B is module id 1 and module id 4, the server selects module id 1 from a. For another example, assuming that B is module id 1 and module id 5, the server selects module id 1 and module id 5 from a.
2. And reading the use times corresponding to the selected module identification.
The statistical information records the use times corresponding to each module identification, and the server reads the use times corresponding to the selected module identification. The more the use times, the more frequently the functional module is used by the user before upgrading, and the user has the value of participating in the gray scale upgrading; conversely, a lower number of uses indicates that the functional module was used less often by the user prior to the upgrade, who has no value in participating in the grayscale upgrade.
3. And selecting statistical information with the use times larger than a first threshold value.
The server selects statistical information with the use times larger than a first threshold value, and the client corresponding to the selected statistical information is the target client participating in the gray scale upgrading. The first threshold is an empirical value preset according to actual requirements.
In addition, when the selected module identifier in the statistical information is one, the server can directly detect whether the use frequency corresponding to the module identifier is greater than a first threshold value; and if the statistical information is larger than the first threshold value, selecting the statistical information. When the number of the selected module identifications in the statistical information is two or more, the server can calculate the sum of the use times corresponding to the selected module identifications and detect whether the sum of the use times is larger than a first threshold value; and if the statistical information is larger than the first threshold value, selecting the statistical information. Or when the number of the selected module identifications in the statistical information is two or more, the server can select the maximum value of the number of times of use corresponding to the selected module identification, and detect whether the maximum value is greater than a first threshold value; and if the statistical information is larger than the first threshold value, selecting the statistical information. Of course, different comparison schemes can be set according to actual situations, which is a content that can be easily thought by those skilled in the art on the basis of the present embodiment, and the present embodiment does not limit the content.
In a second possible implementation manner, each piece of statistical information records a module identifier of each function module used by one client. For example, the statistical information contained in the statistical information base is shown in the following table-2:
TABLE-2
When each piece of statistical information records a module identifier of each function module used by the client, step 302 may include the following sub-steps:
1. and for each piece of statistical information, selecting the module identification of the functional module before upgrading from the module identifications of the statistical information record.
This step is the same as step 1 in the first possible embodiment described above, and is not described here again.
2. And counting the total number of the selected module identifications.
And the server respectively counts the total number of the selected module identifications in each piece of statistical information. The larger the total number is, the more the number of the function modules used by the user and to be upgraded is, the user has a value of participating in the gradation upgrade; conversely, the smaller the total number, the fewer the number of function modules used by the user and that are to be upgraded, and the user has no value in participating in the grayscale upgrade.
3. And selecting the statistical information with the total number larger than the second threshold value.
And the server selects the statistical information with the total number larger than a second threshold value, and the client corresponding to the selected statistical information is the target client participating in the gray scale upgrading. The second threshold is an empirical value preset according to actual requirements. For example, when the number of function modules upgraded by the upgraded version is 5, the second threshold value may be set to 3. And when the total number of the selected module identifications in a piece of statistical information is more than 3, selecting the statistical information.
Step 303, determining the target client as a gray scale upgrading object according to the statistical information.
And the server determines the target client corresponding to the selected statistical information as a gray scale upgrading object.
Optionally, step 303 may include several sub-steps as follows:
1. acquiring equipment identification corresponding to the statistical information from a preset corresponding relation according to the statistical information;
the predetermined corresponding relation comprises a corresponding relation between the statistical information and the equipment identification.
2. And adding the equipment identification to a preset identification set, wherein the preset identification set is used for storing the equipment identification corresponding to the gray scale upgrading object.
Step 304, sending an upgrade instruction to the target client.
The server can actively send an upgrading instruction to the target client; alternatively, the server may passively send an upgrade indication to the target client.
For example, taking the example that the server passively sends the upgrade instruction to the target client, the client sends an upgrade request carrying an equipment identifier to the server after starting and running each time, where the equipment identifier is the equipment identifier of the terminal on which the client is installed. After receiving the upgrading request, the server detects whether the equipment identifier exists in a preset identifier set; if yes, sending an upgrading instruction to the client; and otherwise, not sending an upgrading instruction to the client or sending an instruction of not upgrading to the client.
Optionally, the upgrade request sent by the client may also carry version information of the client. Correspondingly, after receiving the upgrading request, the server detects whether the version information is the upgrading version; if not, executing the step of detecting whether the equipment identifier exists in a preset identifier set; and otherwise, not sending an upgrading instruction to the client or sending an instruction of not upgrading to the client.
In addition, step 304 may include two possible implementations as follows:
in a first possible implementation, a prompt upgrade indication is sent to the target client.
And the upgrade prompting indication is used for instructing the client to provide an upgrade prompt for the user, and the upgrade prompt is used for prompting the user that the client of the current version can be upgraded. The user can select to upgrade or not according to the upgrade prompt. When a user selects to upgrade, a client sends an upgrade file acquisition request to a server; correspondingly, the server feeds back the upgrade file corresponding to the upgrade version to the client according to the upgrade file acquisition request. And after receiving the upgrade file, the client side upgrades the client side of the current version according to the upgrade file, and upgrades the client side to the upgrade version.
In a second possible implementation manner, a forced upgrade instruction is sent to the target client, where the forced upgrade instruction includes an upgrade file corresponding to the upgrade version.
And the forced upgrade instruction is used for instructing the client to perform forced upgrade. In order to reduce the number of information interaction between the client and the server, the forced upgrade instruction may carry an upgrade file corresponding to the upgrade version. And after receiving the forced upgrading instruction, the client side upgrades the client side of the current version according to the upgrading file to upgrade the client side into an upgraded version.
In addition, the server can send a prompt upgrading instruction or a forced upgrading instruction to the target client according to whether the server is subjected to reconstruction decision: when the server is rebuilt, a forced upgrading instruction is sent to the target client; and when the server is not rebuilt, sending a prompt upgrading instruction to the target client. Or, the server can also decide to send a prompt upgrading instruction or a forced upgrading instruction to the target client according to the number of the target clients participating in the gray scale upgrading: when the number of target clients participating in gray scale upgrading does not reach a preset value, sending a forced upgrading instruction to the target clients; and when the number of the target clients participating in the gray scale upgrading does not reach a preset value, sending an upgrading prompting instruction to the target clients. Of course, in practical application, other ways may also be adopted to decide whether to send the upgrade prompting instruction or the forced upgrade instruction to the target client, which is what the skilled person easily thinks based on the embodiment, and the embodiment does not limit this.
In summary, in the client upgrading method provided in this embodiment, the functional module upgraded by the upgrade version of the client is obtained, and then the target client having the usage record of the functional module before upgrading is determined as the grayscale upgrading object; the problem that the selection of the client side participating in the gray scale upgrading is not reasonable enough and the upgrading version cannot be accurately and efficiently tested in the related technology is solved; according to the function module upgraded according to the upgraded version, the target client using the function module before upgrading is selected in a targeted mode to participate in the gray scale upgrading, the accuracy of selecting the gray scale upgrading object is improved, and the effect of testing the upgraded version more accurately and efficiently is achieved.
In addition, the client upgrading method provided by this embodiment also performs statistics on the daily operation behaviors of the user using the client, and selects the target client with the test value to preferentially upgrade by combining the upgrade content and the statistical data when the upgrade version is released, so that the effect of more accurately and efficiently testing the upgrade version is achieved, the requirement of a client developer on test resources is reduced, and the test cost is saved.
The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 4, a block diagram of a client upgrading apparatus according to an embodiment of the present invention is shown, where the client upgrading apparatus may be implemented as part of or all of a server by software, hardware or a combination of the two. The client upgrading apparatus may include: an acquisition module 410, a selection module 420, and a determination module 430.
The obtaining module 410 is configured to obtain a function module upgraded by an upgrade version of a client, where the client includes at least one function module.
The selecting module 420 is configured to select statistical information from a pre-stored statistical information base, where the statistical information includes a usage record of the target client for the functional module before upgrading.
And a determining module 430, configured to determine the target client as a grayscale upgrading object according to the statistical information.
In summary, in the client upgrading apparatus provided in this embodiment, the function module upgraded by the upgrade version of the client is obtained, and then the target client having the usage record of the function module before upgrading is determined as the grayscale upgrading object; the problem that the selection of the client side participating in the gray scale upgrading is not reasonable enough and the upgrading version cannot be accurately and efficiently tested in the related technology is solved; according to the function module upgraded according to the upgraded version, the target client using the function module before upgrading is selected in a targeted mode to participate in the gray scale upgrading, the accuracy of selecting the gray scale upgrading object is improved, and the effect of testing the upgraded version more accurately and efficiently is achieved.
Referring to fig. 5, a block diagram of a client upgrading apparatus according to another embodiment of the present invention is shown, where the client upgrading apparatus may be implemented as part of or all of a server by software, hardware or a combination of the two. The client upgrading apparatus may include: an acquisition module 410, a selection module 420, and a determination module 430.
The obtaining module 410 is configured to obtain a function module upgraded by an upgrade version of a client, where the client includes at least one function module.
The selecting module 420 is configured to select statistical information from a pre-stored statistical information base, where the statistical information includes a usage record of the target client for the functional module before upgrading.
In a first possible implementation, the selecting module 420 includes: a first selection unit 420a, a reading unit 420b and a second selection unit 420 c.
The first selecting unit 420a is configured to, when each piece of statistical information in the statistical information base records a module identifier and a use frequency of each function module used by a client, select, for each piece of statistical information, a module identifier of the function module before being upgraded from each module identifier recorded in the statistical information base.
The reading unit 420b is configured to read the number of times of use corresponding to the selected module identifier.
The second selecting unit 420c is configured to select statistical information that the number of times of use is greater than a first threshold.
In a second possible implementation manner, the selecting module 420 includes: a third selection unit 420d, a statistical unit 420e, and a fourth selection unit 420 f.
The third selecting unit 420d is configured to, when each piece of statistical information in the statistical information base records a module identifier of each function module used by a client, select, for each piece of statistical information, a module identifier of the function module before upgrading from each module identifier recorded in the statistical information base.
The counting unit 420e is configured to count the total number of the selected module identifiers.
The second selecting unit 420f is configured to select the statistical information of which the total number is greater than a second threshold.
And a determining module 430, configured to determine the target client as a grayscale upgrading object according to the statistical information.
Optionally, the determining module 430 includes: an acquisition unit 430a and an addition unit 430 b.
The obtaining unit 430a is configured to obtain, according to the statistical information, an apparatus identifier corresponding to the statistical information from a predetermined corresponding relationship, where the predetermined corresponding relationship includes a corresponding relationship between the statistical information and the apparatus identifier.
The adding unit 430b is configured to add the device identifier to a predetermined identifier set, where the predetermined identifier set is used to store the device identifier corresponding to the grayscale upgrade object.
Optionally, the apparatus further comprises:
a first sending module 440, configured to send a prompt upgrade instruction to the target client. Or,
a second sending module 450, configured to send a forced upgrade instruction to the target client, where the forced upgrade instruction includes an upgrade file corresponding to the upgrade version.
In summary, in the client upgrading apparatus provided in this embodiment, the function module upgraded by the upgrade version of the client is obtained, and then the target client having the usage record of the function module before upgrading is determined as the grayscale upgrading object; the problem that the selection of the client side participating in the gray scale upgrading is not reasonable enough and the upgrading version cannot be accurately and efficiently tested in the related technology is solved; according to the function module upgraded according to the upgraded version, the target client using the function module before upgrading is selected in a targeted mode to participate in the gray scale upgrading, the accuracy of selecting the gray scale upgrading object is improved, and the effect of testing the upgraded version more accurately and efficiently is achieved.
It should be noted that: in the client upgrading apparatus provided in the foregoing embodiment, when providing the client upgrading service, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the method embodiments of the client upgrading device and the client upgrading method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 6 is a schematic structural diagram of a server according to an embodiment of the present invention. The server is used for implementing the client upgrading method provided in the above embodiment. Specifically, the method comprises the following steps:
the server 600 includes a Central Processing Unit (CPU)601, a system memory 604 including a Random Access Memory (RAM)602 and a Read Only Memory (ROM)603, and a system bus 605 connecting the system memory 604 and the central processing unit 601. The server 600 also includes a basic input/output system (I/O system) 606, which facilitates the transfer of information between devices within the computer, and a mass storage device 607, which stores an operating system 613, application programs 614, and other program modules 615.
The basic input/output system 606 includes a display 608 for displaying information and an input device 609 such as a mouse, keyboard, etc. for a user to input information. Wherein the display 608 and the input device 609 are connected to the central processing unit 601 through an input output controller 610 connected to the system bus 605. The basic input/output system 606 may also include an input/output controller 610 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input/output controller 610 may also provide output to a display screen, a printer, or other type of output device.
The mass storage device 607 is connected to the central processing unit 601 through a mass storage controller (not shown) connected to the system bus 605. The mass storage device 607 and its associated computer-readable media provide non-volatile storage for the server 600. That is, the mass storage device 607 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM drive.
Without loss of generality, the computer-readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM, EEPROM, flash memory or other solid state memory technology, CD-ROM, DVD, or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that the computer storage media is not limited to the foregoing. The system memory 604 and mass storage device 607 described above may be collectively referred to as memory.
The server 600 may also operate as a remote computer connected to a network via a network, such as the internet, in accordance with various embodiments of the present invention. That is, the server 600 may be connected to the network 612 through the network interface unit 611 connected to the system bus 605, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 611.
The memory also includes one or more programs stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for performing the client upgrade method as in the embodiments of fig. 2 or fig. 3 described above.
It should be understood that, as used herein, the singular forms "a," "an," "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
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.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (10)
1. A method for client upgrade, the method comprising:
acquiring a function module upgraded by an upgrade version of a client, wherein the client comprises at least one function module;
selecting statistical information from a pre-stored statistical information base, wherein the statistical information comprises a use record of a target client for the functional module before upgrading;
and determining the target client as a gray scale upgrading object according to the statistical information.
2. The method of claim 1, wherein the selecting the statistical information from a pre-stored statistical information base comprises:
when each piece of statistical information in the statistical information base records the module identification and the use times of each function module used by a client, selecting the module identification of the function module before upgrading from each module identification recorded in the statistical information for each piece of statistical information;
reading the use times corresponding to the selected module identification;
and selecting the statistical information of which the using times are greater than a first threshold value.
3. The method of claim 1, wherein the selecting the statistical information from a pre-stored statistical information base comprises:
when each piece of statistical information in the statistical information base records a module identifier of each function module used by a client, selecting the module identifier of the function module before upgrading from the module identifiers of the statistical information records for each piece of statistical information;
counting the total number of the selected module identifications;
and selecting the statistical information of which the total number is greater than a second threshold value.
4. The method of claim 1, wherein the determining the target client as a grayscale object according to the statistical information comprises:
acquiring an equipment identifier corresponding to the statistical information from a preset corresponding relation according to the statistical information, wherein the preset corresponding relation comprises the corresponding relation between the statistical information and the equipment identifier;
and adding the equipment identification to a preset identification set, wherein the preset identification set is used for storing the equipment identification corresponding to the gray scale upgrading object.
5. The method according to any one of claims 1 to 4, wherein after determining the target client as a grayscale object according to the statistical information, the method further comprises:
sending a prompt upgrading instruction to the target client;
or,
and sending a forced upgrading instruction to the target client, wherein the forced upgrading instruction comprises an upgrading file corresponding to the upgrading version.
6. A client upgrade apparatus, characterized in that the apparatus comprises:
the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring a functional module upgraded by an upgrade version of a client, and the client comprises at least one functional module;
the selecting module is used for selecting statistical information from a pre-stored statistical information base, wherein the statistical information comprises the use record of a target client on the functional module before upgrading;
and the determining module is used for determining the target client as a gray scale upgrading object according to the statistical information.
7. The apparatus of claim 6, wherein the selecting module comprises: the device comprises a first selection unit, a reading unit and a second selection unit;
the first selecting unit is configured to, when each piece of statistical information in the statistical information base records a module identifier and a use frequency of each function module used by a client, select, for each piece of statistical information, a module identifier of the function module before upgrading from each module identifier recorded in the statistical information base;
the reading unit is used for reading the use times corresponding to the selected module identification;
and the second selecting unit is used for selecting the statistical information of which the using times is greater than the first threshold value.
8. The apparatus of claim 6, wherein the selecting module comprises: the device comprises a third selection unit, a statistical unit and a fourth selection unit;
the third selecting unit is configured to, when each piece of statistical information in the statistical information base records a module identifier of each function module used by a client, select, for each piece of statistical information, a module identifier of the function module before upgrading from each module identifier recorded in the statistical information base;
the counting unit is used for counting the total number of the selected module identifications;
and the second selecting unit is used for selecting the statistical information of which the total number is greater than a second threshold value.
9. The apparatus of claim 6, wherein the determining module comprises: an acquisition unit and an addition unit;
the acquiring unit is used for acquiring the equipment identifier corresponding to the statistical information from a preset corresponding relation according to the statistical information, wherein the preset corresponding relation comprises the corresponding relation between the statistical information and the equipment identifier;
the adding unit is configured to add the device identifier to a predetermined identifier set, where the predetermined identifier set is used to store the device identifier corresponding to the grayscale upgrade object.
10. The apparatus of any of claims 6 to 9, further comprising:
the first sending module is used for sending a prompt upgrading instruction to the target client;
or,
and the second sending module is used for sending a forced upgrading instruction to the target client, wherein the forced upgrading instruction comprises an upgrading file corresponding to the upgrading version.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410837892.0A CN104579768B (en) | 2014-12-29 | 2014-12-29 | Client side upgrading method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410837892.0A CN104579768B (en) | 2014-12-29 | 2014-12-29 | Client side upgrading method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104579768A true CN104579768A (en) | 2015-04-29 |
CN104579768B CN104579768B (en) | 2018-12-18 |
Family
ID=53095033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410837892.0A Active CN104579768B (en) | 2014-12-29 | 2014-12-29 | Client side upgrading method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104579768B (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105068936A (en) * | 2015-09-18 | 2015-11-18 | 北京金山安全软件有限公司 | Method and device for testing stability of software |
CN105653325A (en) * | 2015-12-29 | 2016-06-08 | 北京金山安全软件有限公司 | Method and device for updating data packet in test environment and electronic equipment |
CN105978709A (en) * | 2016-04-27 | 2016-09-28 | 天脉聚源(北京)传媒科技有限公司 | Application upgrading method and device thereof |
WO2017071425A1 (en) * | 2015-10-29 | 2017-05-04 | 腾讯科技(深圳)有限公司 | Method and device for updating version |
CN106708787A (en) * | 2015-11-13 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Method and apparatus for determining correctness of business function module |
CN106933630A (en) * | 2017-03-09 | 2017-07-07 | 百度在线网络技术(北京)有限公司 | A kind of client side upgrading method, device, equipment and storage medium |
CN107770212A (en) * | 2016-08-17 | 2018-03-06 | 中兴通讯股份有限公司 | Rich communication suite distribution platform, method for updating edition and system, mobile terminal |
CN107844374A (en) * | 2017-11-02 | 2018-03-27 | 上海携程商务有限公司 | The task executing method of terminal device, device, electronic equipment, storage medium |
CN107957888A (en) * | 2016-10-14 | 2018-04-24 | 北京国双科技有限公司 | The gray scale upgrade method and device of application program |
CN108123816A (en) * | 2016-11-28 | 2018-06-05 | 北京小米移动软件有限公司 | Method for upgrading system and device |
CN108156038A (en) * | 2017-12-29 | 2018-06-12 | 广东欧珀移动通信有限公司 | Ask distribution method, device, access gateway and storage medium |
CN109117163A (en) * | 2018-08-30 | 2019-01-01 | 北京奇艺世纪科技有限公司 | A kind of client side upgrading method and device |
CN109344073A (en) * | 2018-10-17 | 2019-02-15 | 平安普惠企业管理有限公司 | Application software testing method, apparatus, computer equipment and storage medium |
CN110442361A (en) * | 2019-06-27 | 2019-11-12 | 五八有限公司 | A kind of gray scale dissemination method, device and electronic equipment |
CN110489131A (en) * | 2018-05-15 | 2019-11-22 | 中国移动通信集团浙江有限公司 | A kind of gray scale user choosing method and device |
CN112306529A (en) * | 2020-11-09 | 2021-02-02 | 维沃移动通信有限公司 | System upgrading method, device, equipment and storage medium |
CN115357280A (en) * | 2022-08-09 | 2022-11-18 | 湖南木屋网络科技有限公司 | Software version management method, device, server and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007140685A1 (en) * | 2006-06-09 | 2007-12-13 | Huawei Technologies Co., Ltd. | System and method for prioritizing the content of web pages offered by merchants |
CN102624771A (en) * | 2011-08-05 | 2012-08-01 | 北京小米科技有限责任公司 | Client upgrading method |
CN103365692A (en) * | 2013-07-15 | 2013-10-23 | 北京奇虎科技有限公司 | Method and device for pushing prompt messages of software upgrading |
CN103777970A (en) * | 2012-10-22 | 2014-05-07 | 联想(北京)有限公司 | Software upgrading method and electronic device |
CN104113576A (en) * | 2013-04-22 | 2014-10-22 | 阿里巴巴集团控股有限公司 | Method and device for updating client |
-
2014
- 2014-12-29 CN CN201410837892.0A patent/CN104579768B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007140685A1 (en) * | 2006-06-09 | 2007-12-13 | Huawei Technologies Co., Ltd. | System and method for prioritizing the content of web pages offered by merchants |
CN102624771A (en) * | 2011-08-05 | 2012-08-01 | 北京小米科技有限责任公司 | Client upgrading method |
CN103777970A (en) * | 2012-10-22 | 2014-05-07 | 联想(北京)有限公司 | Software upgrading method and electronic device |
CN104113576A (en) * | 2013-04-22 | 2014-10-22 | 阿里巴巴集团控股有限公司 | Method and device for updating client |
CN103365692A (en) * | 2013-07-15 | 2013-10-23 | 北京奇虎科技有限公司 | Method and device for pushing prompt messages of software upgrading |
Cited By (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105068936A (en) * | 2015-09-18 | 2015-11-18 | 北京金山安全软件有限公司 | Method and device for testing stability of software |
WO2017071425A1 (en) * | 2015-10-29 | 2017-05-04 | 腾讯科技(深圳)有限公司 | Method and device for updating version |
CN106708787B (en) * | 2015-11-13 | 2019-09-13 | 阿里巴巴集团控股有限公司 | The determination method and device of business function module correctness |
CN106708787A (en) * | 2015-11-13 | 2017-05-24 | 阿里巴巴集团控股有限公司 | Method and apparatus for determining correctness of business function module |
CN105653325A (en) * | 2015-12-29 | 2016-06-08 | 北京金山安全软件有限公司 | Method and device for updating data packet in test environment and electronic equipment |
CN105978709A (en) * | 2016-04-27 | 2016-09-28 | 天脉聚源(北京)传媒科技有限公司 | Application upgrading method and device thereof |
CN107770212A (en) * | 2016-08-17 | 2018-03-06 | 中兴通讯股份有限公司 | Rich communication suite distribution platform, method for updating edition and system, mobile terminal |
CN107957888B (en) * | 2016-10-14 | 2022-03-18 | 北京国双科技有限公司 | Application program gray scale upgrading method and device |
CN107957888A (en) * | 2016-10-14 | 2018-04-24 | 北京国双科技有限公司 | The gray scale upgrade method and device of application program |
CN108123816B (en) * | 2016-11-28 | 2021-06-29 | 北京小米移动软件有限公司 | System upgrading method and device |
CN108123816A (en) * | 2016-11-28 | 2018-06-05 | 北京小米移动软件有限公司 | Method for upgrading system and device |
CN106933630A (en) * | 2017-03-09 | 2017-07-07 | 百度在线网络技术(北京)有限公司 | A kind of client side upgrading method, device, equipment and storage medium |
CN107844374A (en) * | 2017-11-02 | 2018-03-27 | 上海携程商务有限公司 | The task executing method of terminal device, device, electronic equipment, storage medium |
CN108156038B (en) * | 2017-12-29 | 2019-07-02 | Oppo广东移动通信有限公司 | Request distribution method, device, access gateway and storage medium |
CN108156038A (en) * | 2017-12-29 | 2018-06-12 | 广东欧珀移动通信有限公司 | Ask distribution method, device, access gateway and storage medium |
CN110489131A (en) * | 2018-05-15 | 2019-11-22 | 中国移动通信集团浙江有限公司 | A kind of gray scale user choosing method and device |
CN110489131B (en) * | 2018-05-15 | 2023-04-07 | 中国移动通信集团浙江有限公司 | Gray level user selection method and device |
CN109117163A (en) * | 2018-08-30 | 2019-01-01 | 北京奇艺世纪科技有限公司 | A kind of client side upgrading method and device |
CN109344073A (en) * | 2018-10-17 | 2019-02-15 | 平安普惠企业管理有限公司 | Application software testing method, apparatus, computer equipment and storage medium |
CN110442361A (en) * | 2019-06-27 | 2019-11-12 | 五八有限公司 | A kind of gray scale dissemination method, device and electronic equipment |
CN110442361B (en) * | 2019-06-27 | 2024-02-09 | 五八有限公司 | Gray release method and device and electronic equipment |
CN112306529A (en) * | 2020-11-09 | 2021-02-02 | 维沃移动通信有限公司 | System upgrading method, device, equipment and storage medium |
WO2022095847A1 (en) * | 2020-11-09 | 2022-05-12 | 维沃移动通信有限公司 | System upgrading method and apparatus, device, and storage medium |
CN115357280A (en) * | 2022-08-09 | 2022-11-18 | 湖南木屋网络科技有限公司 | Software version management method, device, server and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN104579768B (en) | 2018-12-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104579768B (en) | Client side upgrading method and device | |
US11531699B2 (en) | Inserting information into playing content | |
US20180260667A1 (en) | Systems and methods for inferential sharing of photos | |
CN106648562B (en) | Version updating method and device | |
US10877809B2 (en) | Preloading applications from a priority list based on memory usage status of an electronic device | |
US9871756B1 (en) | Methods for displaying notifications | |
KR20200113276A (en) | Resource arrangement method, device, terminal and storage medium | |
US9836346B2 (en) | Error troubleshooting using a correlated knowledge base | |
CN102857578B (en) | A kind of file uploading method of network hard disc, system and net dish client | |
US8311041B1 (en) | Systems and methods for automatically adjusting messaging quota | |
KR20200043986A (en) | Methods and devices for performing media device asset qualification | |
EP2985730A1 (en) | Method and device for partially-upgrading | |
CN109901881B (en) | Plug-in loading method and device of application program, computer equipment and storage medium | |
CN111782988B (en) | Method, apparatus, computer system and storage medium for determining source of application program | |
US9607088B2 (en) | Method and apparatus for detecting multimedia content change, and resource propagation system | |
US20180373307A1 (en) | Processing method and device for saving power, mobile terminal and cloud server | |
CN109034867B (en) | Click traffic detection method and device and storage medium | |
CN110417910B (en) | Notification message sending method, device, server and storage medium | |
CN113127723B (en) | User portrait processing method, device, server and storage medium | |
US20160070555A1 (en) | Automated tenant upgrades for multi-tenant services | |
CN112286723A (en) | Computer room disaster recovery control method, terminal and storage medium | |
CN110740088B (en) | Method, device, terminal and medium for recommending and adding social resources | |
CN111464826B (en) | List updating method and device for virtual resources, electronic equipment and storage medium | |
CN110769064B (en) | System, method and equipment for offline message pushing | |
US8255535B2 (en) | Method and system to generate execution-based scheduling signature for an application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 510660 Guangzhou City, Guangzhou, Guangdong, Whampoa Avenue, No. 315, self - made 1-17 Applicant after: Guangzhou KuGou Networks Co., Ltd. Address before: 510000 B1, building, No. 16, rhyme Road, Guangzhou, Guangdong, China 13F Applicant before: Guangzhou KuGou Networks Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |