CN105656810A - Method and device for updating application program - Google Patents

Method and device for updating application program Download PDF

Info

Publication number
CN105656810A
CN105656810A CN201510998597.8A CN201510998597A CN105656810A CN 105656810 A CN105656810 A CN 105656810A CN 201510998597 A CN201510998597 A CN 201510998597A CN 105656810 A CN105656810 A CN 105656810A
Authority
CN
China
Prior art keywords
application program
terminal
bandwidth
program update
real
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
Application number
CN201510998597.8A
Other languages
Chinese (zh)
Other versions
CN105656810B (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 Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510998597.8A priority Critical patent/CN105656810B/en
Publication of CN105656810A publication Critical patent/CN105656810A/en
Application granted granted Critical
Publication of CN105656810B publication Critical patent/CN105656810B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • 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/44578Preparing or optimising for loading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/52Queue scheduling by attributing bandwidth to queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to a method and device for updating an application program. The method comprises following steps: in response to an application program updating instruction triggered by a terminal, monitoring and updating the using states of used bandwidths, thus obtaining the real time occupation quantity of the bandwidth; adjusting a terminal proportion for carrying out application program updating according to the real time occupation quantity of the bandwidth and a preset bandwidth threshold value, thus finishing updating the application program. Through the technical solution provided by the invention, the updating proportion is automatically adjusted in the application program updating process; and the service availability is ensured without increasing bandwidths.

Description

A kind of method and device upgrading application program
Technical field
The present invention relates to technical field of the computer network, specifically, it relates to a kind of method and device upgrading application program.
Background technology
Along with internet product iteration speed is accelerated, renewal application program and assembly are common especially, in the case of big for product amount level, do not have control ratio that server bandwidth can be caused to be fully loaded with if issuing renewal, service stopping, is forbidden also to cause same problem if control ratio is estimated. Such as: morning peak and evening peak request amount are about 3 at ordinary times times usually, the fully loaded server of bandwidth can return mistake, causes service unavailable, and the user upgraded also can be interrupted, it is possible to can cause snowslide, causes all users to upgrade failure.
Prior art upgrades application program by control overall ratio or the interim mode increasing bandwidth, available with Deterministic service. But, according to bandwidth situation mode high-volume, for some part-load server room, after overall restriction, have waste, if increase bandwidth after fully loaded temporarily, owing to interim bandwidth expense is high than fixed-bandwidth expense, unnecessary waste can be caused again.
Summary of the invention
In view of the above problems, propose the present invention to provide a kind of method and the device that overcome the problems referred to above or solve or slow down the renewal application program of the problems referred to above at least in part, achieve the automatic adjustment of renewal ratio, Deterministic service operability without increase in bandwidth.
According to an aspect of the present invention, it provides a kind of method upgrading application program, comprising:
In response to the application program update instruction that terminal triggers, the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth;
Real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, to realize the renewal of application program.
Can selection of land, the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, specifically comprise:
The real-time occupancy of described bandwidth and described default bandwidth threshold are compared;
If the real-time occupancy of described bandwidth is more than or equal to described default bandwidth threshold, then the terminal ratio that current application program upgrades is reduced the first preset ratio;
If the real-time occupancy of described bandwidth is less than described default bandwidth threshold, then the terminal ratio that current application program upgrades is increased by the 2nd preset ratio.
Can selection of land, described first preset ratio is greater than described 2nd preset ratio, and described first preset ratio and described 2nd preset ratio are all greater than 0.
Can selection of land, before the terminal ratio that the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out application program update, described method also comprises:
According to history more new record, it is determined that preset time period;
Correspondingly, the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, specifically comprise:
Real-time occupancy according to described bandwidth and the bandwidth threshold preset, periodically adjust the terminal ratio of application program update according to preset time period.
Can selection of land, after the terminal ratio that the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out application program update, described method also comprises:
For the terminal of each triggering application program update instruction generates a randomized number, terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update.
Can selection of land, after the terminal ratio that the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out application program update, described method also comprises:
Generating random number instruction is sent, so that each terminal generates corresponding randomized number to the terminal of each triggering application program update instruction;
Terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update.
Can selection of land, described method also comprises:
The time next time asking to upgrade is sent to the terminal currently not carrying out application program update.
Can selection of land, in the described application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, with obtain described bandwidth real-time occupancy before, described method also comprises:
According to history more new record, it is determined that upgrade bandwidth used.
Can selection of land, before the terminal ratio that the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out application program update, described method also comprises:
According to history more new record, it is determined that described default bandwidth threshold.
According to another aspect of the present invention, it provides a kind of method upgrading application program, comprising:
Sending application program update instruction, described application program update instruction comprises terminal and carries out listed files needed for application program update;
Receive the renewal response information that service end listed files needed for described application program update returns;
Upgrade if the instruction of described renewal response information does not allow described terminal to carry out this, then from described renewal failure response information, obtain the time next time asking to upgrade.
Can selection of land, described method also comprises:
Upgrade if the instruction of described renewal response information allows described terminal to carry out this, then perform the renewal of described application program.
According to another aspect of the present invention, it provides a kind of method upgrading application program, comprising:
Send application program update instruction, so that service end sends generating random number instruction according to described application program update instruction;
Receive the generating random number instruction that described service end sends, generate corresponding randomized number;
If the randomized number generated does not meet described pre-conditioned, then obtain the time next time asking to upgrade to described service end;
Wherein, the numerical range of the randomized number that each terminal of described generating random number directives prescribe generates, and meet in the specified range of described pre-conditioned randomized number in described numerical range.
Can selection of land, described method also comprises:
If the randomized number generated meets described pre-conditioned, then send to service end and upgrade confirmation message, carry out application program update.
According to another aspect of the present invention, it provides a kind of device upgrading application program, comprising:
Monitoring means, is suitable in response to the application program update instruction that terminal triggers, and the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth;
Adjustment unit, is suitable for the real-time occupancy of bandwidth that obtains according to described monitoring means and the bandwidth threshold adjustment preset carries out the terminal ratio of application program update, to realize the renewal of application program.
Can selection of land, described adjustment unit, specifically be suitable for comparing the real-time occupancy of described bandwidth and described default bandwidth threshold, if the real-time occupancy of described bandwidth is more than or equal to described default bandwidth threshold, then the terminal ratio that current application program upgrades is reduced the first preset ratio, if the real-time occupancy of described bandwidth is less than described default bandwidth threshold, then the terminal ratio that current application program upgrades is increased by the 2nd preset ratio.
Can selection of land, described first preset ratio is greater than described 2nd preset ratio, and described first preset ratio and described 2nd preset ratio are all greater than 0.
Can selection of land, described device also comprises:
First determining unit, is suitable for before the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, according to history more new record, it is determined that preset time period;
Correspondingly, described adjustment unit, the bandwidth threshold being specifically suitable for the real-time occupancy according to described bandwidth and presetting, periodically adjusts the terminal ratio of application program update according to preset time period.
Can selection of land, described device also comprises:
2nd determining unit, be suitable for after the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, for the terminal of each triggering application program update instruction generates a randomized number, terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update.
Can selection of land, described device also comprises:
3rd determining unit, be suitable for after the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, generating random number instruction is sent to the terminal of each triggering application program update instruction, so that each terminal generates corresponding randomized number, terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update.
Can selection of land, described device also comprises:
Send unit, be suitable for sending the time next time asking to upgrade to the terminal currently not carrying out application program update.
Can selection of land, described device also comprises:
4th determining unit, is suitable in the described application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, with obtain described bandwidth real-time occupancy before, according to history more new record, it is determined that upgrade bandwidth used.
Can selection of land, described device also comprises:
5th determining unit, is suitable for before the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, according to history more new record, it is determined that described default bandwidth threshold.
According to another aspect of the present invention, it provides a kind of device upgrading application program, comprising:
Sending unit, be suitable for sending application program update instruction, described application program update instruction comprises terminal and carries out listed files needed for application program update;
Receive unit, be suitable for the renewal response information that reception service end listed files needed for described application program update returns;
Acquiring unit, is suitable for obtaining, when the renewal response information instruction that described reception unit receives does not allow described terminal to carry out this renewal, the time next time asking to upgrade from described renewal failure response information.
Can selection of land, described device also comprises:
Updating block, is suitable for performing the renewal of described application program when the renewal response information instruction that described reception unit receives allows described terminal to carry out this renewal.
According to another aspect of the present invention, it provides a kind of device upgrading application program, comprising:
Send unit, be suitable for sending application program update instruction, so that service end sends generating random number instruction according to described application program update instruction;
Generate unit, be suitable for receiving the generating random number instruction of described service end transmission, generate corresponding randomized number;
Acquiring unit, be suitable for when described generation unit generate randomized number do not meet described pre-conditioned time, to described service end obtain next time ask upgrade time;
Wherein, the numerical range of the randomized number that each terminal of described generating random number directives prescribe generates, and meet in the specified range of described pre-conditioned randomized number in described numerical range.
Can selection of land, described device also comprises:
Updating block, be suitable for when described generation unit generate randomized number meet described pre-conditioned time, to service end send upgrade confirmation message, carry out application program update.
The useful effect of the present invention is:
The method of renewal application program provided by the invention and device, by the application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth, and the real-time occupancy and default bandwidth threshold according to described bandwidth adjusts the terminal ratio carrying out application program update, to complete the renewal of application program. Present invention achieves the automatic adjustment upgrading ratio in application program update process, Deterministic service operability without increase in bandwidth.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to the technique means of the present invention can be better understood, and can be implemented according to the content of specification sheets, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become clear for those of ordinary skill in the art and understand. Accompanying drawing is only for illustrating the object of preferred implementation, and does not think limitation of the present invention. And in whole accompanying drawing, represent identical parts with identical reference symbol. In the accompanying drawings:
Fig. 1 diagrammatically illustrates the method flow schematic diagram of the renewal application program of one embodiment of the invention;
Fig. 2 diagrammatically illustrates the method flow schematic diagram of the renewal application program of another embodiment of the present invention;
Fig. 3 diagrammatically illustrates the method flow schematic diagram of the renewal application program of another embodiment of the present invention;
Fig. 4 diagrammatically illustrates the method flow schematic diagram of the renewal application program of another embodiment of the present invention;
Fig. 5 diagrammatically illustrates the method flow schematic diagram of the renewal application program of another embodiment of the present invention;
Fig. 6 diagrammatically illustrates the structural representation of the device of the renewal application program of one embodiment of the invention;
Fig. 7 diagrammatically illustrates the structural representation of the device of the renewal application program of one embodiment of the invention
Fig. 8 diagrammatically illustrates the structural representation of the device of the renewal application program of one embodiment of the invention.
Embodiment
Being described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish. It is exemplary below by the embodiment being described with reference to the drawings, only for explaining the present invention, and limitation of the present invention can not be interpreted as.
It can be appreciated that unless expressly stated, odd number form " " used herein, " one ", " described " and " being somebody's turn to do " also can comprise plural form to those skilled in the art of the present technique. Should be further understood that, the wording " comprising " used in the specification sheets of the present invention refers to there is described feature, integer, step, operation, element and/or assembly, but does not get rid of and exist or add other features one or more, integer, step, operation, element, assembly and/or their group.
It can be appreciated that unless otherwise defined, all terms used herein (comprise technical term and scientific terminology) to those skilled in the art of the present technique, have the meaning identical with the general understanding of the those of ordinary skill in art of the present invention. It should be further understood that those terms of definition in such as general dictionary, it should it is understood to that there is the meaning consistent with the meaning in the context of prior art, and unless by specific definitions, otherwise can not explain by idealized or too formal implication.
Fig. 1 diagrammatically illustrates the method flow schematic diagram of the renewal application program of one embodiment of the invention.
With reference to Fig. 1, the method for the renewal application program of the embodiment of the present invention specifically comprises the following steps:
S11, the application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth. Wherein, the using state of described renewal bandwidth used at least comprises the current real-time occupancy of bandwidth.
It should be noted that, the executive agent of the method for present embodiment is service end. Terminal in the present embodiment is the equipment such as computer, mobile phone, panel computer, palm PC PDA or notebook, certainly, also can be the equipment that other have speed measuring function, and this is not limited by the present invention.
It should be noted that, the application program in the present embodiment comprises the application program that browser application, virus killing application program, chat application and other needs carry out upgrading, and this is not limited by the present invention. Application program update in the present embodiment, comprises the edition upgrading of application program and the file update of application program, wherein, the edition upgrading of application program, e.g., 360 browsers are raised to 8.0 etc. from 7.0; The file update of application program, e.g., the renewal in the virus document storehouse of virus investigation application.
It will be appreciated that the application program update instruction that described terminal triggers can be regarded as the application program update startup instruction that terminal triggers. Renewal corresponding to the application program update instruction in the present embodiment is downloaded and is all limited to same bandwidth (namely upgrading bandwidth used), and similar file in download corresponding to application program update instruction is all through same bandwidth and realizes.
In specific implementation, described application program update instruction triggers by multiple mode, such as: start triggers, or, the triggering etc. automatically of default time. The present invention does not need the triggering to specifically what kind of pattern realizing application program update instruction according to limit, and those skilled in the art need to arrange according to practical application.
S12, the terminal ratio carrying out application program update according to the real-time occupancy of described bandwidth and the adjustment of default bandwidth threshold, to realize the renewal of application program.
In the present embodiment, bandwidth threshold is preset to arrange. Concrete, can according to actual update status or history more new data arrange.
In a particular application, service end is by the real-time occupancy according to renewal bandwidth used and presets the terminal ratio that the bandwidth threshold adjustment arranged carries out application program update, to realize the renewal of application program.
The method of the renewal application program that the embodiment of the present invention provides, by the application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth, and the real-time occupancy and default bandwidth threshold according to described bandwidth adjusts the terminal ratio carrying out application program update, to complete the renewal of application program. Present invention achieves the automatic adjustment upgrading ratio in application program update process, Deterministic service operability without increase in bandwidth.
An optional embodiment according to the present invention, the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, specifically comprise the following steps: the real-time occupancy of described bandwidth and described default bandwidth threshold are compared; If the real-time occupancy of described bandwidth is more than or equal to described default bandwidth threshold, then the terminal ratio that current application program upgrades is reduced the first preset ratio; If the real-time occupancy of described bandwidth is less than described default bandwidth threshold, then the terminal ratio that current application program upgrades is increased by the 2nd preset ratio.
In a particular application, service end is by comparing the real-time occupancy upgrading bandwidth used monitored with the bandwidth threshold preset, when the real-time occupancy upgrading bandwidth used is more than or equal to default bandwidth threshold, the terminal ratio that current application program upgrades is reduced the first preset ratio, when the real-time occupancy upgrading bandwidth used is less than described default bandwidth threshold, terminal ratio current application program upgraded increases by the 2nd preset ratio, and then achieve the automatic adjustment upgrading ratio in application program update process, Deterministic service operability without increase in bandwidth.
In a concrete example, about usual morning peak and evening peak time period application program update request amount be 3 at ordinary times times, upgrade bandwidth used fully loaded time, server can return mistake, cause service unavailable, and then make the user upgraded occur interrupting, even can cause the situations such as snowslide, cause all users to upgrade failure. For addressing this problem, in the present embodiment, each service end reads local network interface card flow, the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth, if occupancy exceedes or equals bandwidth threshold in real time, the terminal ratio that current application program upgrades being reduced the first preset ratio, if being less than bandwidth threshold, terminal ratio current application program upgraded increases by the 2nd preset ratio.
Wherein, bandwidth threshold can be set as about the 80-90% of total bankwidth, and these data are theoretical value, in a particular application, can adjust according to product up-gradation size and number. The value of the first preset ratio and the 2nd preset ratio, can be set as 10% or 5%, those skilled in the art can according to reality more new state arrange, this is not specifically limited by the present invention.
According to a preferred embodiment of the present invention, described first preset ratio is greater than described 2nd preset ratio, and described first preset ratio and described 2nd preset ratio are all greater than 0.
In the present embodiment, further define the first preset ratio and the value of the 2nd preset ratio, it is greater than described 2nd preset ratio by setting the first preset ratio, and described first preset ratio and described 2nd preset ratio are all greater than 0, adopt the strategy that speed slows down and increases, speed subtracts: owing to peak period bandwidth is easily uprushed, and speed subtracts can rapid recovery pressure. Slow increasing: prevent increasing too fast bandwidth and be fully loaded with, optimize the automatic adjustment upgrading ratio in application program update process further, to guarantee service operability.
In a concrete example, the first preset ratio value is the 10%, two preset ratio value is 2%, then reduces upgrade proportion 10% when the real-time occupancy upgrading bandwidth used exceedes bandwidth threshold, if being less than threshold value, rise 2% ratio.
According to a preferred embodiment of the present invention, carry out the terminal ratio of application program update at the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold before, described method also comprises: according to history more new record, it is determined that preset time period.
The embodiment of the present invention, by the power that is updated to of the update times on the same day and terminal is added up and is runed, and upgrade history more new record according to statistic data, and according to history more new record, it is determined that preset time period, to avoid ratio adjustment frequently, the resource consumption brought and system pressure, or, adjust not in time by ratio, the renewal efficiency brought is low or bandwidth fully loaded. Optimize the automatic adjustment upgrading ratio in application program update process further, to guarantee service operability.
Further, the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, specifically comprise: according to the real-time occupancy of described bandwidth and default bandwidth threshold, periodically adjust the terminal ratio of application program update according to preset time period.
The embodiment of the present invention, the terminal ratio of application program update is periodically adjusted according to preset time period, even if the adjustment of the terminal ratio of application program update can be realized, optimize the automatic adjustment upgrading ratio in application program update process further, to guarantee service operability.
Fig. 2 diagrammatically illustrates the method flow schematic diagram of the renewal application program of one embodiment of the invention.
With reference to Fig. 2, the method for the renewal application program of the embodiment of the present invention specifically comprises the following steps:
S21, the application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth. Wherein, the using state of described renewal bandwidth used at least comprises the current real-time occupancy of bandwidth.
S22, the terminal ratio carrying out application program update according to the real-time occupancy of described bandwidth and the adjustment of default bandwidth threshold, to realize the renewal of application program.
Above-mentioned step S21 is identical with step S12 with the step S11 of method shown in step S22 and Fig. 1, does not repeat them here.
S23, terminal for each triggering application program update instruction generate a randomized number, will meet terminal corresponding to pre-conditioned randomized number and be defined as currently carrying out the terminal of application program update.
In a concrete example, the terminal that server is each triggering application program update instruction generates a randomized number (0-100), terminal corresponding to pre-conditioned randomized number will be met, the terminal that randomized number as generated is less than 60, it is defined as currently carrying out the terminal of application program update, do not meet the terminal that pre-conditioned randomized number is corresponding, the terminal that the randomized number as generated is less than 60, then again ask upgrading according to the designated time.
The embodiment of the present invention, service end is after the real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, further for the terminal of each triggering application program update instruction generates a randomized number, terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update, and then realize the determination currently carrying out the terminal of application program update.
The present embodiment, by realizing, by the mode of service end generation randomized number, the determination currently carrying out the terminal of application program update, is convenient to service end and the lastest imformation of terminal is managed.
Fig. 3 diagrammatically illustrates the method flow schematic diagram of the renewal application program of one embodiment of the invention.
With reference to Fig. 3, the method for the renewal application program of the embodiment of the present invention specifically comprises the following steps:
S31, the application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth. Wherein, the using state of described renewal bandwidth used at least comprises the current real-time occupancy of bandwidth.
S32, the terminal ratio carrying out application program update according to the real-time occupancy of described bandwidth and the adjustment of default bandwidth threshold, to realize the renewal of application program.
Above-mentioned step S31 is identical with step S12 with the step S11 of method shown in step S32 and Fig. 1, does not repeat them here.
S33, send generating random number instruction to the terminal of each triggering application program update instruction, so that each terminal generates corresponding randomized number.
Wherein, the numerical range of the randomized number that each terminal of described generating random number directives prescribe generates, and meet in the specified range of described pre-conditioned randomized number in described numerical range.
S34, terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update.
In a concrete example, server sends generating random number instruction to the terminal of each triggering application program update instruction, so that each terminal generates corresponding randomized number (0-100), terminal corresponding to pre-conditioned randomized number will be met, the terminal that randomized number as generated is less than 60, it is determined that for currently carrying out the terminal of application program update, do not meet the terminal that pre-conditioned randomized number is corresponding, the terminal that randomized number as generated is less than 60, then ask upgrading again according to the designated time.
The embodiment of the present invention, after the real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, generating random number instruction is sent further to the terminal of each triggering application program update instruction, so that each terminal generates corresponding randomized number, and at generating random number directives prescribe the numerical range of the randomized number that each terminal generates, and meet in the specified range of described pre-conditioned randomized number in described numerical range, terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update, and then realize the determination currently carrying out the terminal of application program update.
The present embodiment, service end sends generating random number instruction to the terminal of each triggering application program update instruction, the determination currently carrying out the terminal of application program update is realized by the mode of the randomized number generating correspondence by each terminal, reduce the consumption to service end resource, can effectively improve the computing velocity of randomized number, quick realization currently carries out the determination of the terminal of application program update, and then improves the speed of terminal applies program updates.
According to a preferred embodiment of the present invention, the method for the renewal application program that the embodiment of the present invention provides also comprises step: send the time next time asking to upgrade to the terminal currently not carrying out application program update.
The embodiment of the present invention, the terminal ratio of application program update is carried out at the real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold, and after determining the terminal currently carrying out application program update, the time next time asking to upgrade by sending to the terminal currently not carrying out application program update further, so that terminal asks to upgrade according to the designated time again, thus ensure that all terminals all can realize the renewal of application program smoothly.
An optional embodiment according to the present invention, in the described application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, with obtain described bandwidth real-time occupancy before, described method also comprises: according to history more new record, it is determined that upgrade bandwidth used.
The embodiment of the present invention, by the power that is updated to of the update times on the same day and terminal is added up and runed, and upgrades history more new record according to statistic data. And then the application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, with obtain described bandwidth real-time occupancy before, according to history more new record, it is determined that upgrade bandwidth used.
An optional embodiment according to the present invention, carry out the terminal ratio of application program update at the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold before, described method also comprises: according to history more new record, it is determined that described default bandwidth threshold.
The embodiment of the present invention, by the power that is updated to of the update times on the same day and terminal is added up and runed, and upgrades history more new record according to statistic data. And then before the described real-time occupancy according to described bandwidth and default bandwidth threshold adjust the terminal ratio carrying out application program update, according to history more new record, it is determined that described default bandwidth threshold.
The embodiment of the present invention, got ready by terminal, server request statistics and bandwidth figure carry out data mining, determine to upgrade bandwidth used, adjustment bandwidth threshold and ratio the configuration such as to adjust frequency according to statistics, if it is too high by ratio controlled frequency per capita, within one day, all do not upgrade successfully, can checking the ratio control mean value of each server room, the server room minimum to mean value increases bandwidth, shoots the arrow at the target. Increase bandwidth, the unnecessary economic waste caused after avoiding the unnecessary wasting of resources with being fully loaded with temporarily.
Fig. 4 diagrammatically illustrates the method flow schematic diagram of the renewal application program of one embodiment of the invention.
With reference to Fig. 4, the method for the renewal application program of the embodiment of the present invention specifically comprises the following steps:
S41, transmission application program update instruction, described application program update instruction comprises terminal and carries out listed files needed for application program update.
Concrete, the upgrade interface of agreement it is configured with between terminal and service end, when terminal is upgraded, first ask indexed file, indexed file comprises listed files corresponding to upgrading, then sending application program update instruction to service end, described application program update instruction comprises terminal and carries out listed files needed for application program update.
It should be noted that, the executive agent of the method for present embodiment is terminal.Terminal in the present embodiment is the equipment such as computer, mobile phone, panel computer, palm PC PDA or notebook, certainly, also can be the equipment that other have speed measuring function, and this is not limited by the present invention.
It should be noted that, the application program in the present embodiment comprises the application program that browser application, virus killing application program, chat application and other needs carry out upgrading, and this is not limited by the present invention. Application program update in the present embodiment, comprises the edition upgrading of application program and the file update of application program, wherein, the edition upgrading of application program, e.g., 360 browsers are raised to 8.0 etc. from 7.0; The file update of application program, e.g., the renewal in the virus document storehouse of virus investigation application.
It will be appreciated that renewal corresponding to application program update instruction in the present embodiment is downloaded all is limited to same bandwidth (namely upgrading bandwidth used), similar file in download corresponding to application program update instruction is all through same bandwidth and realizes.
The renewal response information that S42, reception service end listed files needed for described application program update return.
In a particular application, terminal sends application program update instruction, described application program update instruction comprises terminal and carries out listed files needed for application program update, so that service end according to carrying out listed files needed for application program update, the real-time occupancy upgrading bandwidth used that monitors and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, and after ratio adjusts, determine whether terminal is the terminal currently carrying out application program update, and send to terminal and upgrade response information.
Concrete, service end is after the real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, further by generating the mode of a randomized number for the terminal of each triggering application program update instruction, it is determined that whether terminal is the terminal currently carrying out application program update. The terminal that randomized number as generated is less than 60, it is determined that for currently carrying out the terminal of application program update, do not meet the terminal that pre-conditioned randomized number is corresponding, the randomized number as generated is more than or equal to the terminal of 60, then again ask upgrading according to the designated time. Achieve the automatic adjustment upgrading ratio in application program update process, Deterministic service operability without increase in bandwidth.
Upgrade if the instruction of S43 described renewal response information does not allow described terminal to carry out this, then from described renewal failure response information, obtain the time next time asking to upgrade.
Further, described method also comprises: upgrades if the instruction of described renewal response information allows described terminal to carry out this, then performs the renewal of described application program.
The embodiment of the present invention, by sending the time asking to upgrade to the terminal currently not carrying out application program update next time, so that terminal asks to upgrade according to the designated time again, thus ensure that terminal finally can realize the renewal of application program smoothly.
Fig. 5 diagrammatically illustrates the method flow schematic diagram of the renewal application program of one embodiment of the invention.
With reference to Fig. 5, the method for the renewal application program of the embodiment of the present invention specifically comprises the following steps:
S51, transmission application program update instruction, so that service end sends generating random number instruction according to described application program update instruction.
Concrete, the upgrade interface of agreement it is configured with between terminal and service end, when terminal is upgraded, first ask indexed file, indexed file comprises listed files corresponding to upgrading, then sending application program update instruction to service end, described application program update instruction comprises terminal and carries out listed files needed for application program update.
Wherein, the numerical range of the randomized number that each terminal of described generating random number directives prescribe generates, and meet in the specified range of described pre-conditioned randomized number in described numerical range.
It should be noted that, the executive agent of the method for present embodiment is terminal. Terminal in the present embodiment is the equipment such as computer, mobile phone, panel computer, palm PC PDA or notebook, certainly, also can be the equipment that other have speed measuring function, and this is not limited by the present invention.
S52, the generating random number instruction receiving described service end and sending, generate corresponding randomized number.
The present embodiment, sends generating random number instruction by receiving service end to terminal, realizes, by the mode of the randomized number generating correspondence by terminal, the determination currently carrying out the terminal of application program update. And then reduce the consumption to service end resource, it is possible to effectively improving the computing velocity of randomized number, quick realization currently carries out the determination of the terminal of application program update, and then improves the speed of terminal applies program updates.
If the randomized number that S53 generates does not meet described pre-conditioned, then obtain the time next time asking to upgrade to described service end.
Concrete, after service end sends generating random number instruction to terminal, terminal generates corresponding randomized number (0-100), terminal corresponding to pre-conditioned randomized number will be met, the terminal that randomized number as generated is less than 60, it is determined that for currently carrying out the terminal of application program update, do not meet the terminal that pre-conditioned randomized number is corresponding, randomized number as generated is more than or equal to the terminal of 60, then again ask upgrading according to the designated time. Achieve the automatic adjustment upgrading ratio in application program update process, Deterministic service operability without increase in bandwidth.
Further, described method also comprises: if the randomized number generated meets described pre-conditioned, then send to service end and upgrade confirmation message, carry out application program update.
The embodiment of the present invention, terminal is by sending application program update instruction, so that service end sends generating random number instruction according to described application program update instruction, according to generating random number instruction, generate corresponding randomized number, when the randomized number generated does not meet described pre-conditioned, then obtain the time next time asking to upgrade to described service end, so that terminal asks to upgrade according to the designated time again, thus ensure that terminal finally can realize the renewal of application program smoothly.
Fig. 6 diagrammatically illustrates the structural representation of the device of the renewal application program of one embodiment of the invention.
With reference to Fig. 6, the device of the renewal application program of the embodiment of the present invention specifically comprises monitoring means 601 and adjustment unit 602, wherein:
Described monitoring means 601, is suitable in response to the application program update instruction that terminal triggers, and the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth;
Described adjustment unit 602, is suitable for the real-time occupancy of bandwidth that obtains according to described monitoring means 601 and the bandwidth threshold adjustment preset carries out the terminal ratio of application program update, to realize the renewal of application program.
An optional embodiment according to the present invention, described adjustment unit, specifically be suitable for comparing the real-time occupancy of described bandwidth and described default bandwidth threshold, if the real-time occupancy of described bandwidth is more than or equal to described default bandwidth threshold, then the terminal ratio that current application program upgrades is reduced the first preset ratio, if the real-time occupancy of described bandwidth is less than described default bandwidth threshold, then the terminal ratio that current application program upgrades is increased by the 2nd preset ratio.
An optional embodiment according to the present invention, described first preset ratio is greater than described 2nd preset ratio, and described first preset ratio and described 2nd preset ratio are all greater than 0.
An optional embodiment according to the present invention, described device also comprises:
First determining unit, is suitable for before the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, according to history more new record, it is determined that preset time period;
Correspondingly, described adjustment unit, the bandwidth threshold being specifically suitable for the real-time occupancy according to described bandwidth and presetting, periodically adjusts the terminal ratio of application program update according to preset time period.
An optional embodiment according to the present invention, described device also comprises:
2nd determining unit, be suitable for after the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, for the terminal of each triggering application program update instruction generates a randomized number, terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update.
An optional embodiment according to the present invention, described device also comprises:
3rd determining unit, be suitable for after the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, generating random number instruction is sent to the terminal of each triggering application program update instruction, so that each terminal generates corresponding randomized number, terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update.
An optional embodiment according to the present invention, described device also comprises:
Send unit, be suitable for sending the time next time asking to upgrade to the terminal currently not carrying out application program update.
An optional embodiment according to the present invention, described device also comprises:
4th determining unit, is suitable in the described application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, with obtain described bandwidth real-time occupancy before, according to history more new record, it is determined that upgrade bandwidth used.
An optional embodiment according to the present invention, described device also comprises:
5th determining unit, is suitable for before the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, according to history more new record, it is determined that described default bandwidth threshold.
Fig. 7 diagrammatically illustrates the structural representation of the device of the renewal application program of one embodiment of the invention.
With reference to Fig. 7, the device of the renewal application program of the embodiment of the present invention specifically comprises transmission unit 701, receives unit 702 and acquiring unit 703, wherein:
Described transmission unit 701, is suitable for sending application program update instruction, and described application program update instruction comprises terminal and carries out listed files needed for application program update;
Described reception unit 702, is suitable for the renewal response information that reception service end listed files needed for described application program update returns;
Described acquiring unit 703, is suitable for obtaining, when the renewal response information instruction that described reception unit receives does not allow described terminal to carry out this renewal, the time next time asking to upgrade from described renewal failure response information.
An optional embodiment according to the present invention, described device also comprises:
Updating block, is suitable for performing the renewal of described application program when the renewal response information instruction that described reception unit receives allows described terminal to carry out this renewal.
Fig. 8 diagrammatically illustrates the structural representation of the device of the renewal application program of one embodiment of the invention.
With reference to Fig. 8, the device of the renewal application program of the embodiment of the present invention specifically comprises transmission unit 801, generates unit 802 and acquiring unit 803, wherein:
Described transmission unit 801, is suitable for sending application program update instruction, so that service end sends generating random number instruction according to described application program update instruction;
Described generation unit 802, is suitable for receiving the generating random number instruction of described service end transmission, generates corresponding randomized number;
Described acquiring unit 803, be suitable for when described generation unit generate randomized number do not meet described pre-conditioned time, to described service end obtain next time ask upgrade time;
Wherein, the numerical range of the randomized number that each terminal of described generating random number directives prescribe generates, and meet in the specified range of described pre-conditioned randomized number in described numerical range.
An optional embodiment according to the present invention, described device also comprises:
Updating block, be suitable for when described generation unit generate randomized number meet described pre-conditioned time, to service end send upgrade confirmation message, carry out application program update.
For device embodiment, due to itself and embodiment of the method basic simlarity, so what describe is fairly simple, relevant part illustrates see the part of embodiment of the method.
In sum, the method of the renewal application program that the embodiment of the present invention provides and device, by the application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth, and the real-time occupancy and default bandwidth threshold according to described bandwidth adjusts the terminal ratio carrying out application program update, to complete the renewal of application program. Present invention achieves the automatic adjustment upgrading ratio in application program update process, Deterministic service operability without increase in bandwidth.
It should be noted that it is not intrinsic relevant to any certain computer, virtual system or other equipment with formula at this algorithm provided. Various general-purpose system can also with use based on together with this example. According to description above, it is to construct the structure required by this type systematic is apparent. In addition, the present invention is not also for any certain programmed language. It should be appreciated that various programming language can be utilized to realize the content of the present invention described here, and the description done by language-specific above is the preferred forms in order to disclose the present invention.
In specification sheets mentioned herein, describe a large amount of detail. However, it is understood that embodiments of the invention can be put into practice when not having these details. In some instances, it is not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, it is to be understood that, one or more in order to what simplify the present invention and help to understand in all respects of the present invention, above to, in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes. But, the method for the disclosure and device should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim. More properly say, as claim book reflect, inventive aspect is all features less than disclosed single embodiment above.Therefore, the claim book following embodiment is thus incorporated to this embodiment clearly, and wherein each claim itself is as the independent embodiment of the present invention.
Those skilled in the art it can be appreciated that the module in the equipment in embodiment can be carried out adaptively change and they are arranged in one or more equipment different from this embodiment. Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule block or subelement or subgroup part can be put them in addition. Except at least some in such feature and/or process or unit mutually repels, it is possible to adopt any combination all processes or the unit of all features disclosed in this specification sheets (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment to be combined. Unless expressly stated otherwise, each feature disclosed in this specification sheets (comprising adjoint claim, summary and accompanying drawing) can by providing alternative features that is identical, equivalent or similar object to replace.
In addition, the technician of this area can understand, although embodiments more described herein comprise in other embodiment some included feature instead of further feature, but the combination of the feature of different embodiment means to be within the scope of the present invention and forms different embodiments.
Each parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more treater, or realizes with their combination. It will be understood by one skilled in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize the some or all parts in web portal security test set according to embodiments of the present invention. Such as, the present invention can also be embodied as part or all the equipment for performing method as described herein or device program (computer program and computer program). The program of such the present invention of realization can store on a computer-readable medium, or can have the form of one or more signal. Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The above is only the part enforcement mode of the present invention; it is noted that for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.
The present invention discloses A1, a kind of method upgrading application program, comprising:
In response to the application program update instruction that terminal triggers, the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth;
Real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, to realize the renewal of application program.
A2, method as described in A1, the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, specifically comprise:
The real-time occupancy of described bandwidth and described default bandwidth threshold are compared;
If the real-time occupancy of described bandwidth is more than or equal to described default bandwidth threshold, then the terminal ratio that current application program upgrades is reduced the first preset ratio;
If the real-time occupancy of described bandwidth is less than described default bandwidth threshold, then the terminal ratio that current application program upgrades is increased by the 2nd preset ratio.
A3, method as described in A2, described first preset ratio is greater than described 2nd preset ratio, and described first preset ratio and described 2nd preset ratio are all greater than 0.
Method as described in A4, item as arbitrary in A1-A3, carry out the terminal ratio of application program update at the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold before, described method also comprises:
According to history more new record, it is determined that preset time period;
Correspondingly, the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, specifically comprise:
Real-time occupancy according to described bandwidth and the bandwidth threshold preset, periodically adjust the terminal ratio of application program update according to preset time period.
Method as described in A5, item as arbitrary in A1-A3, after the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, described method also comprises:
For the terminal of each triggering application program update instruction generates a randomized number, terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update.
Method as described in A6, item as arbitrary in A1-A3, after the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, described method also comprises:
Generating random number instruction is sent, so that each terminal generates corresponding randomized number to the terminal of each triggering application program update instruction;
Terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update.
Method as described in A7, item as arbitrary in A1-A3, described method also comprises:
The time next time asking to upgrade is sent to the terminal currently not carrying out application program update.
Method as described in A8, item as arbitrary in A1-A3, in the described application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, with obtain described bandwidth real-time occupancy before, described method also comprises:
According to history more new record, it is determined that upgrade bandwidth used.
A9, method as described in A2 or A3, carry out the terminal ratio of application program update at the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset before, described method also comprises:
According to history more new record, it is determined that described default bandwidth threshold.
B10, a kind of method upgrading application program, comprising:
Sending application program update instruction, described application program update instruction comprises terminal and carries out listed files needed for application program update;
Receive the renewal response information that service end listed files needed for described application program update returns;
Upgrade if the instruction of described renewal response information does not allow described terminal to carry out this, then from described renewal failure response information, obtain the time next time asking to upgrade.
B11, method as described in B10, described method also comprises:
Upgrade if the instruction of described renewal response information allows described terminal to carry out this, then perform the renewal of described application program.
C12, a kind of method upgrading application program, comprising:
Send application program update instruction, so that service end sends generating random number instruction according to described application program update instruction;
Receive the generating random number instruction that described service end sends, generate corresponding randomized number;
If the randomized number generated does not meet described pre-conditioned, then obtain the time next time asking to upgrade to described service end;
Wherein, the numerical range of the randomized number that each terminal of described generating random number directives prescribe generates, and meet in the specified range of described pre-conditioned randomized number in described numerical range.
C13, method as described in C12, described method also comprises:
If the randomized number generated meets described pre-conditioned, then send to service end and upgrade confirmation message, carry out application program update.
D14, a kind of device upgrading application program, comprising:
Monitoring means, is suitable in response to the application program update instruction that terminal triggers, and the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth;
Adjustment unit, is suitable for the real-time occupancy of bandwidth that obtains according to described monitoring means and the bandwidth threshold adjustment preset carries out the terminal ratio of application program update, to realize the renewal of application program.
D15, device as described in D14, described adjustment unit, specifically be suitable for comparing the real-time occupancy of described bandwidth and described default bandwidth threshold, if the real-time occupancy of described bandwidth is more than or equal to described default bandwidth threshold, then the terminal ratio that current application program upgrades is reduced the first preset ratio, if the real-time occupancy of described bandwidth is less than described default bandwidth threshold, then the terminal ratio that current application program upgrades is increased by the 2nd preset ratio.
D16, device as described in D15, described first preset ratio is greater than described 2nd preset ratio, and described first preset ratio and described 2nd preset ratio are all greater than 0.
Device as described in D17, item as arbitrary in D14-D16, described device also comprises:
First determining unit, is suitable for before the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, according to history more new record, it is determined that preset time period;
Correspondingly, described adjustment unit, the bandwidth threshold being specifically suitable for the real-time occupancy according to described bandwidth and presetting, periodically adjusts the terminal ratio of application program update according to preset time period.
Device as described in D18, item as arbitrary in D14-D16, described device also comprises:
2nd determining unit, be suitable for after the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, for the terminal of each triggering application program update instruction generates a randomized number, terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update.
Device as described in D19, item as arbitrary in D14-D16, described device also comprises:
3rd determining unit, be suitable for after the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, generating random number instruction is sent to the terminal of each triggering application program update instruction, so that each terminal generates corresponding randomized number, terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update.
Device as described in D20, item as arbitrary in D14-D16, described device also comprises:
Send unit, be suitable for sending the time next time asking to upgrade to the terminal currently not carrying out application program update.
D21, seeking the device as described in the arbitrary item of 14-D16 such as D, described device also comprises:
4th determining unit, is suitable in the described application program update instruction triggered in response to terminal, the using state of Monitoring and Update bandwidth used, with obtain described bandwidth real-time occupancy before, according to history more new record, it is determined that upgrade bandwidth used.
D22, device as described in D15 or D16, described device also comprises:
5th determining unit, is suitable for before the described real-time occupancy according to described bandwidth and the adjustment of default bandwidth threshold carry out the terminal ratio of application program update, according to history more new record, it is determined that described default bandwidth threshold.
E23, a kind of device upgrading application program, comprising:
Sending unit, be suitable for sending application program update instruction, described application program update instruction comprises terminal and carries out listed files needed for application program update;
Receive unit, be suitable for the renewal response information that reception service end listed files needed for described application program update returns;
Acquiring unit, is suitable for obtaining, when the renewal response information instruction that described reception unit receives does not allow described terminal to carry out this renewal, the time next time asking to upgrade from described renewal failure response information.
E24, device as described in E23, described device also comprises:
Updating block, is suitable for performing the renewal of described application program when the renewal response information instruction that described reception unit receives allows described terminal to carry out this renewal.
F25, a kind of device upgrading application program, comprising:
Send unit, be suitable for sending application program update instruction, so that service end sends generating random number instruction according to described application program update instruction;
Generate unit, be suitable for receiving the generating random number instruction of described service end transmission, generate corresponding randomized number;
Acquiring unit, be suitable for when described generation unit generate randomized number do not meet described pre-conditioned time, to described service end obtain next time ask upgrade time;
Wherein, the numerical range of the randomized number that each terminal of described generating random number directives prescribe generates, and meet in the specified range of described pre-conditioned randomized number in described numerical range.
F26, device as described in F25, described device also comprises:
Updating block, be suitable for when described generation unit generate randomized number meet described pre-conditioned time, to service end send upgrade confirmation message, carry out application program update.

Claims (10)

1. upgrade a method for application program, comprising:
In response to the application program update instruction that terminal triggers, the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth;
Real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, to realize the renewal of application program.
2. the method for claim 1, the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, specifically comprise:
The real-time occupancy of described bandwidth and described default bandwidth threshold are compared;
If the real-time occupancy of described bandwidth is more than or equal to described default bandwidth threshold, then the terminal ratio that current application program upgrades is reduced the first preset ratio;
If the real-time occupancy of described bandwidth is less than described default bandwidth threshold, then the terminal ratio that current application program upgrades is increased by the 2nd preset ratio.
3. method as claimed in claim 2, described first preset ratio is greater than described 2nd preset ratio, and described first preset ratio and described 2nd preset ratio are all greater than 0.
4. method as described in item as arbitrary in claim 1-3, carry out the terminal ratio of application program update at the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset before, described method also comprises:
According to history more new record, it is determined that preset time period;
Correspondingly, the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, specifically comprise:
Real-time occupancy according to described bandwidth and the bandwidth threshold preset, periodically adjust the terminal ratio of application program update according to preset time period.
5. method as described in item as arbitrary in claim 1-3, after the described real-time occupancy according to described bandwidth and the bandwidth threshold adjustment preset carry out the terminal ratio of application program update, described method also comprises:
For the terminal of each triggering application program update instruction generates a randomized number, terminal corresponding to pre-conditioned randomized number will be met it is defined as currently carrying out the terminal of application program update.
6. upgrade a method for application program, comprising:
Sending application program update instruction, described application program update instruction comprises terminal and carries out listed files needed for application program update;
Receive the renewal response information that service end listed files needed for described application program update returns;
Upgrade if the instruction of described renewal response information does not allow described terminal to carry out this, then from described renewal failure response information, obtain the time next time asking to upgrade.
7. upgrade a method for application program, comprising:
Send application program update instruction, so that service end sends generating random number instruction according to described application program update instruction;
Receive the generating random number instruction that described service end sends, generate corresponding randomized number;
If the randomized number generated does not meet described pre-conditioned, then obtain the time next time asking to upgrade to described service end;
Wherein, the numerical range of the randomized number that each terminal of described generating random number directives prescribe generates, and meet in the specified range of described pre-conditioned randomized number in described numerical range.
8. upgrade a device for application program, comprising:
Monitoring means, is suitable in response to the application program update instruction that terminal triggers, and the using state of Monitoring and Update bandwidth used, to obtain the real-time occupancy of described bandwidth;
Adjustment unit, is suitable for the real-time occupancy of bandwidth that obtains according to described monitoring means and the bandwidth threshold adjustment preset carries out the terminal ratio of application program update, to realize the renewal of application program.
9. upgrade a device for application program, comprising:
Sending unit, be suitable for sending application program update instruction, described application program update instruction comprises terminal and carries out listed files needed for application program update;
Receive unit, be suitable for the renewal response information that reception service end listed files needed for described application program update returns;
Acquiring unit, is suitable for obtaining, when the renewal response information instruction that described reception unit receives does not allow described terminal to carry out this renewal, the time next time asking to upgrade from described renewal failure response information.
10. upgrade a device for application program, comprising:
Send unit, be suitable for sending application program update instruction, so that service end sends generating random number instruction according to described application program update instruction;
Generate unit, be suitable for receiving the generating random number instruction of described service end transmission, generate corresponding randomized number;
Acquiring unit, be suitable for when described generation unit generate randomized number do not meet described pre-conditioned time, to described service end obtain next time ask upgrade time;
Wherein, the numerical range of the randomized number that each terminal of described generating random number directives prescribe generates, and meet in the specified range of described pre-conditioned randomized number in described numerical range.
CN201510998597.8A 2015-12-25 2015-12-25 Method and device for updating application program Active CN105656810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510998597.8A CN105656810B (en) 2015-12-25 2015-12-25 Method and device for updating application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510998597.8A CN105656810B (en) 2015-12-25 2015-12-25 Method and device for updating application program

Publications (2)

Publication Number Publication Date
CN105656810A true CN105656810A (en) 2016-06-08
CN105656810B CN105656810B (en) 2020-02-07

Family

ID=56477965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510998597.8A Active CN105656810B (en) 2015-12-25 2015-12-25 Method and device for updating application program

Country Status (1)

Country Link
CN (1) CN105656810B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375475A (en) * 2016-09-30 2017-02-01 乐视控股(北京)有限公司 Application program update data packet downloading processing method and apparatus
CN106452916A (en) * 2016-11-21 2017-02-22 北京小米移动软件有限公司 Method and device for acquiring service quality information, client and server
CN108599976A (en) * 2018-02-13 2018-09-28 广东省电信规划设计院有限公司 Network quality assessment models construction method, device and computer equipment
CN109067607A (en) * 2018-11-07 2018-12-21 网宿科技股份有限公司 A kind of method and apparatus adjusting nominal bandwidth
CN110609696A (en) * 2019-09-17 2019-12-24 广东小天才科技有限公司 Software upgrading method and system, terminal equipment and server
CN110868364A (en) * 2018-08-28 2020-03-06 阿里巴巴集团控股有限公司 Bandwidth isolation device and method
CN111259019A (en) * 2020-01-09 2020-06-09 腾讯科技(深圳)有限公司 Resource allocation method, device, equipment and storage medium
CN115022171A (en) * 2022-06-16 2022-09-06 平安普惠企业管理有限公司 Optimization method and device for updating interface, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594630A (en) * 2009-06-30 2009-12-02 中兴通讯股份有限公司 Uplink congestion detection and flow control methods and equipment
CN101626334A (en) * 2009-08-10 2010-01-13 中兴通讯股份有限公司 Method and device for controlling communication bus
CN102045321A (en) * 2009-10-23 2011-05-04 阿里巴巴集团控股有限公司 Flow control method and system for software downloading
CN103001985A (en) * 2011-09-14 2013-03-27 腾讯科技(深圳)有限公司 Method for controlling server bandwidth in software upgrading, upgrading configuration server and upgrading configuration system
US8970627B2 (en) * 2009-09-14 2015-03-03 Samsung Electronics Co., Ltd. Method and apparatus for setting navigation screen update cycle in a mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101594630A (en) * 2009-06-30 2009-12-02 中兴通讯股份有限公司 Uplink congestion detection and flow control methods and equipment
CN101626334A (en) * 2009-08-10 2010-01-13 中兴通讯股份有限公司 Method and device for controlling communication bus
US8970627B2 (en) * 2009-09-14 2015-03-03 Samsung Electronics Co., Ltd. Method and apparatus for setting navigation screen update cycle in a mobile terminal
CN102045321A (en) * 2009-10-23 2011-05-04 阿里巴巴集团控股有限公司 Flow control method and system for software downloading
CN103001985A (en) * 2011-09-14 2013-03-27 腾讯科技(深圳)有限公司 Method for controlling server bandwidth in software upgrading, upgrading configuration server and upgrading configuration system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375475A (en) * 2016-09-30 2017-02-01 乐视控股(北京)有限公司 Application program update data packet downloading processing method and apparatus
CN106452916A (en) * 2016-11-21 2017-02-22 北京小米移动软件有限公司 Method and device for acquiring service quality information, client and server
CN106452916B (en) * 2016-11-21 2019-11-01 北京小米移动软件有限公司 Preparation method and device, the client and server of quality of service information
CN108599976A (en) * 2018-02-13 2018-09-28 广东省电信规划设计院有限公司 Network quality assessment models construction method, device and computer equipment
CN110868364A (en) * 2018-08-28 2020-03-06 阿里巴巴集团控股有限公司 Bandwidth isolation device and method
CN109067607A (en) * 2018-11-07 2018-12-21 网宿科技股份有限公司 A kind of method and apparatus adjusting nominal bandwidth
CN110609696A (en) * 2019-09-17 2019-12-24 广东小天才科技有限公司 Software upgrading method and system, terminal equipment and server
CN111259019A (en) * 2020-01-09 2020-06-09 腾讯科技(深圳)有限公司 Resource allocation method, device, equipment and storage medium
KR20210134047A (en) * 2020-01-09 2021-11-08 텐센트 테크놀로지(센젠) 컴퍼니 리미티드 Resource allocation method and apparatus, device, and storage medium
KR102632194B1 (en) * 2020-01-09 2024-02-01 텐센트 테크놀로지(센젠) 컴퍼니 리미티드 Resource allocation methods and apparatus, devices, and storage media
CN115022171A (en) * 2022-06-16 2022-09-06 平安普惠企业管理有限公司 Optimization method and device for updating interface, electronic equipment and readable storage medium
CN115022171B (en) * 2022-06-16 2024-05-17 北京神州数码云科信息技术有限公司 Method and device for optimizing update interface, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN105656810B (en) 2020-02-07

Similar Documents

Publication Publication Date Title
CN105656810A (en) Method and device for updating application program
CN106487708B (en) Network access request control method and device
CN109391673B (en) Method, system and terminal equipment for managing update file
CN103617057A (en) Application program installation method and device
CN104219316A (en) Method and device for processing call request in distributed system
CN110543327B (en) Service component multiplexing method, device, computer equipment and storage medium
CN103544035A (en) Application clearing method and device for mobile terminal
US20150095448A1 (en) Cloud system, control method thereof, management server and control method thereof
CN103746782A (en) Method and apparatus for obtaining feedback information of application
CN111988355A (en) Current limiting method and device, server and server cluster
CN103269347A (en) Server-side-based resource optimization method, server, client side and system
CN113961311A (en) Service data processing method, device, electronic equipment and medium
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
CN103647811A (en) A method and an apparatus for application's accessing backstage service
CN111666167A (en) Input event reading processing optimization method, nonvolatile memory and terminal equipment
CN104184817A (en) Download optimizing method and device and terminal
WO2007006859A1 (en) Method and device arrangement for managing a client/server environment
CN114185734A (en) Cluster monitoring method and device and electronic equipment
CN105681073A (en) Application program updating method and device
CN111294377A (en) Network request sending method of dependency relationship, terminal device and storage medium
CN104717286A (en) Data processing method, terminal, server and system
CN104468505A (en) Safety audit log playing method and device
EP3827578B1 (en) Managing operations associated with an object on iot enabled devices
CN114553859A (en) BMC configuration management method and device, electronic equipment and storage medium
CN113747423A (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240103

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right