The present invention relates to the technical field of database, open a way to achieve double live system consistency based algorithm, which comprises the following steps: (1) the deployment of the first computing server, first storage server and storage server second in the first second in the data center, data center deployment second calculation server, third storage server and storage server fourth (2) second; third storage server and storage server using consistency algorithm program management; (3) set the weights in the consistency algorithm program in the configuration file; (4) even when the fiber link is connected between the first transmission fault data center and second data center, double live system will occur in clusters of brain split, consistency algorithm according to the step (3) weight decision allocation, weight small data center to stop the service. The invention makes the operation of the consistency algorithm simple, and the weight calculation is accurate and precise, so as to solve the brain splitting behavior of the double live system and ensure the data consistency of the double live system.
【技术实现步骤摘要】
一种基于一致性算法的双活系统的实现方式
本专利技术涉及数据库
,尤其涉及了一种基于一致性算法的双活系统的实现方式。
技术介绍
在现有的基于块同步的OracleRAC的同城双活方案中,实现如下:1.无需采用第三方机房存放其中一块仲裁磁盘。2.当其中一个机房断电,另一个机房仍然可以访问到超过一半的仲裁盘,从而保障一边能够正常提供业务。在上述的实现方法中,只考虑了其中一方机房断电的情况,却没有考虑到两地机房间的块复制网络中断的情况。在我们已知的OracleRealApplicationCluster双活集群方案中,集群的仲裁策略必须保证两个实例组成的集群中,其中一个实例可用的仲裁盘大于总仲裁盘的1/2,集群就能正常运行。由此条件得知,在
技术介绍
的实现方法中,当仲裁盘的块复制网络中断,就发生了集群的脑裂,此时两个数据中心之间的数据库都能正常运行,被分离成了两个单独的数据库环境,从而导致整个集群的数据不一致。
技术实现思路
本专利技术针对现有技术中切换时间较长、效率低的缺点,提供了一种基于一致性算法的双活系统的实现方式。为了解决上述技术问题,本专利技术通过下述技术方案得以解决。一种基于一致性算法的双活系统的实现方式,包括如下步骤:(1)在第一数据中心部署第一计算服务器、第一存储服务器和第二存储服务器,在第二数据中心部署第二计算服务器、第三存储服务器和第四存储服务器;(2)将第二存储服务器和第三存储服务器均采用一致性算法程序管理;(3)在一致性算法程序的配置文件中设置权重值,设置第一数据中心的第二存储服务器权重值为100;第二数据中心的第三存储服务器权重值为50;( ...
【技术保护点】
一种基于一致性算法的双活系统的实现方式,其特征在于,包括如下步骤:(1)在第一数据中心部署第一计算服务器、第一存储服务器和第二存储服务器,在第二数据中心部署第二计算服务器、第三存储服务器和第四存储服务器;(2)将第二存储服务器和第三存储服务器均采用一致性算法程序管理;(3)在一致性算法程序的配置文件中设置权重值,设置第一数据中心的第二存储服务器权重值为100;第二数据中心的第三存储服务器权重值为50;(4)当连接第一数据中心和第二数据中心之间的光纤链路发送故障时,双活系统将发生集群脑裂,一致性算法程序根据步骤(3)所配置的权重来决策,权重小的数据中心停止服务。
【技术特征摘要】
1.一种基于一致性算法的双活系统的实现方式,其特征在于,包括如下步骤:(1)在第一数据中心部署第一计算服务器、第一存储服务器和第二存储服务器,在第二数据中心部署第二计算服务器、第三存储服务器和第四存储服务器;(2)将第二存储服务器和第三存储服务器均采用一致性算法程序管理;(3)在一致...
【专利技术属性】
技术研发人员:陈仕昌,李建辉,熊中哲,魏兴华,臧冰凌,李春,陈栋,张文件,罗春,
申请(专利权)人:杭州沃趣科技股份有限公司,
类型:发明
国别省市:浙江,33
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。