CN106874151A - A kind of method and device of synchronization caching - Google Patents

A kind of method and device of synchronization caching Download PDF

Info

Publication number
CN106874151A
CN106874151A CN201710048898.3A CN201710048898A CN106874151A CN 106874151 A CN106874151 A CN 106874151A CN 201710048898 A CN201710048898 A CN 201710048898A CN 106874151 A CN106874151 A CN 106874151A
Authority
CN
China
Prior art keywords
caching
controller
party
synchronization
machine
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
CN201710048898.3A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710048898.3A priority Critical patent/CN106874151A/en
Publication of CN106874151A publication Critical patent/CN106874151A/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/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2017Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where memory access, memory control or I/O control functionality is redundant

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

The present invention relates to technical field of memory, the method and device of synchronization caching more particularly in double control storage system.The present invention discloses a kind of method of synchronization caching, is included in default third party's caching in double control storage system;Whether the controller that monitoring judges in double control storage system delays machine, and the machine if a square controller is delayed enables third party and caches;If it is not, continuing to monitor;Third party caches and normal controller synchronization caching.Invention additionally discloses a kind of device of synchronization caching, including, presetting module, for presetting third party's caching in double control storage system;Whether judge module, delay machine for monitoring the controller for judging in double control storage system, and the machine if a square controller is delayed enables third party and caches;If it is not, continuing to monitor;Synchronization module, for third party's caching and normal controller synchronization caching.The present invention is realized improving double control one controller of storage system and is delayed the shortcoming that machine another controller cache closes by default third party's caching mechanism.

Description

A kind of method and device of synchronization caching
Technical field
The present invention relates to the technical field for storing, the method and dress of synchronization caching more particularly in double control storage system Put.
Background technology
It is being engaged in the middle of the research and design of storage and test, in gradually recognizing double control storage system, when there is one Controller is delayed after machine, and the caching of another controller will be closed, and so read and write data directly will read from the hard disk of rear end, It is very big to performance impact.In consideration of it, need a kind of new strategy improve one controller of above-mentioned double control to delay machine and force by The shortcoming that another controller cache is closed.
The content of the invention
It is an object of the present invention to provide a kind of method and device of synchronization caching, the present invention caches machine by default third party System, realizes that improving double control one controller of storage system delays machine and force the shortcoming for closing another controller cache.
To achieve these goals, the present invention uses following technical scheme:
A kind of method of synchronization caching, comprises the following steps:
Third party's caching is preset in double control storage system;
Whether the controller that monitoring judges in double control storage system delays machine, and the machine if a square controller is delayed enables third party slow Deposit;If it is not, continuing to monitor;
Third party caches and normal controller synchronization caching.
Further, third party is cached with after normal controller synchronization caching, is also included, repairs the controller of machine of delaying, Controller restarting after recovery.
Further, the controller of machine of delaying is being repaired, after the controller restarting after reparation, third party's caching will be slow Deposit data is synchronized to the caching of the controller after repairing.
Further, the controller of machine of delaying is being repaired, after the controller restarting after reparation, being cached in third party will After the caching of the data cached controller being synchronized to after repairing, also include, after the completion of synchronization caching, third party's caching is offline.
Further, third party caching only delay in the case of machine wherein by a controller, by another controller Recognize and enable;Do not enabled in the case of other.
Further, third party's caching refers to one piece of disk in SSD disks, Flash cards or disk array.
Further, total capacity of the third party's buffer memory capacity not less than single controller.
Further, what two controllers of third party's caching in double control storage system can be accessed normally is public Region.
A kind of device of synchronization caching, including:
Presetting module, for presetting third party's caching in double control storage system;
Whether monitoring modular, delay machine for monitoring the controller for judging in double control storage system, the machine if a square controller is delayed, Enable third party's caching;If it is not, continuing to monitor;
Synchronization module, for third party's caching and normal controller synchronization caching.
Further, the device also includes repair module, the controller for repairing machine of delaying;
Preferably, the device also includes recovery module, is cached the data cached controller being synchronized to after recovering for third party Caching;
Preferably, the device also includes downline module, and after the completion of synchronization caching, third party's caching is offline.
Compared with prior art, the present invention improves double control storage system one by default third party's caching mechanism Controller is delayed machine and forces the shortcoming for closing another controller cache, specifically have the beneficial effect that it is following some:
1st, the design of third party's caching mechanism is simple, can be one piece of disk in SSD disks, Flash cards, disk array;
2nd, third party's caching mechanism a, it is to avoid controller is delayed machine, the caching in the case of another controller single control is closed, number According to the situation of direct rule, readwrite performance is improve;
3rd, third party's caching mechanism, does not work in dual controller normal work, is only just risen after a controller delays machine The machining function of third party's caching, reduces the switching time of data flow;
4th, by the caching of the data cached controller for being synchronized to recovery, reduce controller synchronization caching causes data to third party's caching There is interruption.
Brief description of the drawings
Fig. 1 is a kind of one of schematic flow sheet of method of synchronization caching of the invention.
Fig. 2 is the two of the schematic flow sheet of the method for a kind of synchronization caching of the invention.
Fig. 3 is a kind of structural representation of the device of synchronization caching of the invention.
Specific embodiment
With reference to the accompanying drawings and examples, specific embodiment of the invention is described in further detail:
Embodiment 1
Fig. 1 is refer to, the present embodiment provides a kind of method of synchronization caching, comprises the following steps:
Step S101, presets third party's caching in double control storage system;
Whether step S102, the controller that monitoring judges in double control storage system delays machine;
Step S103 a, square controller is delayed machine, then enable third party's caching;If it is not, continuing to monitor;
Step S104, third party's caching and normal controller synchronization caching.
Embodiment 2
Fig. 2 is refer to, the method that the present embodiment provides another synchronization caching is comprised the following steps:
Step S201, presets third party's caching in double control storage system;
Third party's caching refers to one piece of disk in SSD disks, Flash cards or disk array;Third party's buffer memory capacity Not less than the total capacity of single controller;Two controllers of third party's caching in double control storage system being capable of just frequentation The public domain asked;
Whether step S202, the controller that monitoring judges in double control storage system delays machine;
Dual controller in the double control storage system can all have arbitration disk to serve as judge, be for the delay judgement of machine of controller Judged by another controller, such as the internal memory of two controllers is synchronous under normal circumstances, once one controls Device is delayed machine, and another controller will be unable to carry out internal memory synchronization;
Step S203, judges whether another controller delays machine;
Step S204, normal controller enables third party's caching;
A machine once controller is delayed, another controller be will be unable to carry out internal memory synchronization, and the controller of machine of not delaying so is opened Cached with the third party.Third party caching only delay in the case of machine wherein by a controller, by another controller Recognize and enable;Do not enabled in the case of other;
Step S205, third party's caching and normal controller synchronization caching;
Third party's caching plays a part of synchronization counterpart caching;
Step S206, repairs the controller of machine of delaying;
Step S207, the controller restarting after recovery;
Step S208, is repairing the controller of machine of delaying, and after the controller restarting after reparation, third party's caching will cache number According to the caching of the controller being synchronized to after repairing;
Step S209, after the completion of synchronization caching, third party's caching is offline.
Embodiment 3
Fig. 3 is refer to, the present embodiment provides a kind of device of synchronization caching, including:
Presetting module 301, for presetting third party's caching in double control storage system;
Whether judge module 302, delay machine, for monitoring the controller for judging in double control storage system if a square controller is delayed Machine, then enable third party's caching;If it is not, continuing to monitor;
Synchronization module 303, for third party's caching and normal controller cache synchronization;
Repair module 304, the controller for repairing machine of delaying;
Recovery module 305, caches the caching of the data cached controller being synchronized to after recovering for third party;
Downline module 306, after the completion of synchronization caching, third party's caching is offline.
In the present invention relates to double control storage system, after a controller of storage system delays machine, another control Device will not factor data consistency protection and cause controller cache itself close, due to caching close data can direct rule this Sample causes storage performance to decline and need switching time;And after the controller of the machine of delaying gets up, needed between two controllers same Step caching, causes also to have switching time.Increase third party's caching mechanism used herein, will make one of them in double control Controller delays machine only one of which controller when running, the state still opened of caching, without causing another controller cache The situation of closing, so that performance will not cause the result of hydraulic performance decline because a controller delays machine.
Illustrated above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (10)

1. a kind of method of synchronization caching, it is characterised in that including:
Third party's caching is preset in double control storage system;
Whether the controller that monitoring judges in double control storage system delays machine, and the machine if a square controller is delayed enables third party slow Deposit;If it is not, continuing to monitor;
Third party caches and normal controller synchronization caching.
2. the method for a kind of synchronization caching according to claim 1, it is characterised in that in third party's caching and normal control After device synchronization caching, also include, repair the controller of machine of delaying, the controller restarting after reparation.
3. the method for a kind of synchronization caching according to claim 2, it is characterised in that repairing the controller of machine of delaying, repairing After controller restarting after multiple, also include, third party's caching is slow by the data cached controller being synchronized to after repairing Deposit.
4. the method for a kind of synchronization caching according to claim 3, it is characterised in that will be data cached in third party's caching After the caching of the controller being synchronized to after repairing, also include, after the completion of synchronization caching, third party's caching is offline.
5. the method for a kind of synchronization caching according to claim 1, it is characterised in that third party's caching is only wherein One controller is delayed in the case of machine, is recognized and is enabled by another controller;Do not enabled in the case of other.
6. the method for a kind of synchronization caching according to claim 1, it is characterised in that third party's caching refers to SSD One piece of disk in disk, Flash cards or disk array.
7. the method for a kind of synchronization caching according to claim 1, it is characterised in that third party's buffer memory capacity is not small In the total capacity of single controller.
8. the method for a kind of synchronization caching according to claim 1, it is characterised in that third party's caching is located at dual control The public domain that two controllers in storage system processed can be accessed normally.
9., based on a kind of device of a kind of synchronization caching of the method for synchronization caching of any one described in claim 1 ~ 8, it is special Levy and be, including:
Presetting module, for presetting third party's caching in double control storage system;
Whether judge module, delay machine for monitoring the controller for judging in double control storage system, the machine if a square controller is delayed, Enable third party's caching;If it is not, continuing to monitor;
Synchronization module, for third party's caching and normal controller synchronization caching.
10. the device of a kind of synchronization caching according to claim 9, it is characterised in that also include:Repair module, is used for Repair the controller of machine of delaying;
Preferably, also include:Recovery module, for third party's caching delaying the data cached controller being synchronized to after recovering Deposit;
Preferably, also include:Downline module, after the completion of synchronization caching, third party's caching is offline.
CN201710048898.3A 2017-01-23 2017-01-23 A kind of method and device of synchronization caching Pending CN106874151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710048898.3A CN106874151A (en) 2017-01-23 2017-01-23 A kind of method and device of synchronization caching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710048898.3A CN106874151A (en) 2017-01-23 2017-01-23 A kind of method and device of synchronization caching

Publications (1)

Publication Number Publication Date
CN106874151A true CN106874151A (en) 2017-06-20

Family

ID=59158879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710048898.3A Pending CN106874151A (en) 2017-01-23 2017-01-23 A kind of method and device of synchronization caching

Country Status (1)

Country Link
CN (1) CN106874151A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576837A (en) * 2009-06-12 2009-11-11 成都市华为赛门铁克科技有限公司 Storage control system and method
CN102567227A (en) * 2012-01-13 2012-07-11 北京邦诺存储科技有限公司 Double-controller memory system and method for sharing cache equipment
CN103605618A (en) * 2013-11-20 2014-02-26 浪潮电子信息产业股份有限公司 Non-write-back mirror image and direct write switching method for cache mirror image system
CN105389123A (en) * 2015-10-16 2016-03-09 浪潮(北京)电子信息产业有限公司 Storage management method and system based on dual controllers
CN105573857A (en) * 2014-10-10 2016-05-11 北京计算机技术及应用研究所 Method and system for buffering mirror image by multi-control disk array

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576837A (en) * 2009-06-12 2009-11-11 成都市华为赛门铁克科技有限公司 Storage control system and method
CN102567227A (en) * 2012-01-13 2012-07-11 北京邦诺存储科技有限公司 Double-controller memory system and method for sharing cache equipment
CN103605618A (en) * 2013-11-20 2014-02-26 浪潮电子信息产业股份有限公司 Non-write-back mirror image and direct write switching method for cache mirror image system
CN105573857A (en) * 2014-10-10 2016-05-11 北京计算机技术及应用研究所 Method and system for buffering mirror image by multi-control disk array
CN105389123A (en) * 2015-10-16 2016-03-09 浪潮(北京)电子信息产业有限公司 Storage management method and system based on dual controllers

Similar Documents

Publication Publication Date Title
CN109814811B (en) Method for reducing influence of NVMe SSD response delay on write speed of high-speed data storage equipment
US20140006687A1 (en) Data Cache Apparatus, Data Storage System and Method
WO2020169065A1 (en) Pre-reading method and apparatus based on memory limited ssd, and computer device
US9069489B1 (en) Dynamic random access memory front end
CN101719377A (en) Method and device for controlling power consumption
TW200627155A (en) Pre-fetch technology by read merge mechanism
EP2565772A1 (en) Storage array, storage system, and data access method
CN102521349A (en) Pre-reading method of files
AU2003294679A8 (en) Read-write switching method for a memory controller
CN103425438B (en) Optimize method and the solid state hard disc thereof of write request of solid state disk
CN101526896B (en) Loading/memorizing unit of embedded processor
CN107203480A (en) A kind of data prefetching method and device
WO2007065104A3 (en) Method to reduce risk of data loss
CN104008075A (en) Request processing method of distributed storage system
US10089041B2 (en) Efficient connection management in a SAS target
CN104657358B (en) Realize the method and system of web page program offline cache
CN105867850A (en) Information adjusting method and electronic equipment
CN106874151A (en) A kind of method and device of synchronization caching
CN103412727B (en) Optimize the method deleting order and the solid state hard disc thereof of solid state hard disc
CN103984645B (en) A kind of buffer consistency data based on dual control write with a brush dipped in Chinese ink method
CN106990917B (en) File reading and writing method and system
CN101807212B (en) Caching method for embedded file system and embedded file system
CN109871337A (en) A kind of SSD storaging medium switching method and its system
CN205451035U (en) Image processing buffer memory system
CN107807903A (en) A kind of DDR system frequencies dynamic regulating method and device

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

Application publication date: 20170620

RJ01 Rejection of invention patent application after publication