Let's take a look at the cluster principle: the Linux cluster system consists of cluster nodes and Cluster Manager. A cluster node, sometimes referred to as a node, server, or server node, is a system that provides resources for processing. It performs the actual work of the cluster. Generally, it must be configured to become a part of the cluster, and the application software of the cluster must be run. Application Software
Let's take a look.ClusterPrinciple:
The Linux cluster system consists of cluster nodes and Cluster Manager. A cluster node, sometimes referred to as a node, server, or server node, is a system that provides resources for processing. It performs the actual work of the cluster. Generally, it must be configured to become a part of the cluster, and the application software of the cluster must be run. Applications can be cluster-specific software or standard software designed for distributed systems. The Linux cluster manager binds nodes to form a logical structure of a single system. It is used to break down tasks to all nodes.
The cluster has different types for different reasons. The most direct reason for establishing a Linux cluster is to share CPU resources, balance loads among multiple machines, and obtain more system reliability, or provide a backup system (switchover) when the host fails ).
Through the analysis of related software, the function of implementing cluster load is implemented through traffic management. The specific implementation methods are as follows: Direct routing (Direct Forwarding) and Network Address Translation (NAT) and Tunneling ).
Direct routing (Direct Forwarding) is used when the computer participating in the cluster and the computer acting as the control and management are in the same network segment. When the computer that controls the management receives the request packet, it directly sends it to the node that participates in the cluster. Its advantage is that the traffic returned to the customer is not controlled by the host, and the speed is fast and the cost is low.
You may be familiar with Network Address Translation (NAT. The address converter can have a legitimate IP address accessed by the outside world. It modifies the address of the outbound packet from the VPC. The outside world looks like the package is from the address converter itself. When the external package is sent to the converter, it can determine which node should the package be sent to the Intranet. Its advantage is that it saves IP addresses and can disguise the interior. Its disadvantage is that the efficiency is low because the traffic returned to the requester must go through the converter.
Tunneling is a forwarding mechanism used when nodes in a Linux cluster are not in the same CIDR block. It encapsulates IP packets in other network traffic. From the security perspective, VPN or leased line in tunneling technology should be used.
Linux Clusters provide TCP/IP-based Web services, Mail services, News services, DNS services, and Proxy servers. Next I will use a specific product TurboLinux Cluster Server to implementServer Load balancerLinux cluster system, used to provide Web and FTP services.
Linux cluster Planning
1. provided services: Web and FTP.
2. Build a complete load balancing system so that more functions can be used.
3. Use four servers, three of which are TurboLinux Cluster Server and one is Windows 2000 Sever.
Linux cluster Installation
1. To install Turbo Linux on three servers, you also need to install Apache and wu-FtpD, because Linux clusters need to provide such services. After the installation is complete, restart the machine and attach the optical drive to the/mnt/directory/CdIn rom, execute./TLCS-install, and then follow the prompts to install it completely.
2. Install Windows 2000 Server on one Server and Internet InfoRmAtion Server 5.0.
Configure the Linux cluster manager
1. Set the IP address, subnet mask, and route of each server to enable network communication, and set a TurboLinux server as a DNS server so that it can forward and reverse resolution. In this example, the server name is pc1 and the domain is test.com.
2. Configure Cluster Server. Run TurboLinuxclusteradmin. The settings are as follows (the connection character is the menu option or its lower-level menu, and the setting is after the colon ):
(1) ClusterServer Configuration-Cluster Services-AppliCatIon Stability Agents:
Http is the default service and does not need to be set.
Ftp:/usr/lib/ftpAgent (2) ClusterServer Configuration -- Cluster Services -- Service Settings:
Http, 80: TCP, sticky. Ftp, 21: TCP, ftp. (3) ClusterServer Configuration -- Servers Configuration:
Pc1 (pc1.test.com), direct,PingPc2 (pc2.test.com), direct, pingpc3 (pc3.test.com), direct, pingpc4 (pc4.test.com), direct, ping (4) ClusterServer Configuration -- AdvaNcE Traffic Managers:
Advance Traffic Manager System: pc1.test.com Advance Traffic Manager Setting: Default Value (5) ClusterServer Configuration à Virtual Severs:
HOST: pc1.test.com sendmail: master @ pc1 .test.com Server pool name: Server Group1 (6) ClusterServer Configuration à Globle Settings:
Network Settings: netmask 255.255.255.255.0
1. Configure the Windows 2000 Server Node
Because TurboLinux Cluster Server itself can be automatically synchronized by tools, you only need to configure Windows 2000 Server.
(1) Start → set → Control Panel → add new hardware → next → Add/troubleshoot devices → add new devices → No, then select hardware from the list → other devices → Microsoft: microsoft Loopback Adapter → complete.
(2) Right-click the desktop and choose "Network Neighbor"> "properties"> "TCP/IP". Set the IP address, default gateway, and subnet mask (255.255.255.0 first ).
(3) Start → run → regEdIt → locate the entry related to Microsoft Loopback Adapter in the Registry and change the subnet mask to 255.255.255.255.
(4) configure the system to run appropriate services and configure the configuration suitable for Cluster Manager management so that it can be used in the control manager.
2. Configure the Turbo Linux Cluster Server node
(1) Select tlcs_content _ from the Management menu _SyncExecute content synchronization, enter the password of the node to be configured, and copy the service content in the Cluster Manager to the node.
(2) Select tlcs _ config _ sync in the management menu to execute synchronization settings, enter the node password to be configured, and copy the settings in the Cluster Manager to the node.
At this point, we can see the running status on Cluster Manager pc1. we can connect the client to the switch connected to the server, and the client can request Web and FTP services. You can also use https: // pc1.test.com: 910 on the Cluster Manager Console to view the running status.