Oracle RAC中的投票算法

WBOY
Release: 2016-06-07 17:21:19
Original
962 people have browsed it

两个partition都想以为对方出问题,自己需要接管业务,如果没有投票算法就会导致两个partition同时操作数据库(共享存储)的情况

假设,RAC集群中有三台机器,A,B,C

A,B,C都会有3票,假设这是A的心跳线出现问题,整个RAC集群就划分为两个paritition,

一个是只有A的partition,一个是B,C组成的partition,

两个partition都想以为对方出问题,自己需要接管业务,如果没有投票算法就会导致两个partition同时操作数据库(共享存储)的情况,注意,这里的数据库不是我们通常说的数据库,因为在RAC集群中,数据文件,配置文件,日志文件是放在后端的共享存储上的,RAC集群中的多个节点所共享。

话说回来,出先两个partition后,因为A所在的partition只有自己了,没有其他心跳线连接,所以它只有自己的1票,

而B,C所在的partition因为有彼此间的心跳线存在,都可向对方投票,所以他们都有2票,这个时候票数多的获得RAC集群的控制权,A所在的partition被踢出集群。A节点被强制重启,避免A和BC节点同时操作数据库。

linux

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!