CN105607936A - Server version updating method and device - Google Patents

Server version updating method and device Download PDF

Info

Publication number
CN105607936A
CN105607936A CN201510997726.1A CN201510997726A CN105607936A CN 105607936 A CN105607936 A CN 105607936A CN 201510997726 A CN201510997726 A CN 201510997726A CN 105607936 A CN105607936 A CN 105607936A
Authority
CN
China
Prior art keywords
server
ratio
version updating
cluster
version
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510997726.1A
Other languages
Chinese (zh)
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
Qizhi Software Beijing 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 CN201510997726.1A priority Critical patent/CN105607936A/en
Publication of CN105607936A publication Critical patent/CN105607936A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a server version updating method and device, and relates to the technical field of servers. The method includes the steps that a version updating file is obtained; the ratio of servers conducting version updating in a server cluster is determined according to the version updating file; the servers to be updated in the server cluster are determined according to the ratio; the version updating file is pushed to the servers to be updated to update the versions of the servers to be updated. By means of the scheme, when it is found that the version updating file has problems, rollback can be conducted in time, and normal service processing of the server cluster will not be affected.

Description

Server version update method and device
Technical field
The present invention relates to server technology field, particularly a kind of server version update methodAnd device.
Background technology
Server, also claims servomechanism, is to provide the equipment of calculation services. Because server needsResponse service request, and process, therefore in general server should possess the business of bearing alsoAnd the ability of the business of guarantee.
Before carrying out version updating for the server in server cluster, conventionally need to understand versionWhether this transaction file has problems, so, need to carry out testing under line for a long time,After under line, test is passed through, can be by version updating file push to all services in server clusterDevice, completes the version updating of Servers-all in server cluster.
Due to the server comparatively complexity of situation in the course of the work of server cluster, although versionTransaction file has passed through to test under line, but comparatively may still existing and ask in complicated situationTopic, for addressing these problems, also needs version updating file to modify, and now serviceIn device cluster, the version of Servers-all all upgrades, only has all services in server clusterThe version of device carries out rollback, thereby has a strong impact on the locating of regular traffic of described server clusterReason.
Summary of the invention
In view of the above problems, the present invention has been proposed to provide one to overcome the problems referred to above or extremelyA kind of server version update method and the device that address the above problem to small part.
According to one aspect of the present invention, a kind of server version update method is provided, comprising:
Obtain version updating file;
Determine according to described version updating file the service of carrying out version updating in server clusterThe ratio of device;
According to the server to be updated in server cluster described in described ratio-dependent;
Described version updating file push, to described server to be updated, is treated more described in realizingThe version updating of new server.
Alternatively, described method also comprises:
According to preset strategy to carrying out the ratio of server of version updating in described server clusterExample is adjusted, and according to treating more in server cluster described in the described ratio-dependent after adjustingNew server.
Alternatively, described according to preset strategy to carrying out version updating in described server clusterThe ratio of server is adjusted, and according to server set described in the described ratio-dependent after adjustingServer to be updated in group, specifically comprises:
Determine and adjust according to the client terminal quantity that in described server cluster, each server connectsAfter described ratio, and according to adjust after described ratio to carrying out version in described server clusterThe ratio of the server of this renewal is adjusted.
Alternatively, described according to preset strategy to carrying out version updating in described server clusterThe ratio of server is adjusted, and according to server set described in the described ratio-dependent after adjustingServer to be updated in group, specifically comprises:
Determine the described ratio after adjusting according to the type of service of described server cluster, and according toDescribed ratio after adjustment is to carrying out the ratio of server of version updating in described server clusterExample is adjusted.
Alternatively, described according to preset strategy to carrying out version updating in described server clusterThe ratio of server is adjusted, and according to server set described in the described ratio-dependent after adjustingServer to be updated in group, specifically comprises:
Determine the described ratio after adjusting according to the more fresh content of described version updating file, and rootAccording to the described ratio after adjusting to carrying out the server of version updating in described server clusterRatio is adjusted.
Alternatively, described according to preset strategy to carrying out version updating in described server clusterThe ratio of server is adjusted, and according to server set described in the described ratio-dependent after adjustingServer to be updated in group, specifically comprises:
Described in after definite adjustment the in area that in described server cluster, each server is correspondingRatio, and according to the described ratio after adjusting to carrying out version updating in described server clusterThe ratio of server is adjusted.
Alternatively, described according to preset strategy to carrying out version updating in described server clusterBefore ratio is adjusted, described method also comprises:
Judge whether to reach Preset Time interval, if so, according to preset strategy to described serviceThe ratio of carrying out the server of version updating in device cluster is adjusted.
Alternatively, described in judge whether to reach Preset Time interval before, described method also comprises:
Determine described Preset Time interval according to the type of service of described server cluster.
Alternatively, described in obtain version updating file, specifically comprise:
Obtain different version updating files;
Correspondingly, describedly determine that according to described version updating file in server cluster, server entersThe ratio of row version updating, specifically comprises:
Determine in server cluster and carry out different editions renewal respectively according to each version updating fileThe ratio of server.
According to another aspect of the present invention, provide a kind of server version updating device, bagDraw together:
File acquisition unit, is suitable for obtaining version updating file;
Ratio-dependent unit, is suitable for determining in server cluster according to described version updating fileThe ratio of the server of row version updating;
Upgrade determining unit, be suitable for according to treating more in server cluster described in described ratio-dependentNew server;
File push unit, is suitable for described version updating file push to described service to be updatedDevice, to realize the version updating of described server to be updated.
Alternatively, described device also comprises:
Ratio adjustment unit, is suitable for according to preset strategy carrying out version in described server clusterThe ratio of the server upgrading is adjusted, and takes described in the described ratio-dependent after adjustingServer to be updated in business device cluster.
Alternatively, described ratio adjustment unit, is specifically suitable for according to each in described server clusterClient terminal quantity that server connects is determined the described ratio after adjusting, and according to after adjustingDescribed ratio is adjusted the ratio of carrying out the server of version updating in described server clusterWhole.
Alternatively, described ratio adjustment unit, is specifically suitable for the industry according to described server clusterBusiness type determine adjust after described ratio, and according to adjust after described ratio to described serviceThe ratio of carrying out the server of version updating in device cluster is adjusted.
Alternatively, described ratio adjustment unit, is specifically suitable for according to described version updating fileMore fresh content determine adjust after described ratio, and according to adjust after described ratio to described clothesIn business device cluster, carrying out the ratio of the server of version updating adjusts.
Alternatively, described ratio adjustment unit, is specifically suitable for according to each in described server clusterThe described ratio after adjusting is determined in the area that server is corresponding, and according to the described ratio after adjustingThe ratio of carrying out the server of version updating in described server cluster is adjusted.
Alternatively, described device also comprises:
Interval judging unit, is suitable for judging whether to reach Preset Time interval, if so, according toPreset strategy is adjusted the ratio of carrying out the server of version updating in described server clusterWhole.
Alternatively, described device also comprises:
Interval determining unit, is suitable for determining according to the type of service of described server cluster described pre-If the time interval.
Alternatively, described file acquisition unit, is specifically suitable for obtaining different version updating files;
Correspondingly, described ratio-dependent unit, is specifically suitable for according to each version updating file respectivelyDetermine the ratio of carrying out the server of different editions renewal in server cluster.
The present invention obtains version updating file, determines server set according to described version updating fileIn group, carry out the ratio of the server of version updating, according to server set described in described ratio-dependentServer to be updated in group, by the extremely described service to be updated of described version updating file pushDevice, to realize the version updating of described server to be updated, is finding that version updating file existsWhen problem, rollback in time, can not cause the processing of described server cluster regular trafficImpact.
Brief description of the drawings
By reading below detailed description of the preferred embodiment, various other advantage and benefitsTo become cheer and bright for those of ordinary skill in the art. Accompanying drawing is only for illustrating preferred enforcementThe object of mode, and do not think limitation of the present invention. And in whole accompanying drawing, useIdentical reference symbol represents identical parts. In the accompanying drawings:
Fig. 1 is the flow chart of the server version update method of one embodiment of the present invention;
Fig. 2 is the flow chart of the server version update method of one embodiment of the present invention;
Fig. 3 is the flow chart of the server version update method of one embodiment of the present invention;
Fig. 4 is the flow chart of the server version update method of one embodiment of the present invention;
Fig. 5 is the structured flowchart of the server version updating device of one embodiment of the present invention.
Detailed description of the invention
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is done further in detailDescribe. Following examples are used for illustrating the present invention, but are not used for limiting the scope of the invention.
Fig. 1 is the flow chart of the server version update method of one embodiment of the present invention; GinsengAccording to Fig. 1, described method comprises:
S101: obtain version updating file;
It should be noted that, the executive agent of present embodiment is for to described server clusterMiddle server carries out the control appliance of version updating.
In specific implementation, described server cluster can be regarded as comprise some identical for completingThe server of business, so, that is to say, the server in described server cluster can pass throughSame version updating file upgrades.
Will be understood that, described version updating file can be regarded as in described server clusterServer carries out the file of version updating, for example: for increasing the version of some function of serverThe file upgrading, certainly, also can be alternative document, for example: for changing some merit of serverThe file of the version updating of energy, present embodiment is not limited this.
S102: determine and carry out version updating in server cluster according to described version updating fileThe ratio of server;
Will be understood that, in order to prevent due to the version updating file shadow causing that has problemsRing, in present embodiment, can first carry out version more to the part of server in server clusterNewly, in the time finding version updating file existing problems, rollback in time, can be to described clothesThe processing of business device cluster regular traffic impacts, and, because the server after upgrading is in feelingsThe in running order middle operation of condition complexity, so, can find in time to have problems.
And, in order to understand in time the problem of version updating file, also can be anti-by arrangingInfeed mechanism obtains user's feedback, for example: sending version updating to described serverWhen file, can attach feedback entrance plug-in unit, be connected into the service after renewal being convenient to clientInput feedback information when device, so that the problem ratio of counting user feedback, thereby judge versionWhether transaction file has problems.
Affect difference due to what different version updating files caused server cluster, so,In present embodiment, can determine and in server cluster, carry out version according to described version updating fileThe ratio of server of upgrading, for example: what in version updating file, revise is some of serverFunction, now, if there is problem, the impact that server is caused is larger, so version moreIt is less that new ratio regular meeting arranges, and if the content of revising in version updating file does not relate to clothesThe function of business device reality, for example: the content of revising in version updating file is only with serverThe page effect of client shows is relevant, now, if there is problem, server is causedAffect less, so the ratio regular meeting of version updating arrange larger.
S103: according to the server to be updated in server cluster described in described ratio-dependent;
It should be noted that, determining after described ratio, described in can determining according to described ratioServer to be updated in server cluster, for ease of determining described server to be updated, can rootDetermine at random the server to be updated in described server cluster according to described ratio.
Will be understood that treating more in random definite described server cluster according to described ratioWhen new server, can be adopted as server in described server cluster and generate respectively random numberMode determines, for example: described server cluster comprises 100 station servers, if ratio is30%, can be each server and generate respectively random number, and sieve by the mode that threshold value is setSelect 30% server as server to be updated.
S104: by extremely described server to be updated of described version updating file push, to realizeState the version updating of server to be updated.
Present embodiment is obtained version updating file, determines service according to described version updating fileIn device cluster, carry out the ratio of the server of version updating, described in described ratio-dependent, serveServer to be updated in device cluster, by extremely described clothes to be updated of described version updating file pushBusiness device, to realize the version updating of described server to be updated, deposits at discovery version updating fileIn the time of problem, rollback in time, can not make the processing of described server cluster regular trafficBecome impact.
Fig. 2 is the flow chart of the server version update method of one embodiment of the present invention; GinsengAccording to Fig. 2, described method comprises:
S201: obtain version updating file;
S202: determine and carry out version updating in server cluster according to described version updating fileThe ratio of server;
S203: according to the server to be updated in server cluster described in described ratio-dependent;
S204: by extremely described server to be updated of described version updating file push, to realizeState the version updating of server to be updated;
Step S201~S204 is identical with the step S101~S104 of the embodiment shown in Fig. 1,This repeats no more.
S205: according to preset strategy to carrying out the server of version updating in described server clusterRatio adjust, and according to described in the described ratio-dependent after adjusting in server clusterServer to be updated.
It should be noted that, suppose the server normal operation within a period of time after upgrading, notGo wrong, now, can increase the ratio of described server.
Certainly,, if go wrong, can reduce the ratio of described server.
For ease of determining the ratio after increasing, in present embodiment, can be according to preset strategy to instituteState the ratio of carrying out the server of version updating in server cluster and adjust, certainly, to instituteThe strategy of stating the ratio adjustment of server has multiple, for example:
(1), determine according to the client terminal quantity that in described server cluster, each server connectsDescribed ratio after adjustment, and according to adjust after described ratio to entering in described server clusterThe ratio of the server of row version updating is adjusted.
That is to say, the client terminal quantity that can connect according to each server is determined the institute after adjustingState ratio, for example: suppose that the client connecting in server cluster adds up to 100,000, and thisThe client that the server of Shi Gengxin connects adds up to 10,000, now, can set a target visitorFamily end sum, as 30,000, now, can be using server corresponding 30,000 client sums as treating more, certainly, there is the server having upgraded in new server, right in the server to be updated of determiningThe server having upgraded in these no longer resends version updating file;
(2) determine the described ratio after adjusting according to the type of service of described server cluster,And according to adjust after described ratio to carrying out the service of version updating in described server clusterThe ratio of device is adjusted.
That is to say, can according to the type of service of described server cluster determine adjust after described inRatio, for example: suppose in server cluster, to there are 100 station servers, and the service of upgradingDevice is 30%, supposes that type of service is the business of outbalance, during as security type business, thisTime, can increase less server and upgrade, for example: by the described ratio setting after adjustingBeing 40%, certainly, is not too important business in type of service, can increase more serverUpgrade, for example: be 70% by the described ratio setting after adjusting.
(3) determine the described ratio after adjusting according to the more fresh content of described version updating file,And according to adjust after described ratio to carrying out the service of version updating in described server clusterThe ratio of device is adjusted.
That is to say, can determine the described ratio after adjusting according to the more fresh content of version updating fileExample, for example: suppose in server cluster, to there are 100 station servers, and the server upgradingBe 30%, what suppose to revise in version updating file is some function of server, now, and canIncrease less server and upgrade, for example: be 40% by the described ratio setting after adjusting,Certainly, the content of revising in version updating file does not relate to the function of server reality, can increaseMore server upgrades, for example: be 70% by the described ratio setting after adjusting.
(4) determine after adjustment according to the area that in described server cluster, each server is correspondingDescribed ratio, and according to adjust after described ratio to carrying out version more in described server clusterThe ratio of new server is adjusted.
That is to say, can determine and adjust according to the area that in described server cluster, each server is correspondingDescribed ratio after whole, for example: suppose in server cluster, to there are 100 station servers, andThe server upgrading is 30%, for the area of outbalance, and as the area such as Beijing, Shanghai,Can increase less server and upgrade, for example: by the described ratio setting after adjusting be40%, certainly, for not too important area, can increase more server and upgrade,For example: be 70% by the described ratio setting after adjusting.
Fig. 3 is the flow chart of the server version update method of one embodiment of the present invention; GinsengAccording to Fig. 3, described method comprises:
S301: obtain version updating file;
S302: determine and carry out version updating in server cluster according to described version updating fileThe ratio of server;
S303: according to the server to be updated in server cluster described in described ratio-dependent;
S304: by extremely described server to be updated of described version updating file push, to realizeState the version updating of server to be updated;
Step S301~S304 is identical with the step S101~S104 of the embodiment shown in Fig. 1,This repeats no more.
S305: judge whether to reach Preset Time interval, if so, according to preset strategy to instituteState the ratio of carrying out the server of version updating in server cluster and adjust, and according to adjustmentAfter described ratio-dependent described in server to be updated in server cluster.
Will be understood that, for the ease of finding the problem in version updating file, conventionally need oneThe section time, in present embodiment, can judge whether to reach Preset Time interval, if so, pressesAccording to preset strategy, the ratio of the server that carries out version updating in described server cluster is carried outAdjust.
Certainly,, in the time not reaching Preset Time interval, comparative example is not adjusted.
It should be noted that, due to the type of service difference of different server cluster, judge versionThe time span whether transaction file goes wrong is not identical yet, so, in present embodiment,Can determine described Preset Time interval according to the type of service of described server cluster.
Suppose that type of service is the business of outbalance, during as security type business, now, willDescribed Preset Time is spaced longer, for example: and Preset Time is set to 3 days,Certainly, be not too important business in type of service, can be by spaced described Preset TimeShorter, for example: Preset Time is set to 6 hours, certainly, also can be by described defaultThe time interval is set to other durations, and present embodiment is not limited this.
Fig. 4 is the flow chart of the server version update method of one embodiment of the present invention; GinsengAccording to Fig. 4, described method comprises:
S401: obtain different version updating files;
Will be understood that, for ease of ensureing the stability of version updating, in present embodiment, canBe multiple version updating files according to function to a version updating file declustering, therefore, this realityExecute in mode, can obtain different version updating files.
S402: determine in server cluster and carry out different editions respectively according to each version updating fileThe ratio of the server upgrading;
It should be noted that, in the time receiving different version updating files, can be each version moreNew file is determined respectively the ratio of carrying out the server of different editions renewal in server cluster.
S403: according to the server to be updated in server cluster described in described ratio-dependent;
S404: by extremely described server to be updated of described version updating file push, to realizeState the version updating of server to be updated.
Step S403~S404 is identical with the step S103~S104 of the embodiment shown in Fig. 1,This repeats no more.
For embodiment of the method, for simple description, therefore it is all expressed as to a series of actionCombination, but those skilled in the art should know, the embodiment of the present invention is not subject to describedThe restriction of sequence of movement, because according to the embodiment of the present invention, some step can adopt other suitableOrder or simultaneously carry out. Secondly, those skilled in the art also should know, in description, retouchThe embodiment stating all belongs to preferred embodiment, and related action might not be the invention processExample is necessary.
Fig. 5 is the structured flowchart of the server version updating device of one embodiment of the present invention;With reference to Fig. 5, described device comprises:
File acquisition unit 501, is suitable for obtaining version updating file;
Ratio-dependent unit 502, is suitable for determining server cluster according to described version updating fileIn carry out the ratio of the server of version updating;
Upgrade determining unit 503, be suitable for according in server cluster described in described ratio-dependentServer to be updated;
File push unit 504, is suitable for described version updating file push to described to be updatedServer, to realize the version updating of described server to be updated.
In the optional embodiment of one of the present invention, described device also comprises:
Ratio adjustment unit, is suitable for according to preset strategy carrying out version in described server clusterThe ratio of the server upgrading is adjusted, and takes described in the described ratio-dependent after adjustingServer to be updated in business device cluster.
In the optional embodiment of one of the present invention, described ratio adjustment unit, is specifically suitable for rootDetermine the institute after adjusting according to the client terminal quantity that in described server cluster, each server connectsState ratio, and according to adjust after described ratio to carrying out version updating in described server clusterThe ratio of server adjust.
In the optional embodiment of one of the present invention, described ratio adjustment unit, is specifically suitable for rootType of service according to described server cluster is determined the described ratio after adjusting, and according to after adjustingDescribed ratio the ratio of the server that carries out version updating in described server cluster is carried outAdjust.
In the optional embodiment of one of the present invention, described ratio adjustment unit, is specifically suitable for rootMore fresh content according to described version updating file is determined the described ratio after adjusting, and according to adjustmentAfter described ratio the ratio of carrying out the server of version updating in described server cluster is enteredRow is adjusted.
In the optional embodiment of one of the present invention, described ratio adjustment unit, is specifically suitable for rootDetermine the described ratio after adjusting according to the area that in described server cluster, each server is corresponding, andAccording to adjust after described ratio to carrying out the server of version updating in described server clusterRatio adjust.
In the optional embodiment of one of the present invention, described device also comprises:
Interval judging unit, is suitable for judging whether to reach Preset Time interval, if so, according toPreset strategy is adjusted the ratio of carrying out the server of version updating in described server clusterWhole.
In the optional embodiment of one of the present invention, described device also comprises:
Interval determining unit, is suitable for determining according to the type of service of described server cluster described pre-If the time interval.
In the optional embodiment of one of the present invention, described file acquisition unit, is specifically suitable for obtainingGet different version updating files;
Correspondingly, described ratio-dependent unit, is specifically suitable for according to each version updating file respectivelyDetermine the ratio of carrying out the server of different editions renewal in server cluster.
For device embodiment, because it is substantially similar to embodiment of the method, so describeFairly simple, relevant part is referring to the part explanation of embodiment of the method.
It should be noted in the discussion above that in all parts of device of the present invention, will realize according to itFunction and parts have wherein been carried out to logical partitioning, still, the present invention is not limited to this, canAs required all parts is repartitioned or to be combined, for example, can be by some portionsPart is combined as single parts, or some parts further can be decomposed into more sub-portionPart.
All parts embodiment of the present invention can realize with hardware, or with at one or manyThe software module of moving on individual processor realizes, or realizes with their combination. This areaTechnical staff should be appreciated that and can use in practice microprocessor or digital signal processor(DSP) realize according to one of the some or all parts in the device of the embodiment of the present inventionA little or repertoire. The present invention can also be embodied as for carrying out method as described hereinPart or all equipment or device program (for example, computer program and computer journeyOrder product). Realizing program of the present invention and can be stored on computer-readable medium like this,Or can there is the form of one or more signal. Such signal can be from internet netThe upper download of standing obtains, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described instead of the present invention is enteredRow restriction, and those skilled in the art are not in the case of departing from the scope of claimsCan design alternative embodiment. In the claims, should be by any ginseng between bracketExamine symbol construction and become limitations on claims. Word " comprises " not to be got rid of existence and is not listed in powerElement or step during profit requires. Being positioned at element word " " or " " before does not arrangeExcept there being multiple such elements. The present invention can be by means of including the hard of some different elementsPart and realizing by means of the computer of suitably programming. Enumerating the unit power of some devicesDuring profit requires, several in these devices can be to carry out concrete body by same hardware branchExisting. The use of word first, second and C grade does not represent any order. Can be by theseWord explanation is title.
Above embodiment is only suitable for illustrating the present invention, and is not limitation of the present invention, relevantThe those of ordinary skill of technical field, without departing from the spirit and scope of the present invention,Can also make a variety of changes and modification, therefore all technical schemes that are equal to also belong to the present inventionCategory, scope of patent protection of the present invention should be defined by the claims.
The invention discloses A1, a kind of server version update method, comprising:
Obtain version updating file;
Determine according to described version updating file the service of carrying out version updating in server clusterThe ratio of device;
According to the server to be updated in server cluster described in described ratio-dependent;
Described version updating file push, to described server to be updated, is treated more described in realizingThe version updating of new server.
A2, method as described in A1, described method also comprises:
According to preset strategy to carrying out the ratio of server of version updating in described server clusterExample is adjusted, and according to treating more in server cluster described in the described ratio-dependent after adjustingNew server.
A3, method as described in A2, described according to preset strategy in described server clusterCarry out the ratio of the server of version updating and adjust, and true according to the described ratio after adjustingServer to be updated in fixed described server cluster, specifically comprises:
Determine and adjust according to the client terminal quantity that in described server cluster, each server connectsAfter described ratio, and according to adjust after described ratio to carrying out version in described server clusterThe ratio of the server of this renewal is adjusted.
A4, method as described in A2, described according to preset strategy in described server clusterCarry out the ratio of the server of version updating and adjust, and true according to the described ratio after adjustingServer to be updated in fixed described server cluster, specifically comprises:
Determine the described ratio after adjusting according to the type of service of described server cluster, and according toDescribed ratio after adjustment is to carrying out the ratio of server of version updating in described server clusterExample is adjusted.
A5, method as described in A2, described according to preset strategy in described server clusterCarry out the ratio of the server of version updating and adjust, and true according to the described ratio after adjustingServer to be updated in fixed described server cluster, specifically comprises:
Determine the described ratio after adjusting according to the more fresh content of described version updating file, and rootAccording to the described ratio after adjusting to carrying out the server of version updating in described server clusterRatio is adjusted.
A6, method as described in A2, described according to preset strategy in described server clusterCarry out the ratio of the server of version updating and adjust, and true according to the described ratio after adjustingServer to be updated in fixed described server cluster, specifically comprises:
Described in after definite adjustment the in area that in described server cluster, each server is correspondingRatio, and according to the described ratio after adjusting to carrying out version updating in described server clusterThe ratio of server is adjusted.
A7, method as described in any one in A2~A6, described according to preset strategy to describedBefore the ratio of carrying out version updating in server cluster is adjusted, described method also comprises:
Judge whether to reach Preset Time interval, if so, according to preset strategy to described serviceThe ratio of carrying out the server of version updating in device cluster is adjusted.
A8, method as described in A7, described in judge whether to reach Preset Time interval before,Described method also comprises:
Determine described Preset Time interval according to the type of service of described server cluster.
A9, method as described in any one in A1~A8, described in obtain version updating file,Specifically comprise:
Obtain different version updating files;
Correspondingly, describedly determine that according to described version updating file in server cluster, server entersThe ratio of row version updating, specifically comprises:
Determine in server cluster and carry out different editions renewal respectively according to each version updating fileThe ratio of server.
The invention also discloses B10, a kind of server version updating device, comprising:
File acquisition unit, is suitable for obtaining version updating file;
Ratio-dependent unit, is suitable for determining in server cluster according to described version updating fileThe ratio of the server of row version updating;
Upgrade determining unit, be suitable for according to treating more in server cluster described in described ratio-dependentNew server;
File push unit, is suitable for described version updating file push to described service to be updatedDevice, to realize the version updating of described server to be updated.
B11, device as described in B10, described device also comprises:
Ratio adjustment unit, is suitable for according to preset strategy carrying out version in described server clusterThe ratio of the server upgrading is adjusted, and takes described in the described ratio-dependent after adjustingServer to be updated in business device cluster.
B12, device as described in B11, described ratio adjustment unit, is specifically suitable for according to instituteState the client terminal quantity that in server cluster, each server connects and determine the described ratio after adjustingExample, and according to adjust after described ratio to carrying out the clothes of version updating in described server clusterThe ratio of business device is adjusted.
B13, device as described in B11, described ratio adjustment unit, is specifically suitable for according to instituteState the type of service of server cluster and determine the described ratio after adjusting, and according to the institute after adjustingThe ratio of stating is adjusted the ratio of carrying out the server of version updating in described server cluster.
B14, device as described in B11, described ratio adjustment unit, is specifically suitable for according to instituteState version updating file more fresh content determine adjust after described ratio, and according to adjust afterDescribed ratio is adjusted the ratio of carrying out the server of version updating in described server clusterWhole.
B15, device as described in B11, described ratio adjustment unit, is specifically suitable for according to instituteState the area that in server cluster, each server is corresponding and determine the described ratio after adjusting, and according toDescribed ratio after adjustment is to carrying out the ratio of server of version updating in described server clusterExample is adjusted.
B16, device as described in any one in B11~B15, described device also comprises:
Interval judging unit, is suitable for judging whether to reach Preset Time interval, if so, according toPreset strategy is adjusted the ratio of carrying out the server of version updating in described server clusterWhole.
B17, device as described in B16, described device also comprises:
Interval determining unit, is suitable for determining according to the type of service of described server cluster described pre-If the time interval.
B18, device as described in any one in B10~B17, described file acquisition unit, toolBody is suitable for obtaining different version updating files;
Correspondingly, described ratio-dependent unit, is specifically suitable for according to each version updating file respectivelyDetermine the ratio of carrying out the server of different editions renewal in server cluster.

Claims (10)

1. a server version update method, comprising:
Obtain version updating file;
Determine according to described version updating file the service of carrying out version updating in server clusterThe ratio of device;
According to the server to be updated in server cluster described in described ratio-dependent;
Described version updating file push, to described server to be updated, is treated more described in realizingThe version updating of new server.
2. the method for claim 1, described method also comprises:
According to preset strategy to carrying out the ratio of server of version updating in described server clusterExample is adjusted, and according to treating more in server cluster described in the described ratio-dependent after adjustingNew server.
3. method as claimed in claim 2, described according to preset strategy to described server setIn group, carry out the ratio of the server of version updating and adjust, and according to the described ratio after adjustingExample is determined the server to be updated in described server cluster, specifically comprises:
Determine and adjust according to the client terminal quantity that in described server cluster, each server connectsAfter described ratio, and according to adjust after described ratio to carrying out version in described server clusterThe ratio of the server of this renewal is adjusted.
4. method as claimed in claim 2, described according to preset strategy to described server setIn group, carry out the ratio of the server of version updating and adjust, and according to the described ratio after adjustingExample is determined the server to be updated in described server cluster, specifically comprises:
Determine the described ratio after adjusting according to the type of service of described server cluster, and according toDescribed ratio after adjustment is to carrying out the ratio of server of version updating in described server clusterExample is adjusted.
5. method as claimed in claim 2, described according to preset strategy to described server setIn group, carry out the ratio of the server of version updating and adjust, and according to the described ratio after adjustingExample is determined the server to be updated in described server cluster, specifically comprises:
Determine the described ratio after adjusting according to the more fresh content of described version updating file, and rootAccording to the described ratio after adjusting to carrying out the server of version updating in described server clusterRatio is adjusted.
6. method as claimed in claim 2, described according to preset strategy to described server setIn group, carry out the ratio of the server of version updating and adjust, and according to the described ratio after adjustingExample is determined the server to be updated in described server cluster, specifically comprises:
Described in after definite adjustment the in area that in described server cluster, each server is correspondingRatio, and according to the described ratio after adjusting to carrying out version updating in described server clusterThe ratio of server is adjusted.
7. the method as described in any one in claim 2~6, described according to preset strategy to instituteState before the ratio of carrying out version updating in server cluster adjusts, described method is also wrappedDraw together:
Judge whether to reach Preset Time interval, if so, according to preset strategy to described serviceThe ratio of carrying out the server of version updating in device cluster is adjusted.
8. method as claimed in claim 7, described in judge whether to reach Preset Time interval itBefore, described method also comprises:
Determine described Preset Time interval according to the type of service of described server cluster.
9. the method as described in any one in claim 1~8, described in obtain version updating file,Specifically comprise:
Obtain different version updating files;
Correspondingly, describedly determine that according to described version updating file in server cluster, server entersThe ratio of row version updating, specifically comprises:
Determine in server cluster and carry out different editions renewal respectively according to each version updating fileThe ratio of server.
10. a server version updating device, comprising:
File acquisition unit, is suitable for obtaining version updating file;
Ratio-dependent unit, is suitable for determining in server cluster according to described version updating fileThe ratio of the server of row version updating;
Upgrade determining unit, be suitable for according to treating more in server cluster described in described ratio-dependentNew server;
File push unit, is suitable for described version updating file push to described service to be updatedDevice, to realize the version updating of described server to be updated.
CN201510997726.1A 2015-12-25 2015-12-25 Server version updating method and device Pending CN105607936A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510997726.1A CN105607936A (en) 2015-12-25 2015-12-25 Server version updating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510997726.1A CN105607936A (en) 2015-12-25 2015-12-25 Server version updating method and device

Publications (1)

Publication Number Publication Date
CN105607936A true CN105607936A (en) 2016-05-25

Family

ID=55987890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510997726.1A Pending CN105607936A (en) 2015-12-25 2015-12-25 Server version updating method and device

Country Status (1)

Country Link
CN (1) CN105607936A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255507A (en) * 2018-01-17 2018-07-06 北京奇艺世纪科技有限公司 The update method and system of a kind of server
CN109032643A (en) * 2018-07-26 2018-12-18 北京百度网讯科技有限公司 The method and apparatus of software upgrading
CN109391512A (en) * 2018-09-28 2019-02-26 阿里巴巴集团控股有限公司 A kind of service issuing method, device and electronic equipment
CN110245194A (en) * 2019-06-24 2019-09-17 北京奇艺世纪科技有限公司 Service data updating method, server and server cluster

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079767A (en) * 2006-09-26 2007-11-28 腾讯科技(深圳)有限公司 An upgrade method and system of Web service system
US20080155531A1 (en) * 2006-12-21 2008-06-26 Canon Kabushiki Kaisha Data processing apparatus and control method thereof
CN102571597A (en) * 2012-02-06 2012-07-11 北京蓝汛通信技术有限责任公司 Method for controlling network flow in peer to peer (P2P) protocol system
CN103176790A (en) * 2011-12-26 2013-06-26 阿里巴巴集团控股有限公司 Application releasing method and application releasing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079767A (en) * 2006-09-26 2007-11-28 腾讯科技(深圳)有限公司 An upgrade method and system of Web service system
US20080155531A1 (en) * 2006-12-21 2008-06-26 Canon Kabushiki Kaisha Data processing apparatus and control method thereof
CN103176790A (en) * 2011-12-26 2013-06-26 阿里巴巴集团控股有限公司 Application releasing method and application releasing system
CN102571597A (en) * 2012-02-06 2012-07-11 北京蓝汛通信技术有限责任公司 Method for controlling network flow in peer to peer (P2P) protocol system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255507A (en) * 2018-01-17 2018-07-06 北京奇艺世纪科技有限公司 The update method and system of a kind of server
CN108255507B (en) * 2018-01-17 2021-03-26 北京奇艺世纪科技有限公司 Server updating method and system
CN109032643A (en) * 2018-07-26 2018-12-18 北京百度网讯科技有限公司 The method and apparatus of software upgrading
CN109391512A (en) * 2018-09-28 2019-02-26 阿里巴巴集团控股有限公司 A kind of service issuing method, device and electronic equipment
CN110245194A (en) * 2019-06-24 2019-09-17 北京奇艺世纪科技有限公司 Service data updating method, server and server cluster

Similar Documents

Publication Publication Date Title
CN103973475B (en) Different patch packet generation method and method for down loading, server, client
CN105607936A (en) Server version updating method and device
CN108111331A (en) Acquisition methods, device, storage medium, processor and the system of updated data package
CN110830234B (en) User traffic distribution method and device
US10496392B2 (en) Staged application rollout
CN109391509A (en) A kind of method, system and the application server of more new application
CN110730090B (en) Batch updating method, device, medium and electronic equipment for agent terminals in cloud environment
CN105930197A (en) Software upgrading method and electronic equipment
CN105608382A (en) Software maintenance method, software problem judgment method and corresponding apparatuses
CN104866339A (en) Distributed persistent management method, system and device of FOTA data
CN107292651B (en) Method and system for counting effective advertisement activation amount of mobile terminal
CN104253869A (en) Blacklist sharing method, blacklist updating method, blacklist sharing device and blacklist updating device
CN105786636B (en) A kind of system repair and device
CN110502256A (en) A kind of method for upgrading software, terminal and storage medium
CN104796784A (en) Video playing method and device in application program
CN110765394A (en) So file loading method and device, storage medium and terminal equipment
CN109947450A (en) System file upgrade method, device, mobile terminal and readable storage medium storing program for executing
CN109271193B (en) Data processing method, device, equipment and storage medium
CN103685471B (en) Method and system for updating software client sides in monopoly mode
CN111310242B (en) Method and device for generating device fingerprint, storage medium and electronic device
CN106686141A (en) Resource download method and resource download device
CN109753767B (en) Software distribution and updating method and device based on block chain, server and client
WO2021212492A1 (en) Information pushing method and apparatus, electronic device, and computer-readable medium
CN107124627A (en) A kind of update method of interface typesetting
CN108614868B (en) Automatic database upgrading method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160525

RJ01 Rejection of invention patent application after publication