Computer Engineering and Applications计算机工程与应用
2012,48(29)
1 概述
双机热备是一种高可用的技术方案
[1]
,将中心服
务器安装成互为备份的两台服务器,当运行着的服
务器出现故障无法启动时,另一台自动启动以减少
损失的技术。双机热备技术
[2]
一直是研究的热点。
但是面向实时数据库系统(RTDB)的双机热备还不
是很完善。比如在像面向电力的实时数据库系统
中,要求生产过程响应速度在秒级,数据存档速度
50 000 事件/秒,存档数据回取事务吞吐量50 000 点/秒
的情况下,会产生大量数据并且要求服务器必须不
停运转。为防止服务器故障造成系统服务中断,在
服务器硬件配置上,除了采用磁盘阵列容错,集群措
施外,双机热备
[3-4]
是性价比比较高的一种解决方案。
现在已经存在一些通用的双机热备软件,比如
Microsoft clustering,LifeKeeper
[5]
,PlusWell 等 。 但
是,这些软件在实时数据库系统方面的应用还是有
些欠缺:一方面在技术上,通用的双机热备软件在实
时数据库系统中存在着诸多问题,无法满足实时性
系统的需要,比如切换时间长、占用资源多等;另一
方面在部署和使用上,需要专门购买软件,专门进行
安装调试,并且对硬软件环境有严格的限制,例如,
Microsoft clustering
[6]
要求服务器使用 windows ad-
vanced server 版本,并且必须使用双机共享磁盘阵
列;Life Keeper 还需要进行人员培训等问题。
本文针对实时数据库系统(RTDB)提出了一种
新颖的双机热备系统设计方案,在此基础上,实现了
实时数据库系统双机热备机制设计与实现
杨晓芬,王永会,刘 轶
YANG Xiaofen, WANG Yonghui, LIU Yi
北京航空航天大学 计算机学院,北京 100191
School of Computer Science and Techonology, Beihang University, Beijing 100191, China
YANG Xiaofen, WANG Yonghui, LIU Yi. Design and implementation of dual-server hot-standby system for
real-time database. Computer Engineering and Applications, 2012, 48(29):124-127.
Abstract:Dual-server hot-standby can implement a good task-reliability, so it is used in power system broadly.
This paper proposes a new dual-server hot-standby system technology for real-time database, implements modular
hardware based on technologies including testing and monitoring the state of system and resources, state synchro-
nous, network communication, mechanism of switching over and data mirror service. Main control modular moni-
tors and arbitrates the state of dual-server, and network communication modular monitors whether server breaks
down. Switch over modular switches whenever the server breaks down, and configuration modular sets information
about switch over. It ensures that the system runs in a good task-reliability.
Key words:dual-server hot-standby; good task-reliability; power system; data mirror
摘 要:双机热备计算机系统可实现高任务可靠性,广泛应用于电力系统。针对实时数据库系统提出了一种
新颖的双机热备设计技术,基于系统及资源状态检测与监控、双机状态一致性同步、网络通信协议、主备切换
机制、数据镜像服务等关键技术实现了模块设计。主控模块对主备服务器工作状态进行仲裁与检测,网络通
信模块检测服务器故障,切换控制模块实时响应服务器故障进行切换,配置模块对双机信息进行设置,保证了
系统高可靠性持续运行。
关键词:双机热备;高可靠性;电力系统;数据镜像
文章编号:1002-8331(2012)29-0124-04 文献标识码:A 中图分类号:TP319
作者简介:杨晓芬,女,硕士研究生,主要研究领域为系统结构;刘轶,男,博士生导师,教授。E-mail:yangxiaofen1987@163.com
收稿日期:2011-09-27 修回日期:2011-11-14 CNKI 出版日期:2012-01-16
DOI:10.3778/j.issn.1002-8331.2012.29.025 http://www.cnki.net/kcms/detail/11.2127.TP.20120116.0926.011.html
124
评论