CN104967691A - Distributed storage control method and system - Google Patents

Distributed storage control method and system Download PDF

Info

Publication number
CN104967691A
CN104967691A CN201510399220.0A CN201510399220A CN104967691A CN 104967691 A CN104967691 A CN 104967691A CN 201510399220 A CN201510399220 A CN 201510399220A CN 104967691 A CN104967691 A CN 104967691A
Authority
CN
China
Prior art keywords
server
distributed storage
security
controller
business datum
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.)
Granted
Application number
CN201510399220.0A
Other languages
Chinese (zh)
Other versions
CN104967691B (en
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 CN201510399220.0A priority Critical patent/CN104967691B/en
Publication of CN104967691A publication Critical patent/CN104967691A/en
Application granted granted Critical
Publication of CN104967691B publication Critical patent/CN104967691B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a distributed storage control method and system. The method includes the following steps that: after a backup server is switched to a main server, a service data storage request is transmitted to a controller, wherein the service data storage request carries service data type information; and after receiving the service data storage request, the controller stores service data to a distributed storage server of a corresponding security level. With the distributed storage control method and system adopted, personalized storage schemes can be formed according to the types of the service data, and the storage security of important data can be further improved.

Description

A kind of distributed storage control method and system
Technical field
The invention belongs to storage control field, particularly relate to a kind of distributed storage control method and system.
Background technology
Prior art discloses a kind of method and apparatus (patent application number: 201310245911.6) of dual-host backup, belong to network communication field, the method comprises: during server generation masterslave switchover, when master server breaks down, the IP address of backup server switching oneself is the IP address of master server, and IP address in Refresh Servers table, activestandby state, transfer master server to by preset backup server.After the former master server of fault restarts, flow process and initial start similar, use temporary ip address, find that master server exists, the IP address then reconfiguring oneself is standby address, and the IP in Refresh Servers table is secondary ip address, transfers master server to backup server.In addition, the program uses same configuration file to monitor service level state, detects the situation that server communication is normal and business breaks down, after former master server restarts, secondary can not be produced and switch, and server directly provides service, zero-address transfer process, enhances the efficiency of Business Processing.
But such scheme does not disclose: after active-standby switch, distinguish traffic data type and carry out the personalized technical scheme stored, this greatly reduces the storage security of important business data.
Summary of the invention
The invention provides a kind of distributed storage control method and system, to solve the problem.
The invention provides a kind of distributed storage control method.Said method comprises the following steps:
After backup server switches to primary server, send business datum storage resource request to controller; Wherein, traffic data type information is carried in described business datum storage resource request;
Business datum is stored to the distributed storage server of corresponding level of security after receiving described business datum storage resource request by described controller.
The present invention also provides a kind of distributed storage control system, comprises primary server, backup server, controller, one or more distributed storage server; Wherein, described controller is connected with described primary server, described backup server, described one or more distributed storage server respectively; Described primary server is connected with described backup server;
Described backup server, after switching to primary server, sends business datum storage resource request to described controller; Wherein, traffic data type information is carried in described business datum storage resource request;
Described controller, after receiving described business datum storage resource request, is stored to the distributed storage server of corresponding level of security by business datum.
By following scheme: after backup server switches to primary server, send business datum storage resource request to controller; Wherein, traffic data type information is carried in described business datum storage resource request; Business datum is stored to the distributed storage server of corresponding level of security after receiving described business datum storage resource request by described controller; Achieve and carry out personalized storage scheme according to traffic data type, significant data storage security is promoted further.
By following scheme: if described traffic data type is top secret audio/video conference data, then according to traffic data type, level of security and the distributed storage server table of comparisons, it is the first high distributed storage server that described top secret audio/video conference data are stored to level of security; If described traffic data type is network attack data, then according to traffic data type, level of security and the distributed storage server table of comparisons, described network attack data are stored to level of security be in the second distributed storage server; If described traffic data type is data of network game, then according to traffic data type, level of security and the distributed storage server table of comparisons, described data of network game being stored to level of security is the 3rd low distributed storage server; Achieve the storage scheme of carrying out differentiation according to traffic data type, significant data storage security is promoted further.
By following scheme: after handover event triggers, controller is according to the handover request received, and by primary Server switching to backup server, described handover event comprises server hardware fault, server service fault; Make the storage scheme that also can realize carrying out according to traffic data type differentiation under traffic failure causes active-standby switch scene, significant data storage security is promoted further.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, and form a application's part, schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Figure 1 shows that the distributed storage control method process chart of the embodiment of the present invention 1;
Figure 2 shows that the distributed storage control method process chart of the embodiment of the present invention 2;
Figure 3 shows that the distributed storage Control system architecture figure of the embodiment of the present invention 3.
Embodiment
Hereinafter also describe the present invention in detail with reference to accompanying drawing in conjunction with the embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Figure 1 shows that the distributed storage control method process chart of the embodiment of the present invention 1, comprise the following steps:
Step 101: handover event trigger after, controller according to receive handover request, by primary Server switching to backup server;
Further, described handover event comprises server hardware fault, server service fault.
Further, backup server detects primary server hardware fault and refers to: backup server does not receive primary server heartbeat feedback response in Preset Time.
Wherein, the Hearbeat program in the hardware failure detection changeover program in primary server and Hearbeat program, backup server is used for connecting between primary server, backup server the switching between detecting and primary server, backup server.
Pacemaker program in traffic failure trace routine in primary server and Pacemaker program, backup server is used for primary server, the traffic failure of backup server detects.
Wherein, Preset Time can set according to actual conditions, is not intended to limit the scope of the invention at this.
Further, after handover event triggers, the handover request that controller sends according to the primary server received or backup server, by primary Server switching to backup server.
Further, the mode that controller obtains handover request comprises: after backup server detects primary server hardware fault, sends handover request to controller; Or
After primary server obtains traffic failure information, send handover request to controller; Or
The traffic failure information of acquisition is sent to backup server by primary server, and described backup server sends handover request to controller.
Further, controller receives after handover request, by running hardware failure detection changeover program and Hearbeat program, by primary Server switching to backup server.
Further, handover event trigger before, the Drbd program in primary server in real time by the data backup on primary server to backup server.
Wherein, primary server and master server.
Step 102: after backup server switches to primary server, sends business datum storage resource request to controller; Wherein, traffic data type information is carried in described business datum storage resource request;
Further, described traffic data type comprises: top secret audio/video conference data, network attack data, data of network game.
Step 103: business datum is stored to the distributed storage server of corresponding level of security after receiving described business datum storage resource request by described controller.
Further, after described controller receives described business datum storage resource request, process business datum being stored to the distributed storage server of corresponding level of security is:
If described traffic data type is top secret audio/video conference data, then according to data type, level of security and the distributed storage server table of comparisons, it is the first high distributed storage server that described top secret audio/video conference data are stored to level of security;
If described traffic data type is network attack data, then according to data type, level of security and the distributed storage server table of comparisons, described network attack data are stored to level of security be in the second distributed storage server;
If described traffic data type is data of network game, then according to data type, level of security and the distributed storage server table of comparisons, described data of network game being stored to level of security is the 3rd low distributed storage server.
Further, described first distributed storage server level of security is greater than described second distributed storage server level of security, described second distributed storage server level of security is greater than described 3rd distributed storage server level of security.
Wherein, level of security is higher, and the cryptographic algorithm of employing is more complicated.
Further, described controller storage service data type, level of security and the distributed storage server table of comparisons, as shown in table 1:
Traffic data type, level of security and the distributed storage server table of comparisons
Traffic data type Level of security Distributed storage server
Top secret audio/video conference data High First distributed storage server
Network attack data In Second distributed storage server
Data of network game Low 3rd distributed storage server
Table 1
Traffic data type in table 1 only illustrates, can set flexibly, be not intended to limit the scope of the invention at this in practical business.
Figure 2 shows that the distributed storage control method process chart of the embodiment of the present invention 2, comprise the following steps:
Step 201: after backup server switches to primary server, sends business datum storage resource request to controller; Wherein, traffic data type information is carried in described business datum storage resource request;
Step 202: business datum is stored to the distributed storage server of corresponding level of security after receiving described business datum storage resource request by described controller.
Figure 3 shows that the distributed storage Control system architecture figure of the embodiment of the present invention 3, comprise primary server; Backup server; Controller; Distributed storage server 1, distributed storage server 2 ... distributed storage server n; Wherein, described controller respectively with described primary server, described backup server, distributed storage server 1, distributed storage server 2 ... distributed storage server n is connected; Described primary server is connected with described backup server;
Described backup server, after switching to primary server, sends business datum storage resource request to described controller; Wherein, traffic data type information is carried in described business datum storage resource request;
Described controller, after receiving described business datum storage resource request, is stored to the distributed storage server of corresponding level of security by business datum.
Further, level of security comprises: high, medium and low three classes.
By following scheme: after backup server switches to primary server, send business datum storage resource request to controller; Wherein, traffic data type information is carried in described business datum storage resource request; Business datum is stored to the distributed storage server of corresponding level of security after receiving described business datum storage resource request by described controller; Achieve and carry out personalized storage scheme according to traffic data type, significant data storage security is promoted further.
By following scheme: if described traffic data type is top secret audio/video conference data, then according to traffic data type, level of security and the distributed storage server table of comparisons, it is the first high distributed storage server that described top secret audio/video conference data are stored to level of security; If described traffic data type is network attack data, then according to traffic data type, level of security and the distributed storage server table of comparisons, described network attack data are stored to level of security be in the second distributed storage server; If described traffic data type is data of network game, then according to traffic data type, level of security and the distributed storage server table of comparisons, described data of network game being stored to level of security is the 3rd low distributed storage server; Achieve the storage scheme of carrying out differentiation according to traffic data type, significant data storage security is promoted further.
By following scheme: after handover event triggers, controller is according to the handover request received, and by primary Server switching to backup server, described handover event comprises server hardware fault, server service fault; Make the storage scheme that also can realize carrying out according to traffic data type differentiation under traffic failure causes active-standby switch scene, significant data storage security is promoted further.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a distributed storage control method, is characterized in that, comprises the following steps:
After backup server switches to primary server, send business datum storage resource request to controller; Wherein, traffic data type information is carried in described business datum storage resource request;
Business datum is stored to the distributed storage server of corresponding level of security after receiving described business datum storage resource request by described controller.
2. method according to claim 1, is characterized in that, handover event trigger after, controller according to receive handover request, by primary Server switching to backup server.
3. method according to claim 2, is characterized in that, described handover event comprises server hardware fault, server service fault.
4. method according to claim 3, it is characterized in that, the hardware failure detection changeover program in primary server, backup server and Hearbeat program are used for connecting between primary server, backup server the switching between detecting and primary server, backup server;
Traffic failure trace routine in primary server, backup server and Pacemaker program are used for primary server, the traffic failure of backup server detects.
5. method according to claim 3, is characterized in that, the mode that controller obtains handover request comprises: after backup server detects primary server hardware fault, sends handover request to controller; Or
After primary server obtains traffic failure information, send handover request to controller; Or
The traffic failure information of acquisition is sent to backup server by primary server, and described backup server sends handover request to controller.
6. method according to claim 1, is characterized in that, handover event trigger before, the Drbd program in primary server in real time by the data backup on primary server to backup server.
7. method according to claim 1, is characterized in that, described controller storage service data type, level of security and the distributed storage server table of comparisons.
8. method according to claim 7, is characterized in that, described traffic data type comprises: top secret audio/video conference data, network attack data, data of network game.
9. method according to claim 8, is characterized in that, after described controller receives described business datum storage resource request, process business datum being stored to the distributed storage server of corresponding level of security is:
If described traffic data type is top secret audio/video conference data, then according to traffic data type, level of security and the distributed storage server table of comparisons, it is the first high distributed storage server that described top secret audio/video conference data are stored to level of security;
If described traffic data type is network attack data, then according to traffic data type, level of security and the distributed storage server table of comparisons, described network attack data are stored to level of security be in the second distributed storage server;
If described traffic data type is data of network game, then according to traffic data type, level of security and the distributed storage server table of comparisons, described data of network game being stored to level of security is the 3rd low distributed storage server.
10. a distributed storage control system, is characterized in that, comprises primary server, backup server, controller, one or more distributed storage server; Wherein, described controller is connected with described primary server, described backup server, described one or more distributed storage server respectively; Described primary server is connected with described backup server;
Described backup server, after switching to primary server, sends business datum storage resource request to described controller; Wherein, traffic data type information is carried in described business datum storage resource request;
Described controller, after receiving described business datum storage resource request, is stored to the distributed storage server of corresponding level of security by business datum.
CN201510399220.0A 2015-07-08 2015-07-08 A kind of distributed storage control method and system Active CN104967691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510399220.0A CN104967691B (en) 2015-07-08 2015-07-08 A kind of distributed storage control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510399220.0A CN104967691B (en) 2015-07-08 2015-07-08 A kind of distributed storage control method and system

Publications (2)

Publication Number Publication Date
CN104967691A true CN104967691A (en) 2015-10-07
CN104967691B CN104967691B (en) 2018-06-15

Family

ID=54221628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510399220.0A Active CN104967691B (en) 2015-07-08 2015-07-08 A kind of distributed storage control method and system

Country Status (1)

Country Link
CN (1) CN104967691B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278879A (en) * 2015-10-14 2016-01-27 珠海格力电器股份有限公司 Processing method and device of monitoring data
CN106383756A (en) * 2016-10-12 2017-02-08 郑州云海信息技术有限公司 Method for realizing disaster recovery switching of storage without interrupting Linux system service
CN107948248A (en) * 2017-11-01 2018-04-20 平安科技(深圳)有限公司 Distributed storage method, control server and computer-readable recording medium
CN109768884A (en) * 2018-12-26 2019-05-17 京信通信系统(中国)有限公司 The implementation method of communication system and its high availability, device and computer equipment
CN110149324A (en) * 2019-05-13 2019-08-20 特斯联(北京)科技有限公司 A kind of network anti-attack method, device and equipment
EP3386168A4 (en) * 2015-12-03 2019-11-27 Hangzhou Hikvision Digital Technology Co., Ltd. Data cloud storage system, client terminal, storage server and application method
CN110874185A (en) * 2018-09-04 2020-03-10 杭州海康威视系统技术有限公司 Data storage method and storage device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110219121A1 (en) * 2010-03-04 2011-09-08 Krishnan Ananthanarayanan Resilient routing for session initiation protocol based communication systems
CN102904948A (en) * 2012-09-29 2013-01-30 南京云创存储科技有限公司 Super-large-scale low-cost storage system
CN103488546A (en) * 2013-01-29 2014-01-01 中国人民解放军理工大学 Backup and recovery method capable of supporting online concurrency of multi-level data and database

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110219121A1 (en) * 2010-03-04 2011-09-08 Krishnan Ananthanarayanan Resilient routing for session initiation protocol based communication systems
CN102904948A (en) * 2012-09-29 2013-01-30 南京云创存储科技有限公司 Super-large-scale low-cost storage system
CN103488546A (en) * 2013-01-29 2014-01-01 中国人民解放军理工大学 Backup and recovery method capable of supporting online concurrency of multi-level data and database

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278879A (en) * 2015-10-14 2016-01-27 珠海格力电器股份有限公司 Processing method and device of monitoring data
EP3386168A4 (en) * 2015-12-03 2019-11-27 Hangzhou Hikvision Digital Technology Co., Ltd. Data cloud storage system, client terminal, storage server and application method
US10623516B2 (en) 2015-12-03 2020-04-14 Hangzhou Hikvision Digital Technology Co., Ltd. Data cloud storage system, client terminal, storage server and application method
CN106383756A (en) * 2016-10-12 2017-02-08 郑州云海信息技术有限公司 Method for realizing disaster recovery switching of storage without interrupting Linux system service
CN107948248A (en) * 2017-11-01 2018-04-20 平安科技(深圳)有限公司 Distributed storage method, control server and computer-readable recording medium
CN110874185A (en) * 2018-09-04 2020-03-10 杭州海康威视系统技术有限公司 Data storage method and storage device
WO2020048488A1 (en) * 2018-09-04 2020-03-12 杭州海康威视系统技术有限公司 Data storage method and storage device
CN110874185B (en) * 2018-09-04 2021-12-17 杭州海康威视系统技术有限公司 Data storage method and storage device
CN109768884A (en) * 2018-12-26 2019-05-17 京信通信系统(中国)有限公司 The implementation method of communication system and its high availability, device and computer equipment
CN110149324A (en) * 2019-05-13 2019-08-20 特斯联(北京)科技有限公司 A kind of network anti-attack method, device and equipment

Also Published As

Publication number Publication date
CN104967691B (en) 2018-06-15

Similar Documents

Publication Publication Date Title
CN104967691A (en) Distributed storage control method and system
US11734138B2 (en) Hot standby method, apparatus, and system
CN100362482C (en) Dual-machine back-up realizing method and system
CN105515812A (en) Fault processing method of resources and device
EP2595348B1 (en) Streaming service load sharing method, streaming service processing method, device and system thereof
CN101110776B (en) Backup method, backup device and backup system for data business
CN107404394B (en) IPTV system disaster tolerance method and IPTV disaster tolerance system
US20120179826A1 (en) Address Distribution Method, Device and System Thereof
CN105429799B (en) Server backup method and device
CN104378232A (en) Schizencephaly finding and recovering method and device under main joint and auxiliary joint cluster networking mode
CN104506372B (en) A kind of method and system for realizing active/standby server switching
CN104038376A (en) Method and device for managing real servers and LVS clustering system
CN105471610B (en) Method and device for protecting HQoS (high-quality QoS) by using multiple board cards
CN101778371A (en) Paging method and device
CN110677282B (en) Hot backup method of distributed system and distributed system
CN104468151A (en) System and method for keeping TCP (Transmission Control Protocol) session during cluster switching
CN104639867A (en) Method and system for resuming video conferences
CN102891833A (en) Network disaster tolerance method and network disaster tolerance system
CN108234358B (en) Multicast message transmission method, device and machine readable storage medium
CN103841356A (en) Conference television terminal, self-recovery control method thereof and related equipment
CN112492030B (en) Data storage method, device, computer equipment and storage medium
CN100362484C (en) Method of multi-computer back-up
CN106254814A (en) Method, Service Management Center and the system that a kind of meeting recovers
CN106878117B (en) Data processing method and device
CN103051484A (en) Method and system for processing session service and session border controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant