当前位置: 移动技术网 > 科技>操作系统>Linux > 高可用集群

高可用集群

2018年08月31日  | 移动技术网科技  | 我要评论

高可用集群

集群cluster

集群类型:

lb lvs/nginx(http/upstream, stream/upstream)

ha 高可用性

spof: single point of failure

hpc

系统可用性的公式:a=mtbf/(mtbf+mttr)

(0,1), 95%

几个9(指标): 99%, ..., 99.999%,99.9999%;

系统故障:

硬件故障:设计缺陷、wear out(损耗)、自然灾害……

软件故障:设计缺陷

提升系统高用性的解决方案之降低mttr:

手段:冗余redundant

active/passive 主备

active/active双主

active --> heartbeat --> passive

active <--> heartbeat <--> active

高可用的是“服务”:

ha nginx service:

vip/nginx process[/shared storage]

资源:组成一个高可用服务的“组件”

(1) passive node的数量

(2) 资源切换

shared storage:

nas:文件共享服务器;

san:存储区域网络,块级别的共享

network partition:网络分区

quorum:法定人数

with quorum: > total/2

without quorum: <= total/2

隔离设备: fence

node:stonith = shooting the other node in the head,断

电重启

资源:断开存储的连接

two nodes cluster

辅助设备:ping node, quorum disk

failover:故障切换,即某资源的主节点故障时,将资源转移至其它节点的操作

failback:故障移回,即某资源的主节点故障后重新修改上线后,将之前已转移

至其它节点的资源重新切回的过程

ha cluster实现方案:

ais:应用接口规范 完备复杂的ha集群

rhcs:red hat cluster suite红帽集群套件

heartbeat

corosync

vrrp协议实现:虚拟路由冗余协议

keepalived

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网