CN105162560A - Data processing method and system - Google Patents
Data processing method and system Download PDFInfo
- Publication number
- CN105162560A CN105162560A CN201510523989.9A CN201510523989A CN105162560A CN 105162560 A CN105162560 A CN 105162560A CN 201510523989 A CN201510523989 A CN 201510523989A CN 105162560 A CN105162560 A CN 105162560A
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/22—Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
Abstract
The invention discloses a data processing method. The method comprises the following steps that: a main server receives data transmitted by a client, transmits the data to a slave server which is positioned a machine room different from a machine room where the main server is positioned to back up the data, and receives confirmation information indicating that the data is already received returned from the slave server; and the main server processes the data received from the client, and returns the processed data to the client. Through the scheme of the invention, the broadband consumption and programs of the client can be kept constant.
Description
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 system.
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, goes wrong once this machine room, and whole service system can be made to paralyse, and has a strong impact on user's application.And in existing higher level's hot reserve scheme, the distribution normally directly providing data by client and the process returned results, the broadband adding client so to a certain extent consumes and needs to change the program of client.
Summary of the invention
In order to solve the problem, the present invention proposes a kind of data processing method and system, can keep the broadband of client consume and program constant.
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 these data is sent to and be positioned at backing up from server of different machine rooms from master server, and receives the confirmation receiving these data returned from server.
Master server processes the data received from client and the data after process is returned client.
Preferably, the method also comprises:
From server the data that master server sends are stored into memory database and back up, when the quantity of the data stored in memory database reaches default storage threshold, the data stored from server process memory database, and by the data conversion storage after process in non-memory database.
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.
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 master server breaks down, the message informing that master server is broken down is from server, and after master server recovers normally, 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, from the message informing master server that server is broken down, and recover from server normal after will recover normal message informing master server from server, and receive receiving and the data processed from master server during server fail of master server transmission.
In order to achieve the above object, the invention allows for a kind of data handling system, this system comprises: master server and one or more from server.
Master server receives the data that client sends, and these data is sent to and be positioned at backing up from server of different machine rooms from master server, and receives the confirmation receiving data returned from server.
Master server processes the data received from client and the data after process is returned client.
Preferably, this system also comprises one or more from server.
Be used for from server, the data that master server sends are stored in memory database and back up, when the quantity of the data stored in memory database reaches default storage threshold, also for the treatment of the data stored in memory database, and by the data conversion storage after process in non-memory database.
Preferably,
From server also for, when master server breaks down, switch to master server to carry out work, and before handover by receive from client and untreated data process;
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 master server breaks down, the message informing broken down is from server, and after master server recovers normally, 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.
From server also for, when from server fail, the message informing master server broken down, and recover from server normal after will recover normal message informing master server from server, and receive receiving and the data processed from master server during server fail of master server transmission.
Compared with prior art, the present invention includes: master server receives the data that client sends, and these data sent to and be positioned at backing up from server of different machine rooms from master server, and receive the confirmation receiving these data returned from server.Master server processes the data received from client and the data after process is returned client.By the solution of the present invention, can keep the broadband of client consume and program constant.
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 data processing structure figure of the present invention;
Fig. 3 is traditional two-node cluster hot backup scheme topology and two-node cluster hot backup scheme topology comparison diagram of the present invention;
Fig. 4 is data handling system 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.
In order to achieve the above object, the present invention proposes a kind of data processing method, as shown in Figure 1 and Figure 2, the method comprises:
S101, master server receive the data that client sends, and these data are sent to and be positioned at backing up from server of different machine rooms from master server, and receive the confirmation receiving these data returned from server.
Preferably, the method also comprises:
From server the data that master server sends are stored into memory database and back up, when the quantity of the data stored in memory database reaches default storage threshold, the data stored 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 3, 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.This offsite active standby hot reserve scheme, when somewhere goes wrong, another place can provide service in time, and user can not be subject to obvious impact.
In addition, in embodiments of the present invention, master server receives the data that client sends, and these data are sent to be positioned at backing up from server of different machine rooms from master server, and receive the confirmation receiving these data returned from server, here master server is in fact the role having served as a control end, and the data that this control end is responsible for client sends are carried out distributing and process the result returned, and the consumption of the broadband of client and program are remained unchanged.
S102, master server process the data received from client and the data after process are returned client.
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.
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 master server breaks down, the message informing that master server is broken down is from server, and after master server recovers normally, 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, from the message informing master server that server is broken down, and recover from server normal after will recover normal message informing master server from server, and receive receiving and the data processed from master server during server fail of master server transmission.
In order to achieve the above object, the invention allows for a kind of data handling system 01, as shown in Figure 4, this system comprises: master server 02 and one or more from server 03.
Master server 02 receives the data that client sends, and these data is sent to and be positioned at backing up from server 03 of different machine rooms from master server, and receives the confirmation receiving data returned from server 03.
Master server 02 processes the data received from client and the data after process is returned client.
Preferably, from server 03 for, the data that master server sends are stored in memory database and back up, when the quantity of the data stored in memory database reaches default storage threshold, also for the treatment of the data stored in memory database, and by the data conversion storage after process in non-memory database.
Preferably,
From server 03 also for, when master server 02 breaks down, switch to master server 02 to carry out work, and before handover by receive from client and untreated data process;
Master server 02 also for, when breaking down from server 03, continue receive client send data, these data are processed, and by process after data return client.
Preferably,
Master server 02 also for, when master server 02 breaks down, the message informing broken down is from server 03, and after master server 03 recovers normally, master server 02 is recovered normal message informing from server 03, and reception receives and the data processed from server 03 during the master server 02 that server 03 sends breaks down.
From server 03 also for, when breaking down from server 03, the message informing master server 02 broken down, and recover from server 03 normal after will recover normal message informing master server 02 from server 03, and receive that master server 02 sends break down from server 03 during master server 02 receive and the data processed.
Compared with prior art, the present invention includes: master server receives the data that client sends, and these data sent to and be positioned at backing up from server of different machine rooms from master server, and receive the confirmation receiving these data returned from server.Master server processes the data received from client and the data after process is returned client.By the solution of the present invention, the broadband consumption program of client can be kept constant.
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 described data is sent to and be positioned at backing up from server of different machine rooms from described master server, and the confirmation receiving described data returned from server described in receiving;
Described master server processes the described data received from described client and the described data after process is returned described client.
2. data processing method as claimed in claim 1, it is characterized in that, described method also comprises:
The described described data sent by described master server from server are stored into memory database and back up, when the quantity of the described data stored in described memory database reaches default storage threshold, the described described data stored from memory database described in server process, and by the described data conversion storage after process in non-memory database.
3. large data transmission method as claimed in claim 1, it is characterized in that, described method also comprises:
When described master server breaks down, described is that described master server carries out work from Server switching, and before handover by receive from described client and untreated described data process;
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.
4. data processing method as claimed in claim 3, it is characterized in that, described method also comprises:
When described master server breaks down, from server described in the message informing that described master server is broken down, and after described master server recovery is normal, described master server is recovered from server described in normal message informing, and receive and the data processed from server described in during breaking down from the described master server of server transmission described in receiving;
When described from server fail time, master server described in the described message informing broken down from server, and described recover from server normal after recover master server described in normal message informing by described from server, and describedly receiving and the data processed from described master server during server fail of receiving the transmission of described master server.
5. a data handling system, is characterized in that, described system comprises: master server and one or more from server;
Described master server receives the data that client sends, and described data is sent to and be positioned at backing up from server of different machine rooms from described master server, and the confirmation receiving described data returned from server described in receiving;
Described master server processes the described data received from described client and the described data after process is returned described client.
6. data handling system as claimed in claim 5, it is characterized in that, described system also comprises one or more from server;
Describedly to be used for from server, the described data sent by described master server are stored in memory database and back up, when the quantity of the described data stored in described memory database reaches default storage threshold, also for the treatment of the described data stored in described memory database, and by the described data conversion storage after process in non-memory database.
7. data handling system as claimed in claim 5, is characterized in that,
Described from server also for, when described master server breaks down, switch to described master server to carry out work, and before handover by receive from described client and untreated described data process;
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.
8. data handling system as claimed in claim 7, is characterized in that,
Described master server also for, when described master server breaks down, from server described in the message informing broken down, and after described master server recovery is normal, described master server is recovered from server described in normal message informing, and receive and the data processed from server described in during breaking down from the described master server of server transmission described in receiving;
Described from server also for, when described from server fail time, master server described in the message informing broken down, and described recover from server normal after recover master server described in normal message informing by described from server, and describedly receiving and the data processed from described master server during server fail of receiving the transmission of described master server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510523989.9A CN105162560A (en) | 2015-08-24 | 2015-08-24 | Data processing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510523989.9A CN105162560A (en) | 2015-08-24 | 2015-08-24 | Data processing method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105162560A true CN105162560A (en) | 2015-12-16 |
Family
ID=54803330
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510523989.9A Pending CN105162560A (en) | 2015-08-24 | 2015-08-24 | Data processing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105162560A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017101731A1 (en) * | 2015-12-18 | 2017-06-22 | 阿里巴巴集团控股有限公司 | Service providing method and system for database |
CN107633026A (en) * | 2017-08-30 | 2018-01-26 | 深圳云天励飞技术有限公司 | Data syn-chronization abnormality eliminating method, device and server |
CN108100292A (en) * | 2016-11-24 | 2018-06-01 | 中航贵州飞机有限责任公司 | A kind of method that airplane fault is excluded based on big data |
CN109213631A (en) * | 2018-08-22 | 2019-01-15 | 郑州云海信息技术有限公司 | A kind of transaction methods, device, equipment and readable storage medium storing program for executing |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040205382A1 (en) * | 2003-03-27 | 2004-10-14 | Yusuke Noda | Methods and apparatus for recovering work of one computer by another computers |
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 |
-
2015
- 2015-08-24 CN CN201510523989.9A patent/CN105162560A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040205382A1 (en) * | 2003-03-27 | 2004-10-14 | Yusuke Noda | Methods and apparatus for recovering work of one computer by another computers |
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)
Title |
---|
ZHANG988119: ""XXXX数据库系统双机双柜解决方案"", 《百度文库》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017101731A1 (en) * | 2015-12-18 | 2017-06-22 | 阿里巴巴集团控股有限公司 | Service providing method and system for database |
CN108100292A (en) * | 2016-11-24 | 2018-06-01 | 中航贵州飞机有限责任公司 | A kind of method that airplane fault is excluded based on big data |
CN107633026A (en) * | 2017-08-30 | 2018-01-26 | 深圳云天励飞技术有限公司 | Data syn-chronization abnormality eliminating method, device and server |
CN109213631A (en) * | 2018-08-22 | 2019-01-15 | 郑州云海信息技术有限公司 | A kind of transaction methods, device, equipment and readable storage medium storing program for executing |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105162560A (en) | Data processing method and system | |
CN105554106A (en) | Memcache distributed caching system | |
WO2014082052A4 (en) | Scaling computing clusters | |
CN103338144B (en) | A kind of session data synchronous method and device | |
CN102685270A (en) | Method and equipment for distributing dynamic addresses | |
CN102685237A (en) | Method for requesting session maintaining and dispatching in cluster environment | |
CN108551668B (en) | Information transmission method, device, equipment and storage medium | |
CN104967691A (en) | Distributed storage control method and system | |
CN106803833A (en) | Processing method, the apparatus and system of heartbeat in connection long | |
CN102833119A (en) | Method for synchronously receiving and processing real-time data under dual-network redundancy mechanism | |
CN109769029B (en) | Communication connection method based on electricity consumption information acquisition system and terminal equipment | |
CN105049263A (en) | Data processing method and data processing system | |
CN103546315A (en) | System, method and equipment for backing up DHCP (dynamic host configuration protocol) server | |
CN105049261A (en) | Processing method and system for dual-computer hot-standby data | |
CN103441987A (en) | Method and device for managing dual-computer firewall system | |
CN102497014B (en) | Method and device for realizing remote control command transmission in automatic power distribution system | |
CN107925684A (en) | The IP address distribution method of master-slave type network, apparatus and system | |
CN103841356A (en) | Conference television terminal, self-recovery control method thereof and related equipment | |
CN102932118B (en) | The method and system of the active and standby ruling of a kind of two-shipper | |
CN101827035A (en) | Method for ensuring graceful restarting and dual master control network device | |
CN102510407A (en) | Method and system for reading and writing microblog | |
CN105049264A (en) | Data processing method and server side | |
CN111614702B (en) | Edge calculation method and edge calculation system | |
CN107273047B (en) | Cache management method, cache manager and storage management software | |
CN105159796A (en) | Data processing method and server end |
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: 20151216 |