I. Introduction of keepalived SoftwareKeepalived is a software based on the VRRP protocol to achieve high availability, it can solve the problem of single point of failure, through the keepalived to build a highly available LVS load Balancing cluster, keepalived can also detect the running state of the background server.Ii. Introduction to the principle of VRRP protocolVRRP (Virtual Router Redundancy protocol) is a single point of failure problem for
.[Email protected] ~]# ipvsadm-a-t 192.168.60.200:80-r 192.168.60.132:80–g[Email protected] ~]# ipvsadm-a-t 192.168.60.200:80-r 192.168.60.144:80–gThe above two settings indicate that two new real server records are added to the virtual server 192.168.60.200, two real server IPs are 192.168.60.132 and 192.168, respectively. 60.144, Parameter "-G" Specifies that the operating mode of the virtual server is the direct route mode, which is the DR mode.After this is set up, when the user accesses the
192.168.60.132:80–g[Email protected] ~]# ipvsadm-a-t 192.168.60.200:80-r 192.168.60.144:80–gThe above two settings indicate that two new real server records are added to the virtual server 192.168.60.200, two real server IPs are 192.168.60.132 and 192.168, respectively. 60.144, Parameter "-G" Specifies that the operating mode of the virtual server is the direct route mode, which is the DR mode.After this is set up, when the user accesses the 192.168.60.200 80 service, LVS assigns the request to
Prepare for three virtual, all CentOS6.5 x86_64Note that the port consistency is maintained during the configuration process.Director (Eth0 192.168.1.189, VIP eth0:0: 192.168.1.18) Director 78Real Server1 (eth0 192.168.1.207, VIP lo:0:192.168.1.18) Server1 78Real Server2 (eth0 192.168.1.208, VIP lo:0:192.168.1.18) Server2 781, configure the static IP, installation test httpd (two sets of realserver to do)[email protected] ~]# Yum install-y httpd[[email protected] ~]# echo "server1_aaa111" >/var/
"/>Or we modify the dir parameter modification.650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/76/41/wKiom1ZN5E-BlKU9AABxyOzJQvQ126.png "title=" Image.png "alt=" Wkiom1zn5e-blku9aabxyozjqvq126.png "/>Then execute this script![Email protected] ~]# sh/usr/local/sbin/lvs_dr.shSiocaddrt:file existsAfter the implementation of the problem, it is because we have just executed, opened the eth0:0 so we have to shut down the network and then open.Co
Today, the teacher talked about the server architecture. Although simple, there are still some difficulties. We need to expand the architecture on this basis.
There is data synchronization during Server Load balancer. Baidu later saw the previous generation share:
Inotify + Rsync is used to implement batch synchronization and batch update of Linux Files in batches. This should be a frequent task for O M pe
automatically start the System Service)
Only for the Current User, on port 8080, when startedManually (Only for the Current User to install, use port 8080, manually start)
Select the first port. (check whether port 80 of the local machine is not in use)
After entering the information, click "next"
5. Go to the "Setup Type" page, including Typical (installed by default) and Custom (Custom installation). select Custom and click "Next"
6. go to the Custom Setup page, click Apacche HTTP Server 2.
About haproxy
Provides high availability, Server Load balancer, and proxy Based on TCP and HTTP applications, and supports Virtual Hosts. It is a free, fast, and reliable solution. Haproxy is especially suitable for websites with extremely high loads, which usually require session persistence or layer-7 processing. Haproxy runs on the current hardware and supports tens of thousands of concurrent connection
:229406(224.0KiB) TX Bytes:229406(224.0KiB) [Email protected] keepalived]# Ipvsadm-lnip Virtual Server version1.2.1(size=4096) Prot localaddress:port Scheduler Flags-remoteaddress:port Forward Weight activeconn inactconntcp192.168.103.100: theWRR Persistent --192.168.103.101: theRoute1 0 0-192.168.103.105: theRoute1 0 0If the NODE3 does not turn off the firewall, the ETH0:1 network card is also enabled, so be careful to shu
Abstract: This article discusses the server load balancer technology and load allocation strategies used by distributed network servers, and implements the server load balancer Gateway on FreeBSD based on
Network Load Balancing Principle and algorithm [Winmag]Author: Slhhacker1. Network Load BalancingGenerally, service nodes in a cluster can provide such information as processor load, application system load, active users, availabl
SummaryThis article mainly discusses the basic balancing algorithms and dynamic load balancing mechanisms in the network load balancing cluster system. Based on LVS, the poll algorithm is used to implement the dynamic negative feedback mechanism of the cluster. A basic dynamic balancing model is provided and analyzed. (12:22:44)
----------------------------------
Abstract: This article discusses the Server Load balancer technology and load allocation strategies used by distributed network servers, and implements the Server Load balancer gateway on FreeBSD Based on
Abstract: This article discusses the Server Load balancer technology and load allocation strategies used by distributed network servers, and implements the Server Load balancer gateway on FreeBSD Based on
1. IntroductionEssentially, network load balancing is an implementation of a Distributed Job Scheduling System. As the controller of network request allocation, the balancer uses a centralized or distributed policy to allocate network service requests based on the current pr
sharing. However, how can we achieve a reasonable traffic distribution between multiple network devices with the same function? In this case, there may be "Labor imbalance" among multiple devices. Therefore, the Server Load balancer mechanism that coordinates the "working intensity" of each device by means of the Network
Absrtact: This paper discusses the load balancing technology used in distributed network server and the strategy of load distribution, and realizes the load balance gateway on FreeBSD based on network address translation, which is applied to our Internet
Network Load Balancing
What is Server Load balancer?A server Load balancer consists of multiple servers in a symmetric manner.It has an equivalent position, and can provide external services independently without the assi
Absrtact: This paper discusses the load balancing technology used in distributed network server and the strategy of load distribution, and realizes the load balance gateway on FreeBSD based on network address translation, which is applied to our Internet
It is best to divide the routing load balancing network segments. This will not disrupt the routing behavior at the network layer, because the host or router forwards each packet through the "Route" found in the route table, unless the load balancing of the route table is achieved, otherwise, only a unique route is sel
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.