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, author information and this statement. Otherwise, the legal liability will be investigated. htt
that can monitor the state of the system. Graphic Monitor is browser-based, so the status of the system can be monitored either locally or offsite. For security reasons, the browser through the HTTPS (secure HTTP) protocol and identity authentication, before the system monitoring, and system configuration and management.Advantages1, open source, free2, can find some related technical resources on the Internet3, with software
. 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
.[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
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
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 server cluster to achieve load balancing has
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
for failure and then shuts down the connection service for this node.Now restart the service that starts the real Server1 node, and then observe the log output of the Pluse service:Nov 16:49:41 LVs nanny[7158]: making 192.168.60.132:80 availableThe nanny daemon automatically detects that the real Server1 service has been activated and re-makes the node available for connection within the set detection time.This article is from the "Technical Achievement Dream" blog, please be sure to keep this
, which is the VIP address above, is shared by the director server and all real servers,If there is an ARP request VIP address, the Director server responds with all real servers, and the problem occurs.Therefore, the real server needs to be prevented from responding to ARP requests.Third, configure the Tomcat service on the real server, slightly. To build an HTML file in 192.18.8.5, the contents are:This is the test pageFrom server 192.168.8.5To build an HTML file in 192.18.8.6, the contents ar
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.
and server systems by protecting Server clusters from various types of DoS attacks.
The advent of the Internet has brought a lot of new applications and services: Web, DNS, FTP, SMTP and so on. Fortunately, it is very easy to differentiate and process the Internet traffic. Because the Internet has a large number of clients requesting specific services, and
the performance bottleneck of the firewall as a site, multiple firewalls are used to achieve load balancing, as shown in the following figure (for details, we will discuss it later ):
Next, let's take a look at some Server Load balancer products.
Load Balancing products can basically be divided into three
Technology for virtual servers through IP tunnelingImplement virtual servers (VS/NAT) through NAT. requests and responses are all completed in the Server Load balancer.
As shown in the architecture of VS/NAT, there is a scheduler in front of a group of servers that are connected through the Switch/HUB. These services provide the same network services and content, that is, no matter which server the request
Haproxy configuration for Server Load balancer and haproxy configuration for Server Load balancerCommon Open-Source Software load balancers include Nginx, LVS, and Haproxy. Comparison of three major software
. Both the WEB and the WEB are connected to that database, so that the two WEB contents are synchronized, then load the two WEB servers. below is my COPYNetwork Load Balancing allows clients to access the cluster with a logical Internet Name and virtual IP address (also known as the cluster IP address), while keeping the names of each computer. Next, we will intr
to upstream, but the port should be changed as follows:
Upstream a.com {Server 192.168.5.126: 80;Server 192.168.5.27: 80;Server 127.0.0.1: 8080;}
You can add the master server IP192.168.5.149 or 127.0.0.1 to access your own IP address.
Restart Nginx, and then visit a.com to see if it will be allocated to the master server.
The master server can also be added to the Service normally.
LastI. Server Load balancer
Recently want to be able to configure load balancing, in the virtual machine above, but the Internet to find a lot of information is fragmented, for people who do not know, a lot of not enough detail, recently finally done, the specific steps to write down, convenient for you to read the studyThis experiment requires the installation of Nginx if not installed, please refer to:Linux installation nginx:http:/
Both LVS and Nginx can be used as multi-host load solutions. They have advantages and disadvantages. in the production environment, you need to analyze the actual situation and make use of it.First of all, I would like to remind you that technology is not a cloud, and my cloud is your cloud. At the same time, we should not be too conservative, too confident in the old method and wait for others to help you with the advance test. It is a good habit to
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.