In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
What is the principle of Linux cluster? aiming at this problem, this article introduces the corresponding analysis and solution in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
Linux cluster principle
Linux cluster system consists of two parts: cluster node and cluster manager. A cluster node, sometimes referred to as a node, server or server node, is a system that provides processing resources, and it carries out the actual work of the cluster. Generally speaking, it must be configured to become part of the cluster, and it must also run the cluster's applications. The application software can be either cluster-specific software or standard software designed for distributed systems. The Linux cluster manager bundles nodes together to form a logical structure of a single system appearance, which is used to decompose tasks into all nodes.
Clusters have different types for many different reasons. The most direct reason for establishing a Linux cluster is to share CPU resources, balance the load among multiple machines, obtain more system reliability, or provide a backup system (switching) when the host fails.
Through the analysis of related software, the function of cluster load is realized through traffic management, and there are the following implementation methods: direct routing (Direct Forwarding), network address translation (NAT) and tunneling technology (Tunneling).
Direct routing (Direct Forwarding) can be used when the computers participating in the cluster and the computers that act as control and management are on the same network segment. When the control and management computer receives the request packet, it is sent directly to the node participating in the cluster. Its advantage is that the traffic returned to the customer does not go through the control host, and the speed is fast and the overhead is low.
Maybe you are familiar with the method of Network address Translation (NAT). The address translator has a legitimate IP address that can be accessed by the outside world. It modifies the address of the outbound packet from the proprietary network. It appears that the packet comes from the address converter itself. When the external packet is sent to the converter, it can determine which node of the intranet the packet should be sent to. Its advantage is that it saves IP addresses and can camouflage the interior; the disadvantage is that it is inefficient because the traffic returned to the requester passes through the converter.
Tunnel technology (Tunneling) is a forwarding mechanism adopted when the nodes of Linux cluster are not in the same network segment. It encapsulates IP packets in other network traffic. From a security point of view, VPN in tunnel technology should be used, or leased lines can be used.
The services that Linux cluster can provide are TCP/IP-based Web services, Mail services, News services, DNS services and Proxy servers. Next I will implement a load balancing Linux cluster system with a specific product TurboLinux Cluster Server, which is used to provide Web and FTP services.
Linux cluster planning
1. Services provided: Web, FTP.
two。 Make a more perfect load balancing system so that more functions can be used.
3. Use 4 servers, of which 3 install TurboLinux Cluster Server,1 and install Windows 2000 Sever.
Linux cluster installation
1. To install Turbo Linux on three servers, you also need to install Apache and wu-ftpd, because the Linux cluster provides this service. Restart the machine after the installation is complete, attach the optical drive to the directory / mnt/cdrom, and execute. / TLCS-install, and then follow the prompts to fully install.
two。 Install Windows 2000 Server and Internet Information Server 5. 0 on 1 server.
Configure Linux Cluster Manager
1. Set the IP address, subnet mask, route, etc., of each server, connect the network, and set a TurboLinux server as a DNS server, so that it can parse forward and reverse. The server name of this example is pc1, and the domain is test.com.
two。 Configure Cluster Server. Execute TurboLinuxclusteradmin with the following settings (hyphens are connected to menu options or their subordinate menus, and colons are used for settings):
(1) ClusterServer Configuration-Cluster Services-Application Stability Agents:
Http is the default service and need not be set up.
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,ping
Pc2 (pc2.test.com), direct,ping
Pc3 (pc3.test.com), direct,ping
Pc4 (pc4.test.com), direct,ping
(4) ClusterServer Configuration--Advance Traffic Managers:
Advance Traffic Manager System:pc1.test.com
Advance Traffic Manager Setting: default
(5) ClusterServer Configuration à Virtual Severs:
Host: pc1.test.com
Sendmail:master@pc1 .test.com
Server pool name: Server Group1
(VI) ClusterServer Configuration à Globle Settings:
Network settings: netmask 255.255.255.0
Configure each node of the cluster
1. Configure the Windows 2000 Server node
Because TurboLinux Cluster Server itself can be automatically synchronized by the tool, you only need to configure Windows 2000 Server.
(1) start → settings → control panel → add new hardware → next step → add / troubleshoot device → add new device → No, and then select hardware → other devices → Microsoft:Microsoft Loopback Adapter → to complete.
(2) right-click on the desktop and select the network neighbor → attribute → TCP/IP, and set the IP address, default gateway, and subnet mask (set to 255.255.255.0 first).
(3) start → to run → regedit → to find the entries 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 a configuration suitable for cluster manager management so that it can be used in the control manager.
two。 Configure the Turbo Linux Cluster Server nod
(1) Select tlcs_content _ sync from the management menu to perform content synchronization, enter the password of the node machine to be configured, and copy the service content in the cluster manager to the node.
(2) Select tlcs_ config _ sync from the management menu to perform settings synchronization, enter the password of the node machine to be configured, and copy the settings in the cluster manager to the node.
The answer to the question about the principle of Linux cluster is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.