CN107301055A - The method and device of upgrade server - Google Patents

The method and device of upgrade server Download PDF

Info

Publication number
CN107301055A
CN107301055A CN201710591588.6A CN201710591588A CN107301055A CN 107301055 A CN107301055 A CN 107301055A CN 201710591588 A CN201710591588 A CN 201710591588A CN 107301055 A CN107301055 A CN 107301055A
Authority
CN
China
Prior art keywords
server
new edition
old version
service availability
installation kit
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
CN201710591588.6A
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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710591588.6A priority Critical patent/CN107301055A/en
Publication of CN107301055A publication Critical patent/CN107301055A/en
Pending legal-status Critical Current

Links

Classifications

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

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 disclosure is directed to the method and device of upgrade server.This method includes:During Servers-all response access request, obtain service availability index, the service availability index indicates that all access requests that Servers-all is received to same time point carry out the ratio between the access request quantity of success response and the quantity of all access requests, and Servers-all includes:Old version server and new edition server;And then can be according to the service availability index allocation new edition server and the deployment quantity of old version server got.Due to the deployment quantity of new edition server and old version server can be configured by the service availability index got, the feedback information of the service provided new edition server is provided without active to user, effectively improve the efficiency of upgrading, and the problem of paralysis is entirely serviced due to the inaccurate final server updating failure caused of some field feedbacks is avoided, improve the reliability of server updating.

Description

The method and device of upgrade server
Technical field
This disclosure relates to field of computer technology, more particularly to upgrade server method and device.
Background technology
In order to ensure the service experience of user, the network service chamber of commerce constantly carries out the upgrading of server.At present, in order to protect The stability of card system, the upgrading of large scale system is generally by the way of gray scale upgrading.Risen using gray scale upgrading mode During level, the system service of two versions can be disposed simultaneously, allow a part of user to be continuing with existing version and service, a part are provided User provides service using redaction, and collects the feedback information for using the user of redaction to redaction, and according to feedback letter Breath judges the quality of redaction service, if user is preferable to the feedback of redaction, then progressively expand the use using redaction Amount amount, finally all moves to user in redaction.
The content of the invention
To overcome problem present in correlation technique, the embodiment of the present disclosure provides the method and device of upgrade server.Institute State technical scheme as follows:
According to the first aspect of the embodiment of the present disclosure there is provided a kind of method of upgrade server, including:
During Servers-all response access request, service availability index is obtained, the service availability refers to Mark indicates that all access requests that the Servers-all is received to same time point carry out the access request number of success response Ratio between amount and the quantity of all access requests, wherein, the Servers-all includes:Existing installation kit is installed Old version server, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed;
The deployment quantity of new edition server and the old version server according to the service availability index allocation.
The technical scheme provided by this disclosed embodiment can include the following benefits:Respond and access in Servers-all During request, service availability index is obtained, the service availability index indicates that Servers-all connects to same time point All access requests received carry out the ratio between the access request quantity of success response and the quantity of all access requests, its In, Servers-all includes:The old version server of existing installation kit is installed, and the corresponding upgrading of existing installation kit is installed and updates peace Fill the new edition server of bag;And then can be according to the service availability index allocation new edition server and old version server got Deployment quantity.Due to the portion of new edition server and old version server can be configured by the service availability index got Quantity is affixed one's name to, the feedback information of the service provided new edition server is provided without active to user, upgrading is effectively improved Efficiency, and avoid because the inaccurate final server updating caused of some field feedbacks fails and entirely services paralysis The problem of paralysis, improve the reliability of server updating.
In one embodiment, the new edition server according to the service availability index allocation and the old version The deployment quantity of server includes:
When the service availability index is more than predetermined threshold value, at least a portion old version server is replaced with into institute State new edition server;
, will at least a portion new edition service when the service availability index is less than or equal to the predetermined threshold value Device replaces with the old version server.
The technical scheme provided by this disclosed embodiment can include the following benefits:Referred to by comparing service availability Mark and the magnitude relationship of predetermined threshold value, to adjust the quantity of new edition server and old version server, so as to improve server liter The reliability of level.
In one embodiment, methods described also includes:
After all old version servers are replaced with into the new edition server, the first prompting message is exported, described the One prompting message is used to point out server updating success;
Or,
After at least a portion new edition server replaced with into the old version server, the second prompting message is exported, Second prompting message is used to point out server updating to fail.
The technical scheme provided by this disclosed embodiment can include the following benefits:Fail or upgrade successfully in upgrading When, prompting message can be all exported, so as to effectively improve Consumer's Experience.
In one embodiment, before the acquisition service availability index, in addition to:
New edition server disposition request message is received, the peace of new edition server is carried in the new edition server disposition request The mark of dress bag and old version server;
The installation kit is installed in the new edition server;
The domain name of the old version server is obtained according to the mark of the old version server;
It will be mounted with that the domain name of the new edition server and the old version server of the installation kit is bound.
The technical scheme provided by this disclosed embodiment can include the following benefits:Pass through the mark of old version server Obtain the domain name of old version server so that the domain name of acquisition is accurate, effectively improves the correctness of new edition server disposition.
According to the second aspect of the embodiment of the present disclosure there is provided a kind of device of upgrade server, including:
First acquisition module, for during Servers-all response access request, obtaining service availability index, The service availability index indicates that the Servers-all is succeeded to all access requests that same time point receives Ratio between the quantity of the access request quantity of response and all access requests, wherein, the Servers-all includes: The old version server of existing installation kit is installed, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed;
Adjusting module, for new edition described in the service availability index allocation that is obtained according to first acquisition module The deployment quantity of server and the old version server.
In one embodiment, the adjusting module includes:First, which replaces submodule and second, replaces submodule;
Described first replaces submodule, and the service availability index for being obtained in first acquisition module is more than During predetermined threshold value, at least a portion old version server is replaced with into the new edition server;
Described second replaces submodule, and the service availability index for being obtained in first acquisition module is less than Or during equal to the predetermined threshold value, at least a portion new edition server is replaced with into the old version server.
In one embodiment, described device also includes:First output module and the second output module;
First output module, for all old version servers to be replaced with into institute in the described first replacement submodule State after new edition server, export the first prompting message, first prompting message is used to point out server updating success;
Second output module, for replacing at least a portion new edition server in the described second replacement submodule It is changed to after the old version server, exports the second prompting message, second prompting message is used to point out server updating to lose Lose.
In one embodiment, described device also includes:Receiving module, installation module, the second acquisition module and binding mould Block;
The receiving module, for receiving new edition server disposition request message, in the new edition server disposition request Carry the installation kit of new edition server and the mark of old version server;
The installation module, for installing the installation kit in new edition server;
Second acquisition module, the mark of the old version server for being received according to the receiving module obtains institute State the domain name of old version server;
The binding module, for the new edition server for being mounted with the installation kit to be obtained with second acquisition module The domain name of the old version server bound.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of device of upgrade server, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
During Servers-all response access request, service availability index is obtained, the service availability refers to Mark indicates that all access requests that the Servers-all is received to same time point carry out the access request number of success response Ratio between amount and the quantity of all access requests, wherein, the Servers-all includes:Existing installation kit is installed Old version server, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed;
The deployment quantity of new edition server and the old version server according to the service availability index allocation.
According to the fourth aspect of the embodiment of the present disclosure there is provided a kind of computer-readable recording medium, calculating is stored thereon with Machine is instructed, and the instruction realizes following steps when being executed by processor:
During Servers-all response access request, service availability index is obtained, the service availability refers to Mark indicates that all access requests that the Servers-all is received to same time point carry out the access request number of success response Ratio between amount and the quantity of all access requests, wherein, the Servers-all includes:Existing installation kit is installed Old version server, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed;
The deployment quantity of new edition server and the old version server according to the service availability index allocation.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and be used to together with specification to explain the principle of the disclosure.
Fig. 1 is the method flow diagram of the upgrade server according to an exemplary embodiment one.
Fig. 2 is the method flow diagram of the upgrade server according to an exemplary embodiment two.
Fig. 3 be the upgrade server according to an exemplary embodiment method in step S104 flow chart.
Fig. 4 is the Organization Chart of the cloud service according to an exemplary embodiment.
Fig. 5 is the flow chart of the method for the upgrade server according to an exemplary embodiment three.
Fig. 6 is the block diagram of the device of the upgrade server according to an exemplary embodiment one.
Fig. 7 be the upgrade server according to an exemplary embodiment device in adjusting module 12 block diagram.
Fig. 8 is the block diagram for the device that upgrade server is shown according to an exemplary embodiment two.
Fig. 9 is the block diagram for the device that upgrade server is shown according to an exemplary embodiment three.
Figure 10 is a kind of block diagram of device 90 for upgrade server according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
In order to ensure the stability of system, the upgrading of large scale system is generally by the way of gray scale issue.Gray scale issue rises Level is a kind of smooth transient mode, and the A/B tests of current trend are exactly a kind of concrete form of gray scale release upgrade.
The system service of two versions is disposed in conventional gray scale upgrading simultaneously, and user is classified first, allows a part User is continuing with existing version A, and a part of user uses redaction B, and collects the feedback letter of the user using redaction B Breath, to judge the service quality of redaction according to those feedback informations, if user feeds back preferable to B, then progressively expanding makes With the quantity of version B user, finally all users are moved on B, then stop version A.
Although above-mentioned gray scale upgrading mode can realize the upgrading of system, need to classify to user and needed The feedback information of user is collected, so that upgrading is less efficient;And because the feedback of user is based on the subjective row of user For because feedback information there may be inaccuracy, so that final server updating fails and entirely services paralysis.
It is worth noting that, the method that the disclosure is provided is applied but is not limited to the mode of gray scale upgrading.
The technical scheme that the embodiment of the present disclosure is provided includes:During Servers-all response access request, obtain Service availability index, the service availability index indicates all access requests that Servers-all is received to same time point The ratio between the access request quantity of success response and the quantity of all access requests is carried out, wherein, Servers-all includes: The old version server of existing installation kit is installed, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed; And then can be according to the service availability index allocation new edition server and the deployment quantity of old version server got.Due to can To configure the deployment quantity of new edition server and old version server by the service availability index got, without actively To user collect to new edition server provide service feedback information, effectively improve the efficiency of upgrading, and avoid due to The problem of inaccurate final server updating caused of some field feedbacks fails and entirely services paralysis, improves clothes The reliability of business device upgrading.
Illustrated with reference to detailed embodiment technical scheme of this disclosure.It is noted that this is several below Individual embodiment can be combined with each other, and may be repeated no more in certain embodiments for same or analogous concept or process.
Fig. 1 is the method flow diagram of the upgrade server according to an exemplary embodiment one, as shown in figure 1, the party Method comprises the following steps:
In step S101, during Servers-all response access request, service availability index is obtained, its In, service availability index indicates that all access requests that Servers-all is received to same time point carry out success response Ratio between the quantity of access request quantity and all access requests, wherein, Servers-all includes:Existing installation kit is installed Old version server, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed.
It is worth noting that, above-mentioned server not only includes the server of entity, also including virtual server, or hold Device etc., the disclosure is not any limitation as to the form of server.
Installation kit is updated after completing in the upgrading of server, first deployment part of server can be installed by the upgrading Installation kit is updated, now, the old version server for installing existing installation kit will be included in Servers-all, and existing peace is installed The corresponding upgrading of dress bag updates the new edition book server of installation kit.
When the access request to user is responded, new edition book server and old version server can simultaneously respond visit Request is asked, and is responded to oneself receiving access request, now, can active collection new edition book server and old version server Response message, and server availability index is determined according to the response message got.
For example:500 access requests are received at same time point, according to current load-balancing algorithm by this 500 The new edition book server and old version server that access request distributes to deployment are responded, now, than if any 400 access requests By success response, and there is the response failure of 100 access requests, then the service availability index now obtained is:
Example, above-mentioned response message is any response carried out to access request, such as:Response message can be super Text transfer protocol (HyperText Transfer Protocol, referred to as:HTTP the conditional code 200 returned in) asking, Can be conditional code 404 for returning etc. in HTTP request, the disclosure is not any limitation as to the type of response message.
In step s 102, according to the deployment quantity of service availability index allocation new edition server and old version server.
After above-mentioned service availability index is obtained, according to the service availability index allocation new edition server and old version The deployment quantity of server.
In the embodiment of the present disclosure, during Servers-all response access request, service availability index is obtained, should Service availability index indicates that all access requests that Servers-all is received to same time point carry out the visit of success response The ratio between the quantity of number of requests and all access requests is asked, wherein, Servers-all includes:Existing installation kit is installed Old version server, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed;And then can be according to acquisition The service availability index allocation new edition server and the deployment quantity of old version server arrived.Due to can be by the clothes that get It is engaged in approve- useful index to configure the deployment quantity of new edition server and old version server, is collected without active to user to new edition The feedback information for the service that server is provided, effectively improves the efficiency of upgrading, and avoid due to some field feedbacks The inaccurate final server updating failure caused and the problem of entirely service paralysis, improve the reliable of server updating Property.
In one embodiment, after above-mentioned service availability index is got, service availability index is judged and pre- If the magnitude relationship of threshold value, and then the deployment number for configuring new edition server and old version server is determined how according to the magnitude relationship Amount, now, includes according to the deployment quantity of service availability index allocation new edition server and old version server:It is available in service Property index when being more than predetermined threshold value, the old version server of at least a portion is replaced with into new edition server.
After the service availability index got, the magnitude relationship of the service availability index and predetermined threshold value is judged, It is determined that the service availability index be more than predetermined threshold value after, illustrate new edition server service quality meet requirement, then it is near Few old version server of a part replaces with new edition server, that is, now, increasing the quantity of new edition server, and subtracts accordingly The quantity of few old version server.
Above-mentioned predetermined threshold value can be systemic presupposition, or the developer for making upgrading renewal installation kit sets Fixed, the disclosure is not any limitation as to the setting means and numerical value of predetermined threshold value.
Example, due to the quantity of total server be can be with changeless, such as setting 100 servers just can be with All access requests at same time point are responded simultaneously, therefore excessive server need not be disposed, now, the number of new edition server Measure increased quantity identical with the quantity of old version server reduction.So as to, it is ensured that the quantity of total server is constant, effectively profit With system resource.
In order to further increase the reliability of server updating, it can gradually increase and decrease new edition server and old version server Quantity, example, the quantity of the increased quantity of new edition server and old version server reduction is 1.
Also included according to the deployment quantity of service availability index allocation new edition server and old version server:Can in service When being less than or equal to predetermined threshold value with property index, at least a portion new edition server is replaced with into old version server.
After the service availability index got, the magnitude relationship of the service availability index and predetermined threshold value is judged, It is determined that the service availability index be less than or equal to predetermined threshold value after, illustrate new edition server service quality can not meet want Ask, then at least a portion new edition server is replaced with into old version server, namely reduce the quantity of new edition server.
In order to further meet the demand of system service, it is to avoid the new edition server that can not meet quality of service requirement is made The failure accessed into user, can substitute all new edition servers, that is, without using new edition service with old version server Device provides the user service.
For example:100 servers are disposed altogether, wherein the old version server disposed is 95, the new edition server of deployment For 5, now, the service availability index got is less than or equal to predetermined threshold value, then cancels 5 new edition services of deployment Device, and the old version server of deployment is increased to 100 from 95, to meet the demand of service.
The technical scheme provided by this disclosed embodiment can include the following benefits:Referred to by comparing service availability Mark and the magnitude relationship of predetermined threshold value, to adjust the quantity of new edition server and old version server, so as to improve server liter The reliability of level.
In one embodiment, will the old version server of at least a portion when service availability index is more than predetermined threshold value Replace with and continue executing with above-mentioned acquisition service availability index after new edition server, according to service availability index allocation new edition The step of deployment quantity of server and old version server, until the quantity of old version server is reduced to 0, or service availability refers to Mark is less than or equal to predetermined threshold value.
The mode of the disclosure can circulate execution, until finally upgrading successfully or failure of upgrading, during upgrading, such as The reliabilities of fruit new edition server providing services is high, then the old version server of at least a portion is replaced with into new edition server, and While replacement, continue detection service approve- useful index, it is to continue to replace the old version server of at least a portion to continue judgement For new edition server, it is desired nonetheless to which at least a portion new edition server is replaced with into old version server, so incremental liter Level mode, it is ensured that in escalation process, it is to avoid be once upgraded to bit strip be likely to occur it is in poor service the problem of so that The reliability of service that user gets is improved, and effectively improves Consumer's Experience.
In one embodiment, after all old version servers being replaced with into new edition server, first can also be exported and carried Show message, first prompting message is used to point out server updating success, namely now the quantity of old version server is reduced to 0.
When upgrading successfully, the first above-mentioned prompting message can be exported, so that developer can learn upgrading Renewal installation kit is errorless, can meet the demand of upgrading and service.
After at least a portion new edition server replaced with into old version server, the second prompting message can also be exported, should Second prompting message is used to point out server updating to fail.
When upgrading failure, the second above-mentioned prompting message can be exported, so that developer can learn upgrading Update installation kit wrong, it is impossible to meet the demand of upgrading, and then allow developer to take corrective measure.
The technical scheme provided by this disclosed embodiment can include the following benefits:Fail or upgrade successfully in upgrading When, prompting message can be all exported, so as to effectively improve Consumer's Experience.
Before above-mentioned acquisition service availability index is performed, also need to dispose new edition server, now, as shown in Fig. 2 on State method further comprising the steps of:
In step s 103, receive in new edition server disposition request message, new edition server disposition request message and carry The installation kit of new edition server.
In step S104, new edition server is disposed according to installation kit.
After the installation kit of new edition server is received, new edition server is just disposed according to the installation kit, wherein, deployment is new The quantity disclosure of version server is not added with limiting, it is notable that, can portion of elder generation for the reliability that lifting system is upgraded Affix one's name to 1 new edition server.
It is according to server because related load balancing is in the distribution for the request that conducted interviews according to the server of deployment What corresponding domain name was distributed, therefore, also need to set the domain name of the new edition server when new edition server is disposed.
In a kind of achievable mode, the corresponding domain name of new edition server will be included in installation kit, so that according to peace While dress bag deployment new edition server, it is possible to bound domain name with new edition server.But for erection & lift can By property, it is to avoid the corresponding domain name of new edition server of carrying is wrong, so that cause upgrading to fail, can be in new edition server disposition The mark of old version server is also carried in request message, now, as shown in figure 3, above-mentioned step S104 may be embodied as it is following Step:
In step S1041, installation kit is installed in new edition server.
In step S1042, the domain name of old version server is obtained according to the mark of old version server.
In step S1043, it will be mounted with that the domain name of the new edition server and old version server of installation kit is bound.
After the installation kit of new edition server is got, the installation kit is installed in the server of selection first, due to negative The distribution of the balanced request that needs to conduct interviews according to the domain name of server is carried, at this time, it may be necessary to be obtained according to the mark of old version server The domain name of old version server is taken, after the domain name of old version server is got, just by the domain of new edition server and old version server Name is bound, so that new edition server can receive access request.
The step of mark of the above-mentioned old version server of basis obtains the domain name of old version server, can step S1041 it Before, it can also can also be carried out simultaneously with step S1041, the disclosure is not any limitation as to it after step S1041.
The technical scheme provided by this disclosed embodiment can include the following benefits:Pass through the mark of old version server Obtain the domain name of old version server so that the domain name of acquisition is accurate, effectively improves the correctness of new edition server disposition.
Below by by disclosed method be applied to cloud service in exemplified by describe disclosed method in detail.
Fig. 4 is the Organization Chart of the cloud service according to an exemplary embodiment, as shown in figure 5, the core of the cloud service It is cloud service cluster, the example of some operation cloud services is contained in the cloud service cluster.
Cloud service cluster entrance is load balancing module, and load balancing module is responsible for the HTTP user (HyperText Transfer Protocol, referred to as:HTTP) access request is distributed to the example of different operation cloud services On.
Monitoring service module is collected in service availability index, the present embodiment from cloud service cluster, and service availability refers to Mark the percentage that the quantity for being defined as that conditional code 200 is returned in HTTP access requests accounts for the quantity of total HTTP access requests.
Cloud service control node obtains service availability index from monitoring service module, and according to service availability index Adjust the quantity of new edition cloud service example and old version cloud service example.Because load balancing module averagely distributes request to rear end cloud Service Instance, so the quantity by adjusting new edition cloud service example and old version cloud service example, can control new edition cloud to take Business and the HTTP access request ratios of old version cloud service.
Fig. 5 is the flow chart of the method for the upgrade server according to an exemplary embodiment three, as shown in figure 5, should Method comprises the following steps:
In step s 201, cloud service control node deployment new edition cloud service example.
Cloud service control node receives new edition cloud service example deployment request message, new edition cloud service deployment request message The mark of the middle installation kit and old version cloud service example for carrying new edition cloud service example, cloud service control node takes according to new edition cloud The newly-increased virtual machine of the installation kit of pragmatic example is used to install the installation kit of the new edition cloud service example to generate a new edition cloud Service Instance, and reduce by an old version cloud service example.
In step S202, new edition cloud service example binds the domain name of old version cloud service example.
Cloud service control node obtains the domain name of old version cloud service example according to the mark of old version cloud service example, and should Domain name is bound with new edition cloud service example.
In step S203, cloud service control node judges whether service availability index is more than predetermined threshold value, in service When whether approve- useful index is more than predetermined threshold value, step S204 is performed;Preset whether service availability index is less than or equal to During threshold value, step S207- steps S208 is performed.
Monitoring service module monitoring service approve- useful index, and then cloud service control node gets service from monitoring module After approve- useful index, judge whether the service availability index is more than predetermined threshold value.
In step S204, cloud service control node judges whether old version cloud service example quantity is equal to 0, in old version cloud clothes When whether pragmatic number of cases amount is equal to 0, step S205 is performed;When old version cloud service example quantity is not equal to 0, step is performed S206。
In step S205, cloud service control node reduces by an old version cloud service example and increases a new edition cloud service Example, continues executing with step S203, until going to step S206 or step S207.
After cloud service control node reduces by an old version cloud service example and increases a new edition cloud service example, prison Control service module and continue monitoring service approve- useful index, now cloud service control node, which is continued executing with, judges service availability index Whether be more than predetermined threshold value and afterwards the step of, until cloud service control node exports the prompting message that upgrades successfully, Huo,Yun The prompting message of service control node output upgrading failure.
In step S206, the prompting message that the output of cloud service control node is upgraded successfully.
In step S207, the quantity that cloud service control node recovers old version cloud service example is initial value, and by new edition Cloud service example quantity is reduced to 0.
In step S208, the prompting message of cloud service control node output upgrading failure.
Following is disclosure device embodiment, can be used for performing method of disclosure embodiment.
Fig. 6 is the block diagram of the device of the upgrade server according to an exemplary embodiment one.As shown in fig. 6, the liter The device of level server includes:
First acquisition module 11, for during Servers-all response access request, obtaining service availability and referring to Mark, the service availability index indicates that the Servers-all is carried out into all access requests that same time point receives Ratio between the access request quantity of work(response and the quantity of all access requests, wherein, the Servers-all bag Include:The old version server of existing installation kit is installed, and the new edition service that the corresponding upgrading of existing installation kit updates installation kit is installed Device;
Adjusting module 12, for according to the described first service availability index allocation for obtaining 11 pieces of acquisitions of mould The deployment quantity of new edition server and the old version server.
In one embodiment, as shown in fig. 7,12 pieces of the mould of adjustment includes:First replacement submodule 121 and second is replaced Change submodule 122;
Described first replaces submodule 121, and the service availability for being obtained in first acquisition module 11 refers to When mark is more than predetermined threshold value, at least a portion old version server is replaced with into the new edition server;
Described second replaces submodule 122, and the service availability for being obtained in first acquisition module 11 refers to When mark is less than or equal to the predetermined threshold value, at least a portion new edition server is replaced with into the old version server.
In one embodiment, as shown in figure 8, described device also includes:First output module 13 and the second output module 14;
First output module 13, for replacing all old version servers in the described first replacement submodule 121 Be changed to after the new edition server, export the first prompting message, first prompting message be used for point out server updating into Work(;
Second output module 14, will at least a portion new edition clothes for replacing submodule 122 described second Business device is replaced with after the old version server, exports the second prompting message, and second prompting message is used to point out server Upgrading failure.
In one embodiment, as shown in figure 9, described device also includes:Receiving module 15, installation module 16, second are obtained Modulus block 17 and binding module 18;
The receiving module 15, for receiving new edition server disposition request message, the new edition server disposition request The mark of the middle installation kit and old version server for carrying new edition server;
The installation module 16, for installing the installation kit in the new edition server;
Second acquisition module 17, the mark of the old version server for being received according to the receiving module 15 is obtained Take the domain name of the old version server;
The binding module 18, for the new edition server and second acquisition module 17 by the installation kit is mounted with The domain name of the old version server obtained is bound.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of device of upgrade server, including:
Processor;
Memory for storing processor-executable instruction;
Wherein, processor is configured as:
During Servers-all response access request, service availability index is obtained, the service availability refers to Mark indicates that all access requests that the Servers-all is received to same time point carry out the access request number of success response Ratio between amount and the quantity of all access requests, wherein, the Servers-all includes:Existing installation kit is installed Old version server, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed;
The deployment quantity of new edition server and the old version server according to the service availability index allocation.
Above-mentioned processor is also configured to:
The deployment number of the new edition server according to the service availability index allocation and the old version server Amount includes:
When the service availability index is more than predetermined threshold value, at least a portion old version server is replaced with into institute State new edition server;
, will at least a portion new edition service when the service availability index is less than or equal to the predetermined threshold value Device replaces with the old version server.
Methods described also includes:
After all old version servers are replaced with into the new edition server, the first prompting message is exported, described the One prompting message is used to point out server updating success;
Or,
After at least a portion new edition server replaced with into the old version server, the second prompting message is exported, Second prompting message is used to point out server updating to fail.
Before the acquisition service availability index, in addition to:
New edition server disposition request message is received, the peace of new edition server is carried in the new edition server disposition request The mark of dress bag and old version server;
The installation kit is installed in the new edition server;
The domain name of the old version server is obtained according to the mark of the old version server;
It will be mounted with that the domain name of the new edition server and the old version server of the installation kit is bound.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Figure 10 is a kind of block diagram of device 90 for upgrade server according to an exemplary embodiment.For example, Device 90 may be provided in a server.Device 90 includes processing assembly 902, and it further comprises one or more processing Device, and as the memory resource representated by memory 903, for store can by the execution of processing assembly 902 instruction, for example Application program.The application program stored in memory 903 can include it is one or more each refer to corresponding to one group The module of order.In addition, processing assembly 902 is configured as execute instruction, to perform the above method.
Device 90 can also include the power management that a power supply module 906 is configured as performs device 90, and one wired Or radio network interface 905 is configured as device 90 being connected to network, and input and output (I/O) interface 908.Device 90 It can operate based on the operating system for being stored in memory 903, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processor of device 90 During execution so that the method that device 90 is able to carry out above-mentioned upgrade server, methods described includes:
During Servers-all response access request, service availability index is obtained, the service availability refers to Mark indicates that all access requests that the Servers-all is received to same time point carry out the access request number of success response Ratio between amount and the quantity of all access requests, wherein, the Servers-all includes:Existing installation kit is installed Old version server, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed;
The deployment quantity of new edition server and the old version server according to the service availability index allocation.
The deployment number of the new edition server according to the service availability index allocation and the old version server Amount includes:
When the service availability index is more than predetermined threshold value, at least a portion old version server is replaced with into institute State new edition server;
, will at least a portion new edition service when the service availability index is less than or equal to the predetermined threshold value Device replaces with the old version server.
Methods described also includes:
After all old version servers are replaced with into the new edition server, the first prompting message is exported, described the One prompting message is used to point out server updating success;
Or,
After at least a portion new edition server replaced with into the old version server, the second prompting message is exported, Second prompting message is used to point out server updating to fail.
Before the acquisition service availability index, in addition to:
New edition server disposition request message is received, the peace of new edition server is carried in the new edition server disposition request The mark of dress bag and old version server;
The installation kit is installed in the new edition server;
The domain name of the old version server is obtained according to the mark of the old version server;
It will be mounted with that the domain name of the new edition server and the old version server of the installation kit is bound.This area skill Art personnel will readily occur to other embodiments of the disclosure after considering specification and putting into practice disclosure disclosed herein.This Shen Any modification, purposes or the adaptations of the disclosure please be intended to, these modifications, purposes or adaptations are followed The general principle of the disclosure and including the undocumented common knowledge or conventional techniques in the art of the disclosure.Say Bright book and embodiment are considered only as exemplary, and the true scope of the disclosure and spirit are pointed out by following claim.
It should be appreciated that the precision architecture that the disclosure is not limited to be described above and is shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present disclosure is only limited by appended claim.

Claims (10)

1. a kind of method of upgrade server, it is characterised in that including:
During Servers-all response access request, service availability index is obtained, the service availability index refers to Show all access requests that the Servers-all receives to same time point carry out the access request quantity of success response with Ratio between the quantity of all access requests, wherein, the Servers-all includes:The old version of existing installation kit is installed Server, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed;
The deployment quantity of new edition server and the old version server according to the service availability index allocation.
2. according to the method described in claim 1, it is characterised in that described new according to the service availability index allocation The deployment quantity of version server and the old version server includes:
When the service availability index is more than predetermined threshold value, at least a portion old version server is replaced with described new Version server;
When the service availability index is less than or equal to the predetermined threshold value, at least a portion new edition server is replaced It is changed to the old version server.
3. method according to claim 2, it is characterised in that methods described also includes:
After all old version servers are replaced with into the new edition server, the first prompting message is exported, described first carries Show that message is used to point out server updating success;
Or,
After at least a portion new edition server replaced with into the old version server, the second prompting message is exported, it is described Second prompting message is used to point out server updating to fail.
4. according to the method described in claim 1, it is characterised in that before the acquisition service availability index, in addition to:
New edition server disposition request message is received, the installation kit of new edition server is carried in the new edition server disposition request With the mark of old version server;
The installation kit is installed in the new edition server;
The domain name of the old version server is obtained according to the mark of the old version server;
It will be mounted with that the domain name of the new edition server and the old version server of the installation kit is bound.
5. a kind of device of upgrade server, it is characterised in that including:
First acquisition module, it is described for during Servers-all response access request, obtaining service availability index Service availability index indicates that all access requests that the Servers-all is received to same time point carry out success response Access request quantity and all access requests quantity between ratio, wherein, the Servers-all includes:Install The old version server of existing installation kit, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed;
Adjusting module, for new edition service described in the service availability index allocation that is obtained according to first acquisition module The deployment quantity of device and the old version server.
6. device according to claim 5, it is characterised in that the adjusting module includes:First replaces submodule and the Two replace submodule;
Described first replaces submodule, and the service availability index for being obtained in first acquisition module is more than default During threshold value, at least a portion old version server is replaced with into the new edition server;
Described second replaces submodule, and the service availability index for being obtained in first acquisition module is less than or waited When the predetermined threshold value, at least a portion new edition server is replaced with into the old version server.
7. device according to claim 6, it is characterised in that described device also includes:First output module and second defeated Go out module;
First output module is described new for replacing with all old version servers in the described first replacement submodule After version server, the first prompting message is exported, first prompting message is used to point out server updating success;
Second output module, for replacing with least a portion new edition server in the described second replacement submodule After the old version server, the second prompting message is exported, second prompting message is used to point out server updating to fail.
8. device according to claim 5, it is characterised in that described device also includes:Receiving module, module, the are installed Two acquisition modules and binding module;
The receiving module, for receiving new edition server disposition request message, is carried in the new edition server disposition request The mark of the installation kit of new edition server and old version server;
The installation module, for installing the installation kit in new edition server;
Second acquisition module, the mark of the old version server for being received according to the receiving module obtains described old The domain name of version server;
The binding module, for the institute for obtaining the new edition server for being mounted with the installation kit with second acquisition module The domain name for stating old version server is bound.
9. a kind of device of upgrade server, it is characterised in that including:
Processor;
Memory for storing processor-executable instruction;
Wherein, the processor is configured as:
During Servers-all response access request, service availability index is obtained, the service availability index refers to Show all access requests that the Servers-all receives to same time point carry out the access request quantity of success response with Ratio between the quantity of all access requests, wherein, the Servers-all includes:The old version of existing installation kit is installed Server, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed;
The deployment quantity of new edition server and the old version server according to the service availability index allocation.
10. a kind of computer-readable recording medium, is stored thereon with computer instruction, it is characterised in that the instruction is by processor Following steps are realized during execution:
During Servers-all response access request, service availability index is obtained, the service availability index refers to Show all access requests that the Servers-all receives to same time point carry out the access request quantity of success response with Ratio between the quantity of all access requests, wherein, the Servers-all includes:The old version of existing installation kit is installed Server, and the new edition server that the corresponding upgrading of existing installation kit updates installation kit is installed;
The deployment quantity of new edition server and the old version server according to the service availability index allocation.
CN201710591588.6A 2017-07-19 2017-07-19 The method and device of upgrade server Pending CN107301055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710591588.6A CN107301055A (en) 2017-07-19 2017-07-19 The method and device of upgrade server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710591588.6A CN107301055A (en) 2017-07-19 2017-07-19 The method and device of upgrade server

Publications (1)

Publication Number Publication Date
CN107301055A true CN107301055A (en) 2017-10-27

Family

ID=60134310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710591588.6A Pending CN107301055A (en) 2017-07-19 2017-07-19 The method and device of upgrade server

Country Status (1)

Country Link
CN (1) CN107301055A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874413A (en) * 2017-10-30 2018-11-23 北京旷视科技有限公司 Service upgrade method, apparatus, system and storage medium
CN109391512A (en) * 2018-09-28 2019-02-26 阿里巴巴集团控股有限公司 A kind of service issuing method, device and electronic equipment
CN109672790A (en) * 2018-09-20 2019-04-23 平安科技(深圳)有限公司 Traffic request drainage method, device, equipment and readable storage medium storing program for executing
CN110704483A (en) * 2019-09-06 2020-01-17 平安普惠企业管理有限公司 User routing process positioning method, device, storage medium and device
CN111104260A (en) * 2019-12-30 2020-05-05 北京三快在线科技有限公司 Service upgrade monitoring method, device, server and storage medium
CN112446714A (en) * 2020-12-11 2021-03-05 上海中通吉网络技术有限公司 Server upgrading method, device and equipment for express after-sale work order processing system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118076A (en) * 2013-01-11 2013-05-22 烽火通信科技股份有限公司 Upgraded server cluster system and load balancing method thereof
CN105897457A (en) * 2015-12-09 2016-08-24 乐视云计算有限公司 Service upgrade method and system of server group
CN106155876A (en) * 2016-07-26 2016-11-23 北京蓝海讯通科技股份有限公司 A kind of canary analyzes method, application and computing device
CN106549810A (en) * 2016-11-24 2017-03-29 深圳市小满科技有限公司 Cloud service platform redaction issues front method of testing, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118076A (en) * 2013-01-11 2013-05-22 烽火通信科技股份有限公司 Upgraded server cluster system and load balancing method thereof
CN105897457A (en) * 2015-12-09 2016-08-24 乐视云计算有限公司 Service upgrade method and system of server group
CN106155876A (en) * 2016-07-26 2016-11-23 北京蓝海讯通科技股份有限公司 A kind of canary analyzes method, application and computing device
CN106549810A (en) * 2016-11-24 2017-03-29 深圳市小满科技有限公司 Cloud service platform redaction issues front method of testing, device and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874413A (en) * 2017-10-30 2018-11-23 北京旷视科技有限公司 Service upgrade method, apparatus, system and storage medium
CN109672790A (en) * 2018-09-20 2019-04-23 平安科技(深圳)有限公司 Traffic request drainage method, device, equipment and readable storage medium storing program for executing
CN109391512A (en) * 2018-09-28 2019-02-26 阿里巴巴集团控股有限公司 A kind of service issuing method, device and electronic equipment
CN109391512B (en) * 2018-09-28 2021-08-27 创新先进技术有限公司 Service publishing method and device and electronic equipment
CN110704483A (en) * 2019-09-06 2020-01-17 平安普惠企业管理有限公司 User routing process positioning method, device, storage medium and device
CN111104260A (en) * 2019-12-30 2020-05-05 北京三快在线科技有限公司 Service upgrade monitoring method, device, server and storage medium
CN111104260B (en) * 2019-12-30 2023-04-14 北京三快在线科技有限公司 Service upgrade monitoring method, device, server and storage medium
CN112446714A (en) * 2020-12-11 2021-03-05 上海中通吉网络技术有限公司 Server upgrading method, device and equipment for express after-sale work order processing system

Similar Documents

Publication Publication Date Title
CN107301055A (en) The method and device of upgrade server
CN104199666B (en) A kind of application program Dynamic Configuration and device
US7035919B1 (en) Method for calculating user weights for thin client sizing tool
US9026655B2 (en) Method and system for load balancing
US9781205B2 (en) Coordination engine for cloud selection
US20160342443A1 (en) Optimizing virtual machine memory sizing for cloud-scale application deployments
CN105827446A (en) Intelligent traffic API gateway and intelligent traffic service system
US8145449B2 (en) Computer product, apparatus, and method for system management
CN110493067A (en) A kind of method and device that API gateway service updates
WO2011069730A1 (en) A method and system for managing configurations of system management agents in a distributed environment
WO2009058412A1 (en) Discovering optimal system configurations using decentralized probability based active sampling
CN105099988A (en) Method used for supporting gray releasing, access method, devices and system
US8726263B2 (en) Detection and installation of software on a per-user basis
US8706856B2 (en) Service directory
CN101379477A (en) Methods and apparatus for interactive specification of context-sensitive service level agreements
US7712096B2 (en) Method, system, and storage medium for dynamically reordering resource participation in two-phase commit to heuristically optimize for last-agent optimization
CN103516778A (en) Method and system for risk-based dynamic geo-location based replication of services in cloud computing
US20050289090A1 (en) Adaptive mangement method and system with automatic dependency resolution
CN110413312B (en) Method, device and equipment for managing application program and storage medium
KR20120101609A (en) Server, system and method for offering distributed service
CN105511914B (en) Using update method, device and system
US20210089288A1 (en) Systems and methods for environment instantiation
US8677003B1 (en) Distributed processing of streaming data on an event protocol
CN110442455A (en) A kind of data processing method and device
US11782785B2 (en) Method and system for proactively resolving application upgrade issues using a device emulation system of a customer environment

Legal Events

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

Application publication date: 20171027