Movatterモバイル変換


[0]ホーム

URL:


CN106953769A - A kind of many server system upgrade methods living and platform - Google Patents

A kind of many server system upgrade methods living and platform
Download PDF

Info

Publication number
CN106953769A
CN106953769ACN201710254035.1ACN201710254035ACN106953769ACN 106953769 ACN106953769 ACN 106953769ACN 201710254035 ACN201710254035 ACN 201710254035ACN 106953769 ACN106953769 ACN 106953769A
Authority
CN
China
Prior art keywords
slave
server
master
upgrading
server system
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
CN201710254035.1A
Other languages
Chinese (zh)
Inventor
曹海华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Inspur Smart Computing Technology Co Ltd
Original Assignee
Guangdong Inspur Big Data Research 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 Inspur Big Data Research Co LtdfiledCriticalGuangdong Inspur Big Data Research Co Ltd
Priority to CN201710254035.1ApriorityCriticalpatent/CN106953769A/en
Publication of CN106953769ApublicationCriticalpatent/CN106953769A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

This application discloses a kind of many server system upgrade methods living and platform, this method includes:Every in many server systems living is upgraded one by one from server, also, whenever completing a upgrading from server, then this is rejoined into many topology server structures living from server;When upgrading finish it is all many living topology server structures are rejoined from server after, the master server in server systems of living is upgraded more.The application first carries out upgrading one by one to every from server, and, whenever one upgrading from server of completion, this is then rejoined into many topology server structures living from server, when upgrading finish it is all many living topology server structures are rejoined from server after, master server is upgraded again, so as to avoid due under synchronization to master server and from server upgrade caused by trouble waters, realize the reliable upgrading to many server systems living.

Description

Multi-active server system upgrading method and platform
Technical Field
The invention relates to the technical field of servers, in particular to a multi-active server system upgrading method and platform.
Background
Currently, with the rapid development of internet technology, users increasingly rely on various services provided by servers, and the performance of the servers directly affects the user experience of internet users. In order to ensure that the performance of the server can meet the actual application requirements as much as possible, people usually upgrade the server occasionally to improve the overall service level of the server.
Since a server may fail during the actual operation process, a multi-active server system has been developed to improve the data security. The multi-active server system comprises a main server and at least two slave servers, and data are mutually backed up between the servers, so that the safety and reliability of the data can be greatly improved. However, due to the system structure particularity of the multi-active server system, a disorder situation of the multi-active server system is easily caused in the upgrading process, so that a serious problem of system data disorder and the like is caused.
From the above, it can be seen that how to perform reliable upgrade operations on a multi-active server system is an issue that is still to be solved.
Disclosure of Invention
In view of the above, an object of the present invention is to provide a method and a platform for upgrading a multi-active server system, which can perform reliable upgrade operations on the multi-active server system. The specific scheme is as follows:
a multi-active server system upgrading method is applied to a multi-active server system comprising a main server and at least two slave servers, wherein the method comprises the following steps:
upgrading each slave server in the multi-active server system one by one, and adding the slave server into the multi-active server topological structure again when the upgrading of one slave server is completed;
and when all the updated slave servers are added into the multi-active server topological structure again, updating the master server in the multi-active server system.
Optionally, the process of upgrading each slave server in the multi-active server system one by one includes:
and performing software upgrading on each slave server in the multi-active server system, and performing corresponding data synchronization processing aiming at the software upgrading process of each slave server.
Optionally, the software upgrading of each slave server in the multi-active server system and the process of performing corresponding data synchronization processing for the software upgrading process of each slave server include:
starting a software upgrading process for each slave server in the multi-active server system, and after any slave server finishes software upgrading, extracting a corresponding data updating package of the slave server in the software upgrading period, and then merging the data updating package into the slave server.
Optionally, the process of upgrading the main server in the multi-active server system includes:
controlling a master server in the multi-active server system to generate a first master-slave switching instruction;
performing a first master-slave switching operation on the multi-active server system by using the first master-slave switching instruction so as to perform master-slave interchange on a master server and a slave server in the multi-active server system;
and upgrading the slave server obtained after the first master-slave switching operation.
Optionally, the process of upgrading the slave server obtained after the first master-slave switching operation includes:
starting a software upgrading process of the slave server obtained after the first master-slave switching operation;
when the slave server obtained after the first master-slave switching operation completes software upgrading, controlling the master server obtained after the first master-slave switching operation to generate a second master-slave switching instruction;
performing a second master-slave switching on the multi-active server system by using the second master-slave switching instruction so as to perform master-slave interchange on the master server and the slave server obtained after the first master-slave switching operation;
and extracting a corresponding data update package of the slave server obtained after the first master-slave switching operation in the software upgrading period, and merging the data update package into the master server obtained after the second master-slave switching operation so as to finish upgrading the slave server obtained after the first master-slave switching operation.
The invention also correspondingly discloses a multi-active server system upgrading platform, which is applied to a multi-active server system comprising a main server and at least two slave servers, wherein the platform comprises:
the first upgrading module is used for upgrading each slave server in the multi-active server system one by one, and each time the upgrading of one slave server is completed, the slave server is added into the multi-active server topological structure again;
and the second upgrading module is used for upgrading the main server in the multi-active server system after all the upgraded slave servers are added into the multi-active server topological structure again.
Optionally, the first upgrade module includes:
the upgrading unit is used for upgrading the software of each slave server in the multi-active server system and performing corresponding data synchronous processing aiming at the software upgrading process of each slave server;
and the slave server adding unit is used for rejoining the slave server into the multi-active server topology under the condition that the upgrading unit finishes upgrading of one slave server each time.
Optionally, the upgrade unit is specifically configured to start a software upgrade process for each slave server in the multi-active server system, and after any slave server completes the software upgrade, extract a corresponding data update package of the slave server during the software upgrade period, and then merge the data update package into the slave server.
Optionally, the second upgrade module includes:
the first control unit is used for controlling a main server in the multi-active server system to generate a first master-slave switching instruction;
the first master-slave switching unit is used for performing first master-slave switching operation on the multi-active server system by using the first master-slave switching instruction so as to perform master-slave interchange on a master server and a slave server in the multi-active server system;
and the upgrading submodule is used for upgrading the slave server obtained after the first master-slave switching operation.
Optionally, the upgrade sub-module includes:
a software upgrading starting unit, configured to start a software upgrading process of the slave server obtained after the first master-slave switching operation;
the second control unit is used for controlling the master server obtained after the first master-slave switching operation to generate a second master-slave switching instruction when the slave server obtained after the first master-slave switching operation completes software upgrading;
the second master-slave switching unit is used for performing second master-slave switching on the multi-active server system by using the second master-slave switching instruction so as to perform master-slave interchange on the master server and the slave server obtained after the first master-slave switching operation;
the data extraction unit is used for extracting a corresponding data update package of the slave server obtained after the first master-slave switching operation in the software upgrading period;
and the data merging unit is used for merging the data updating packet extracted by the data extraction unit into the master server obtained after the second master-slave switching operation so as to finish upgrading the slave server obtained after the first master-slave switching operation.
The invention discloses a multi-active server system upgrading method, which comprises the following steps: upgrading each slave server in the multi-active server system one by one, and adding the slave server into the multi-active server topological structure again when the upgrading of one slave server is completed; and when all the updated slave servers are added into the multi-active server topological structure again, the master server in the multi-active server system is updated.
Therefore, when the multi-active server system needs to be upgraded, each slave server is upgraded one by one, and each time the upgrade of one slave server is completed, the slave server is added into the multi-active server topological structure again, and after all the upgraded slave servers are added into the multi-active server topological structure again, the master server is upgraded, so that the chaotic situation caused by the fact that the master server and the slave servers are upgraded at the same time can be avoided, the phenomena of system data disorder and the like are avoided, and the multi-active server system is reliably upgraded.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for upgrading a multi-active server system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an upgrade platform of a multi-active server system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a multi-active server system upgrading method, which is applied to a multi-active server system comprising a main server and at least two slave servers, wherein referring to fig. 1, the method comprises the following steps:
step S11: upgrading each slave server in the multi-active server system one by one, and adding the slave server into the multi-active server topological structure again when the upgrading of one slave server is completed;
step S12: and when all the updated slave servers are added into the multi-active server topological structure again, the master server in the multi-active server system is updated.
Therefore, when the multi-active server system needs to be upgraded, each slave server is upgraded one by one, and each slave server is added into the multi-active server topological structure again when the upgrade of one slave server is completed, and the master server is upgraded after all the upgraded slave servers are added into the multi-active server topological structure again, so that the situation that the master server and the slave servers are upgraded at the same time to cause disorder can be avoided, the occurrence of phenomena such as system data disorder is avoided, and the reliable upgrade of the multi-active server system is realized.
The embodiment of the invention discloses a specific multi-live server system upgrading method, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme. Specifically, the method comprises the following steps:
in step S11 of the previous embodiment, the process of upgrading each slave server in the multi-server system may specifically include: and performing software upgrading on each slave server in the multi-active server system, and performing corresponding data synchronization processing aiming at the software upgrading process of each slave server.
Specifically, the software upgrading of each slave server in the multi-active server system and the corresponding data synchronization process for the software upgrading process of each slave server may include:
starting a software upgrading process for each slave server in the multi-active server system, and after any slave server finishes software upgrading, extracting a corresponding data updating package of the slave server in the software upgrading period, and then merging the data updating package into the slave server.
Further, in step S12 of the previous embodiment, the process of upgrading the main server in the multi-active server system may specifically include the following steps S121 to S123:
step S121: controlling a main server in a multi-active server system to generate a first master-slave switching instruction;
step S122: performing a first master-slave switching operation on the multi-active server system by using a first master-slave switching instruction so as to perform master-slave interchange on a master server and a slave server in the multi-active server system;
step S123: and upgrading the slave server obtained after the first master-slave switching operation.
In step S123, the process of upgrading the slave server obtained after the first master-slave switching operation may specifically include the following steps S1231 to S1234:
step S1231: starting a software upgrading process of the slave server obtained after the first master-slave switching operation;
step S1232: when the slave server obtained after the first master-slave switching operation completes software upgrading, the master server obtained after the first master-slave switching operation is controlled to generate a second master-slave switching instruction;
step S1233: performing secondary master-slave switching on the multi-active server system by using a second master-slave switching instruction so as to perform master-slave interchange on the master server and the slave server obtained after the primary master-slave switching operation;
step S1234: and extracting corresponding data update packages of the slave servers obtained after the first master-slave switching operation in the software upgrading period, and merging the data update packages into the master server obtained after the second master-slave switching operation so as to finish upgrading of the slave servers obtained after the first master-slave switching operation.
Further, an embodiment of the present invention further discloses a multi-active server system upgrade platform, which is applied to a multi-active server system including a master server and at least two slave servers, where, referring to fig. 2, the platform includes:
the first upgrading module 11 is configured to upgrade each slave server in the multi-active server system one by one, and each time the upgrade of one slave server is completed, add the slave server to the multi-active server topology again;
and the second upgrading module 12 is configured to upgrade the master server in the multi-active server system after all the upgraded slave servers are rejoined to the multi-active server topology structure.
In this embodiment, the first upgrade module may specifically include an upgrade unit and a slave server addition unit; wherein,
the upgrading unit is used for upgrading the software of each slave server in the multi-active server system and developing corresponding data synchronous processing aiming at the software upgrading process of each slave server;
and the slave server adding unit is used for adding the slave server into the multi-active server topology again under the condition that the upgrading unit finishes the upgrading of one slave server each time.
The upgrade unit may be specifically configured to start a software upgrade process for each slave server in the multi-active server system, extract a corresponding data update package of the slave server during a software upgrade period after any slave server completes the software upgrade, and then merge the data update package into the slave server.
In addition, the second upgrade module may specifically include a first control unit, a first master-slave switching unit, and an upgrade submodule; wherein,
the first control unit is used for controlling a main server in the multi-active server system to generate a first master-slave switching instruction;
the first master-slave switching unit is used for carrying out first master-slave switching operation on the multi-active server system by utilizing a first master-slave switching instruction so as to carry out master-slave interchange on a master server and a slave server in the multi-active server system;
and the upgrading submodule is used for upgrading the slave server obtained after the first master-slave switching operation.
In this embodiment, the upgrade submodule may specifically include a software upgrade starting unit, a second control unit, a second master-slave switching unit, a data extraction unit, and a data merging unit; wherein,
the software upgrading starting unit is used for starting a software upgrading process of the slave server obtained after the first master-slave switching operation;
the second control unit is used for controlling the master server obtained after the first master-slave switching operation to generate a second master-slave switching instruction when the slave server obtained after the first master-slave switching operation completes software upgrading;
the second master-slave switching unit is used for performing second master-slave switching on the multi-active server system by using a second master-slave switching instruction so as to perform master-slave interchange on the master server and the slave server obtained after the first master-slave switching operation;
the data extraction unit is used for extracting a corresponding data update package of the slave server obtained after the first master-slave switching operation in the software upgrading period;
and the data merging unit is used for merging the data updating packet extracted by the data extraction unit into the master server obtained after the second master-slave switching operation so as to finish upgrading the slave server obtained after the first master-slave switching operation.
Therefore, when the multi-active server system needs to be upgraded, each slave server is upgraded one by one, and each slave server is added into the multi-active server topological structure again when the upgrade of one slave server is completed, and the master server is upgraded after all the upgraded slave servers are added into the multi-active server topological structure again, so that the situation that the master server and the slave servers are upgraded at the same time to cause disorder can be avoided, the occurrence of phenomena such as system data disorder is avoided, and the reliable upgrade of the multi-active server system is realized.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The method and platform for upgrading a multi-active server system provided by the invention are described in detail, specific examples are applied in the description to explain the principle and the implementation of the invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

CN201710254035.1A2017-04-182017-04-18A kind of many server system upgrade methods living and platformPendingCN106953769A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201710254035.1ACN106953769A (en)2017-04-182017-04-18A kind of many server system upgrade methods living and platform

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201710254035.1ACN106953769A (en)2017-04-182017-04-18A kind of many server system upgrade methods living and platform

Publications (1)

Publication NumberPublication Date
CN106953769Atrue CN106953769A (en)2017-07-14

Family

ID=59476332

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201710254035.1APendingCN106953769A (en)2017-04-182017-04-18A kind of many server system upgrade methods living and platform

Country Status (1)

CountryLink
CN (1)CN106953769A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101908980A (en)*2010-08-202010-12-08中兴通讯股份有限公司Network management upgrading method and system
CN102075556A (en)*2009-11-192011-05-25北京明朝万达科技有限公司Method for designing service architecture with large-scale loading capacity
CN102487342A (en)*2010-12-032012-06-06阿里巴巴集团控股有限公司Device and method for controlling virtual internet protocol address binding
US20130054668A1 (en)*2011-08-292013-02-28Salesforce.Com, Inc.Mechanism for facilitating spin mode-based dynamic updating of application servers in an on-demand services environment
CN103294503A (en)*2012-02-242013-09-11纬创资通股份有限公司Server deployment system and data updating method
CN103346903A (en)*2013-06-202013-10-09北京捷成世纪科技股份有限公司Dual-machine backup method and device
CN105141453A (en)*2015-08-112015-12-09上海斐讯数据通信技术有限公司Control method capable of not interrupting service in upgrading process of system and system thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102075556A (en)*2009-11-192011-05-25北京明朝万达科技有限公司Method for designing service architecture with large-scale loading capacity
CN101908980A (en)*2010-08-202010-12-08中兴通讯股份有限公司Network management upgrading method and system
CN102487342A (en)*2010-12-032012-06-06阿里巴巴集团控股有限公司Device and method for controlling virtual internet protocol address binding
US20130054668A1 (en)*2011-08-292013-02-28Salesforce.Com, Inc.Mechanism for facilitating spin mode-based dynamic updating of application servers in an on-demand services environment
CN103294503A (en)*2012-02-242013-09-11纬创资通股份有限公司Server deployment system and data updating method
CN103346903A (en)*2013-06-202013-10-09北京捷成世纪科技股份有限公司Dual-machine backup method and device
CN105141453A (en)*2015-08-112015-12-09上海斐讯数据通信技术有限公司Control method capable of not interrupting service in upgrading process of system and system thereof

Similar Documents

PublicationPublication DateTitle
US11824714B2 (en)Method and apparatus for updating an edge node, device, medium and program product
CN104583945B (en) An application upgrade method and device
US10200507B2 (en)Creation of a binding based on a description associated with a server
US10466998B2 (en)Model based upgrade campaign generation
EP4095678A1 (en)Method and apparatus of deploying a cluster, device and storage medium
US20170269926A1 (en)Server program hot upgrading method and device
CN111143023B (en)Resource changing method and device, equipment and storage medium
CN105700869B (en)Control method, information processing method, related device and electronic equipment
US20170199733A1 (en)Method for terminal to update operating system, terminal and system
CN107038048A (en)A kind of dual-active server system upgrade method and platform
CN114089974B (en)Cloud code development system, method, device, equipment and storage medium
CN105100211A (en)Configuration file obtaining method and device
CN113760234A (en)Software development method and system
US9396060B2 (en)Information processing method, information processing device and recording medium
CN111352706B (en)Data access method, device, equipment and storage medium
CN117311764A (en)Firmware upgrading and restoring method, device, equipment and storage medium
US9626213B2 (en)System and method for file injection in virtual machine configuration
CN106878082B (en)Virtual network card hot migration method and device
CN105278962A (en)Applications, hot deployment method of database and device
WO2016177261A1 (en)Method and device for online upgrading module based on kernel virtual machine
CN114281890A (en)BIOS out-of-band management system and method
JP5854132B2 (en) Information processing method, apparatus and program
CN106953769A (en)A kind of many server system upgrade methods living and platform
CN107423082A (en)A kind of more server system upgrade methods living and platform
CN102629260A (en)Processing method, device and system for database collapse

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20170714

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp