CN105049264A - Data processing method and server side - Google Patents

Data processing method and server side Download PDF

Info

Publication number
CN105049264A
CN105049264A CN201510524512.2A CN201510524512A CN105049264A CN 105049264 A CN105049264 A CN 105049264A CN 201510524512 A CN201510524512 A CN 201510524512A CN 105049264 A CN105049264 A CN 105049264A
Authority
CN
China
Prior art keywords
server
data
master server
client
master
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
CN201510524512.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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510524512.2A priority Critical patent/CN105049264A/en
Publication of CN105049264A publication Critical patent/CN105049264A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention discloses a data processing method and a server side. The data processing method comprises the following steps that: a main server receives data transmitted by a client; the main server processes the data; and the main server returns processed data to the client, wherein the data is completely the same as data for backup transmitted to a slave server by the client, and the main server and the slave server are arranged in different machine rooms respectively. Through the scheme of the invention, the problem of severe influence on user application due to crash of an entire service system once a machine room fails when hot-standby dual machines are positions in the same machine room in a conventional way can be solved.

Description

A kind of data processing method and server end
Technical field
The present invention relates to the double-machine standby technology of server data, particularly relate to a kind of data processing method and server end.
Background technology
Along with the Internet (mobile Internet) high speed development, user is the data, services that provides of reliance server more and more, strengthens the usability requirements of data, needs the service (data) that access services device more anywhere or anytime provides; Traditional two-node cluster hot backup is the hot reserve scheme in same machine room, and on May 27th, 2015, Hangzhou Xiaoshan somewhere optical fiber is dug disconnected, causes some local Alipays to use; On May 28th, 2015, ctrip.com can not normally access, so the service that user cannot normally use ctrip.com to provide; Based on the generation of above-mentioned accident, knownly to go wrong once this machine room when hot standby two-shipper is in same machine room, whole service system can be made to paralyse, have a strong impact on user's application.
Summary of the invention
In order to solve the problem, the present invention proposes a kind of data processing method and server end, when conventional hot standby two-shipper can be avoided to be in same machine room, go wrong once this machine room, whole service system is paralysed, having a strong impact on the problem of user's application.
In order to achieve the above object, the present invention proposes a kind of data processing method, the method comprises:
Master server receives the data that client sends, and processes these data, and the data after process are returned described client.
Wherein, these data and client are identical for the data backed up to what send from server; Master server and being placed in respectively in different machine rooms from server.
Preferably, the method also comprises:
When from server fail, master server continues the data receiving client transmission, processes these data, and the data after process are returned client.
Preferably, the method also comprises:
When from server fail, master server receives the third notice message of being somebody's turn to do from server fail sent from server, and after recovering normally from server, receive send from server should recover normal 4th notification message from server, and to receive and the data processed to sending from server from master server during server fail.
Preferably, the method also comprises:
When master server breaks down, master server to break down the first notification message to sending this master server from server; And after master server recovery is normal, recover normal second notification message to sending this master server from server, and reception receives and the data processed from server during the master server that server sends breaks down.
In order to achieve the above object, the invention allows for a kind of data processing server end, this server end comprises master server and one or more from server.
The data that master server sends for receiving client, process these data, and the data after process are returned described client.
Wherein, these data and client are identical for the data backed up to what send from server; Master server and being placed in respectively in different machine rooms from server.
Preferably,
Master server also for, when from server fail, continue receive client send data, these data are processed, and by process after data return client.
Preferably, master server also for,
When from server fail, receive the third notice message of being somebody's turn to do from server fail sent from server, and after recovering normally from server, receive send from server should recover normal 4th notification message from server, and to receive and the data processed to sending from server from master server during server fail.
Preferably, master server also for,
When master server breaks down, to break down the first notification message to sending this master server from server; And after master server recovery is normal, recover normal second notification message to sending this master server from server, and reception receives and the data processed from server during the master server that server sends breaks down.
Compared with prior art, the present invention includes: master server receives the data that client sends, and processes these data, and the data after process are returned described client.Wherein, these data and client are identical for the data backed up to what send from server; Master server and being placed in respectively in different machine rooms from server.By the solution of the present invention, when conventional hot standby two-shipper can be avoided to be in same machine room, go wrong once this machine room, whole service system is paralysed, have a strong impact on the problem of user's application.
Accompanying drawing explanation
Be described the accompanying drawing in the embodiment of the present invention below, the accompanying drawing in embodiment is for a further understanding of the present invention, is used from explanation the present invention, does not form limiting the scope of the invention with specification one.
Fig. 1 is data processing method flow chart of the present invention;
Fig. 2 is traditional two-node cluster hot backup scheme topology and two-node cluster hot backup scheme topology comparison diagram of the present invention;
Fig. 3 is data processing structure figure of the present invention;
Fig. 4 is data processing server end composition frame chart of the present invention.
Embodiment
For the ease of the understanding of those skilled in the art, below in conjunction with accompanying drawing, the invention will be further described, can not be used for limiting the scope of the invention.
The present invention proposes a kind of offsite active standby hot reserve scheme according to problems of the prior art, and when somewhere goes wrong, another place can provide service in time, and user can not be subject to obvious impact.
Particularly, in order to achieve the above object, the present invention proposes a kind of data processing method, as shown in Figure 1, Figure 3, the method comprises:
S101, master server receive the data that client sends, and process these data, and the data after process are returned described client.
Wherein, these data and client are identical for the data backed up to what send from server; Master server and being placed in respectively in different machine rooms from server.
Preferably, the method also comprises:
When master server breaks down, be that master server carries out work from Server switching, and before handover by receive from client and untreated data process, to receive new data.
Preferably, the method also comprises: when master server breaks down, master server sends the first notification message to from server, the message informing broken down is from server, and recover normal at master server and send the second notification message to from server afterwards, master server is recovered normal message informing from server, and reception receives and the data processed from server during the master server that server sends breaks down.
When from server fail, master server receives the third notice message of being somebody's turn to do from server fail sent from server, and after recovering normally from server, receive send from server should recover normal 4th notification message from server, and to receive and the data processed to sending from server from master server during server fail.
These data are backuped in memory database, and return the confirmation receiving these data to client by S102, the data sent from server receives client.Preferably, the method also comprises:
When from server fail, master server continues the data receiving client transmission, processes these data, and the data after process are returned client.That is, master server receives and to process the mode of client data constant.
Preferably, the method also comprises:
When master server breaks down, from the first notification message that this master server of server reception master server transmission breaks down, and after master server recovers normally, receive normal second notification message of this master server recovery that master server sends, and receive and the data processed from server during the master server that master server sends breaks down.
When from server fail, this third notice message from server fail is sent from server to master server, and send should recover normal 4th notification message from server to master server afterwards recovering normal from server, and receiving and the data processed from master server during server fail of receiving that master server sends.
Preferably, the method also comprises:
When not breaking down from server, when the quantity of the data backed up in memory database reaches default storage threshold, the data backed up from server process memory database, and by the data conversion storage after process in non-memory database.In embodiments of the present invention, master server and being placed in respectively in different machine rooms from server.As shown in Figure 2, wherein, (a) is traditional two-node cluster hot backup scheme topological diagram, and (b) is two-node cluster hot backup scheme topological diagram of the present invention.Further, can be one or more from server, all be positioned in different machine rooms from master server.
In addition, in embodiments of the present invention, a control end can also be there is, this control end can be client, master server, or an access point etc., this control end is responsible for confirming master server and is all received from server the data that client sends, and when receiving master server and from the returning results of server, is only a complete data upload and to the process returning results confirmation.
Here it should be noted that, above-mentioned step S101 and S102 does not have dividing of sequencing, master server and from server can simultaneously by control end receive client send data and return results, also can not simultaneously receive, master server and from server by control end receive client send data be separate.
Compared with traditional scheme: the present invention program to be different from traditional two-node cluster hot backup scheme principal and subordinate's server in the situation of a machine room, master server and dividing from server is placed in different machine rooms.Like this, when link fails, also can switch in time and service is provided; Master server and from the probability that server breaks down simultaneously be Single-Server probability of happening square, more stable service can be provided.
In order to achieve the above object, the invention allows for a kind of data processing server end 01, as shown in Figure 4, this server end comprises master server 011 and one or more from server 012.
The data that master server 011 sends for receiving client, process these data, and the data after process are returned described client;
From the data that server 012 sends for receiving client, these data being backuped in memory database, and returns the confirmation receiving these data to client.
Wherein, these data and client are identical for the data backed up to what send from server; Master server and being placed in respectively in different machine rooms from server.
Preferably,
From server 012 also for, when master server 011 breaks down, switch to master server 011 to carry out work, and before handover by receive from client and untreated data process.
Master server 011 also for, when breaking down from server 012, continue receive client send data, these data are processed, and by process after data return client.
Preferably,
Master server 011 also for, when master server 011 breaks down, the first notification message is sent to from server 012, the message informing broken down by master server 011 is from server 012, and recover normal at master server 011 and send the second notification message to from server 012 afterwards, master server 011 is recovered normal message informing from server 012, and reception receives and the data processed from server 012 during the master server 011 that server 012 sends breaks down.
When breaking down from server 012, receive the third notice message that should break down from server 012 sent from server 012, and after recover normally from server 012, receive from server 012 send should from server recover normal 4th notification message, and to send from server 012 from server 012 break down period master server 011 receive and the data processed.
From server 012 also for:
When master server 011 breaks down, the first notification message that this master server 011 receiving master server 012 transmission breaks down, and this master server 011 receiving master server 011 transmission after master server 011 recovers normally recovers normal second notification message, and receive and the data processed from server 012 during the master server 011 that master server 011 sends breaks down.
When breaking down from server 012, this third notice message broken down from server 012 is sent to master server 011, and send should recover normal 4th notification message from server 012 to master server 011 afterwards recovering normal from server 012, and receiving and the data processed from break down period master server 011 of server 012 of receiving that master server 011 sends.
Preferably,
From server 012 also for, when not breaking down from server 012, when the quantity of the data backed up in memory database reaches default storage threshold, the data backed up in process memory database, and by the data conversion storage after process in non-memory database.
Compared with prior art, the present invention includes: master server receives the data that client sends, and processes these data, and the data after process are returned described client.Wherein, these data and client are identical for the data backed up to what send from server; Master server and being placed in respectively in different machine rooms from server.By the solution of the present invention, when conventional hot standby two-shipper can be avoided to be in same machine room, go wrong once this machine room, whole service system is paralysed, have a strong impact on the problem of user's application.
It should be noted that; above-described embodiment is only understand for the ease of those skilled in the art; be not limited to protection scope of the present invention; under the prerequisite not departing from inventive concept of the present invention, any apparent replacement and improvement etc. that those skilled in the art make the present invention are all within protection scope of the present invention.

Claims (8)

1. a data processing method, is characterized in that, described method comprises:
Master server receives the data that client sends, and processes described data, and the described data after process are returned described client;
Wherein, described data and client are identical for the data backed up to what send from server; Described master server and to be describedly placed in respectively in different machine rooms from server.
2. data processing method as claimed in claim 1, it is characterized in that, described method also comprises:
When described from server fail time, described master server continues to receive the data that described client sends, and processes, and the described data after process are returned described client to described data.
3. data processing method as claimed in claim 2, it is characterized in that, described method also comprises:
When described from server fail time, described master server receives the described third notice message of being somebody's turn to do from server fail sent from server, and described recover from server normal after, receive described send from server should recover normal 4th notification message from server, and describedly to receive and the data processed from described master server during server fail to described to send from server.
4. data processing method as claimed in claim 2, it is characterized in that, described method also comprises:
When described master server breaks down, described master server sends this master server from server to break down the first notification message to described; And after described master server recovers normally, send normal second notification message of this master server recovery to described from server, and receive and the data processed from server described in during breaking down from the described master server of server transmission described in receiving.
5. a data processing server end, is characterized in that, described server end comprises master server and one or more from server;
The data that described master server sends for receiving client, process described data, and the described data after process are returned described client;
Wherein, described data and described client to described from server send identical for the data backed up; Described master server and to be describedly placed in respectively in different machine rooms from server.
6. server end as claimed in claim 5, is characterized in that,
Described master server also for, when described from server fail time, continue to receive the data that described client sends, described data processed, and the described data after process are returned described client.
7. server end as claimed in claim 6, is characterized in that, described master server also for,
When described from server fail time, receive the described third notice message of being somebody's turn to do from server fail sent from server, and described recover from server normal after, receive described send from server should recover normal 4th notification message from server, and describedly to receive and the data processed from described master server during server fail to described to send from server.
8. server end as claimed in claim 6, is characterized in that, described master server also for,
When described master server breaks down, send this master server from server to break down the first notification message to described; And after described master server recovers normally, send normal second notification message of this master server recovery to described from server, and receive and the data processed from server described in during breaking down from the described master server of server transmission described in receiving.
CN201510524512.2A 2015-08-24 2015-08-24 Data processing method and server side Pending CN105049264A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510524512.2A CN105049264A (en) 2015-08-24 2015-08-24 Data processing method and server side

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510524512.2A CN105049264A (en) 2015-08-24 2015-08-24 Data processing method and server side

Publications (1)

Publication Number Publication Date
CN105049264A true CN105049264A (en) 2015-11-11

Family

ID=54455486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510524512.2A Pending CN105049264A (en) 2015-08-24 2015-08-24 Data processing method and server side

Country Status (1)

Country Link
CN (1) CN105049264A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108073477A (en) * 2016-11-09 2018-05-25 阿里巴巴集团控股有限公司 Equipment monitoring system, equipment and apparatus monitoring method
CN108199884A (en) * 2017-12-30 2018-06-22 安华智能股份公司 A kind of data processing server system
CN110264383A (en) * 2019-05-06 2019-09-20 深圳法大大网络科技有限公司 A kind of electronic contract is put on record method, apparatus, readable storage medium storing program for executing and server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294207A1 (en) * 2005-06-09 2006-12-28 International Business Machines Corporation Apparatus and method for autonomically adjusting configuration parameters for a server when a different server fails
CN101414917A (en) * 2007-10-19 2009-04-22 华为技术有限公司 Method for saving internal memory space, data management network element and network system
CN103067206A (en) * 2012-12-28 2013-04-24 无锡博欧节能科技有限公司 Internet of things across-machine room distributed type full automatic hot standby server switching system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060294207A1 (en) * 2005-06-09 2006-12-28 International Business Machines Corporation Apparatus and method for autonomically adjusting configuration parameters for a server when a different server fails
CN101176073A (en) * 2005-06-09 2008-05-07 国际商业机器公司 Adjusting configuration parameters for a server when a different server fails
CN101414917A (en) * 2007-10-19 2009-04-22 华为技术有限公司 Method for saving internal memory space, data management network element and network system
CN103067206A (en) * 2012-12-28 2013-04-24 无锡博欧节能科技有限公司 Internet of things across-machine room distributed type full automatic hot standby server switching system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHANG 988119: "XXXX数据库系统双机双柜解决方案", 《百度文库》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108073477A (en) * 2016-11-09 2018-05-25 阿里巴巴集团控股有限公司 Equipment monitoring system, equipment and apparatus monitoring method
CN108199884A (en) * 2017-12-30 2018-06-22 安华智能股份公司 A kind of data processing server system
CN110264383A (en) * 2019-05-06 2019-09-20 深圳法大大网络科技有限公司 A kind of electronic contract is put on record method, apparatus, readable storage medium storing program for executing and server
CN110264383B (en) * 2019-05-06 2022-03-11 深圳法大大网络科技有限公司 Electronic contract filing method and device, readable storage medium and server

Similar Documents

Publication Publication Date Title
CN105554106A (en) Memcache distributed caching system
CN104158693A (en) A method and a system for disaster recovery backup of data service
CN108847879B (en) Double-machine fault detection and recovery method based on bus controller
CN106656589A (en) Server dual hot backup system
CN113051110A (en) Cluster switching method, device and equipment
CN102006188A (en) Path back switching method and device in transport network
CN105024798A (en) Method and device for time synchronization
CN105049264A (en) Data processing method and server side
CN105049263A (en) Data processing method and data processing system
CN105790965A (en) Method and device for link switching and line card
CN105095008A (en) Distributed task fault redundancy method suitable for cluster system
CN104967691A (en) Distributed storage control method and system
CN103916226A (en) Redundant backup method based on embedded equipment
CN104679610A (en) Management method and device for computer system
CN105577444A (en) Wireless controller management method and wireless controller
CN103441987A (en) Method and device for managing dual-computer firewall system
CN107104822B (en) Server disaster recovery processing method and device, storage medium and electronic equipment
CN103441878A (en) Method and device for processing ownership of PE device in VCF network
CN105162560A (en) Data processing method and system
CN105159796A (en) Data processing method and server end
CN106712997B (en) Method, equipment and system for recovering table entry
CN102932118B (en) The method and system of the active and standby ruling of a kind of two-shipper
JP5553391B2 (en) NETWORK SYSTEM, BACKUP METHOD FOR NETWORK DEVICE, INFORMATION PROCESSING DEVICE AND ITS CONTROL PROGRAM, AND NETWORK DEVICE AND ITS CONTROL PROGRAM
CN105049261A (en) Processing method and system for dual-computer hot-standby data
CN112052127B (en) Data synchronization method and device for dual-computer hot standby environment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20151111