The present invention relates to the technical field of database, a database with high zero loss method, which comprises the following steps: (1) the start of the cluster management software, the continuous detection of the main library; (2) the user data in the form of log data by copying the database itself can be synchronized to the power from the library, at the same time, the main library the block of data synchronization software user data to log data in the form of a copy from the image to the virtual disk output synchronization software library blocks of data; (3) when the main library fails, cluster management software 3 times to confirm the operation to determine the main library; (4) cluster management software in the data from the data base on image compensation; (5) when the fault of the main library, using the cluster management software manual to fault of the main library as a copy structure to add new library from the main library in. The invention realizes data zero loss through the data block synchronization software and the Internet, and realizes the solution of high availability and zero loss fundamentally.
【技术实现步骤摘要】
一种数据库高可用零丢失解决方法
本专利技术涉及数据库
,尤其涉及了一种数据库高可用零丢失解决方法。
技术介绍
众所周知,在数据库软件、数据库服务器操作系统、数据库服务器硬件等出现故障的情况下,数据库的数据将会丢失。并且在数据库本身或者数据库所在服务器发生故障的情况下,对外提供的业务将被中断。为了避免上述情况的发生,目前市面上主要有两种类型的解决方案:1、高可用优先类型方案:当主库出现故障时,自动把对外提供读写服务的IP切换到备库上,最大程度上保证业务的可用性,但是,这种方案大多数高可用管理软件并不保证数据安全,而是保证高可用。2、防止数据丢失优先类型方案:当主库发生故障时,会优先尝试对从库进行数据补偿再进行高可用切换(甚至一些解决方案仅仅只是补偿数据而不做高可用切换),但是在主库操作系统或者硬件级别的故障,或者突然掉电时,主库上的数据来不及发送到从库上时,也可能会丢失数据,这种类型的解决方案只是尽量补偿数据,并不能保证数据零丢失。另外,两种类型的解决方案在一些场景下都存在脑裂的可能性,从而带来其他的一些风险。
技术实现思路
本专利技术针对现有技术中花费时间多,存 ...
【技术保护点】
一种数据库高可用零丢失解决方法,其特征在于,包括如下步骤:(1)启动集群管理软件,持续检测主库状态;(2)当主机正常状态时候,集群管理软件按照给定的时间间隔持续检测主库的网络的连通性、操作系统登录情况、数据库软件登陆情况和写入数据情况,主库通过虚拟IP地址正常对外提供读写服务;用户数据以数据日志的形式通过数据库自身的复制功能同步到从库,同时,主库上的数据块同步软件将用户数据以数据日志的形式,拷贝一份镜像到从库上的数据块同步软件输出的虚拟磁盘上;(3)当主库发生故障时,集群管理软件3次确认判定主库的运行情况,当确认主库故障之后,集群管理软件在从库上ping网关,发出ping命 ...
【技术特征摘要】
1.一种数据库高可用零丢失解决方法,其特征在于,包括如下步骤:(1)启动集群管理软件,持续检测主库状态;(2)当主机正常状态时候,集群管理软件按照给定的时间间隔持续检测主库的网络的连通性、操作系统登录情况、数据库软件登陆情况和写入数据情况,主库通过虚拟IP地址正常对外提供读写服务;用户数据以数据日志的形式通过数据库自身的复制功能同步到从库,同时,主库上的数据块同步软件将用户数据以数据日志的形式,拷贝一份镜像到从库上的数据块同步软件输出的虚拟磁盘上;(3)当主库发生故障时,集群管理软件3次确认判定主库的运行情况,当确认主库故障之后,集群管理软件在从库上ping网关,发出ping命令,确认从库网络连通性,如果超过4秒无返回...
【专利技术属性】
技术研发人员:罗小波,李建辉,熊中哲,魏兴华,臧冰凌,李春,陈栋,张文件,罗春,
申请(专利权)人:杭州沃趣科技股份有限公司,
类型:发明
国别省市:浙江,33
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。