CN110347535B - 一种提升双控制器写性能的方法 - Google Patents

一种提升双控制器写性能的方法 Download PDF

Info

Publication number
CN110347535B
CN110347535B CN201910643961.7A CN201910643961A CN110347535B CN 110347535 B CN110347535 B CN 110347535B CN 201910643961 A CN201910643961 A CN 201910643961A CN 110347535 B CN110347535 B CN 110347535B
Authority
CN
China
Prior art keywords
data
controller
standby
active
double
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.)
Active
Application number
CN201910643961.7A
Other languages
English (en)
Other versions
CN110347535A (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.)
Beijing Gushu Polytron Technologies Inc
Original Assignee
Beijing Gushu Polytron Technologies Inc
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 Beijing Gushu Polytron Technologies Inc filed Critical Beijing Gushu Polytron Technologies Inc
Priority to CN201910643961.7A priority Critical patent/CN110347535B/zh
Publication of CN110347535A publication Critical patent/CN110347535A/zh
Application granted granted Critical
Publication of CN110347535B publication Critical patent/CN110347535B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/2053Error 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 persistent mass storage functionality or persistent mass storage control functionality is redundant
    • G06F11/2056Error 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 persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring
    • 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/2053Error 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 persistent mass storage functionality or persistent mass storage control functionality is redundant
    • G06F11/2056Error 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 persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring
    • G06F11/2087Error 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 persistent mass storage functionality or persistent mass storage control functionality is redundant by mirroring with a common controller

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Facsimiles In General (AREA)

Abstract

本发明公开了一种提升双控制器写性能的方法。本发明使得写业务数据在双控制器之间只进行一次传输,即Standby控制器端命令处理层接收到写请求后不处理,直接转发给Active控制器端。优化Standby控制器端产生镜像数据的流程,使双控之间仅传输数据元信息,而不用传输实际的数据。本发明通过优化Standby控制器业务写性能,从而提升应用系统的整体性能。

Description

一种提升双控制器写性能的方法
技术领域
本发明涉及计算机存储系统领域,特别涉及一种提升双控制器写性能的方法。
背景技术
传统的存储系统一般采用双控Active-Standby架构设计,通常只有Active控制器工作,而Standby控制器处于备用状态。其原因是在任一时刻只能由其中一个控制器可以访问后端的磁盘设备,且该控制器处于Active状态,而另外一个控制器处于Standby状态。
所以当承载主机业务时,业务请求通常只发送到Active控制器处理。但如果Standby控制器接收到业务请求,则会通过控制器之间的通信转发到Active控制器处理。
传统的standby控制器处理写业务时数据在双控制器之间会进行两次传输:
1)Standby控制器端命令处理层接收到写请求后不处理,直接转发给Active控制器处理,转发是第一次数据传输。
2)为了防止在数据写入磁盘时系统故障导致数据丢失,Active控制器在数据处理层会把数据镜像复制一份到Standby控制器,镜像复制是第二次数据传输。
在传统方法存在以下缺陷:
多次数据传输增加了业务请求的时延,并且当双控制器之间带宽成为瓶颈情况下对主机业务性能影响非常大。尤其是在控制器之间的传输通道成为瓶颈时(如带宽、时延、丢包等因素影响)性能下降特别明显。
发明内容
为了解决传统方法存在的缺点,本发明提供了一种提升双控制器写性能的方法。本方法的思路是业务数据在双控制器之间会进行一次传输,即在命令处理层转发时。而在数据处理层产生镜像数据时,仅仅传输用于生成镜像数据的元信息,镜像数据的实际数据由standby控制器生成。
为实现上述目的,本发明采用以下技术方案:
一种提升双控制器写性能的方法,包括以下步骤:
1)Standby控制器在命令处理层接收到写数据后,先将数据保存1份到本端内存中,然后再将写数据转发给Active控制器处理;
2)Active控制器在数据处理层产生镜像数据时,仅仅把数据的元数据信息传输给Standby控制器,等待元数据信息传输成功后再将数据写入磁盘;
3)Standby控制器收到数据的元信息后,在内存中查找对应的数据,将元数据信息与数据组合在一起形成镜像数据。
本发明由于采取以上技术方案,其具有以下优点:提升standby控制器业务写性能,两个控制器可以同时承载主机业务,对外表现为Active-Active状态,从而提升应用系统的整体性能。
附图说明
图1为传统standby控制器处理写业务时流程图;
图2为Standby控制器写性能优化后的流程图。
具体实施方式
下面结合具体实施方式和具体实施例来对本发明进行详细的说明。
传统的Active-Standby双控存储系统处理写业务时流程如图1所示。
本发明采用的提升双控制器写性能的方法如图2所示,具体实施方式如下:
1)standby控制器在命令处理层转发写业务请求到Active控制器后,Active控制器会以固定字节大小(如256K)向Standby控制器请求获取实际数据,Standby控制器收到Active控制器的读数据请求后,再向主机请求数据。
2)当Standby控制器从主机侧获取数据成功后,先保存一份到内存中并做好元信息标记,再将数据返回给Active控制器。
3)Active控制器收到数据后,在数据处理层先将数据的元信息发送到Standby控制器,成功后再将数据写入磁盘。
4)Standby控制器收到Active控制器发送的镜像数据元信息后,根据元信息在内存中查找对应的数据块,与元信息组合形成镜像数据。

Claims (1)

1.一种提升双控制器写性能的方法,该方法涉及包括Active-Standby设计的双控制器存储系统,存储控制器分别为1台Active控制器与1台Standby控制器;
其特征在于:所述提升双控制器写性能的方法,包含以下步骤:
步骤1:Standby控制器在命令处理层接收到写业务请求,将其转发给Active控制器,然后Active控制器向Standby控制器请求获取实际数据,Standby控制器收到Active控制器的读数据请求后,再向主机请求数据;
步骤2:Standby控制器在命令处理层接收到写数据后,先将数据保存1份到本端内存中,然后再将写数据转发给Active控制器处理,Active控制器收到数据后,Active控制器在数据处理层产生镜像数据时,仅仅把数据的元数据信息传输给Standby控制器,等待元数据信息传输成功后再将数据写入磁盘;
步骤3:Standby控制器收到Active控制器发送的镜像数据的元数据信息后,在内存中查找对应的数据,将元数据信息与数据组合在一起形成镜像数据。
CN201910643961.7A 2019-07-16 2019-07-16 一种提升双控制器写性能的方法 Active CN110347535B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910643961.7A CN110347535B (zh) 2019-07-16 2019-07-16 一种提升双控制器写性能的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910643961.7A CN110347535B (zh) 2019-07-16 2019-07-16 一种提升双控制器写性能的方法

Publications (2)

Publication Number Publication Date
CN110347535A CN110347535A (zh) 2019-10-18
CN110347535B true CN110347535B (zh) 2020-05-26

Family

ID=68176677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910643961.7A Active CN110347535B (zh) 2019-07-16 2019-07-16 一种提升双控制器写性能的方法

Country Status (1)

Country Link
CN (1) CN110347535B (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081584A (zh) * 2009-11-30 2011-06-01 英业达股份有限公司 双控制器存储系统的缓存镜像系统及方法
CN109951551A (zh) * 2019-03-21 2019-06-28 联想(北京)有限公司 一种容器镜像管理系统及方法
CN109976667A (zh) * 2016-01-26 2019-07-05 华为技术有限公司 一种镜像管理方法、装置及系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000052577A1 (en) * 1999-03-03 2000-09-08 Storage Technology Corporation System and method for relocation of compressed data tracks
US9547449B2 (en) * 2014-11-12 2017-01-17 International Business Machines Corporation Performance optimization of read functions in a memory system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081584A (zh) * 2009-11-30 2011-06-01 英业达股份有限公司 双控制器存储系统的缓存镜像系统及方法
CN109976667A (zh) * 2016-01-26 2019-07-05 华为技术有限公司 一种镜像管理方法、装置及系统
CN109951551A (zh) * 2019-03-21 2019-06-28 联想(北京)有限公司 一种容器镜像管理系统及方法

Also Published As

Publication number Publication date
CN110347535A (zh) 2019-10-18

Similar Documents

Publication Publication Date Title
US7971011B2 (en) Remote copy method and storage system
US9058305B2 (en) Remote copy method and remote copy system
US6321298B1 (en) Full cache coherency across multiple raid controllers
US7130975B2 (en) Data processing system
EP3826267B1 (en) File sending method, file receiving method and file transceiving apparatus
US20010049749A1 (en) Method and system for storing duplicate data
US9696917B1 (en) Method and apparatus for efficiently updating disk geometry with multipathing software
US6098155A (en) Apparatus and method for streamlining data transfer with existing interconnect bandwidth
JPH10198607A (ja) データ多重化システム
WO2003075166A1 (fr) Systeme de stockage et procede de transfert de donnees dans ledit systeme
CN101299757A (zh) 一种数据共享方法及通讯系统以及相关设备
US10254978B2 (en) Implementing synchronization for remote disk mirroring
JP2003330781A (ja) データ多重保障方法
CN110347535B (zh) 一种提升双控制器写性能的方法
US20090132765A1 (en) Dual controller storage apparatus and cache memory mirror method thereof
CN101807170B (zh) 存储局域网络的快取内存的管理方法
JP2006058960A (ja) 冗長構成のサーバシステムにおける同期化方法及びシステム
JP2006155202A (ja) 遠隔バックアップシステム及び方法
US11544012B2 (en) Distributed storage system and data synchronization method applied thereto
KR101841486B1 (ko) 무복사 바이트 읽기방법 및 무복사 읽기 기능 및 램 동기화 기능을 갖는 컴퓨터 장치
JP4030951B2 (ja) データ二重化装置及び方法
JP2006146389A (ja) オペレーティングシステムの記憶装置仮想化機能を利用した遠隔記憶装置システムへのアクセス方法、そのためのホストコンピュータ、およびプログラム
JPH11265320A (ja) リモート転送機能を有する外部記憶制御装置
JPH09319691A (ja) メモリ間コピー削除による負荷軽減方式

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100193 2nd Floor 201, Block B, Building 12, East 10 Wangdong Road, Northwest Haidian District, Beijing

Applicant after: Beijing Gushu Polytron Technologies Inc

Address before: 100193 2nd Floor 201, Block B, Building 12, East 10 Wangdong Road, Northwest Haidian District, Beijing

Applicant before: BEIJING GUSHU TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant