【精品资料】计算机类外文文献翻译Linux企业集群.doc
《【精品资料】计算机类外文文献翻译Linux企业集群.doc》由会员分享,可在线阅读,更多相关《【精品资料】计算机类外文文献翻译Linux企业集群.doc(19页珍藏版)》请在三一办公上搜索。
1、摘自:Linux企业集群(The Linux Enterprise Cluster)英文原文: The Linux Enterprise ClusterOverviewThis chapter will introduce the cluster load-balancing software called IP Virtual Server (IPVS). The IPVS software is a collection of kernel patches that were merged into the stock version of the Linux kernel startin
2、g with version 2.4.23. When combined with the kernels routing and packet-filtering capabilities (discussed in Chapter 2) the IPVS-enabled kernel lets you turn any computer running Linux into a cluster load balancer. Together, the IPVS-enabled cluster load balancer and the cluster nodes are called a
3、Linux Virtual Server (LVS).The LVS cluster load balancer accepts all incoming client computer requests for services and decides which cluster node should reply to each request. The load balancer is sometimes called an LVS Director or simply a Director. In this book the terms LVS Director, Director,
4、and load balancer all refer to the same thing.The nodes inside an LVS cluster are called real servers, and the computers that connect to the cluster to request its services are called client computers. The client computers, the Director, and the real servers communicate with each other using IP addr
5、esses the same way computers have always exchanged packets over a network; however, to make it easier to discuss this network communication, the LVS community has developed a naming convention to describe each type of IP address based on its role in the network conversation. So before we consider th
6、e different types of LVS clusters and the choices you have for distributing your workload across the cluster nodes (called scheduling methods), lets look at this naming convention and see how it helps describe the LVS cluster.LVS IP Address Name ConventionsIn an LVS cluster, we cannot refer to netwo
7、rk addresses as simply IP addresses. Instead, we must distinguish between different types of IP addresses based on the roles of the nodes inside the cluster. Here are four basic types of IP addresses used in a cluster:Virtual IP (VIP) addressThe IP address the Director uses to offer services to clie
8、nt computersReal IP (RIP) addressThe IP address used on the cluster nodesDirectors IP (DIP) addressThe IP address the Director uses to connect to the D/RIP networkClient computers IP (CIP) addressThe IP address assigned to a client computer that it uses as a source IP address for requests sent to th
9、e clusterThe Virtual IP (VIP)The IP address that client computers use to connect to the services offered by the cluster are called virtual IP addresses (VIPs). VIPs are IP aliases or secondary IP addresses on the NIC that connects the Director to the normal, public network.1 The LVS VIP is important
10、 because it is the address that client computers will use when they connect to the cluster. Client computers send packets from their IP address to the VIP address to access cluster services. You tell the client computers the VIP address using a naming service (such as DNS, DDNS, WINS, LDAP, or NIS),
11、 and this is the only name or address that client computers ever need to know in order to use the services inside the cluster. (The remaining IP addresses inside the cluster are not known to the client computer.)A single Director can have multiple VIPs offering different services to client computers
12、, and the VIPs can be public IP addresses that can be routed on the Internet, though this is not required. What is required, however, is that the client computers be able to access the VIP or VIPs of the cluster. (As well see later, an LVS-NAT cluster can use a private intranet IP address for the no
13、des inside the cluster, even though the VIP on the Director is a public Internet IP address.)The Real IP (RIP)In LVS terms, a node offering services to the outside world is called a real server. (We will use the terms cluster node and real server interchangeably throughout this book.) The IP address
14、 used on the real server is therefore called a real IP address (RIP).The RIP address is the IP address that is permanently assigned to the NIC that connects the real server to the same network as the Director. Well call this network cluster network or the Director/real-server network (D/RIP network)
15、. The Director uses the RIP address for normal network communication with the real servers on the D/RIP network, but only the Director needs to know how to talk to this IP address.The Directors IP (DIP)The Directors IP (DIP) address is used on the NIC that connects the Director to the D/RIP network.
16、 As requests for cluster services are received on the Directors VIP, they are forwarded out the DIP to reach a cluster node. As is discussed in Chapter 15, the DIP and the VIP can be on the same NIC.The Client Computers IP (CIP)The client computers IP (CIP) address may be a local, private IP address
17、 on the same network as the VIP, or it may be a public IP address on the Internet.Types of LVS ClustersNow that weve looked at some of the IP address name conventions used to describe LVS clusters, lets examine the LVS packet-forwarding methods.LVS clusters are usually described by the type of forwa
18、rding method the LVS Director uses to relay incoming requests to the nodes inside the cluster. Three methods are currently available:Network address translation (LVS-NAT)Direct routing (LVS-DR)IP tunneling (LVS-TUN)Although more than one forwarding method can be used on a single Director (the forwar
19、ding method can be chosen on a per-node basis), Ill simplify this discussion and describe LVS clusters as if the Director is only capable of using one forwarding method at a time.The best forwarding method to use with a Linux Enterprise Cluster is LVS-DR (and the reasons for this will be explained s
20、hortly), but an LVS-NAT cluster is the easiest to build. If you have never built an LVS cluster and want to use one to run your enterprise, you may want to start by building a small LVS-NAT cluster in a lab environment using the instructions in Chapter 12, and then learn how to convert this cluster
21、into an LVS-DR cluster as described in Chapter 13. The LVS-TUN cluster is not generally used for mission-critical applications and is mentioned in this chapter only for the sake of completeness. It will not be described in detail.Network Address Translation (LVS-NAT)In an LVS-NAT configuration, the
22、Director uses the Linux kernels ability (from the kernels Netfilter code) to translate network IP addresses and ports as packets pass through the kernel. (This is called Network Address Translation (NAT), and it was introduced in Chapter 2). Note Well examine the LVS-NAT network communication in mor
23、e detail in Chapter 12.A request for a cluster service is received by the Director on its VIP, and the Director forwards this requests to a cluster node on its RIP. The cluster node then replies to the request by sending the packet back through the Director so the Director can perform the translatio
24、n that is necessary to convert the cluster nodes RIP address into the VIP address that is owned by the Director. This makes it appear to client computers outside the cluster as if all packets are sent and received from a single IP address (the VIP).Basic Properties of LVS-NATThe LVS-NAT forwarding m
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 精品资料 精品 资料 计算机 外文 文献 翻译 Linux 企业 集群
链接地址:https://www.31ppt.com/p-2324660.html