CN110209405A - The automatic updating method and device of distributed system - Google Patents
The automatic updating method and device of distributed system Download PDFInfo
- Publication number
- CN110209405A CN110209405A CN201910483726.8A CN201910483726A CN110209405A CN 110209405 A CN110209405 A CN 110209405A CN 201910483726 A CN201910483726 A CN 201910483726A CN 110209405 A CN110209405 A CN 110209405A
- Authority
- CN
- China
- Prior art keywords
- installation kit
- host
- new version
- service node
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Abstract
The present invention provides a kind of automatic updating method and devices of distributed system, are related to distributed system technical field.This method is executed by the host of service node, it include: the new version installation kit obtained in controller, new version installation kit is verified, and the new version installation kit is respectively sent to each equipment of service node, so that each equipment of service node respectively verifies new version installation kit;If the check results that host and each equipment verify new version installation kit are qualification, the service traffics of host are switched into node standby host, stop the current service of host;Backup operation and automatic updating operation are successively executed to the current system version of the host of service node;If service traffics, are switched back into the host of service node, and control each equipment in service node and complete automatic updating operation by automatic updating operation success by node standby host.Present invention reduces the artificial updating operation bring risks of distributed system.
Description
Technical field
The present invention relates to distributed system technical fields, more particularly, to a kind of automatic updating method of distributed system
And device.
Background technique
With the development of mobile internet, very great system and application use distributed method all come the portion of progress
Administration.Bigger distributed system possesses more machines and needs to be serviced management, especially in edition upgrading iteration and patch
It is a very difficult task for operation maintenance personnel when upgrading.Once there is operation error, it is possible to be brought to system
Great economic loss, therefore, pure manual operation distributed system upgrading have biggish risk.
Summary of the invention
A kind of automatic updating method and device for being designed to provide distributed system of the embodiment of the present invention, Neng Goushi
The automatic updating of existing distributed system, reduces artificial updating operation bring risk.
In a first aspect, the embodiment of the invention provides a kind of automatic updating method of distributed system, the distribution
System includes service node and central node;The host of the service node respectively with the controller of the central node, described
Multiple equipment communication connection in service node, the method are executed by the host of the service node, comprising: obtain the control
New version installation kit in device processed verifies the new version installation kit, and the new version installation kit is sent respectively
To each equipment of the service node, so that each equipment of the service node respectively carries out the new version installation kit
Verification;If the check results that the host and each equipment verify the new version installation kit are conjunction
The service traffics of the host are switched to node standby host, stop the current service of the host by lattice;Wherein, the node is standby
Machine is the stand-by equipment chosen in the multiple equipment of the service node;To the current system version of the host of the service node
Successively execute backup operation and automatic updating operation;Wherein, the automatic updating operation is held based on the new version installation kit
Capable;If the service traffics are switched back into the service node by the node standby host by the automatic updating operation success
Host, and control each equipment in the service node and complete the automatic updating operation.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein institute
The new version installation kit obtained in the controller is stated, the new version installation kit is verified, and by the new edition intrinsic safety
Dress packet is respectively sent to each equipment of the service node, so that each equipment of the service node is respectively to the new edition
The step of this installation kit is verified, comprising: the new version installation kit is obtained from the controller according to preset time, and
The validity and integrality of the new version installation kit are verified;If the check results of the new version installation kit are closed
The new version installation kit, is respectively sent to each equipment of the service node by lattice, and makes each equipment to described
The validity and integrality of new version installation kit are verified.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein institute
Stating automatic updating operation includes: the edition upgrading setting parameter obtained in the controller, is arranged according to the edition upgrading and is joined
Current system version updating is new system version by the several and new version installation kit, and the update progress of system version is real
When be sent to the controller so that the update progress is fed back to user by user terminal by the controller;Wherein, institute
Stating edition upgrading setting parameter is that the controller is received by the user terminal, and parameter packet is arranged in the edition upgrading
Include update time and upgraded version information.
The possible embodiment of with reference to first aspect the first, the embodiment of the invention provides the third of first aspect
Possible embodiment, wherein the controller is also connected with user terminal;New version installation kit in the controller is institute
User terminal uploads are stated to the controller;The method also includes: obtain the verification of each equipment in the service node
As a result, the check results of the check results of the host and each equipment are sent to the controller, so that institute
It states controller and the check results is fed back into the user terminal.
With reference to first aspect or the first possible embodiment of first aspect, the embodiment of the invention provides first party
The 4th kind of possible embodiment in face, wherein the new version installation kit obtained from the controller is through the control
The qualified new version installation kit of device verification.
With reference to first aspect, the embodiment of the invention provides the 5th kind of possible embodiments of first aspect, wherein institute
State method further include: if the automatic updating operation failure, version rollback operation is carried out according to the system version of backup, and will
The automatic updating operation failure news is sent to the controller.
Second aspect, the embodiment of the invention also provides a kind of automatic updating device of distributed system, the distributions
Formula system includes service node and central node;The host of the service node respectively with the controller of the central node, institute
The multiple equipment communication connection in service node is stated, described device is set in the host of service node, comprising: correction verification module,
For obtaining the new version installation kit in the controller, the new version installation kit is verified, and by the new version
Installation kit is respectively sent to each equipment of the service node, so that each equipment of the service node is respectively to described new
Version installation kit is verified;Flow switching module, for being installed in the host and each equipment to the new version
When the check results that packet is verified all are qualification, the service traffics of the host are switched into node standby host, stop institute
State the current service of host;Wherein, the node standby host is the stand-by equipment chosen in the multiple equipment of the service node;It is main
Machine upgraded module, the current system version for the host to the service node successively execute backup operation and automatic upgrading behaviour
Make;Wherein, the automatic updating operation is executed based on the new version installation kit;Device upgrade module, for described
When automatic updating operation success, the service traffics are switched back into the host of the service node by the node standby host, and control
It makes each equipment in the service node and completes the automatic updating operation.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein institute
State device further include: version rollback module, for being carried out according to the system version of backup in automatic updating operation failure
Version rollback operation, and the automatic updating operation failure news is sent to the controller.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, including memory, processor, the memories
In be stored with the computer program that can be run on the processor, wherein when the processor executes the computer program
The step of realizing method as described in relation to the first aspect.
Fourth aspect, the embodiment of the invention provides a kind of computer-readable mediums, wherein the computer-readable medium
Computer executable instructions are stored with, the computer executable instructions are when being called and being executed by processor, the computer
Executable instruction promotes the method for the processor realization as described in relation to the first aspect.
The embodiment of the invention provides a kind of automatic updating method and device of distributed system, the distributed system packets
Include service node and central node;The host of service node is set with multiple in the controller of central node, service node respectively
Standby communication connection, this method are executed by the host of service node, in the method, new in acquisition central node controller first
Version installation kit, and new version installation kit is verified, then new version installation kit is respectively sent to each of service node
Equipment verifies each equipment of service node to new version installation kit respectively, when host and each equipment are to new version
When the check results that installation kit is verified all are qualification, the service traffics of host are switched into node standby host (node
Standby host is the stand-by equipment chosen in the multiple equipment of service node), it is then current to host to guarantee the normal operation of business
System version successively execute backup operation and automatic updating operation (automatic updating operation executed based on new version installation kit
), if the automatic updating operation success of host, by service traffics by node standby host switchback host, finally controls service node
In each equipment complete automatic updating operation, realize the automatic updating of distributed system, reduce artificial upgrading behaviour
Make bring risk.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification and attached drawing
Specifically noted structure is achieved and obtained.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of automatic updating method flow diagram of distributed system provided in an embodiment of the present invention;
Fig. 2 is a kind of automatic updating operation flow chart of service node provided in an embodiment of the present invention;
Fig. 3 is a kind of new version installation kit acquisition methods flow chart provided in an embodiment of the present invention;
Fig. 4 is a kind of automatic updating apparatus structure schematic diagram of distributed system provided in an embodiment of the present invention;
Fig. 5 is a kind of automatic updating apparatus structure schematic diagram of distributed system provided in an embodiment of the present invention;
Fig. 6 is a kind of electronic equipment structural schematic diagram provided in an embodiment of the present invention.
Specific embodiment
Technical solution of the present invention is clearly and completely described below in conjunction with embodiment, it is clear that described reality
Applying example is a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, the common skill in this field
Art personnel every other embodiment obtained without making creative work belongs to the model that the present invention protects
It encloses.
Since existing distributed system O&M operates generally by manually carrying out, bigger distributed system possesses more
Machine needs to be serviced management, is for operation maintenance personnel especially when edition upgrading iteration and patch upgrading
Very difficult task.Once there is operation error, it is possible to great economic loss is brought to system, therefore, pure people
Work, which operates distributed system upgrading, has biggish risk.Based on this, the embodiment of the invention provides a kind of distributed systems
Automatic updating method and device reduces artificial updating operation bring by realizing automatic updating to distributed system
Risk.
For the ease of understanding the present embodiment, first to a kind of distributed system disclosed in the embodiment of the present invention
Automatic updating method and device describes in detail.
Embodiment one:
The automatic updating method of a kind of distributed system provided in an embodiment of the present invention, referring to distribution as shown in Figure 1
The automatic updating method flow diagram of formula system, above-mentioned distributed system include service node and central node;Service node
Host respectively in the controller of central node, service node multiple equipment communicate to connect, this method by service node master
Machine executes, comprising:
S102: the new version installation kit in controller is obtained, new version installation kit is verified, and new version is installed
Packet is respectively sent to each equipment of service node, so that each equipment of service node carries out school to new version installation kit respectively
It tests.
The host of service node is according to the new version installation kit obtained between default in central node controller, and to acquisition
To the completeness and efficiency of new version installation kit verified, when check results are qualified, the host of service node will be new
Version installation kit is respectively sent to each equipment of service node, downloads each equipment of service node by new version installation kit
Success, then each equipment of service node the validity to new version installation kit and integrality can verify respectively.
The central node of distributed system is the node for managing and issuing user in distributed system and configure in front end page
Cluster, which is mainly stored user by the configuration that front end page carries out, and is handed down in distributed system
Non-central node, while central node is the node cluster directly interacted with the front end page of user's operation.Distribution system
The service node of system is the node cluster of real processing business logic function in distributed system.
In a kind of actual embodiment, the host of service node or each equipment are to the complete of new version installation kit
Property and validity when being verified, the specific method for verifying the integrality of new version installation kit may is that the above-mentioned new version of decompression
Installation kit simultaneously reads the md5 in new version installation kit (Message Digest 5, Message Digest Algorithm, abbreviation
MD5) file, host can also carry out md5 calculating to new version installation kit using Message Digest 5, judge calculated new version
Whether the md5 value of installation kit is consistent with the md5 value in the md5 file in the new version installation kit read, if it is, this is new
Version installation kit has integrality;If it is not, then the new version installation kit does not have integrality.Verification new version installation kit has
The specific method of effect property may is that since new version installation kit is named in a manner of version number+date+serial number, judgement is new
Whether the version number of version installation kit is higher than the current version number of system, if it is, the system version installation kit has effectively
Property;If it is not, then the system version installation kit does not have validity.When verified new version installation kit is provided simultaneously with integrality
When with validity, the check results of the new version installation kit are qualification.
S104: if the check results that host and each equipment verify new version installation kit are qualification,
The service traffics of host are switched into node standby host, stop the current service of host;Wherein, node standby host is the more of service node
The stand-by equipment chosen in a equipment.
If after host and each equipment verify new version installation kit, obtained check results are all qualification, then
The service traffics of service node host are switched to node standby host by the preparation process for initially entering automatic updating operation, to ensure
The problems such as host does not have an impact practical business when upgrading, such as generates service disconnection.Wherein, node standby host is working
The stand-by equipment chosen in the multiple equipment of node of being engaged in, stops the respective services of service node host.
S106: backup operation and automatic updating operation are successively executed to the current system version of the host of service node;Its
In, automatic updating operation is executed based on new version installation kit.
After the host of service node completes the preparation process of automatic updating operation, backup is first carried out to current system version
Operation, the current system version of host is backed up, and is then based on new version installation kit and is carried out certainly to current system version
Dynamic updating operation.
S108: if service traffics, are switched back into the host of service node by automatic updating operation success by node standby host, and
Each equipment in control service node completes automatic updating operation.
If the automatic updating operation success to service node host, that is, the system version of host are successfully updated to most
Service traffics are switched back into the host of service node by node standby host, then controlled in service node again by new system version
Each equipment successively executes automatic updating operation, and each equipment in service node, also can be complete before executing automatic updating operation
At the preparation process of automatic updating operation, i.e., the service traffics for the equipment that currently carry out automatic updating operation are switched into node
Standby host, and stop the current service of the equipment, and then backup operation and automatic upgrading are executed to the current system version of the equipment
Operation.
The embodiment of the invention provides a kind of automatic updating method of distributed system, service node in distributed system
Host by obtaining the new version installation kit in central node and being verified, when new version installation kit verifies qualified, cut
The host flow of service node is changed to node standby host, and host current system version is backed up, is then based on new edition intrinsic safety
Dress packet successively executes automatic updating operation to the host of service node and other multiple equipments, realizes the automatic of distributed system
Change upgrading, reduces artificial updating operation bring risk.
In view of the automatic updating time of distributed system, the present embodiment additionally provides the new version obtained in controller
Installation kit verifies new version installation kit, and new version installation kit is respectively sent to each equipment of service node, with
The specific embodiment for the step of verifying each equipment of service node to new version installation kit respectively:
New version installation kit is obtained from controller according to preset time, and to the validity of new version installation kit and completely
Property is verified.If the check results of new version installation kit are qualified, new version installation kit is respectively sent to service node
Each equipment, and verify each equipment to the validity and integrality of new version installation kit.The host of service node can
To obtain new version installation kit from the controller of central node according to preset time, and to the new version installation kit got
Validity and integrality are verified, wherein above-mentioned preset time can be preset time point or period, for example, business
The host of node can be when distributed system business is not busy (for example, when daily 1~6 when period in
Any time) from the controller of central node obtain new version installation kit.If the host of service node is to new version installation kit
Check results be qualification, then new version installation kit can be respectively sent to each equipment of service node by host, and make business
Each equipment of node verifies the validity and integrality of new version installation kit, to be the automatic upgrading of each equipment
Operation is prepared.
In order to further increase distributed system automatic updating convenience, present embodiments provide above-mentioned automatic liter
The specific embodiment that grade operates: parameter is arranged in the edition upgrading obtained in controller, according to edition upgrading setting parameter and newly
Current system version updating is new system version by version installation kit, and the update progress of system version is sent to control in real time
Device processed, so that update progress is fed back to user by user terminal by controller;Wherein, edition upgrading setting parameter is controller
It is received by user terminal, and edition upgrading setting parameter includes update time and upgraded version information.The master of service node
Machine obtains edition upgrading from the controller of central node and parameter, edition upgrading setting is arranged when executing automatic updating operation
Parameter is that parameter is arranged by the edition upgrading of the received user's input of the control page of user terminal in the controller of central node,
For example, distributed system is upgraded to newest version when edition upgrading setting parameter can be daily 2.Host is according to version liter
Current system version is updated to newly by update time and upgraded version information and new version installation kit in grade setting parameter
System version, and version updating progress when current system version is executed automatic updating operation is sent to central node in real time
Controller, make the controller of central node that the progress of automatic updating operation is passed through the control page Real-time Feedback of user terminal
To user.Wherein, the automatic updating operation flow chart of service node as shown in Figure 2, user is shown in Fig. 2, the control page (should
The control page is the page interacted with user in the user terminal being connected with central node), central node is (in the process
Main function is played in figure, in central node is the controller of central node) and service node (in service node include host
The node standby host being connect with main-machine communication), parameter, edition upgrading setting is arranged in control page input edition upgrading in user
Parameter includes the update time and upgraded version information that user specifies node, the edition upgrading parameter that the control page inputs user
It is sent to central node, before carrying out automatic updating operation, the host of service node can switch to service traffics service node
Node standby host in service node, and stop current service, then start successively to execute backup operation and automatic updating operation,
The host of service node obtains edition upgrading setting parameter from central node, and specifying in parameter is arranged according to edition upgrading
Current system version is updated to new system version by the update time and upgraded version information and new version installation kit of node
Originally, version updating progress when and current system version being executed automatic updating operation is sent to central node in real time, makes center
The version updating progress of automatic updating operation is shown version more by the controller of node by the control page of user terminal
New progress and as a result, to by the progress Real-time Feedback of automatic updating operation to user.
Service traffics can be switched to the node standby host in service node by the host of service node, and stop current clothes
Business, then starts successively to execute backup operation and automatic updating operation;
Demand in view of user to the upgraded version of distributed system present embodiments provides a kind of new version installation kit
Specific acquisition methods: controller is also connected with user terminal;New version installation kit in controller be user terminal uploads to
Controller.New version installation kit acquisition methods flow chart as shown in Figure 3, the controller based on central node are also whole with user
End communicates to connect, and user is shown in Fig. 3, the control page (hand over for realizing with user for being arranged in user terminal by the control page
The mutual page), central node and service node (service node includes host and the multiple equipment that connect with main-machine communication), user
The new version installation kit of distributed system can be uploaded by the control page, user terminal can will be received by controlling the page
New version installation kit be sent to central node, central node can store new version installation kit in the controller.Service node
Host according to preset time from central node timing acquisition new version installation kit, and when check results are qualified, by new edition
This installation kit is sent in the other equipment of service node.The host of service node can also be by host and each equipment got
Check results feed back to central node.
In order to allow users to the automatic escalation process for recognizing distributed system in real time, a kind of incite somebody to action is present embodiments provided
A kind of specific embodiment of the automatic updating progress feedback to user: obtaining the check results of each equipment in service node,
The check results of the check results of host and each equipment are sent to controller, so that controller feeds back check results
To user terminal.The host of service node obtains the school of each equipment after each equipment verifies new version installation kit
It tests as a result, the check results of each equipment and host are then sent to central node to the check results of new version installation kit
Above-mentioned check results can be fed back to user by user terminal by the controller of controller, central node, understand that user in real time
The Upgrade process of distributed system.If the check results of the host of service node and each equipment be it is unqualified, be distributed
Formula system can not carry out automatic updating operation, and user, can be again when by user terminal, to obtain check results be unqualified
By the control page uploading new version installation kit of user terminal, make distributed system restart to execute distributed system from
Dynamicization upgrade method.
In order to improve distributed system automatic updating method stability, obtained from controller new version installation
Packet is the qualified new version installation kit of via controller verification.The controller of central node passes through user terminal receiving user
After the new version installation kit of upload, can validity to new version installation kit and integrality verify, method of calibration and host
It is identical to the method for calibration of new version installation kit.Controller can just allow when the check results of new version installation kit are qualified
The host of service node obtains the new version installation kit, and therefore, the host of service node is obtained from the controller of central node
New version installation kit be the new version installation kit qualified by controller verification.
In view of can be potentially encountered distributed system upgrading when the automatic updating method of the distributed system being used to upgrade
The problem of failure, specific embodiment when present embodiments providing a kind of automatic upgrading failure: if automatic updating operation is lost
It loses, version rollback operation is carried out according to the system version of backup, and automatic updating operation failure news is sent to controller.
If the host of service node or each equipment of service node are executing automatic updating operation failure, host or each equipment
Version rollback operation, the normal system version used before being automatically retracted back into, to protect can be executed according to the system version of backup
The normal operation of card business.And automatic updating operation failure news will be executed and be sent to controller, so that controller is passed through user
The step of terminal feeds back to user, automatic updating method to execute distributed system again.
The embodiment of the invention provides a kind of automatic updating method of distributed system, this method be may be implemented to distribution
Service traffics can be switched to node standby host in system upgrade by the automatic updating of formula system, not influence the normal industry of system
Business;Upgrade process can also be passed through to user terminal Real-time Feedback in escalation process to user;User's input can also be received
Update time and upgraded version setting, improve user to the convenience of distributed system edition upgrading;Since system is upgrading
Before will do it system version backup, even if occur upgrading failure the case where, system will do it version rollback operation be automatically retracted back into
System version before upgrading to guarantee the normal operation of business, the O&M operational capacity of O&M operator is required it is low, greatly
Distributed system manual system updating operation bring risk is reduced greatly.
Embodiment two:
The embodiment of the invention provides a kind of automatic updating device of distributed system, distributed system as shown in Figure 4
The automatic updating apparatus structure schematic diagram of system, distributed system include service node and central node;The host of service node
It is communicated to connect respectively with the multiple equipment in the controller of central node, service node, device is set to the host of service node
In, comprising:
Correction verification module 41 verifies new version installation kit, and will for obtaining the new version installation kit in controller
New version installation kit is respectively sent to each equipment of service node, so that each equipment of service node is respectively to new edition intrinsic safety
Dress packet is verified.
Flow switching module 42, the verification knot for being verified in host and each equipment to new version installation kit
When fruit is all qualification, the service traffics of host are switched into node standby host, stop the current service of host;Wherein, node standby host
It is the stand-by equipment chosen in the multiple equipment of service node.
Host upgraded module 43, the current system version for the host to service node successively execute backup operation and oneself
Dynamic updating operation;Wherein, automatic updating operation is executed based on new version installation kit.
Device upgrade module 44, in the success of automatic updating operation, service traffics to be switched back into industry by node standby host
The host of business node, and control each equipment in service node and complete automatic updating operation.
In one embodiment, above-mentioned correction verification module 41 is further used for obtaining from controller according to preset time new
Version installation kit, and the validity and integrality of new version installation kit are verified;If the verification knot of new version installation kit
Fruit is qualified, new version installation kit is respectively sent to each equipment of service node, and make each equipment to new version installation kit
Validity and integrality verified.
In one embodiment, the edition upgrading that above-mentioned host upgraded module 43 is further used for obtaining in controller is set
Parameter is set, it is new system version that parameter and new version installation kit, which is arranged, by current system version updating according to edition upgrading, and
The update progress of system version is sent to controller in real time, so that update progress is fed back to use by user terminal by controller
Family;Wherein, edition upgrading setting parameter is that controller is received by user terminal, and edition upgrading setting parameter includes upgrading
Time and upgraded version information.
In one embodiment, controller is also connected with user terminal;New version installation kit in controller is user
Terminal is uploaded to controller.The new version installation kit obtained from controller is the qualified new edition intrinsic safety of via controller verification
Dress packet.The automatic updating apparatus structure schematic diagram of distributed system as shown in Figure 5, in the automation of above-mentioned distributed system
On the basis of update device, the device further include:
Display module 55, for obtaining the check results of each equipment in service node, by the check results of host and
The check results of each equipment are sent to controller, so that check results are fed back to user terminal by controller.
In one embodiment, the automatic updating device of above-mentioned distributed system further include:
Version rollback module 56, for carrying out version according to the system version of backup and returning in the failure of automatic updating operation
Operation is moved back, and automatic updating operation failure news is sent to controller.
The embodiment of the invention provides a kind of automatic updating devices of distributed system, provide with above-described embodiment one
The automatic updating method technical characteristic having the same of distributed system reaches so also can solve identical technical problem
Identical technical effect.
The technical effect of device provided by the present embodiment, realization principle and generation is identical with previous embodiment, for letter
It describes, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
Embodiment three:
A kind of electronic equipment provided in an embodiment of the present invention, electronic devices structure schematic diagram as shown in FIG. 6, electronic equipment
Including processor 61, memory 62, the computer program that can be run on the processor is stored in the memory, it is described
Processor realizes the step of method that above-described embodiment one provides when executing the computer program.
Referring to Fig. 6, electronic equipment further include: bus 64 and communication interface 63, processor 61, communication interface 63 and memory
62 are connected by bus 64.Processor 61 is for executing the executable module stored in memory 62, such as computer program.
Wherein, memory 62 may include high-speed random access memory (RAM, Random Access Memory),
It may further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.By at least
One communication interface 63 (can be wired or wireless) realizes the communication between the system network element and at least one other network element
Connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 64 can be ISA (Industry Standard Architecture, industry standard architecture) bus,
PCI (Peripheral Component Interconnect, Peripheral Component Interconnect standard) bus or EISA (Extended
Industry Standard Architecture, expanding the industrial standard structure) bus etc..It is total that the bus can be divided into address
Line, data/address bus, control bus etc..Only to be indicated with a four-headed arrow in Fig. 6, it is not intended that only one convenient for indicating
Root bus or a type of bus.
Wherein, memory 62 is for storing program, and the processor 61 executes the journey after receiving and executing instruction
Sequence, method performed by the device that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to handle
In device 61, or realized by processor 61.
Processor 61 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side
Each step of method can be completed by the integrated logic circuit of the hardware in processor 61 or the instruction of software form.Above-mentioned
Processor 61 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network
Processor (Network Processor, abbreviation NP) etc..It can also be digital signal processor (Digital Signal
Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable
Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention
Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint
What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing
Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at
Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally
In the storage medium of field maturation.The storage medium is located at memory 62, and processor 61 reads the information in memory 62, in conjunction with
Its hardware completes the step of above method.
Example IV:
A kind of computer-readable medium provided in an embodiment of the present invention, wherein the computer-readable medium storage has meter
Calculation machine executable instruction, when being called and being executed by processor, the computer is executable to be referred to the computer executable instructions
Order promotes the processor to realize method described in embodiment one.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to
So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into
Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme.
Claims (10)
1. a kind of automatic updating method of distributed system, which is characterized in that the distributed system include service node and
Central node;The host of the service node is set with multiple in the controller of the central node, the service node respectively
Standby communication connection, the method are executed by the host of the service node, comprising:
The new version installation kit in the controller is obtained, the new version installation kit is verified, and by the new version
Installation kit is respectively sent to each equipment of the service node, so that each equipment of the service node is respectively to described new
Version installation kit is verified;
If the check results that the host and each equipment verify the new version installation kit are conjunction
The service traffics of the host are switched to node standby host, stop the current service of the host by lattice;Wherein, the node is standby
Machine is the stand-by equipment chosen in the multiple equipment of the service node;
Backup operation and automatic updating operation are successively executed to the current system version of the host of the service node;Wherein, institute
Stating automatic updating operation is executed based on the new version installation kit;
If the service traffics are switched back into the service node by the node standby host by the automatic updating operation success
Host, and control each equipment in the service node and complete the automatic updating operation.
2. the method according to claim 1, wherein the new version installation kit obtained in the controller,
The new version installation kit is verified, and the new version installation kit is respectively sent to each of described service node and is set
It is standby, so that the step of each equipment of the service node respectively verifies the new version installation kit, comprising:
The new version installation kit is obtained from the controller according to preset time, and to the effective of the new version installation kit
Property and integrality are verified;
If the check results of the new version installation kit are qualified, the new version installation kit is respectively sent to the business section
Each equipment of point, and verify each equipment to the validity and integrality of the new version installation kit.
3. the method according to claim 1, wherein the automatic updating operation includes: to obtain the controller
In edition upgrading parameter is set, parameter and the new version installation kit are arranged for current system version according to the edition upgrading
It is updated to new system version, and the update progress of system version is sent to the controller in real time, so that the controller
The update progress is fed back into user by user terminal;Wherein, the edition upgrading setting parameter is that the controller is logical
It is received to cross the user terminal, and edition upgrading setting parameter includes update time and upgraded version information.
4. according to the method described in claim 2, it is characterized in that, the controller is also connected with user terminal;The control
New version installation kit in device is the user terminal uploads to the controller;
The method also includes:
The check results for obtaining each equipment in the service node, by the check results of the host and each equipment
Check results be sent to the controller so that the check results are fed back to the user terminal by the controller.
5. method according to claim 1 or 2, which is characterized in that the new version installation kit obtained from the controller
It is the new version installation kit qualified through controller verification.
6. the method according to claim 1, wherein further include:
If the automatic updating operation failure, version rollback operation is carried out according to the system version of backup, and will be described automatic
Updating operation failure news is sent to the controller.
7. a kind of automatic updating device of distributed system, which is characterized in that the distributed system include service node and
Central node;The host of the service node is set with multiple in the controller of the central node, the service node respectively
Standby communication connection, described device are set in the host of service node, comprising:
Correction verification module verifies the new version installation kit for obtaining the new version installation kit in the controller, and
The new version installation kit is respectively sent to each equipment of the service node, so that each equipment of the service node
The new version installation kit is verified respectively;
Flow switching module, for what is verified in the host and each equipment to the new version installation kit
When check results are all qualification, the service traffics of the host are switched into node standby host, stop the current service of the host;
Wherein, the node standby host is the stand-by equipment chosen in the multiple equipment of the service node;
Host upgraded module, the current system version for the host to the service node successively execute backup operation and automatic
Updating operation;Wherein, the automatic updating operation is executed based on the new version installation kit;
Device upgrade module, in automatic updating operation success, the service traffics to be cut by the node standby host
The host of the service node is gained, and controls each equipment in the service node and completes the automatic updating operation.
8. device according to claim 7, which is characterized in that further include:
Version rollback module, for carrying out version rollback according to the system version of backup in automatic updating operation failure
Operation, and the automatic updating operation failure news is sent to the controller.
9. a kind of electronic equipment, including memory, processor, be stored in the memory to run on the processor
Computer program, which is characterized in that the processor realizes that the claims 1 to 6 are any when executing the computer program
The step of method described in item.
10. a kind of computer-readable medium, which is characterized in that the computer-readable medium storage has computer is executable to refer to
It enables, for the computer executable instructions when being called and being executed by processor, the computer executable instructions promote the place
It manages device and realizes method as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910483726.8A CN110209405B (en) | 2019-06-04 | 2019-06-04 | Automatic upgrading method and device for distributed system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910483726.8A CN110209405B (en) | 2019-06-04 | 2019-06-04 | Automatic upgrading method and device for distributed system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110209405A true CN110209405A (en) | 2019-09-06 |
CN110209405B CN110209405B (en) | 2023-06-16 |
Family
ID=67790793
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910483726.8A Active CN110209405B (en) | 2019-06-04 | 2019-06-04 | Automatic upgrading method and device for distributed system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110209405B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110944042A (en) * | 2019-11-12 | 2020-03-31 | 中核控制系统工程有限公司 | Online automatic protocol updating method based on FPGA |
CN111158719A (en) * | 2019-12-26 | 2020-05-15 | 湖南快乐阳光互动娱乐传媒有限公司 | Application software upgrading method and device |
CN111506331A (en) * | 2020-03-08 | 2020-08-07 | 苏州浪潮智能科技有限公司 | Server BMC refreshing method, system, terminal and storage medium |
CN111651175A (en) * | 2020-04-27 | 2020-09-11 | 厦门科灿信息技术有限公司 | Upgrading method, device, terminal and storage medium of data center monitoring system |
CN112631627A (en) * | 2020-12-10 | 2021-04-09 | 武汉联影医疗科技有限公司 | Software upgrading method and device, computer equipment and storage medium |
WO2022057561A1 (en) * | 2020-09-17 | 2022-03-24 | 中兴通讯股份有限公司 | Switching method, system, server, and storage medium |
CN115827789A (en) * | 2023-02-21 | 2023-03-21 | 苏州浪潮智能科技有限公司 | Method, system, equipment and storage medium for optimizing file type database upgrading |
CN115955399A (en) * | 2022-12-12 | 2023-04-11 | 安芯网盾(北京)科技有限公司 | Grading method and system for distributed multi-node detection engine |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1758607A (en) * | 2005-11-10 | 2006-04-12 | 中国工商银行 | Software edition updating system in distributed service system and its method |
CN101105745A (en) * | 2006-07-14 | 2008-01-16 | 中兴通讯股份有限公司 | Distributed type software system disposition method |
US20140129521A1 (en) * | 2011-09-23 | 2014-05-08 | Hybrid Logic Ltd | System for live-migration and automated recovery of applications in a distributed system |
CN104007996A (en) * | 2014-06-16 | 2014-08-27 | 南京融教科技有限公司 | Reliable firmware upgrading realizing method for distributed control system |
US20140298091A1 (en) * | 2013-04-01 | 2014-10-02 | Nebula, Inc. | Fault Tolerance for a Distributed Computing System |
WO2016086654A1 (en) * | 2014-12-03 | 2016-06-09 | 广州广电运通金融电子股份有限公司 | Remote upgrade method and system for software on self-service terminal, and upgrade package creation method |
US20160342408A1 (en) * | 2015-05-20 | 2016-11-24 | International Business Machines Corporation | Rolling upgrade of a distributed application |
CN106470121A (en) * | 2016-08-30 | 2017-03-01 | 锐捷网络股份有限公司 | The upgrade method of virtual switch unit VSU system, device and VSU system |
CN107135089A (en) * | 2016-02-29 | 2017-09-05 | 大唐移动通信设备有限公司 | A kind of method and apparatus upgraded to operation maintenance center's system |
CN108681461A (en) * | 2018-05-07 | 2018-10-19 | 广东电网有限责任公司 | A kind of clustered software system does not shut down newer method, system and relevant apparatus |
CN109375934A (en) * | 2018-09-30 | 2019-02-22 | 天津天地伟业电子工业制造有限公司 | A kind of upgrade method of network cluster device systems |
CN109413210A (en) * | 2018-12-18 | 2019-03-01 | 郑州云海信息技术有限公司 | Target drives upgrade method, device, equipment and the medium of distributed cluster system |
-
2019
- 2019-06-04 CN CN201910483726.8A patent/CN110209405B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1758607A (en) * | 2005-11-10 | 2006-04-12 | 中国工商银行 | Software edition updating system in distributed service system and its method |
CN101105745A (en) * | 2006-07-14 | 2008-01-16 | 中兴通讯股份有限公司 | Distributed type software system disposition method |
US20140129521A1 (en) * | 2011-09-23 | 2014-05-08 | Hybrid Logic Ltd | System for live-migration and automated recovery of applications in a distributed system |
US20140298091A1 (en) * | 2013-04-01 | 2014-10-02 | Nebula, Inc. | Fault Tolerance for a Distributed Computing System |
CN104007996A (en) * | 2014-06-16 | 2014-08-27 | 南京融教科技有限公司 | Reliable firmware upgrading realizing method for distributed control system |
WO2016086654A1 (en) * | 2014-12-03 | 2016-06-09 | 广州广电运通金融电子股份有限公司 | Remote upgrade method and system for software on self-service terminal, and upgrade package creation method |
US20160342408A1 (en) * | 2015-05-20 | 2016-11-24 | International Business Machines Corporation | Rolling upgrade of a distributed application |
CN107135089A (en) * | 2016-02-29 | 2017-09-05 | 大唐移动通信设备有限公司 | A kind of method and apparatus upgraded to operation maintenance center's system |
CN106470121A (en) * | 2016-08-30 | 2017-03-01 | 锐捷网络股份有限公司 | The upgrade method of virtual switch unit VSU system, device and VSU system |
CN108681461A (en) * | 2018-05-07 | 2018-10-19 | 广东电网有限责任公司 | A kind of clustered software system does not shut down newer method, system and relevant apparatus |
CN109375934A (en) * | 2018-09-30 | 2019-02-22 | 天津天地伟业电子工业制造有限公司 | A kind of upgrade method of network cluster device systems |
CN109413210A (en) * | 2018-12-18 | 2019-03-01 | 郑州云海信息技术有限公司 | Target drives upgrade method, device, equipment and the medium of distributed cluster system |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110944042A (en) * | 2019-11-12 | 2020-03-31 | 中核控制系统工程有限公司 | Online automatic protocol updating method based on FPGA |
CN111158719A (en) * | 2019-12-26 | 2020-05-15 | 湖南快乐阳光互动娱乐传媒有限公司 | Application software upgrading method and device |
CN111158719B (en) * | 2019-12-26 | 2023-06-16 | 湖南快乐阳光互动娱乐传媒有限公司 | Application software upgrading method and device |
CN111506331A (en) * | 2020-03-08 | 2020-08-07 | 苏州浪潮智能科技有限公司 | Server BMC refreshing method, system, terminal and storage medium |
CN111651175A (en) * | 2020-04-27 | 2020-09-11 | 厦门科灿信息技术有限公司 | Upgrading method, device, terminal and storage medium of data center monitoring system |
WO2022057561A1 (en) * | 2020-09-17 | 2022-03-24 | 中兴通讯股份有限公司 | Switching method, system, server, and storage medium |
CN112631627A (en) * | 2020-12-10 | 2021-04-09 | 武汉联影医疗科技有限公司 | Software upgrading method and device, computer equipment and storage medium |
CN115955399A (en) * | 2022-12-12 | 2023-04-11 | 安芯网盾(北京)科技有限公司 | Grading method and system for distributed multi-node detection engine |
CN115955399B (en) * | 2022-12-12 | 2023-09-15 | 安芯网盾(北京)科技有限公司 | Method and system for upgrading and downgrading distributed multi-node detection engine |
CN115827789A (en) * | 2023-02-21 | 2023-03-21 | 苏州浪潮智能科技有限公司 | Method, system, equipment and storage medium for optimizing file type database upgrading |
Also Published As
Publication number | Publication date |
---|---|
CN110209405B (en) | 2023-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110209405A (en) | The automatic updating method and device of distributed system | |
CN103777972B (en) | System, configuration method based on field programmable gate array and upgrade method | |
CN110347414A (en) | Firmware update, device, equipment and computer readable storage medium | |
DE112009002207B4 (en) | Updating firmware with multiple processors | |
CN100514943C (en) | An upgrade management method and system for instant message client | |
CN104090796A (en) | Embedded device program updating method and system | |
CN105975308B (en) | The remote update system and remote upgrade method of low memory overhead in home gateway | |
CN102271057B (en) | Parameter updating method and equipment | |
CN104933520A (en) | Processing method of examination and approval items | |
CN108134690B (en) | Network service deployment process control method, device and system | |
CN109656767A (en) | A kind of acquisition methods, system and the associated component of CPLD status information | |
US10469620B2 (en) | Method for transferring a new software version to at least one electricity meter via a communication network | |
CN102214114B (en) | Method and system for updating programs of double-CPU (Central Processing Unit) system client computer | |
CN110912725A (en) | Configuration method and configuration device of OpenFlow virtual switch | |
CN107995033B (en) | ONU configuration file upgrading method and device | |
CN113141410A (en) | Dynamically adjusted QPS control method, system, device and storage medium | |
CN108874738A (en) | Distributed parallel operation method, device, computer equipment and storage medium | |
CN109992280A (en) | A kind of method, terminal installation and the storage device of embedded software upgrading | |
CN107203392A (en) | A kind of many stipulations implementation methods of mini system end product | |
WO2016177202A1 (en) | Method and device for patch maintenance | |
CN113778732A (en) | Fault positioning method and device for service board card | |
CN109002319B (en) | LORA protocol-based patch upgrading method, device and system | |
CN106603263A (en) | Service cutover method, device and equipment | |
CN115102879B (en) | Test method of shared service platform, electronic equipment and storage medium | |
CN105681072B (en) | A kind of IP address management method and device of service card |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |