CN102480367A - Backup system and method of server system with high-guaranteed service - Google Patents

Backup system and method of server system with high-guaranteed service Download PDF

Info

Publication number
CN102480367A
CN102480367A CN201010554494XA CN201010554494A CN102480367A CN 102480367 A CN102480367 A CN 102480367A CN 201010554494X A CN201010554494X A CN 201010554494XA CN 201010554494 A CN201010554494 A CN 201010554494A CN 102480367 A CN102480367 A CN 102480367A
Authority
CN
China
Prior art keywords
main servers
secondary server
server
program
service
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
CN201010554494XA
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.)
Dalian Zhaoyang Software Technology Co Ltd
Original Assignee
Dalian Zhaoyang Software Technology 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 Dalian Zhaoyang Software Technology Co Ltd filed Critical Dalian Zhaoyang Software Technology Co Ltd
Priority to CN201010554494XA priority Critical patent/CN102480367A/en
Publication of CN102480367A publication Critical patent/CN102480367A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a backup system and method of a server system with high-guaranteed service. The backup method is characterized by being applied to the backup system with a primary server and a secondary server, ensuring that the same request service can be provided to a use end through the secondary server when the primary server is abnormal. The method comprises the following steps of: establishing a communication network for providing communication between the primary server and the secondary server; executing an updating program, and copying abnormal data of a first storage device to a second storage device of the secondary server when data of the first storage device of the primary server are abnormal; monitoring the communication connection state of the communication network; monitoring the service state of the request service provided by the primary server; and when the service state is abnormal, executing a switching program by the primary server to switch the primary server into the secondary server, and providing the request service by the secondary server.

Description

A kind of standby system and method for server system of high guarantee service
Technical field
The invention belongs to software field, particularly relate to a kind of standby system and method for server system of high guarantee service.
Background technology
Known server (Server) is a computer of storage and management information, and can be used as the concentrated place that is connected to other computer, device or client.Can mode safe in utilization share file and resource through server, for example facsimile machine and printer.Server also can provide data backup and storage, and Email and internet access.Through server network, a plurality of users are the Email of access internet or company simultaneously, or shares identical facsimile machine and other office equipment.In general network group, have only a station server that the request and the access of service are provided usually.Because information and scientific and technological progress, server is in order to provide real-time application service, so all must allow other computer, device or client to propose the request of service at any time.If the server in the network group take place when unusual (unusual like server when machine, abort, network on-line, have a power failure ... Deng); Maybe need shut down and carry out system update and data maintenance, access and the data backup and the storage that then can cause other computer, device or client to serve.And the task performance that has influence on whole network group with and the integrality of data.So how in network group, take place corresponding measure and the major issue that is treated to present required solution to be provided in real time when unusual when server.
Summary of the invention
In view of above problem; Technical problem to be solved by this invention is to provide a kind of standby system and method for server system of high guarantee service; So as to guaranteeing that main servers when generation is unusual, can provide identical request to serve to use side through secondary server.
The disclosed backup method of the present invention comprises: set up communication network so that main servers and secondary service communication among unit to be provided; Carry out refresh routine, when the data generation unusual fluctuation of first storage device of main servers, the data of first storage device of unusual fluctuation are copied in second storage device of secondary server; The communication link state of communication network between monitoring main servers and secondary server; The monitoring main servers is to the service state of the request service that use side provided; When service state takes place when unusual, then carry out changeover program main servers is switched to secondary server and by secondary server the request service is provided by main servers.
In the step of monitoring communication link state, comprise the execution following steps: carry out first monitoring program, it is the state of main servers in order to the communication network of monitoring main servers to secondary server; Carry out second monitoring program, it is the state of secondary server in order to the communication network of monitoring secondary server to main servers; Carry out the 3rd monitoring program, it is the request service state of main servers monitoring use side.Wherein when the communication network abnormal state in first monitoring program, then secondary server is closed by main servers.When the communication network abnormal state in second monitoring program, then carry out changeover program by secondary server.When the request service state in the 3rd monitoring program is unusual, then by main servers execute exception handling procedure.
In the step of main servers execute exception handling procedure, comprise the execution following steps: carry out and restart program and write down accumulated value; Monitoring is restarted program and whether is started success.Wherein restarting program please serve in order to main servers is restarted.When restarting program when being activated, then main servers is removed accumulated value and is carried out the 3rd monitoring program.
When restarting program when not being activated, more carry out the following step: when accumulated value was not more than the number of times threshold value, then main servers was carried out and is restarted program; When accumulated value during greater than the number of times threshold value, then main servers is carried out changeover program.Step carrying out changeover program comprises the execution following steps: the control of request service in the main servers is transferred to secondary server; Close main servers.
Wherein, above-mentioned described multi-server system uses the virtual internet communication protocol address to ask service for use side.For realizing above-mentioned purpose, the disclosed standby system of the present invention comprises: main servers and secondary server.The request service that main servers proposes in order to provide and to monitor use side; And monitor the communication link state of communication network simultaneously; When the data generation unusual fluctuation of first storage device of main servers, the data of first storage device of unusual fluctuation are copied in the storage device in another server; And secondary server carries out communication through communication network and main servers, and the secondary server monitoring is to the communication link state of communication network.Wherein, when communication link state or service state take place then to carry out changeover program by main servers when unusual, changeover program switches to main servers secondary server and by secondary server the request service is provided.
The present invention provides a kind of standby system and method for server system of high guarantee service, so as to guaranteeing that main servers when generation is unusual, can provide identical request to serve to use side through secondary server.
Describe the present invention below in conjunction with accompanying drawing and specific embodiment, but not as to qualification of the present invention.
Description of drawings
Figure l is the structural representation of standby system of the present invention;
Fig. 2 is a backup method flow chart of the present invention;
Fig. 3 is a monitoring communication link state flow chart of the present invention;
Fig. 4 is a monitoring communication link state flow chart of the present invention;
Fig. 5 is an exception handler flow chart of the present invention;
Fig. 6 is a changeover program flow chart of the present invention.
Wherein, Reference numeral
100 standby systems
110 main servers
120 secondary servers
130 first storage devices
140 second storage devices
150 communication networks
160 use sides.
Embodiment
Please refer to shown in the figure l, it is the structural representation of standby system of the present invention.The quantity of not limiting to secondary server in the present invention, but for convenient explanation with a main servers and a secondary server as explanation.In the structure of standby system 100, comprise: main servers 110, secondary server 120, first storage device 130, second storage device 140, communication network 150.Wherein main servers 110 links with communication network 150 with secondary server 120.Main servers 110 and several use side 160 electrically connects.Secondary server 120 and several use side 160 electrically connects.Communication network 150 is in order to provide the communication between main servers 110 and the secondary server 120.
Wherein main servers 110; Be connected with communication network 150; Main servers 110 provides and monitors the request service that use side 160 is proposed; And monitor the communication link state of communication network 150 simultaneously, when the data generation unusual fluctuation of first storage device 130 of main servers 110, the data of first storage device 130 of unusual fluctuation are copied in second storage device 140 of secondary server 120.Secondary server 120 carries out communication through communication network 150 and main servers 110, and secondary server 120 monitoring are to the communication link state of communication network 150.
Please refer to shown in Figure 2ly, it is the flow chart of backup method of the present invention.Flow process of the present invention may further comprise the steps:
Set up the communication network (step S210) between main servers and secondary server.When the data generation unusual fluctuation of first storage device of main servers, main servers is carried out refresh routine (step S220).Refresh routine is copied to the data of first storage device of unusual fluctuation in second storage device of secondary server.Embodiments of the invention utilize disk mirroring (DRBD), when main servers is carried out refresh routine, between main servers and backup server, do the data backup.The communication link state (step S230) of communication network between monitoring main servers and secondary server, embodiments of the invention utilize communication link state between heartbeat (heartbeat) monitoring means monitoring main servers and the backup server.The monitoring main servers is to the service state (step S240) of the request service that use side provided.When service state takes place when unusual, then carry out changeover program (step S250) by main servers.Changeover program switches to main servers secondary server and by secondary server the request service is provided.
Please refer to shown in Figure 3ly, it is a monitoring communication link state flow chart of the present invention.In step S230, more carry out following steps: main servers is carried out first monitoring program, and whether it is in order to the state of the communication network of monitoring main servers to secondary server unusual (step S232).When the communication network abnormal state, then close secondary server (step S234) by main servers.Secondary server is carried out second monitoring program, and whether it is in order to the state of the communication network of monitoring secondary server to main servers unusual (step S236).When the communication network abnormal state, then carry out changeover program (step S238) by secondary server.
Please refer to shown in Figure 4ly, it is a monitoring communication link state flow chart of the present invention.In step S240, more carry out following steps: main servers is carried out the 3rd monitoring program, and whether it is in order to the request service state of monitoring use side unusual (step S241).When the request service state is unusual, then by main servers execute exception handling procedure (step S242).
Please refer to shown in Figure 5ly, it is an exception handler flow chart of the present invention.In step S242, more carry out following steps: carry out and restart program and write down accumulated value (step S243), restart program in order to main servers is restarted the request service.Monitoring is restarted program and whether is started success (step S244).When restarting program when being activated, then main servers is removed accumulated value and is carried out the 3rd monitoring program (step S245).Otherwise,, judge that whether accumulated value is greater than number of times threshold value (step S246) when restarting program when not being activated.When if accumulated value is not more than the number of times threshold value, then main servers is carried out and is restarted program (step S243).If accumulated value is during greater than the number of times threshold value, then main servers is carried out changeover program (step S247).
Please refer to shown in Figure 6ly, it is a changeover program flow chart of the present invention.In step S250, more carry out following steps:
The control of request service in the main servers is transferred to secondary server (step S252).Close main servers (step S254).
In addition, the system of above-mentioned described main servers and secondary server uses the virtual internet communication protocol address to ask service for use side.
In this, though with a main servers and a secondary server as explanation.Yet in fact can also be that secondary server and main servers more than one becomes backup group, wherein main servers and secondary server can switch at any time.Secondary server can carry out system update and maintenance after closing, and adds in the backup group at system update and after safeguarding again.
The present invention provides a kind of standby system and method for server system of high guarantee service, so as to guaranteeing that main servers when generation is unusual, can provide identical request to serve to use side through secondary server.
Certainly; The present invention also can have other various embodiments; Under the situation that does not deviate from spirit of the present invention and essence thereof; Those of ordinary skill in the art can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (3)

1. the standby system and the method for the server system of one kind high guarantee service; Be applied to have in the standby system of main servers and secondary server; It guarantees that this main servers is when generation is unusual; Can provide identical multinomial request to serve through this secondary server, it is characterized in that this backup method comprises to a plurality of use sides:
Set up a communication network, it is in order to provide this main servers and this secondary service communication among unit;
Carry out a refresh routine, when the data generation unusual fluctuation of one first storage device of this main servers, the data of this first storage device of unusual fluctuation are copied in one second storage device of this secondary server;
Monitor a communication link state of this communication network between this main servers and this secondary server;
Monitor the service state of this main servers to the described request service that said use side provided; And take place then to carry out a switching program by this main servers when unusual when this service state, this changeover program switches to this main servers this secondary server and by this secondary server the described request service is provided;
(1). monitor in the step of this communication link state, also comprise:
Carry out one first monitoring program, it is the state of this main servers in order to this communication network of monitoring this main servers to this secondary server; And when this communication network abnormal state, then by this main servers this secondary server is closed,
(2). carry out one second monitoring program, it is the state of this secondary server in order to this communication network of monitoring this secondary server to this main servers; And when this communication network abnormal state, then carry out this changeover program by this secondary server;
(3). monitor in the step of this service state, also comprise:
Carry out one the 3rd monitoring program, it monitors the described request service state of said use side for this main servers; And when the described request service state is unusual, then carry out an exception handler by this main servers;
(4). carry out one and restart program and write down an accumulated value, this restarts program in order to this main servers is restarted the described request service;
Monitoring this restarts program and whether starts success;
Restart program when being activated when this, then this main servers is removed this accumulated value and is carried out the 3rd monitoring program; And restart program when not being activated when this, also carry out the following step:
When this accumulated value was not more than a number threshold value, then this main servers was carried out this and is restarted program; And when this accumulated value during greater than this number of times threshold value, then this main servers is carried out this changeover program.
2. according to the described backup method of claim l, it is characterized in that, carry out the step of this changeover program, also comprise:
The control of the service of request described in this main servers is transferred to this secondary server; And close this main servers;
(1). described multi-server system uses a virtual internet communication protocol address to ask service for said use side.
3. the standby system and the method for the server system of a kind of high guarantee service according to claim 1; It guarantees that main servers is when generation is unusual; Can provide identical request to serve through secondary server, it is characterized in that this standby system comprises to use side:
One main servers; Be connected with a communication network; Main servers is in order to provide and to monitor many request services that a plurality of use side proposes; And monitor the communication link state of this communication network simultaneously, when the data generation unusual fluctuation of one first storage device of this main servers, the data of this first storage device of unusual fluctuation are copied in the storage device in another server; And a less important server, it carries out communication through this communication network and this main servers, and this secondary server monitoring is to the communication link state of this communication network,
(1). when this communication link state or this service state take place then to carry out a switching program by this main servers when unusual, this changeover program switches to this main servers this secondary server and by this secondary server the described request service is provided.
CN201010554494XA 2010-11-23 2010-11-23 Backup system and method of server system with high-guaranteed service Pending CN102480367A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010554494XA CN102480367A (en) 2010-11-23 2010-11-23 Backup system and method of server system with high-guaranteed service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010554494XA CN102480367A (en) 2010-11-23 2010-11-23 Backup system and method of server system with high-guaranteed service

Publications (1)

Publication Number Publication Date
CN102480367A true CN102480367A (en) 2012-05-30

Family

ID=46092854

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010554494XA Pending CN102480367A (en) 2010-11-23 2010-11-23 Backup system and method of server system with high-guaranteed service

Country Status (1)

Country Link
CN (1) CN102480367A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI607372B (en) * 2016-11-25 2017-12-01 捷鼎國際股份有限公司 Data storage system and data storage method thereof
WO2021136422A1 (en) * 2019-12-31 2021-07-08 杭州海康威视数字技术股份有限公司 State management method, master and backup application server switching method, and electronic device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI607372B (en) * 2016-11-25 2017-12-01 捷鼎國際股份有限公司 Data storage system and data storage method thereof
WO2021136422A1 (en) * 2019-12-31 2021-07-08 杭州海康威视数字技术股份有限公司 State management method, master and backup application server switching method, and electronic device
US11892922B2 (en) 2019-12-31 2024-02-06 Hangzhou Hikvision Digital Technology Co., Ltd. State management methods, methods for switching between master application server and backup application server, and electronic devices

Similar Documents

Publication Publication Date Title
US9450700B1 (en) Efficient network fleet monitoring
US10983880B2 (en) Role designation in a high availability node
US11263136B2 (en) Fault tolerant systems and methods for cache flush coordination
CN105357296A (en) Elastic caching system based on Docker cloud platform
EP2744166B1 (en) Method for migrating a user link, method for migrating a user service, apparatuses and system
US20100332212A1 (en) Method and apparatus for sleep and wake of computer devices
CN102868754A (en) High-availability method, node device and system for achieving cluster storage
US20120124221A1 (en) Element terminal and communication system
CN103139018A (en) Network card condition monitoring and transmission control protocol (TCP) communication method in dispatching and transformer substation integrated system
CN102480367A (en) Backup system and method of server system with high-guaranteed service
CN106878117B (en) Data processing method and device
CN117076196A (en) Database disaster recovery management and control method and device
US8812900B2 (en) Managing storage providers in a clustered appliance environment
Xia et al. A Markov decision process approach for optimal data backup scheduling
CN101741534A (en) Backup system and backup method of multi-sever system
CN105550065A (en) Database server communication management method and device
CN115357395A (en) Fault equipment task transfer method and system, electronic equipment and storage medium
CN116192885A (en) High-availability cluster architecture artificial intelligent experiment cloud platform data processing method and system
US20160006635A1 (en) Monitoring method and monitoring system
Abderrahim et al. The three-dimensional model for dependability integration in cloud computing
Kitamura et al. Development of a Server Management System Incorporating a Peer-to-Peer Method for Constructing a High-availability Server System
CN110049065B (en) Attack defense method, device, medium and computing equipment of security gateway
CN114356533A (en) Micro-service non-perception publishing system and method, electronic equipment and storage medium
US9608914B2 (en) Information processing apparatus and information processing method
CN109150941B (en) Data center physical resource floating method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120530