application layer to create a load-balanced cluster that accesses data-tier data and provides access to the application to the clients in the client tier.Figure 5: a solution with a scalable application layerThis will get a standard load-balanced design. The hardware device or software running on the host assigns the virtual host name (APPSERVER20) and IP address to AppServer1, AppServer2, and AppServer3.
Load BalancingMainstream open source software: LVS, keepalived, Haproxy, Nginx and so on;OSI Layer: LVS (4), Nginx (7), Haproxy (4, 7);The Keepalived load balancing function is actually the LVSLVS Load balancer can distribute other ports than 80, such as MySQL, while Nginx only supports HTTP, https, mail;LVS Introducti
LVS Load BalancingRecently in the study server load Balancing, read some information on the Internet, found that the main software load Balancing scheme has nginx (load balancing for HT
performance should be no better.A Web application cluster configured with Apache+tomcat is a hassle to deploy, always keeping a double copy of the application, and the was cluster does not need to know how JBoss does the Web application cluster.OK, the next thing to do, and finally hope to write a tool can be completed from download to installation configuration, start, stop, restart the full automation, as well as the user interface.Resources:1. Easily implement Apache,tomcat clustering and
Apache Load Balancing configuration (reverse proxy mode)
This article is only suitable for EKP products, as the application cluster is the function of our own implementation, so the configuration here may be inconsistent with the configuration of other products.
We currently use Apache as a front-end load-balanced forw
eventually sends the request to the application server;6. After the application server completes the user request, it is returned directly to the user through the reverse proxy server, without having to pass the LVS server. 3 , IP aliasesThe above is the situation from the user's point of view of the data, in this case, will involve a technology, that is IP aliases. It is important for the implementation of direct routing load
-Xiptables -t nat -A POSTROUTING -s 192.168.133.0/24 -j MASQUERADE#director设置ipvsadmIPVSADM=‘/usr/sbin/ipvsadm‘$IPVSADM -C$IPVSADM -A -t 192.168.147.144:80 -s wlc -p 3$IPVSADM -a -t 192.168.147.144:80 -r 192.168.133.132:80 -m -w 1$IPVSADM -a -t 192.168.147.144:80 -r 192.168.133.133:80 -m -w 1Nat Mode effect testInstallation of Nginx on both RSSet two RS homepage, make a distinction, that is to say, directly curl two RS IP, get different resultsBrows
: Ensure the same request is distributed to the same RS)#因为添加-p option will affect the test effect, so this parameter is not added here (note: The time cannot be set to 0)$IPVSADM-T 192.168.75.128:80-r 192.168.8.134:80-m-W 1$IPVSADM-T 192.168.75.128:80-r 192.168.8.135:80-m-W 1#-a:=add, adding Rs;-r in NAT Schema: Specify IP;-M for RS: Specify the LVS mode as NAT (Masquerade)#-w:=weight, assigning weightsExecute the script:[Email protected] ~]# sh/usr/
Introduction to load Balancing clusters? Mainstream open source software LVs, keepalived, Haproxy, Nginx, etc.? where LVs belongs to Layer 4 (Network OSI 7 layer model), Nginx belongs to 7 layer, Haproxy can be considered as 4 layer, also can be used as 7 layerThe Keepalived load balancing function is actually LVS.? LV
Ipvsadm load Balancing on Ubuntu (DR Mode, 80 ports for example)Description: 3 Servers, IP: 10.0.1.2 10.0.1.3 10.0.1.4 Virtual ip:10.0.1.10Ipvsadm Server (10.0.1.2)$ sudo apt-get install Ipvsadm$ sudo ifconfig eth0:0 10.0.1.10 netmask 255.255.255.255 Broadcast 10.0.1.10$ sudo ip a (see if the settings are in effect)$ sudo route add-host 10.0.1.10 Dev eth0:0$ sudo
, number of databases and connections--rate Viewing connection RatesConfiguration of multiple real server side:1 Configuring the IP addressVim/etc/sysconfig/network-scripts/ifcfg-eth02 Modifying the NIC modeModify the NIC mode to the same network segment as the dispatcher Vmnet4 communication is normal at the same address segment3 Opening httpd ServiceDownload Web server software to open the httpd processYum Install-y httpdService httpd RestartYou can
Introduction to load Balancing clustersMain open source software LVs, keepalived, Haproxy, Nginx, etc.The LVS belong to 4 layer (network OSI 7 layer model), Nginx belongs to 7 layer, Haproxy can be considered as 4 layer, can also be used as 7 layerKeepalived Load balancer is actually the LVS LVS this 4-layer load balan
, Configuration keepalived#配置A服务器 #配置B服务器3. #/etc/keepalived/change_mysql.sh script content for strong kill keepalived process4, #配置好后开启两服务器 keepalived#/etc/init.d/keepalived Start #ps aux | grep keepalived5. View status# IP A keepalived work mechanism is: every 2 seconds to check the status of Real_server monitoring, once the database down, the VIP will be transferred to another stage, so that the rapid failover of the fault, the user in the VIP connection through the basic can remain connected
Environment: Virtual machine: VMware Workstation operating system: CentOS 5.5
First, KEEPALIVED+LVS-DR mode configuration high available load balancing
The topology is as follows:
Second, server IP configuration information
1. IP_LB Host (Master):
2.ip_lb_2 Host (Backup)
3.WEB1 Host
4.WEB2 Host
See if Ipvsadm software is available separately in master and
First, load Balancing cluster introductionIi. introduction of LVSLVS NAT ModeAccess to NAT mode is not too large, usually more than 10 or 10 units or lessIn NAT mode, only the distributor needs to configure a public IP, and then the Distributor and RS only need to set the network IPLVS IP tunnel modeA virtual tunnel be
The Linux LVs load Balancing is mainly used to improve the processing power of the server, improve the corresponding ability of the server, improve the concurrency processing ability, and reasonable resource allocation. Address translation: referred to as NAT mode, similar to the firewall of the private network structure, the
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.