标签:cluster
网上的资料很多也比较零散,针对集群的相关知识以本人的理解整理成文档,不妥之处请更正。
1、集群的基本概念:将多台计算机组合起来,为完成某种特定的任务和目标组合而成的多台计算机;目前有三种方式:
LB(loadBalancing):负载均衡 代表的应用:LVS、Haproxy
HA(High Availablity):高可用 heartbeat、RHCS(corosync+openais)、Keepalived
HP(High Performance):高性能 bowerful
2、以上三种方式的侧重特点和区别:
LB:将某个访问量特别大的应用分摊到各节点机器,以提供高并发、高容量的需求。
HA:将多台计算机组合起来,避免某个服务因某台计算机故障而导致服务中断;主要目的是保证服务
的连续性、服务随时可以得到响应。
HP:为了解决一个复杂的计算问题而组合起来的一组计算机集合。
(应用场景为top500的应用,如:计算全国人口按照性别分布情况、各雷达天气数据等)
3、集群服务的3个特点:for higher throughut(吞吐量)
for redundancy(冗余)
for adaptability(灵活适应性)
以LVS为例:LVS: ipvsadm/ipvs
NAT
routing
tunneling
4个IP地址角色:
Virtual IP (VIP) address:The IP address the Director uses to offerservices to client computers
Real IP (RIP) address:The IP address used on the cluster nodes
Director‘s IP (DIP) address:The IP address the Director uses to connect tothe D/RIP network
Client computer‘s IP (CIP) address:The IP address assigned to a client computer thatit uses as a source IP address for requests sent to the cluster
本文出自 “天蓝蓝家园” 博客,请务必保留此出处http://perter.blog.51cto.com/1962646/1833836
标签:cluster
原文地址:http://perter.blog.51cto.com/1962646/1833836