=============================================================================== 概述:
=============================================================================== 回顾:
HA解决方案:OpenAIS(开放式应用接口标准) 1.介绍 ★HA解决方案: ★OpenAIS: ☉Messaging Layer(Infrastructure Layer) 基础结构层,负责完成主机状态传递
☉CRM(Cluster Resource Manager) 集群资管理器层 ☉RA(Resource Agent) 资源代理层
2.各自的实现 ★Messaging Layer: heartbeat:v1 --> v2 --> v3 openais --> cman (cluster manager) openais --> corosync engine
★CRM: ☉heartbeat v1 --> haresources ☉heartbeat v2 --> crm
☉heartbeat v3 --> pacemaker ☉cman --> rgmanager 配置接口 配置文件:cluster.conf(xml) GUI: system-config-cluster WebGUI:conga(ricci/luci) CLI:cman_tool, ccs_tool, clustat, ...
☉corosync --> pacemaker
3.组合方式实现及RHCS ★组合方式: heartbeat v1 + haresources heartbeat v2 + crm (crmsh, hb_gui) heartbeat v3 + cluster-glue + pacemaker corosync + pacemaker ·corosync v1 + pacemaker (plugin) //CentOS 6 · corosync v2 (quorumsystem) + pacemaker (standalone daemon) //CentOS 7 cman + rgmanager cman + corosync v1 + pacemaker
★RHCS:RedHat Cluster Suite (红帽集群套件) ☉RHEL5: ☉RHEL6: cman + rgmanager + conga(ricci/luci) corosync v1 + pacemaker + crmsh/pcs cman + corosync v1 + pacemaker + crmsh/pcs
☉RHEL7:
4.quorum:投票系统 ★目的: ★quorum system:投票系统 ☉with quorum:votes > total/2 ☉without quorum: votes <= total/2
★fecing: 隔离 ☉node level(节点级别):STONITH (Shooting The Other Node In The Node) stonith device:隔离设备 ·hardware:power switch(电源交换机), ... ·software:virtulization kvm/xen/...,ssh/telnet, ... ·meatware:人工智能
☉resource level:资源级别 ★特殊场景:two nodes cluster
☉no_quorum_policy ☉quorum device //仲裁设备
5.集群事务信息及心跳信息的传递方式: ★集群事务信息及心跳信息的传递方式: unicast //单播 multicast //多播(多数采用的方式) broadcast //广播
6.Resource Allocation Layer:资源管理 ★Resource Allocation Layer: ★Component:组件 ☉DC: ☉非DC: ★资源类型:
☉primitive:基本资源、主资源 ☉group:组 ☉clone:克隆 ☉multi-state(master/slave): ★集群的架构类型:
☉两个节点 ☉N个节点: ★资源倾向性:资源的约束关系;
7.RA:资源代理 ★类别: ☉LSB:/etc/rc.d/init.d/* ☉OCF:Open Cluster Framework ☉systemd unti file:/usr/lib/systemd/system ☉STONITH:专用于配置stonith设备的RA; ☉service:
|