CN106685688A - Cluster computer device synchronous upgrade method - Google Patents
Cluster computer device synchronous upgrade method Download PDFInfo
- Publication number
- CN106685688A CN106685688A CN201610849017.3A CN201610849017A CN106685688A CN 106685688 A CN106685688 A CN 106685688A CN 201610849017 A CN201610849017 A CN 201610849017A CN 106685688 A CN106685688 A CN 106685688A
- Authority
- CN
- China
- Prior art keywords
- upgrade
- firmware
- equipment
- cluster
- synchronous
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- 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
Abstract
The present invention discloses a cluster computer device synchronous upgrade method. The invention aims to realize the firmware upgrade of all node devices including a master device and slave devices. The method includes the following steps that: upgrade firmware is uploaded to the file system of the master device; the master device is degraded to a slave device after completing firmware upgrade; and at least one slave device is upgraded to master devices and begins local firmware upgrade, and the master devices are degraded to the slave devices after completing the firmware upgrade and begins an upgrade restart process, and the upgrade of all cluster node devices is completed as the previous process. According to the cluster computer device synchronous upgrade method of the invention, the current master device is utilized to complete the synchronous distribution of the upgrade firmware, the completion of the switching of the master device and slave devices and the triggering of a upgrade synchronization process can be realized by means of the control and management of a cluster computer, and therefore, the problems of low flexibility and low efficiency of an existing cluster computer device upgrade mode can be solved.
Description
Technical field
The present invention relates to computer application field, more particularly to the synchronous upgrade technique of PC cluster machine equipment.
Background technology
HA(High Availability, high availability)Cluster(Cluster)System is by one group of physical host node
User provides transparent redundant traffic disposal ability, realizes continual offer service.Each physical host is referred to as saved in system
Point, each node possesses independent unique host name, and possesses one group of resource of oneself, such as disk, file system, network
Address etc..When host node is unavailable in system or cannot process user's request, the Internet resources that the node is provided can turn in time
Move on to other physical nodes to process, these are for a user transparent, and user need not be concerned about the transfer of resource, node
The operation such as switching, is automatically performed by HA systems.
In actual applications, shared resource is typically by physical disk disk array cabinet or the fast equipment of mirror image using software realization
The storage of appearance replicates solution(Such as DRBD).There is the operating right to the resource due to there was only current primary node, other are from section
Point directly cannot conduct interviews to it, when needing to upgrade equipment firmware, generally require and first cluster is removed and distinguished
It is upgraded, group system is reconfigured and constitute after the completion of upgrading again.The service stopping time certainly will be so caused to increase,
And the problem that upgrade job difficulty is big, efficiency is low.
The content of the invention
The present invention provides a kind of PC cluster machine equipment synchronization upgrade method, for being automatically obtained cluster in main equipment and each
From the collaboration upgrade function of equipment.
In order to realize presently disclosed technical scheme, a kind of PC cluster machine equipment synchronization upgrade method, bag
Include following key step:
Firmware updating is uploaded to main equipment node, by the mirror image transfer function synchronous transfer of mirror image block device to all from equipment
Node, realizes the firmware updating synchronized upload of all cluster computer device nodes;Wherein described firmware updating is used for cluster section
The application service upgrading of point.
Simultaneously current master needs to judge whether synchronous transfer is completed firmware updating;If not, main equipment node needs
Wait is transmitted or transmission time reaches max-timeout duration, and flow process mistake of now upgrading terminates, and notifies upper-layer user
Staging error reason.
If it is, main equipment then starts local upgrade flow process, and it is from equipment first to lower one's standard or status before upgrading is restarted.
Methods described also includes:Main equipment carries out judgement to firmware version information to determine locally whether need to start upgrading
Flow process.Main equipment lowers one's standard or status operation then for discharging shared resource.
Methods described also includes:It is that from after equipment, other are under management of the equipment in cluster management module that main equipment is lowered one's standard or status
Main equipment is promoted as, the read-write operation authority of the related shared resource such as firmware updating is obtained.
Lowering one's standard or status and being promoted for the equipment realize unified management by cluster management module and process.
Continuation offer service after main equipment is promoted as from equipment, and starts local upgrading and judge flow process.If locally reached
It is to restart flow process from equipment and equipment then to start local upgrade flow process and lower one's standard or status to promotion condition.The like, Zhi Daosuo
There is cluster computer device node to complete updating operation.
Said method also includes:The upgrading that whole clustered node is completed in the presence of cluster management module judges, judges
Whether the upgrading flow process of whole cluster is completed.
If it is, whole cluster upgrade flow process terminates.
If it is not, then continuing the upgrading flow process of other nodes.
Said method also includes:All PC cluster machine equipments are completed after upgrading, if need to switch to system initial
Host node.
If it is, completing the switching flow of node in the presence of cluster management module.
If it is not, then the service that cluster current master is responsible for current system is provided.
The present invention by the synchronization distribution of firmware updating, and in the presence of cluster management module control device promote and
Lower one's standard or status, realize the DFU of whole cluster.Solve existing cluster firmware upgrade mode complicated, the service stopping time is long
Problem, improve cluster firmware upgrade maintenance efficiency, reduce maintenance cost.
Description of the drawings
Fig. 1 is the basic framework figure of cluster device node composition in the specific embodiment of the invention;
Fig. 2 is the flow chart one of cluster device synchronization upgrade method in the specific embodiment of the invention;
Fig. 3 is the flowchart 2 of cluster device synchronization upgrade method in the specific embodiment of the invention.
Specific embodiment
With reference to the accompanying drawings and examples the present invention is described in further detail.It is understandable that now described
Specific embodiment be used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, for convenience
Description, is only illustrated in part rather than the entire infrastructure of correlation of the invention in accompanying drawing.
Fig. 1 is the basic framework figure of cluster device node composition in the specific embodiment of the invention.Fig. 1 shows a base
Clustered node framework in this group scheme, mainly by work at present host node device and some from node device and cluster
Management module is constituted.Cluster management module realizes the functions such as the lowering one's standard or status, promote of node, node state.Current primary node equipment pair
Outer offer service, uses from node device as backup.The main section of any write is capable of achieving under the function of mirror image block device
The data of the local file system of point device, while recording in the same manner in other file system from node device.
Local host node device keeps real-time synchronization with distance host from the data of node device.Synchronization can only have a node to set
Standby to be in Primary states, other are in Secondary states from node device.
Fig. 2 is the flow chart one of cluster device synchronization upgrade method in the specific embodiment of the invention;Fig. 3 is tool of the present invention
The flowchart 2 of cluster device synchronization upgrade method in body embodiment.From the two width figure, the synchronization of group scheme of the present invention
The flow process of upgrade method, this realizes being described in detail as follows for flow process 100:
Step 1001, starts updating operation, and firmware updating is uploaded to current master file system by WebUI or other modes
In.Main equipment judges that the information such as firmware version decide whether to start local firmware upgrade flow process.If local firmware version
Consistent with new firmware version, local upgrade flow process is not triggered.
Step 1002, the synchronization distribution of firmware updating, the mirror image that can pass through shared disk array or other software realization is fast
Equipment(Such as DRBD)And other transmission means realize the synchronization distribution of firmware.
Step 1003, judges whether synchronous transfer is completed firmware updating, if can be by mirror image block device realized admittedly
The synchronization distribution of part, then the file system of distance host also can be synchronously written after local file system completes to write.If
By intra-node transport module the transmission of firmware can be realized then by the transmission request and response message of main and subordinate node come really
It is calmly all to complete from the firmware synchronous transfer of node.
Above-mentioned transmission request and response message format example are as follows:
Request:
<xml version="1.0" encoding="utf-8" >
<request>
<cmd_type>ImgTrans<cmd_type>
<cmd_id>12300<cmd_id>
<img_hmac>5202A0Ef12345343...<img_hmac>
<source_addr>tcp:192.168.129.2:5068<source_addr>
</request>
Wherein field is explained as follows:
cmd_type:Information order type character string, order receives then to carry out respective handling according to type of message;
cmd_id:Message unique identifier, for distinguishing the uniqueness of each message;
img_hmac:For judging the integrality that firmware is transmitted;
source_addr:Specific firmware obtains address and transport-type;
Response:
<xml version="1.0" encoding="utf-8" >
<response>
<cmd_type>img_trans<cmd_type>
<cmd_id>12300<cmd_id>
<result></result>
<reason></reason>
</response>
Wherein field is explained as follows:
cmd_type:Information order type character string, order receives then to carry out respective handling according to type of message;
cmd_id:Message unique identifier, for distinguishing the uniqueness of each message;
result:For feedback command implementing result;Success:Success, failure:fail;
Reason:It is optional, when firmware obtain failure when feeding back unsuccessful reason.
Step 1004, if firmware bust this or transmission time exceed max-timeout duration, then it is assumed that this firmware point
Failure is sent out, then this cluster upgrade failure, and feed back upgrading failure cause to user.
Step 1005, if firmware distribution completes and judges locally to need firmware updating before main equipment, completes upgrading
Lower one's standard or status after flow process and be from equipment and start local upgrade and restart flow process.
If main equipment judges that local firmware, without the need for upgrading, only triggers operation of lowering one's standard or status.
Step 1006, in the presence of cluster management module, other certain from equipment will be promoted as main equipment and start this
The firmware upgrade on ground judges flow process, and herein firmware upgrade decision logic and step are consistent with step 1005.It is promoted as from equipment
Start local firmware upgrade startup firmware upgrade simultaneously after main equipment and restart flow process, and it is from equipment to lower one's standard or status before restarting.
Step 1007, by being progressively promoted as main equipment and completing the upgrading flow process of firmware completing the liter of whole cluster
Level, judges whether that all nodes are upgraded in the presence of cluster management module and completes.Select from equipment from multiple during being somebody's turn to do
The process for enumerating main equipment is realized by cluster vote by ballot mechanism, similar with general cluster election mechanism.
Step 1008, cluster upgrade success.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.Those skilled in the art can manage
Solution, the invention is not restricted to described specific embodiment, can carry out for a person skilled in the art various obvious changes,
Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
More other Equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.
Claims (10)
1. a kind of PC cluster machine equipment synchronization upgrade method, to realize that all node devices include main equipment and each from equipment
Firmware upgrade, it is characterised in that methods described includes:
In uploading the file system of firmware updating to the main equipment;
It is from equipment that the main equipment is lowered one's standard or status after firmware upgrade is completed;
At least one is promoted as main equipment from equipment, starts local firmware upgrade, and it is, from equipment, and to start to rise to lower one's standard or status after the completion of upgrading
Level restarts flow process.
2. synchronous upgrade method according to claim 1, it is characterised in that also include before the main equipment firmware upgrade
Following steps:Distribution is synchronized to the firmware updating.
3. synchronous upgrade method according to claim 2, it is characterised in that methods described also includes:In the firmware upgrade
Before, judgement is carried out to firmware version information to decide whether to start firmware upgrade, judged result is for otherwise only triggering is lowered one's standard or status
Operation.
4. synchronous upgrade method according to claim 3, it is characterised in that the firmware updating synchronization distribution is referred to and passed through
Mirror image block device realizes the synchronization distribution of the firmware updating.
5. synchronous upgrade method according to claim 3, it is characterised in that the firmware updating synchronization distribution is referred to and passed through
Intra-node transport module is realized, i.e., by the transmission request of master-slave equipment and in response to determining that all synchronous transfers from equipment.
6. the synchronous upgrade method according to claim 4 or 5, its characteristic is that methods described also includes:When the master sets
Lattice of making preparation for dropping are from after equipment, also to need the reboot operation for performing device upgrade.
7. synchronous upgrade method according to claim 6, its characteristic is that methods described also includes:It is each in the cluster
Perform the upgrading that whole cluster is realized after promote operation and the firmware upgrade successively from equipment.
8. synchronous upgrade method according to claim 7, it is characterised in that participation of the methods described in cluster management module
Lower one's standard or status described in lower realization and the management promoted, while finally judging whether that all node devices complete upgrading.
9. synchronous upgrade method according to claim 8, it is characterised in that methods described is elected from multiple from equipment
The process of main equipment is realized by cluster vote by ballot mechanism.
10. synchronous upgrade method according to claim 9, it is characterised in that during the firmware updating synchronization distribution,
If firmware bust this or transmission time exceed max-timeout duration, then it is assumed that this firmware distribution failure, this cluster liter
Level failure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610849017.3A CN106685688A (en) | 2016-09-26 | 2016-09-26 | Cluster computer device synchronous upgrade method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610849017.3A CN106685688A (en) | 2016-09-26 | 2016-09-26 | Cluster computer device synchronous upgrade method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106685688A true CN106685688A (en) | 2017-05-17 |
Family
ID=58840013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610849017.3A Pending CN106685688A (en) | 2016-09-26 | 2016-09-26 | Cluster computer device synchronous upgrade method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106685688A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108882211A (en) * | 2018-06-15 | 2018-11-23 | 歌尔科技有限公司 | A kind of method, system and the TWS earphone of the upgrading of TWS earphone program |
CN108881386A (en) * | 2018-05-11 | 2018-11-23 | 郑州易湃科技有限公司 | The remote firmware updating method and remote firmware updating device of communication equipment |
CN109068211A (en) * | 2018-08-01 | 2018-12-21 | 广东思派康电子科技有限公司 | A kind of TWS earphone and its computer readable storage medium |
CN110572284A (en) * | 2019-08-30 | 2019-12-13 | 华为技术有限公司 | Method, device and system for upgrading virtual network element |
CN115150273A (en) * | 2022-06-30 | 2022-10-04 | 联想(北京)有限公司 | Upgrade processing method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6675258B1 (en) * | 2000-06-30 | 2004-01-06 | Lsi Logic Corporation | Methods and apparatus for seamless firmware update and propagation in a dual raid controller system |
CN101369923A (en) * | 2008-09-24 | 2009-02-18 | 中兴通讯股份有限公司 | Method for improving cluster web service performance by using distributed hash table |
CN101876910A (en) * | 2009-10-28 | 2010-11-03 | 创新科存储技术有限公司 | Double-controller disk memory array, firmware upgrading method and controller thereof |
CN103713925A (en) * | 2013-12-26 | 2014-04-09 | 北海创新科存储技术有限公司 | Method and device for avoiding service interruption of storage array in upgrading process |
CN104917792A (en) * | 2014-03-12 | 2015-09-16 | 上海宝信软件股份有限公司 | Democratic and autonomous cluster management method and system |
CN105337904A (en) * | 2014-08-05 | 2016-02-17 | 杭州华三通信技术有限公司 | Controller cluster upgrading method and device |
-
2016
- 2016-09-26 CN CN201610849017.3A patent/CN106685688A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6675258B1 (en) * | 2000-06-30 | 2004-01-06 | Lsi Logic Corporation | Methods and apparatus for seamless firmware update and propagation in a dual raid controller system |
CN101369923A (en) * | 2008-09-24 | 2009-02-18 | 中兴通讯股份有限公司 | Method for improving cluster web service performance by using distributed hash table |
CN101876910A (en) * | 2009-10-28 | 2010-11-03 | 创新科存储技术有限公司 | Double-controller disk memory array, firmware upgrading method and controller thereof |
CN103713925A (en) * | 2013-12-26 | 2014-04-09 | 北海创新科存储技术有限公司 | Method and device for avoiding service interruption of storage array in upgrading process |
CN104917792A (en) * | 2014-03-12 | 2015-09-16 | 上海宝信软件股份有限公司 | Democratic and autonomous cluster management method and system |
CN105337904A (en) * | 2014-08-05 | 2016-02-17 | 杭州华三通信技术有限公司 | Controller cluster upgrading method and device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881386A (en) * | 2018-05-11 | 2018-11-23 | 郑州易湃科技有限公司 | The remote firmware updating method and remote firmware updating device of communication equipment |
CN108882211A (en) * | 2018-06-15 | 2018-11-23 | 歌尔科技有限公司 | A kind of method, system and the TWS earphone of the upgrading of TWS earphone program |
WO2019237458A1 (en) * | 2018-06-15 | 2019-12-19 | 歌尔科技有限公司 | Method and system for upgrading program of tws headset, and tws headset |
US11368777B2 (en) | 2018-06-15 | 2022-06-21 | Goertek Technology Co., Ltd. | Method and system for upgrading program of TWS headset, and TWS headset |
CN109068211A (en) * | 2018-08-01 | 2018-12-21 | 广东思派康电子科技有限公司 | A kind of TWS earphone and its computer readable storage medium |
CN110572284A (en) * | 2019-08-30 | 2019-12-13 | 华为技术有限公司 | Method, device and system for upgrading virtual network element |
CN110572284B (en) * | 2019-08-30 | 2022-05-13 | 华为云计算技术有限公司 | Method, device and system for upgrading virtual network element |
CN115150273A (en) * | 2022-06-30 | 2022-10-04 | 联想(北京)有限公司 | Upgrade processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106685688A (en) | Cluster computer device synchronous upgrade method | |
CN101390336B (en) | Disaster recovery architecture | |
US20090113034A1 (en) | Method And System For Clustering | |
US8032786B2 (en) | Information-processing equipment and system therefor with switching control for switchover operation | |
KR20110044858A (en) | Maintain data indetermination in data servers across data centers | |
CN102214128A (en) | Repurposable recovery environment | |
CN105677380B (en) | Method and device for board-by-board upgrading of double master control isolations | |
JP6905161B2 (en) | Management methods, systems, and devices for master and standby databases | |
CN101621397A (en) | Distributed network management system, and maintenance and management method thereof | |
CN106605217B (en) | For the method and system for being moved to another website from a website will to be applied | |
CN103024065A (en) | System configuration management method for cloud storage system | |
CN105701159A (en) | Data synchronization device and method | |
CN103902405A (en) | Quasi-continuity data replication method and device | |
CN103761131A (en) | Multi-board-card automatic updating method and system based on internal storage sharing | |
CN110635941A (en) | Database node cluster fault migration method and device | |
CN101155015A (en) | Synchronization method for data and condition between host computer and standby computer | |
CN112052127B (en) | Data synchronization method and device for dual-computer hot standby environment | |
CN104281631A (en) | Distributed database system and data synchronization method and nodes thereof | |
CN103853623A (en) | Data migration method and device | |
CN110489491B (en) | Full data synchronization device suitable for A/B network double clusters | |
US20090106781A1 (en) | Remote call handling methods and systems | |
CN101155061B (en) | Master/standby control method | |
CN115292408A (en) | Master-slave synchronization method, device, equipment and medium for MySQL database | |
CN115248720A (en) | Storage system, storage node virtual machine recovery method, and recording medium | |
CN114297296A (en) | Server active-standby switching system for broadcasting |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170517 |
|
WD01 | Invention patent application deemed withdrawn after publication |