CN108681461A - A kind of clustered software system does not shut down newer method, system and relevant apparatus - Google Patents

A kind of clustered software system does not shut down newer method, system and relevant apparatus Download PDF

Info

Publication number
CN108681461A
CN108681461A CN201810426645.XA CN201810426645A CN108681461A CN 108681461 A CN108681461 A CN 108681461A CN 201810426645 A CN201810426645 A CN 201810426645A CN 108681461 A CN108681461 A CN 108681461A
Authority
CN
China
Prior art keywords
environment
server
cluster
updated
actual motion
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
CN201810426645.XA
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.)
Guangdong Power Grid Co Ltd
Electric Power Dispatch Control Center of Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Electric Power Dispatch Control Center of Guangdong Power Grid 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 Guangdong Power Grid Co Ltd, Electric Power Dispatch Control Center of Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN201810426645.XA priority Critical patent/CN108681461A/en
Publication of CN108681461A publication Critical patent/CN108681461A/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
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Abstract

This application discloses a kind of clustered software systems not to shut down newer method; it is different from tradition and newer mode is carried out at the same time to all servers shut down; it is at least divided into two parts by method provided herein according to actual loading situation; pre-updated is carried out to low-load part first; it is expanded again to entire cluster after the completion of update; former business can be kept not interrupt simultaneously; allow two parts are good to be connected; the hidden danger for being uniformly updated and unsuccessfully causing Servers-all that can not reach the standard grade in a short time afterwards is also eliminated, practical effect is more preferably.The application further simultaneously discloses a kind of clustered software system and does not shut down newer system, device and computer readable storage medium, has above-mentioned advantageous effect.

Description

A kind of clustered software system does not shut down newer method, system and relevant apparatus
Technical field
This application involves dynamic update method field, more particularly to a kind of clustered software system do not shut down newer method, System, device and computer readable storage medium.
Background technology
During the use of software/program, not found loophole or Bug before gradually finding, therefore to repair this The update of a little loopholes, Bug, enhancing customer experience and increase new function, software/program can run through its whole life cycle, be It is highly important.
The software upgrading of early stage is a kind of update of static state, i.e. update is established on the basis of stopping externally service first, Update is shut down, waits that shutting down update completes the external offer service that could reach the standard grade again.But the static form renewal of early stage is The increasing software systems of scale cannot increasingly be met, with the expansion of cluster, the scale of software systems is also with expansion Greatly, once can make vast audience service group that can not all this be used to service using newer mode is shut down, and there are some collection The software systems of group must be forever non-stop, especially to the application system for handling special duty, for example, dispatching of power netwoks pipe Reason, financial transaction, the group system of the communication 24-hour services such as interchanger, online reservation system.
These need non-stop-machine group system popularizing with internet application forever, also become day in people's daily life Benefit is important, and most enterprises can reduce expenses the business electronic system that can rent Cloud Server to run oneself now, and for from Oneself audience provides corresponding service, if cloud service provider new discovery is that there are some great leakages for the server of oneself When hole, when needing to carry out edition upgrading to it with patching bugs, edition upgrading is realized using newer mode is shut down, it undoubtedly can be right All enterprises for leasing its server cause irretrievable loss, or even for certain enterprises, and the service interrupted 1 second provides It is possible to cause loss difficult to the appraisal.Therefore, in the today for increasingly pursuing customer experience, traditional static update mode is Through being no longer able to meet increasingly higher demands.
Therefore, how to overcome every technological deficiency existing for existing update mode, provide a kind of suitable for forever non-stop-machine Cluster is, it can be achieved that it is those skilled in the art's urgent problem to be solved not shut down newer method.
Invention content
The purpose of the application is to provide a kind of clustered software system and does not shut down newer method, be different from tradition to it is all The server of shutdown is carried out at the same time newer mode, it is at least divided into two parts according to actual loading situation, first to low negative It carries part and carries out pre-updated, expanded again to entire cluster after the completion of update, former business can be kept not interrupt simultaneously so that two Divide and good can be connected, also eliminate uniformly to be updated unsuccessfully causes Servers-all that can not reach the standard grade in a short time afterwards Hidden danger, practical effect is more preferably.
The another object of the application is the provision of a kind of clustered software system and does not shut down newer system, device and calculating Machine readable storage medium storing program for executing.
To achieve the above object, a kind of clustered software system of the application offer does not shut down newer method, and this method includes:
When needing the software systems for cluster to carry out version updating, according to the business load of each server in the cluster Situation chooses the low-load server of preset quantity, and builds to obtain pre-updated publication environment;
It issues and incremental update data file to the pre-updated obtained based on incremental data upgrade technique is installed and issue In environment;
Judge whether the pre-updated publication environment after incremental update operation executes meets the normal work requirement of the cluster;
If so, setting pre-updated publication environment to new actual motion environment, and utilize the new actual motion Environment provides support for newly-established conversational services, and after former actual motion environmentally established conversational services whole Version updating is carried out, so that update is not shut down in entire cluster realization.
Optionally, the low-load service of preset quantity is chosen according to the business load situation of each server in the cluster Device, including:
Obtain the business load amount of each server in the cluster;
Compare the magnitude relationship between each business load amount and preset low-load threshold value;
Server for all business load amounts less than the low-load threshold value adds low-load label;
The server that the preset quantity is attached with the low-load label is chosen, the low-load server is obtained.
Optionally, judge whether the pre-updated publication environment after incremental update operation executes meets the normal work of the cluster It is required, including:
Judge whether the pre-updated publication environment after the incremental update operation executes realizes the incremental update data The function adjustment that file is brought.
Optionally, whether the pre-updated publication environment after judging that incremental update operation executes meets the normal of the cluster Before job requirement, further include:
Judge whether version number of the pre-updated publication environment before executing the incremental update operation changes.
Optionally, version updating is carried out after former actual motion environmentally established conversational services whole, including:
After the former actual motion environmentally established conversational services, by preset path to the new reality Running environment sends version updating request;
The new actual motion environment is asked according to the version updating received, returns to the incremental update data file extremely The original actual motion environment;
The original actual motion environment completes version updating according to the incremental update data file received.
Optionally, in the low-load service for choosing preset quantity according to the business load situation of each server in the cluster After device, before building to obtain pre-updated publication environment, further include:
The low-load server is unloaded from cluster server stored reservoir.
Optionally, before setting pre-updated publication environment to new actual motion environment, further include:
Each server for belonging to the pre-updated publication environment that the normal work for meeting the cluster requires is hung again It is loaded onto the cluster server stored reservoir.
To achieve the above object, present invention also provides a kind of clustered software systems not to shut down newer system, the system Including:
Pre-updated issue environmental structure unit, for when need for cluster software systems carry out version updating when, according to The business load situation of each server chooses the low-load server of preset quantity in the cluster, and builds to obtain pre-updated hair Cloth environment;
Update file issues and installation unit, for issuing and installing the increment obtained based on incremental data upgrade technique more New data file to the pre-updated is issued in environment;
Update operates implementing result judging unit, is for judging that the pre-updated after incremental update operation executes issues environment The no normal work requirement for meeting the cluster;
Actual motion environmental treatment unit, for when the pre-updated publication environment meet it is described normal work require when, It sets pre-updated publication environment to new actual motion environment, and is newly-established meeting using the new actual motion environment Words service provides support, and carries out version updating after former actual motion environmentally established conversational services whole, with Entire cluster realization is set not shut down update.
To achieve the above object, present invention also provides a kind of clustered software systems not to shut down newer device, the device Including:
Memory, for storing computer program;
Processor realizes that the clustered software system as described in the above is not stopped when for executing the computer program The step of machine newer method.
To achieve the above object, described computer-readable to deposit present invention also provides a kind of computer readable storage medium It is stored with computer program on storage media, realizes when the computer program is executed by processor and collects as described in the above Not the step of group's software systems do not shut down newer method.
Obviously, a kind of clustered software system provided herein does not shut down newer method, is needing to carry out version first When this update, issued as pre-updated according to the actual traffic load situation selected part low-load server of server in cluster Environment, and version updating operation is executed in the pre-updated issues environment first, and it is in the server of high load condition before (former actual motion environment) still maintains regular traffic until pre-updated issues environment and completes version updating and as new practical fortune Row environment can accept new pending business, just then also can carry out version to itself after the business in terminating all preceding processing This update, that so far completes entire cluster does not shut down update.The application be different from tradition to all servers shut down simultaneously It is at least divided into two parts by the mode being updated according to actual loading situation, carries out pre-updated to low-load part first, It is expanded again to entire cluster after the completion of update, former business can be kept not interrupt simultaneously so that two parts good can be connected, Also eliminate the hidden danger for being uniformly updated and unsuccessfully causing Servers-all that can not reach the standard grade in a short time afterwards, actual use effect Fruit is more preferably.The application additionally provides a kind of clustered software system and does not shut down newer system, device and computer-readable deposit simultaneously Storage media has above-mentioned advantageous effect, and details are not described herein.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is not shut down the flow chart of newer method by a kind of clustered software system that the embodiment of the present application provides;
Fig. 2 is not shut down the flow chart of newer method by another clustered software system that the embodiment of the present application provides;
Fig. 3 is not shut down the structure diagram of newer system by a kind of clustered software system that the embodiment of the present application provides;
One kind that Fig. 4 is provided by the embodiment of the present application is based on release content realization and does not shut down newer flow diagram;
One kind that Fig. 5 is provided by the embodiment of the present application is based on actual motion environment and the realization of non-actual motion environment does not stop The newer flow diagram of machine.
Specific implementation mode
The core of the application is to provide a kind of clustered software system and does not shut down newer method, system, device and computer Readable storage medium storing program for executing is different from tradition and is carried out at the same time newer mode to all servers shut down, according to actual loading feelings It is at least divided into two parts by condition, carries out pre-updated to low-load part first, is expanded again to entire cluster after the completion of update, Former business can be kept not interrupt simultaneously so that two parts good can be connected, and also eliminates uniformly to be updated and unsuccessfully lead afterwards The hidden danger for causing Servers-all that can not reach the standard grade in a short time, practical effect is more preferably.
To keep the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, technical solutions in the embodiments of the present application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art The all other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Below in conjunction with Fig. 1, Fig. 1 does not shut down newer method by a kind of clustered software system that the embodiment of the present application provides Flow chart.
It specifically includes following steps:
S101:When needing the software systems for cluster to carry out version updating;
S102:The low-load server of preset quantity is chosen according to the business load situation of each server in cluster, and is taken It builds to obtain pre-updated publication environment;
This step is established under the practical context described in S101, it is intended to according to the business load shape of each server in cluster Condition chooses to obtain the low-load server of preset quantity, and builds to obtain pre-updated using these low-load servers and issue ring Border.
Wherein, low-load server described in this step is to be different from existing for high load server, since composition collects Portfolio handled by each server of group will not be completely the same, and to ensure the redundancy of equipment and performance usually in cluster, Standby server can be also set, processing of the master server to a large number of services is different from, standby server is not accepted usually pending Business, but be in standby, to which its processing business can be taken over rapidly when master server goes offline, ensure entire collection The integrality of group's function.
The above-mentioned effect having due to standby server and corresponding characteristic can be much smaller than though load is unlikely to be 0 Normal master server, therefore the purpose of this step is then to select a certain number of low-loads from all servers reached the standard grade Server, with build pre-updated issue environment, i.e., do not influence master server execute regular traffic while, these originally not Version updating operation is first carried out on the low-load server of undertaking business.
S103:It issues and incremental update data file to the pre-updated obtained based on incremental data upgrade technique is installed and issue In environment;
On the basis of S102, to realize that the version updating for issuing pre-updated environment operates, also need to issue and pacify to it Dress can carry out the data file of version updating operation, specifically, the data file that this step provides is to be based on incremental data liter Grade technology obtains, that is, saves partial data identical with original version content, it is only necessary in the part for replacing newly-increased or needs Appearance is fabricated to incremental update data file, can be with modularization, the carry out function renewal of blocking and reparation, while greatly reducing It updates the data the size of file and greatly promotes the speed of version updating.
S104:Judge whether the pre-updated publication environment after incremental update operation executes meets the normal work of cluster and want It asks;
On the basis of S103, this step is intended to examine whether incremental update operation is finished and implementing result, if Meet expected version updating effect etc., specifically, the mode how examined and judged has very much, such as is examined by version number Test whether edition upgrading is successful, the test case of what's new can also be added in incremental update data file, to increase Amount update operation has executed after in such a way that whether the newly-increased function of the testing case is realized etc., do not do specific limit herein It is fixed, it can flexibly be selected suitably to detect and judge item according to actual conditions.
S105:It sets pre-updated publication environment to new actual motion environment, and is newly-built using new actual motion environment Vertical conversational services provide support, and carry out version more after former actual motion environmentally established conversational services whole Newly, so that update is not shut down in entire cluster realization.
Pre-updated publication environment after S104 judges that incremental update operation executes meets the normal work requirement of cluster On the basis of, this step is intended to set the pre-updated publication environment for completing version updating operation to new actual motion environment, and profit New pending business is accepted with the new actual motion environment.It is waited for simultaneously when environmentally established session takes former actual motion Version updating is carried out to it after business whole, so that update is not shut down in entire cluster realization.
It should be noted that the former actual motion environment mentioned by this step is to be mainly responsible for undertaking before having and handle industry Each master server of business is built, i.e., at that time in the case of standby server be different from master server, can also be considered Belong to non-actual motion environment, and new actual motion environment is then since pre-updated publication environment finishes and meets in version updating After normal work requires, undertaking and the processing task of new business can be completed, also complies with and the cluster is gradually transition to new version Purpose, therefore be set to new actual motion environment, in other words, former standby server becomes new master instead at this time Server.And be formerly used for keeping the server in the former actual motion environment of entire clustering functionality, then it can be established Version updating is carried out to it after conversational services whole, realizes that entire cluster is put down in a manner of non-stop-machine by updating in batches Steady transition.
Further, to prevent the server in actual motion environment and non-actual motion environment from occurring mixing phenomenon, also It can be unloaded from cluster server stored reservoir, and is needing again when carrying out processing business without using certain server When its processing business, carry to cluster server stored reservoir again.
Based on the above-mentioned technical proposal, a kind of clustered software system provided by the embodiments of the present application does not shut down newer method, First when needing to carry out version updating, according to the actual traffic load situation selected part low-load service of server in cluster Device issues environment as pre-updated, and executes version updating operation in the pre-updated issues environment first, and is in height before The server (former actual motion environment) of load condition still maintains regular traffic until pre-updated publication environment completes version more It is new and can accept new pending business as new actual motion environment, just can then terminate it is all before business in processing Version updating is also carried out to itself afterwards, that so far completes entire cluster does not shut down update.The application be different from tradition to it is all The server of shutdown is carried out at the same time newer mode, it is at least divided into two parts according to actual loading situation, first to low negative It carries part and carries out pre-updated, expanded again to entire cluster after the completion of update, former business can be kept not interrupt simultaneously so that two Divide and good can be connected, also eliminate uniformly to be updated unsuccessfully causes Servers-all that can not reach the standard grade in a short time afterwards Hidden danger, practical effect is more preferably.
Below in conjunction with Fig. 2, Fig. 2 does not shut down newer side by another clustered software system that the embodiment of the present application provides The flow chart of method, the present embodiment are based on the basis of a upper embodiment, give a more concrete implementation step, specific to wrap It includes:
S201:Obtain the business load amount of each server in cluster, and more each business load amount and preset low-load Magnitude relationship between threshold value;
S202:Server for all business load amounts less than low-load threshold value adds low-load label, and therefrom chooses Preset quantity is attached with the server of low-load label, obtains low-load server;
S203:Low-load server is unloaded from cluster server stored reservoir, and builds to obtain pre-updated publication environment;
Choose to obtain a certain number of low-load servers by tri- step of S201, S202 and S203, and by it from collection It builds to obtain pre-updated publication environment after unloading in group's stored reservoir.
S204:It issues and incremental update data file to the pre-updated obtained based on incremental data upgrade technique is installed and issue In environment;
It is identical as S102, the related content that content can be found in S102 is illustrated, details are not described herein.
S205:Judge whether version number of the pre-updated publication environment before executing incremental update operation changes;
On the basis of S204, this step is primarily based on version number and has tentatively judged whether to version updating.
S206:Judge whether the pre-updated publication environment after incremental update operation executes realizes incremental update data file The function adjustment brought;
The foundation of this step is that the base of the completed conclusion of version updating can be obtained based on version number in the judging result of S205 On plinth, it is intended to further to judge whether to realize version updating function adjustment purpose as expected.
It should be noted that if when the judgement by S205 or S206 obtains result contrary to expectations, then can pass through The mode of S204 is repeated to carry out tentative reparation, specifically, due to update failure may caused by influence, sometimes also The version before update need to be reverted back first when repeating, to ensure newer success rate.Further, it is held if being repeated several times Expected edition upgrading purpose is still not implemented in row, then can report this error situation, to check whether incremental update data text There are mistakes for part itself.
S207:Extremely by each server for belonging to pre-updated publication environment for the normal work requirement for meeting cluster again carry Cluster server stored reservoir;
This step is corresponding with S203, and the pre-updated publication environment established after incremental update operation executes meets cluster Normal work require on the basis of, before carry to cluster server stored reservoir is to meet necessity needed for subsequent step again It carries.
S208:It sets pre-updated publication environment to new actual motion environment, and is newly-built using new actual motion environment Vertical conversational services provide support;
S209:After former actual motion environmentally established conversational services, transported to new reality by preset path Row environment sends version updating request;
S210:New actual motion environment is asked according to the version updating received, returns to incremental update data file to original Actual motion environment;
S211:Former actual motion environment completes version updating according to the incremental update data file received.
Tri- step of S209, S210 and S211 give it is a kind of using new actual motion environment to former actual motion environment into The mode of row version updating, naturally it is also possible to as pre-updated issue environment to upper layer request incremental update file, can be according to reality Situation flexibly selects.
Based on the above-mentioned technical proposal, a kind of clustered software system provided by the embodiments of the present application does not shut down newer method, First when needing to carry out version updating, according to the actual traffic load situation selected part low-load service of server in cluster Device issues environment as pre-updated, and executes version updating operation in the pre-updated issues environment first, and is in height before The server (former actual motion environment) of load condition still maintains regular traffic until pre-updated publication environment completes version more It is new and can accept new pending business as new actual motion environment, just can then terminate it is all before business in processing Version updating is also carried out to itself afterwards, that so far completes entire cluster does not shut down update.The application be different from tradition to it is all The server of shutdown is carried out at the same time newer mode, it is at least divided into two parts according to actual loading situation, first to low negative It carries part and carries out pre-updated, expanded again to entire cluster after the completion of update, former business can be kept not interrupt simultaneously so that two Divide and good can be connected, also eliminate uniformly to be updated unsuccessfully causes Servers-all that can not reach the standard grade in a short time afterwards Hidden danger, practical effect is more preferably.
Because situation is complicated, it can not enumerate and be illustrated, those skilled in the art should be able to recognize according to the application The basic skills principle combination actual conditions of offer may exist many examples, in the case where not paying enough creative works, It should within the scope of protection of this application.
Fig. 3 is referred to below, and Fig. 3 does not shut down newer system by a kind of clustered software system that the embodiment of the present application provides The structure diagram of system, specifically, the system may include:
Pre-updated issues environmental structure unit 100, for when needing the software systems for cluster to carry out version updating, root The low-load server of preset quantity is chosen according to the business load situation of each server in cluster, and builds to obtain pre-updated publication Environment;
Update file issues and installation unit 200, for issuing and installing the increasing obtained based on incremental data upgrade technique Amount updates the data file to pre-updated and issues in environment;
Update operation implementing result judging unit 300, for judging that the pre-updated after incremental update operation executes issues ring Whether border meets the normal work requirement of cluster;
Actual motion environmental treatment unit 400, for when pre-updated publication environment meet normal work require when, will in advance more New publication environment is set as new actual motion environment, and provides branch using new actual motion environment for newly-established conversational services It holds, and version updating is carried out after former actual motion environmentally established conversational services whole, so that entire cluster is real Update is not shut down now.
Wherein, pre-updated publication environmental structure unit 100 includes:
Business load amount obtains subelement, the business load amount for obtaining each server in cluster;
Low-load threshold value comparison subelement is closed for the size between more each business load amount and preset low-load threshold value System;
Label adds subelement, and low-load mark is added for the server for all business load amounts less than low-load threshold value Label;
Low-load server chooses subelement, and the server of low-load label is attached with for choosing preset quantity, is obtained Low-load server.
Wherein, update operation implementing result judging unit 300 includes:
It adjusts function and realizes judgment sub-unit, for whether judging the pre-updated publication environment after incremental update operation executes Realize the function adjustment that incremental update data file is brought.
Wherein, actual motion environmental treatment unit 400 includes:
Update request transmission sub-unit, for after former actual motion environmentally established conversational services, passing through Preset path sends version updating request to new actual motion environment;
It receives and feedback subelement returns to increment for new actual motion environment according to the version updating request received File is updated the data to former actual motion environment;
Former actual motion environmental renewal subelement, for former actual motion environment according to the incremental update data text received Part completes version updating.
Further, which can also include:
Version number's judging unit, for judge pre-updated publication environment execute incremental update operation before version number be It is no to change.
Unloading unit, for being taken in the low-load for choosing preset quantity according to the business load situation of each server in cluster After business device, before building to obtain pre-updated publication environment, low-load server is unloaded from cluster server stored reservoir;
Again carry unit, for before setting pre-updated publication environment to new actual motion environment, collecting meeting Each server of what the normal work of group required belong to pre-updated publication environment again carry to cluster server stored reservoir.
Specifically, reference can be made to such as Fig. 4 and Fig. 5, Fig. 4 is realized by one kind that the embodiment of the present application provides based on release content Newer flow diagram is not shut down, and Fig. 5 is based on actual motion environment and non-reality by one kind that the embodiment of the present application provides Newer flow diagram is not shut down in running environment realization.
As shown in figure 4, having used increment Multi-state data model modification distribution technology, the core of the technology is edition upgrading The User Activity session of period retains legacy data model simultaneously, can also by delete, replace, it is newly-increased after data model with another One new version realizes full model update, increases data model of the session then based on update publication newly and carries out system activity.
For arbitrary business data model, miscellaneous editions, such as grid power tune are likely to occur according to business demand variation Protection act reporting module in degree system needs emergency upgrade since relevant field will be deleted and be increased newly to business demand change, When the set expression of version is:F={ f1,f2,f3,......,fn(n > 1), and the model of each version uses a kind of field The form of set indicates that then the business data model of 5 fields is represented by:f0={ a, b, c, d, e };It is another basic herein The upper version that there is change is represented by:f1={ a, c, d, e, g }, i.e., the relationship of two versions are represented by:f1=f0-{b}+ {g}.Therefore, as shown in figure 4, the conversational terminal access that connection has been established before upgrading is f0Version, if upgrading starts rear f0Version Terminal session is continuously connected with, then f0Edition data model still retains;After new model publication, newly-established terminal session is then visited Ask f1Edition data model;Until all f0The terminal session of version exits the entire update issuing process of completion.
According to the example, f0And f1Both sides relation can also be expressed as f1=(f0-f0)+(f0{ b }+{ g }), that is, upgrading After publication, legacy data model terminal ceases to be in force automatically after all exiting, and new model is to delete the legacy data model realization after field A kind of new version full model update publication, is truly realized increment Multi-state data model supports when upgrading publication.
As shown in fig. 5, it is assumed that carry N platform application servers, terminal user pass through direct routing in application service cluster Mode realize service access.In upgrading publication operation, system manager will select N-2 platforms from server admin pond and answer first It uses server unloading as pre- publication environment, carries out upgrading publication operation in pre-upgrade server, system business is by pipe at this time It manages 2 runtime environment servers in pond and the support of legacy data model service is provided.Complete the publication of pre-upgrade server update And after being verified by upgrading test, pre-upgrade server is mounted to again in server admin pond and unloads original 2 operations When environment server, tentatively provide new function service and ensure system persistent service at this time.It is serviced when 2 operations later Device carries out application service generation by Linux rsync tools (a kind of linux system under synchronization means) and pre-upgrade server Code is synchronous, and is mounted to again in server admin pond, completes the upgrading operation of Servers-all in cluster.In whole process, For terminal user, due to the support to polymorphic incremental data model of scheduling and system of more active/standby server clusters, it is System service, which always exists, never to be interrupted, and realize system does not shut down update.
Wherein, the CIP marked in Fig. 5 is a kind of application layer protocol, RIP (Routing for commercial Application exploitation Information Protocol, routing information protocol) it is a kind of relatively simple dynamic routing protocol, but in actual use Have a wide range of applications, a public network address can be converted into multiple internal address by VIP agreements, be to be reflected based on port to do It penetrates.Can the different port of Intranet different server be mapped to the different port of public network, DIP agreements refer to source address conversion, Home address is namely converted into public network address to go out to access internet, these agreements have been widely used in cluster.
Based on above-described embodiment, present invention also provides a kind of clustered software systems not to shut down newer device, the device May include memory and processor, wherein have computer program in the memory, which calls in the memory When computer program, the step of above-described embodiment is provided may be implemented.Certainly, which can also include various necessary nets Network interface, power supply and other parts etc..
Present invention also provides a kind of computer readable storage mediums, have computer program thereon, the computer program The step of above-described embodiment is provided may be implemented when being performed terminal or processor execution.The storage medium may include:U Disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), the various media that can store program code such as magnetic disc or CD.
Each embodiment is described by the way of progressive in specification, the highlights of each of the examples are with other realities Apply the difference of example, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is referring to method part illustration .
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think to exceed scope of the present application.
Specific examples are used herein to illustrate the principle and implementation manner of the present application, and above example is said It is bright to be merely used to help understand the present processes and its core concept.For those skilled in the art, Under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out, these improvement and modification It falls into the application scope of the claims.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only that A little elements, but also include the other elements being not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or equipment including element.

Claims (10)

1. a kind of clustered software system does not shut down newer method, which is characterized in that including:
When needing the software systems for cluster to carry out version updating, according to the business load situation of each server in the cluster The low-load server of preset quantity is chosen, and builds to obtain pre-updated publication environment;
It issues and incremental update data file to the pre-updated obtained based on incremental data upgrade technique is installed and issue environment In;
Judge whether the pre-updated publication environment after incremental update operation executes meets the normal work requirement of the cluster;
If so, setting pre-updated publication environment to new actual motion environment, and utilize the new actual motion environment Support is provided for newly-established conversational services, and is carried out after former actual motion environmentally established conversational services whole Version updating, so that update is not shut down in entire cluster realization.
2. according to the method described in claim 1, it is characterized in that, according to the business load situation of each server in the cluster The low-load server of preset quantity is chosen, including:
Obtain the business load amount of each server in the cluster;
Compare the magnitude relationship between each business load amount and preset low-load threshold value;
Server for all business load amounts less than the low-load threshold value adds low-load label;
The server that the preset quantity is attached with the low-load label is chosen, the low-load server is obtained.
3. according to the method described in claim 1, it is characterized in that, judging the pre-updated publication ring after incremental update operation execution Whether border meets the normal work requirement of the cluster, including:
Judge whether the pre-updated publication environment after the incremental update operation executes realizes the incremental update data file The function adjustment brought.
4. according to the method described in claim 1, it is characterized in that, the pre-updated after judging that incremental update operation executes is issued Before whether environment meets the normal work requirement of the cluster, further include:
Judge whether version number of the pre-updated publication environment before executing the incremental update operation changes.
5. according to the method described in claim 1, it is characterized in that, when environmentally established conversational services are complete for former actual motion Version updating is carried out after portion, including:
After the former actual motion environmentally established conversational services, by preset path to the new actual motion Environment sends version updating request;
The new actual motion environment is asked according to the version updating that receives, returns to the incremental update data file to described Former actual motion environment;
The original actual motion environment completes version updating according to the incremental update data file received.
6. method according to any one of claims 1 to 5, which is characterized in that according to each server in the cluster After the low-load server of business load situation selection preset quantity, before building to obtain pre-updated publication environment, further include:
The low-load server is unloaded from cluster server stored reservoir.
7. according to the method described in claim 6, it is characterized in that, setting pre-updated publication environment to new actual motion Before environment, further include:
Extremely by each server for belonging to the pre-updated publication environment for the normal work requirement for meeting the cluster again carry The cluster server stored reservoir.
8. a kind of clustered software system does not shut down newer system, which is characterized in that including:
Pre-updated issue environmental structure unit, for when need for cluster software systems carry out version updating when, according to described The business load situation of each server chooses the low-load server of preset quantity in cluster, and builds to obtain pre-updated publication ring Border;
Update file issues and installation unit, for issuing and installing the incremental update number obtained based on incremental data upgrade technique It is issued in environment according to file to the pre-updated;
Update operation implementing result judging unit, for judging whether the pre-updated publication environment after incremental update operation executes is full The normal work requirement of the foot cluster;
Actual motion environmental treatment unit, for when the pre-updated publication environment meet it is described normal work require when, by institute It states pre-updated publication environment and is set as new actual motion environment, and taken for newly-established session using the new actual motion environment Business provides support, and carries out version updating after former actual motion environmentally established conversational services whole, so that whole Update is not shut down in a cluster realization.
9. a kind of clustered software system does not shut down newer device, which is characterized in that including:
Memory, for storing computer program;
Processor realizes clustered software system as described in any one of claim 1 to 7 when for executing the computer program Not the step of not shutting down newer method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program realize clustered software system as described in any one of claim 1 to 7 not when being executed by processor The step of shutting down newer method.
CN201810426645.XA 2018-05-07 2018-05-07 A kind of clustered software system does not shut down newer method, system and relevant apparatus Pending CN108681461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810426645.XA CN108681461A (en) 2018-05-07 2018-05-07 A kind of clustered software system does not shut down newer method, system and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810426645.XA CN108681461A (en) 2018-05-07 2018-05-07 A kind of clustered software system does not shut down newer method, system and relevant apparatus

Publications (1)

Publication Number Publication Date
CN108681461A true CN108681461A (en) 2018-10-19

Family

ID=63801853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810426645.XA Pending CN108681461A (en) 2018-05-07 2018-05-07 A kind of clustered software system does not shut down newer method, system and relevant apparatus

Country Status (1)

Country Link
CN (1) CN108681461A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109905463A (en) * 2019-01-29 2019-06-18 北京海杭通讯科技有限公司 The method issued automatically based on web application multiserver
CN110209405A (en) * 2019-06-04 2019-09-06 杭州安恒信息技术股份有限公司 The automatic updating method and device of distributed system
CN110286937A (en) * 2019-07-04 2019-09-27 北京伟杰东博信息科技有限公司 A kind of method and its system of distributed software operation
CN110990039A (en) * 2019-11-29 2020-04-10 北京金山云网络技术有限公司 Application program updating method, device and system and computer readable storage medium
CN111131146A (en) * 2019-11-08 2020-05-08 北京航空航天大学 Multi-supercomputing center software system deployment and incremental updating method in wide area environment
CN111538522A (en) * 2020-04-29 2020-08-14 北京思特奇信息技术股份有限公司 Zk-based message middleware online upgrading method and system
CN112433863A (en) * 2020-11-18 2021-03-02 平安消费金融有限公司 Micro-service calling method and device, terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739263A (en) * 2008-11-11 2010-06-16 英业达股份有限公司 Method and device for realizing operating system update in multi-computer cluster system
JP2014067162A (en) * 2012-09-25 2014-04-17 Nec Corp Cluster system and method of updating the cluster system
CN106550014A (en) * 2016-10-09 2017-03-29 华为数字技术(成都)有限公司 Node upgrade method and device in server cluster
CN106941420A (en) * 2017-03-16 2017-07-11 北京深思数盾科技股份有限公司 A kind of cluster application environment upgrade method and device
CN106953746A (en) * 2017-02-28 2017-07-14 努比亚技术有限公司 Clustered node upgrade-system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101739263A (en) * 2008-11-11 2010-06-16 英业达股份有限公司 Method and device for realizing operating system update in multi-computer cluster system
JP2014067162A (en) * 2012-09-25 2014-04-17 Nec Corp Cluster system and method of updating the cluster system
CN106550014A (en) * 2016-10-09 2017-03-29 华为数字技术(成都)有限公司 Node upgrade method and device in server cluster
CN106953746A (en) * 2017-02-28 2017-07-14 努比亚技术有限公司 Clustered node upgrade-system and method
CN106941420A (en) * 2017-03-16 2017-07-11 北京深思数盾科技股份有限公司 A kind of cluster application environment upgrade method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109905463A (en) * 2019-01-29 2019-06-18 北京海杭通讯科技有限公司 The method issued automatically based on web application multiserver
CN110209405A (en) * 2019-06-04 2019-09-06 杭州安恒信息技术股份有限公司 The automatic updating method and device of distributed system
CN110286937A (en) * 2019-07-04 2019-09-27 北京伟杰东博信息科技有限公司 A kind of method and its system of distributed software operation
CN110286937B (en) * 2019-07-04 2021-06-15 深圳市指尖互动娱乐有限公司 Distributed software operation method and system
CN111131146A (en) * 2019-11-08 2020-05-08 北京航空航天大学 Multi-supercomputing center software system deployment and incremental updating method in wide area environment
CN111131146B (en) * 2019-11-08 2021-04-09 北京航空航天大学 Multi-supercomputing center software system deployment and incremental updating method in wide area environment
CN110990039A (en) * 2019-11-29 2020-04-10 北京金山云网络技术有限公司 Application program updating method, device and system and computer readable storage medium
CN110990039B (en) * 2019-11-29 2023-09-05 北京金山云网络技术有限公司 Application program updating method, device and system and computer readable storage medium
CN111538522A (en) * 2020-04-29 2020-08-14 北京思特奇信息技术股份有限公司 Zk-based message middleware online upgrading method and system
CN111538522B (en) * 2020-04-29 2023-08-11 北京思特奇信息技术股份有限公司 Zk-based message middleware online upgrading method and system
CN112433863A (en) * 2020-11-18 2021-03-02 平安消费金融有限公司 Micro-service calling method and device, terminal equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108681461A (en) A kind of clustered software system does not shut down newer method, system and relevant apparatus
CN101411123B (en) Method, system and computer program for the centralized system management on endpoints of a distributed data processing system
US9047162B2 (en) Dynamic software version selection
US20060059005A1 (en) Systems and methods for managing data in an advanced planning environment
US8230416B2 (en) System, method and article of manufacture for using shadow installations of software modules during distributed system upgrade
US9201702B2 (en) Integrated cloud data center management
CN107016480A (en) Method for scheduling task, apparatus and system
EP2115586A2 (en) Distributed platform management for high availability systems
CN102662650A (en) Implementation method and system of flow engine based on dynamic business
CN109787858A (en) A kind of method and terminal of batch issuing service
CN109597764A (en) A kind of test method and relevant apparatus of catalogue quota
CN115544044A (en) Data consistency keeping method, device, equipment and storage medium
CN115576817A (en) Automatic test system, method, electronic equipment and storage medium
CN101446906A (en) Dispatching method for multi-batch processing tasks and system thereof
CN107329809A (en) A kind of distributed transaction processing method and system towards multi-data source
CN101221498A (en) System and method for managing service modules
CN104410511A (en) Server management method and system
US20100106749A1 (en) Reorganizing table-based data objects
CN112199432A (en) High-performance data ETL device based on distribution and control method
CN112347117A (en) Method and system for realizing PCB design resource sharing based on ERP system
CN107948259A (en) A kind of collocation method of Cloud Server resource and configuration system
CN113238735A (en) Project delivery task creation method, platform and system capable of defining flow
CN106293922A (en) Asynchronous task processing method and system
CN116414417A (en) Version updating method and device, nonvolatile storage medium and electronic equipment
CN109669727A (en) A kind of configuration method of server, system and associated component

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

Application publication date: 20181019

RJ01 Rejection of invention patent application after publication