CN108415797A - A method of avoid server failure switching according to library loss of data - Google Patents

A method of avoid server failure switching according to library loss of data Download PDF

Info

Publication number
CN108415797A
CN108415797A CN201810180226.2A CN201810180226A CN108415797A CN 108415797 A CN108415797 A CN 108415797A CN 201810180226 A CN201810180226 A CN 201810180226A CN 108415797 A CN108415797 A CN 108415797A
Authority
CN
China
Prior art keywords
data
server
host
database
switching according
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
CN201810180226.2A
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.)
Shandong Chaoyue CNC Electronics Co Ltd
Original Assignee
Shandong Chaoyue CNC Electronics 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 Shandong Chaoyue CNC Electronics Co Ltd filed Critical Shandong Chaoyue CNC Electronics Co Ltd
Priority to CN201810180226.2A priority Critical patent/CN108415797A/en
Publication of CN108415797A publication Critical patent/CN108415797A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Data Mining & Analysis (AREA)
  • Hardware Redundancy (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to a kind of methods avoiding server failure switching according to library loss of data, which is characterized in that includes the following steps:S1:Two-node cluster hot backup software is configured on the server, realizes the switching between server;S2:Whether monitoring host system is abnormal, and goes to step S3 in case of abnormal, otherwise goes to step S2 and continue to monitor;S3:Host services packet is closed, and starts virtual IP address;S4:Log-on data buffer service program, data are kept in local cache database;S5:Carry network disk;S6:Start standby host database service.

Description

A method of avoid server failure switching according to library loss of data
Technical field
The invention belongs to technical field of data storage, and in particular to one kind avoids server failure switching according to library data The method of loss.
Background technology
With the development of information technology, nowadays major enterprises and institutions increasingly pay attention to the construction of information system.Information system Reliability of uniting is the problem of inevitably being encountered during information system is built.Any small hardware, software fault are possible to cause The network failure of system, causes the interruption of business or the loss of data, thus can cause human and material resources, property loss.
Based on the Dual-Computer Hot-Standby System of shared storage, canonical form is that two-server adds a disk array.Dual-locomotive heat The standby form for referring generally to server and using active/standby, same time only have a server as host-initiated system Required service, another computer detect using two-node cluster hot backup software the operating status of host in real time as standby host, and one Denier detects host work exception, then is first shut off the database service of host operation, then starts the database clothes in standby host It is engaged in, it then can take over host normal work after service starts in standby host.But database takes when data volume is larger in database Business starts, the shut-in time is longer, and database service needs are started after server carry network disk.This is existing There is the shortcoming of technology.
Shown in Fig. 1, for data outage time-program(me) in the prior art.
Therefore, in view of the above-mentioned drawbacks in the prior art, providing design one kind avoids server failure switching according to library The method of loss of data;To solve drawbacks described above in the prior art, it is necessary.
Invention content
It is an object of the present invention to which in view of the above-mentioned drawbacks of the prior art, providing design one kind avoiding server event Hinder method of the switching according to library loss of data, to solve the above technical problems.
To achieve the above object, the present invention provides following technical scheme:
A method of avoid server failure switching according to library loss of data, which is characterized in that include the following steps:
S1:Two-node cluster hot backup software is configured on the server, realizes the switching between server;
S2:Whether monitoring host system is abnormal, and goes to step S3 in case of abnormal, otherwise goes to step S2 and continue to supervise It surveys;
S3:Host services packet is closed, and starts virtual IP address;
S4:Log-on data buffer service program, data are kept in local cache database;
S5:Carry network disk;
S6:Start standby host database service.
Preferably, in the step S4, client is sent to local cache database by UDP instruction messages.
Preferably, further comprising the steps of after the step S6:
S7:After host data base service starts, in the database in data conversion storage to disk array in local cache database.
Preferably, in the step S1, connected in a standard between server and disk array.
The beneficial effects of the present invention are, local cache database receives the data that the network equipment is sent by socket, It saves the data in the volatile data base of local server, while attempting the connection of primary database in real time, when in server After database service starts, dumped in the database in disk array local data is stored in.Data buffer service is Small programs, start and the shut-in time can complete within one second, and data buffer service stores data in local, not It needs to start after carry network disk, the data buffer service in services package is placed on after startup virtual IP address.Therefore, because number According to the addition of local unloading service, the active-standby switch time caused by the system failure is then taken by original host system is abnormal to host Business packet closes the time for arriving database service startup again, shorten to the time that host system starts to data buffer service extremely. This is one.
Second, by the way that local cache database service is arranged, it can effectively avoid host abnormal, data when switch between master and slave machines Loss.
In addition, design principle of the present invention is reliable, and it is simple in structure, there is very extensive application prospect.
It can be seen that compared with prior art, the present invention with substantive distinguishing features outstanding and significantly improving, implementation Advantageous effect be also obvious.
Description of the drawings
Fig. 1 is data outage time-program(me) in the prior art.
Fig. 2 is provided by the invention a kind of to avoid server failure switching according in data in the method for library loss of data Disconnected time-program(me).
Specific implementation mode
The present invention will be described in detail below in conjunction with the accompanying drawings and by specific embodiment, and following embodiment is to the present invention Explanation, and the invention is not limited in following implementation.
A kind of method avoiding server failure switching according to library loss of data that the present embodiment provides, feature exist In including the following steps:
S1:Two-node cluster hot backup software is configured on the server, realizes the switching between server;
S2:Whether monitoring host system is abnormal, and goes to step S3 in case of abnormal, otherwise goes to step S2 and continue to supervise It surveys;
S3:Host services packet is closed, and starts virtual IP address;
S4:Log-on data buffer service program, data are kept in local cache database;
S5:Carry network disk;
S6:Start standby host database service.
In the present embodiment, in the step S4, client is sent to local cache database by UDP instruction messages.
It is further comprising the steps of after the step S6 in the present embodiment:
S7:After host data base service starts, in the database in data conversion storage to disk array in local cache database.
In the present embodiment, in the step S1, connected in a standard between server and disk array.
Fig. 2 gives data outage time-program(me) in the present embodiment.
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this field What technical staff can think does not have a creative variation, and without departing from the principles of the present invention made by several improvement and Retouching, should all be within the scope of the present invention.

Claims (4)

1. a kind of method avoiding server failure switching according to library loss of data, which is characterized in that include the following steps:
S1:Two-node cluster hot backup software is configured on the server, realizes the switching between server;
S2:Whether monitoring host system is abnormal, and goes to step S3 in case of abnormal, otherwise goes to step S2 and continue to supervise It surveys;
S3:Host services packet is closed, and starts virtual IP address;
S4:Log-on data buffer service program, data are kept in local cache database;
S5:Carry network disk;
S6:Start standby host database service.
2. a kind of method avoiding server failure switching according to library loss of data according to claim 1, feature It is, in the step S4, client is sent to local cache database by UDP instruction messages.
3. a kind of method avoiding server failure switching according to library loss of data according to claim 2, feature It is, it is further comprising the steps of after the step S6:
S7:After host data base service starts, in the database in data conversion storage to disk array in local cache database.
4. a kind of method avoiding server failure switching according to library loss of data according to claim 3, feature It is, in the step S1, is connected in a standard between server and disk array.
CN201810180226.2A 2018-03-05 2018-03-05 A method of avoid server failure switching according to library loss of data Pending CN108415797A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810180226.2A CN108415797A (en) 2018-03-05 2018-03-05 A method of avoid server failure switching according to library loss of data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810180226.2A CN108415797A (en) 2018-03-05 2018-03-05 A method of avoid server failure switching according to library loss of data

Publications (1)

Publication Number Publication Date
CN108415797A true CN108415797A (en) 2018-08-17

Family

ID=63129756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810180226.2A Pending CN108415797A (en) 2018-03-05 2018-03-05 A method of avoid server failure switching according to library loss of data

Country Status (1)

Country Link
CN (1) CN108415797A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124638A (en) * 2019-12-11 2020-05-08 山东超越数控电子股份有限公司 Multi-machine program scheduling system under embedded Linux system and implementation method

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212458A (en) * 2006-12-25 2008-07-02 中兴通讯股份有限公司 Database system backup method
CN101277272A (en) * 2008-05-16 2008-10-01 北京航空航天大学 Method for implementing magnanimity broadcast data warehouse-in
CN101394306A (en) * 2008-07-08 2009-03-25 国电南瑞科技股份有限公司 Seamless switching method for dual server system
CN101523355A (en) * 2006-08-04 2009-09-02 多伦多证券交易所 Failover system and method
CN101799781A (en) * 2010-02-03 2010-08-11 浪潮(北京)电子信息产业有限公司 Integrated double-computer system and method for fulfilling same
CN103199972A (en) * 2013-03-25 2013-07-10 成都瑞科电气有限公司 Double machine warm backup switching method and warm backup system achieved based on SOA and RS485 bus
CN103220183A (en) * 2013-05-02 2013-07-24 杭州电子科技大学 Implement method of Hadoop high-availability system based on double-main-engine warm backup
CN103684839A (en) * 2012-09-26 2014-03-26 中国移动通信集团四川有限公司 Data transmission method for hot standby, system and server
CN103714097A (en) * 2012-10-09 2014-04-09 阿里巴巴集团控股有限公司 Method and device for accessing database
CN104536971A (en) * 2014-12-02 2015-04-22 北京锐安科技有限公司 High-availability database
CN104765889A (en) * 2015-04-30 2015-07-08 北京奇虎科技有限公司 Switching method and device of high-availability frame based on database
CN105516292A (en) * 2015-12-03 2016-04-20 国家电网公司 Hot standby method of cloud platform of intelligent substation

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523355A (en) * 2006-08-04 2009-09-02 多伦多证券交易所 Failover system and method
CN101212458A (en) * 2006-12-25 2008-07-02 中兴通讯股份有限公司 Database system backup method
CN101277272A (en) * 2008-05-16 2008-10-01 北京航空航天大学 Method for implementing magnanimity broadcast data warehouse-in
CN101394306A (en) * 2008-07-08 2009-03-25 国电南瑞科技股份有限公司 Seamless switching method for dual server system
CN101799781A (en) * 2010-02-03 2010-08-11 浪潮(北京)电子信息产业有限公司 Integrated double-computer system and method for fulfilling same
CN103684839A (en) * 2012-09-26 2014-03-26 中国移动通信集团四川有限公司 Data transmission method for hot standby, system and server
CN103714097A (en) * 2012-10-09 2014-04-09 阿里巴巴集团控股有限公司 Method and device for accessing database
CN103199972A (en) * 2013-03-25 2013-07-10 成都瑞科电气有限公司 Double machine warm backup switching method and warm backup system achieved based on SOA and RS485 bus
CN103220183A (en) * 2013-05-02 2013-07-24 杭州电子科技大学 Implement method of Hadoop high-availability system based on double-main-engine warm backup
CN104536971A (en) * 2014-12-02 2015-04-22 北京锐安科技有限公司 High-availability database
CN104765889A (en) * 2015-04-30 2015-07-08 北京奇虎科技有限公司 Switching method and device of high-availability frame based on database
CN105516292A (en) * 2015-12-03 2016-04-20 国家电网公司 Hot standby method of cloud platform of intelligent substation

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谷建光: "基于windows的双机热备系统实现", 《网络与信息工程》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124638A (en) * 2019-12-11 2020-05-08 山东超越数控电子股份有限公司 Multi-machine program scheduling system under embedded Linux system and implementation method
CN111124638B (en) * 2019-12-11 2023-05-02 超越科技股份有限公司 Multi-machine program scheduling system under embedded Linux system and implementation method

Similar Documents

Publication Publication Date Title
US11397647B2 (en) Hot backup system, hot backup method, and computer device
US7783914B1 (en) Method and system for providing high availability to computer applications
JP5102901B2 (en) Method and system for maintaining data integrity between multiple data servers across a data center
US7219260B1 (en) Fault tolerant system shared system resource with state machine logging
US8850141B2 (en) System and method for mirroring data
CN1770707B (en) Apparatus and method for quorum-based power-down of unresponsive servers in a computer cluster
US8671218B2 (en) Method and system for a weak membership tie-break
CN106850260A (en) A kind of dispositions method and device of virtual resources management platform
CN106656589B (en) A kind of server dual-machine hot backup system
US20070276983A1 (en) System method and circuit for differential mirroring of data
US9886358B2 (en) Information processing method, computer-readable recording medium, and information processing system
CN108259239A (en) A kind of database high availability support method and system
CN104503965A (en) High-elasticity high availability and load balancing realization method of PostgreSQL (Structured Query Language)
CN102088490B (en) Data storage method, device and system
CN103346903A (en) Dual-machine backup method and device
CN106911802B (en) The dispositions method and device of the management platform of distributed block storage system
CN111949444A (en) Data backup and recovery system and method based on distributed service cluster
CN103532753A (en) Double-computer hot standby method based on memory page replacement synchronization
CN107357800A (en) A kind of database High Availabitity zero loses solution method
CN111935244B (en) Service request processing system and super-integration all-in-one machine
CN108449200A (en) A kind of mask information wiring method and device based on control node
CN115878384A (en) Distributed cluster based on backup disaster recovery system and construction method
CN106612314A (en) System for realizing software-defined storage based on virtual machine
WO2020233001A1 (en) Distributed storage system comprising dual-control architecture, data reading method and device, and storage medium
CN105490847B (en) A kind of private cloud storage system interior joint failure real-time detection and processing method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180817