Build a Server Load balancer cluster with LVS in Linux
Common open-source load balancing software: nginx, lvs, and keepalivedCommercial Hardware load equipment: F5, Netscale1. Introduction to LB and LVSLB clusters are short for load
5. Installation Configuration keepalivedKeepalived is running on the LVS, its main function is to realize the real machine fault isolation and load balancer between the failure switch Failover.lvs combined with keepalived, the implementation of 3-layer, 4-layer, 5/7-layer switching functions. The following is the second use of LVS, lvs+keepalived. The installation and verification of Ipvsadm is the same as
Linux Cluster Server Load balancer lab notes I,Network Topology: II,Virtual Machine Configuration Create three virtual machines on one physical computer.WindowsOperating System, Configuration192.168.1.0The IP address of the CIDR block.Centos5.4. One Server Load balancer
One, LVS three kinds of packet forwarding methodLVS provides three packet forwarding methods: NAT (Network address mapping), IP tunneling (IP tunneling), direct Routing (straight route)Different forwarding mode determines the network structure of different cluster, and the following three kinds of forwarding methods are respectively started:1. NAT (Network address mapping):The NAT mode can support any operating system, as well as private networks, and requires only one Internet IP address, but t
realserver 1 ", the webpage information provided by 192.168.24.45 is "welcome realserver 2" # ipvsadm-A-t 172.16.100.24: 80-s rr # ipvsadm-a-t 172.16.100.24: 80-r 192.168.24.44-m # ipvsadm-a-t 172.16.100.24: 80-r 192.168.24.45-m # ipvsadm-L-n -- view the defined rules. These rules are temporary rules, it will not take effect permanently. To save the rule permanently, run the following command: # service ipvsadm save 5. access 172.16.100.24 in the Internet Explorer, as shown in:
If you access 17
Linux Server Load balancer cluster system solution-Linux Enterprise Application-Linux server application information. For details, refer to the following section.
1. Introduction to Linux virtual servers
LoadRunner again, we can see that the annoying "1024 error" is not reported in Error.log.Of course, in Nginx, the file cache is also supported, in order to cache those static files on the local nginx server, but to modify its config file configuration, as follows:VI nginx.confEnter the following at the appropriate node in the file:Location ~. *\. (GIF|JPG|JPEG|PNG|BMP|SWF|JS|HTML|HTM|CSS) $ {#指定缓存文件类型Expires 7d; #设置浏览器过期时间7天Root Data/nginx_cache/iis; #静态文件根目录目录 (must correspond to Proxy_temp_pa
LoadRunner again, we can see that the annoying "1024 error" is not reported in Error.log.Of course, in Nginx, the file cache is also supported, in order to cache those static files on the local nginx server, but to modify its config file configuration, as follows:VI nginx.confEnter the following at the appropriate node in the file:Location ~. *\. (GIF|JPG|JPEG|PNG|BMP|SWF|JS|HTML|HTM|CSS) $ {#指定缓存文件类型Expires 7d; #设置浏览器过期时间7天Root Data/nginx_cache/iis; #静态文件根目录目录 (must correspond to Proxy_temp_pa
1 overviewIn order to guarantee the stable operation of the bastion host-instruction channel, it is necessary to implement the load balance of instruction channel, and study to determine the use of LVS software.LVS is the abbreviation for Linux virtual server, that is, the Linux server, the official site is: www.linuxvirtualserver.org2 LVS ArchitectureLVS set up
. Instead of executing the LVS script we configured above, because Ldirectord will automatically call Ipvsadm to create the LVS routing table, we have described above using the IPVSADM command line to configure LVS in order to give readers a deeper understanding of IPVSADM implementation details and implementation mechanisms.If you are configuring LVS through the Piranha tool, you do not need to use the Ldirectord,piranha tool for the system process is pluse, this process will also automatically
Haproxy + Apache for Linux Server Load balancer Software
Haproxy provides high availability, Server Load balancer, and reverse proxy Based on TCP and HTTP applications, especially for websites with extremely high loads that usually require session persistence or layer-7 proc
0.0 112680 976 pts/0 R+ 18:25 0:00 grep --color=auto keepAlso need to be performed on two RSsh /usr/local/sbin/lvs_dr_rs.sh4. TestingTest Method 1:Enter the VIP in the browser 192.168.242.110 and then deliberately stop an RS nginx service, then refresh the browser to see the results.Test Method 2:In the scheduler, execute the relevant command to view the number of connections:[[emailprotected] ~]# ipvsadm -lnIP Virtual Server version 1.2.1 (size=4096)Prot LocalAddress:Port Scheduler F
Article Title: Original: Linux server load balancer technology based on LVS. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Implementat
Linux load Balancer software LVS II (Installation article)2011-04-26 16:01:47Tags: LVS installation configuration Linux LVS Leisure Linux high AvailabilityOriginal works, allow reprint, please be sure to use hyperlinks in the form of the original source of the article, autho
information becomes as follows: ldirectord|32454] quiescent Real server:192.168.60.132:80 (192.168.60.200:80) (Weight set to 0) This log output is to set the weight of the failed node 192.168.60.132 to 0 without removing the host from the LVS routing table, at which point the connected client will become unreachable, but the new connection will not be assigned to this node. If you restart the real Server1 service, Ldirectord will be able to automatically detect that the node has been activat
1. Introduction to Linux virtual servers
Linux Virtual Server (LVS) is a high-availability Server Load balancer cluster system. The system can provide Load Capacity proportional to the number and performance of server nodes, effectively improving service throughput, reliabil
First, start the LVS Cluster serviceLVS load balancing management and use in two ways, one is the Ipvsadm command line footstep and Ldirectord monitoring mode, one is the Piranha tool for management and use. The following are described separately.1, using Ipvsadm command line footsteps and Ldirectord monitoring method to manage LVSAfter everything has been configured, start the LVS Cluster service by performing the following operations in turn.First,
1. Introduction to Linux virtual serversLinux virtual server (LVS) is a high-availability server Load balancer cluster system. The system can provide Load Capacity proportional to the number and performance of server nodes, effectively improving service throughput, reliability, redundancy, adaptability, and high perfor
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.