LVS Linux讲解材料.ppt

  1. 1、本文档共333页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
LVS Linux讲解材料.ppt

LVS Heartbeat ipvsadm /etc/rc.d/init.d/ipvsadm start /etc/sysconfig/ipvs_config 1 2 1 2 VIP Nginx, Web服务; IP nginx 1, 2 VIP: nginx 一定不能, must not Web Web 01 02 IP /etc/ha.d/ ha.cf haresources auth.keys The Haresources File Syntax The /etc/ha.d/haresources file must be the same on both the primary and the backup Heartbeat servers. Each line in the haresources file usually contains the following: The name of the server where the resource should normally run (the primary server), followed by a space or tab. An (optional) IP alias that Heartbeat should add to the system before launching the resource, followed by a space. The IP alias definition may include a network subnet mask and a broadcast address separated from each other by the forward slash (/) character. A resource script (the script used to start and stop the resource) located in either the /etc/init.d or the /etc/ha.d/resource.d directory . If arguments need to be passed to the resource script, they are added after two colons and are separated from each other by two colons. 1、HA集群可否有两个以上的节点? 2、CIB:XML 3、Cluster FS A B C Messaging Layer CRM LRM DC:PE CRM CIB RA Primitive group clone master-slave Legacy heartbeat LSB OCF STONITH stickiness Constraint: Location Collocation Order 2 nodes ping gateway qdisk: quorum disk: 仲裁磁盘 2 nodes votes total_votes/2 Messaging Layer heartbeat heartbeat (heartbeat+crm(haresources,crm) keepalived corosync/openais ultramokey CRM pacemaker cman ha-aware web服务的高可用集群 vip httpd {start|stop|restart|status} Communication module(2) Heartbeat can detect node failure reliably in less than a half-second. It will register with the system watchdog timer if configured to do so. The heartbeat layer has an API which provides the following classes of services: intra-cluster communication - sending and receiving packets to cluster nodes configuration queries connectivity information (who can the current node hear packets from) - both for queries and state change notificatio

文档评论(0)

yuzongxu123 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档