systems or different hardware. For example, a cluster that provides Web Services is a large Web server. However, cluster nodes can also provide services separately.3. Features: based on the existing network structure, Server Load balancer provides a cheap and effective method to expand server bandwidth and increase throughput, enhance network data processing capabilities, and improve network flexibility an
not balanced, so DNS round robin is suitable for load balancing with low reliability requirements, such as slice server clusters and pure static web server clusters. (3) layer-4/layer-7 server load balancer usually works with layer-4 or layer-7 OSI of OSI: Open System Interconnection) layer-7 data format functions and connection methods an interface gateway Pres
(taking PHP as an example ), you cannot directly use the $ _ SERVER ['remote _ ADDR '] variable to obtain the real IP address of the user. In this case, the IP address of the Nginx SERVER Load balancer is obtained. In this case, you need to add the Header information X-Forwarded-For in the Nginx reverse proxy so that the backend SERVER can get the user's real IP address through $ _ SERVER ['HTTP-X-FORWORDE
supported by the URL to detect. the direct hold of the session is not supported, but can be solved by Ip_hash.LVS: Using a Linux kernel cluster to implement a high-performance, highly available load-balancing server with good scalability (Scalability), Reliability (reliability), and manageability (manageability).The advantages of LVS are:1, anti-load capacity, i
F5 BIG-IP Server Load balancer configuration instance and Web Management Interface experience [original] Big | medium | small [| by banquet] [Author: Zhang banquet this article version: V1.0 last modified: for more information, see http://blog.s135.com/f5_big_ip].
Recently, the performance of F5 BIG-IP and Citrix NetScaler Load
the round-robin probability. weight is proportional to the access ratio, which is used when the backend server performance is uneven.2) ip_hashEach request is allocated according to the hash result of the access IP address, so that each visitor accesses a backend server at a fixed time, which can solve the session problem.3) Fair (third party)Requests are allocated based on the response time of the backend server. Requests with short response time ar
promptly discover and deliver access requests to healthy servers, so that users will not be able to access the server. This is the embodiment of "high availability.
The server Load balancer server distributes access requests to idle Web servers instead of busy ones. This is an embodiment of "Server Load balancer.
Fail
is a virtual IP address of keepalived. It is an external public IP address and also an IP address pointed to by DNS. Therefore, when designing the website architecture, you must apply for an external IP address from your IDC.
11. during actual project implementation, we found that LVS and nginx have excellent support for HTTPS, especially LVS, which is easier to process.
12. During LVS + keepalived and nginx + keepalived troubleshooting, both of them are convenient. If a system fault or server
not receive large traffic impact.5, the application of a wide range, because LVS work in the 4 layer, so it can almost all applications to do load balancing, including HTTP, database, online chat room and so on.The disadvantages of LVS are:1, the software itself does not support regular expression processing, can not do static and dynamic separation , and now many sites in this area have a strong demand, this is the advantage of nginx/haproxy+keepali
not receive large traffic impact.5, the application of a wide range, because LVS work in the 4 layer, so it can almost all applications to do load balancing, including HTTP, database, online chat room and so on.The disadvantages of LVS are:1, the software itself does not support regular expression processing, can not do static and dynamic separation , and now many sites in this area have a strong demand, this is the advantage of nginx/haproxy+keepali
This section describes the problems encountered after nginx Server Load balancer is used:
Session Problems
File Upload/download
Generally, multi-server load splitting is used to solve server load problems. Common solutions include:
The website portal
detect. the direct hold of the session is not supported, but can be solved by Ip_hash.LVS: Using a Linux kernel cluster to implement a high-performance, highly available load-balancing server with good scalability (Scalability), Reliability (reliability), and manageability (manageability).The advantages of LVS are:1, anti-load capacity, is the work in the Networ
hold of the session is not supported, but can be solved by Ip_hash.LVS: Using a Linux kernel cluster to implement a high-performance, highly available load-balancing server with good scalability (Scalability), Reliability (reliability), and manageability (manageability).Advantages of LVS1, anti-load capacity, is the work in the Network 4 layer only for distribut
that the server has the smallest load and forwards a large number of requests, achieving the opposite effect. Second, session state persistence and migration. Due to the stateless nature of the HTTP protocol, we generally store some client status data in the session. After Server Load
regular expression processing, can not do static and dynamic separation, and now many sites in this area have a strong demand, this is the advantage of nginx/haproxy+keepalived.
If it is a large web site application, lvs/dr+keepalived implementation is more complex, especially after the Windows Server machine, if the implementation and configuration and maintenance process is more complex, relatively speaking, nginx/haproxy+ Keepalived is a lot easier.
HAProxyHaproxy is characterized b
chat room and so on. 1, the software itself Do not support regular expression processing, can not do static and dynamic separation of ; and now many sites in this area have a strong demand, this is the advantage of nginx/haproxy+keepalived. 2, if the site is a large application, lvs/dr+keepalived implementation is more complex, especially after the Windows server's machine, if implemented and configured and maintenance process is more complicated , comparatively speaking, the nginx/hapro
node, however, the disadvantage is that URL detection is not supported;6. nginx only supports HTTP and email, which is much smaller in the scope of application, which is weak;7. nginx is not only an excellent Load balancer/reverse proxy software, but also a powerful Web application server. Lnmp is also a very popular Web architecture. It has a lot to fight against the most popular lamp architecture in the
Ningx acts as a Load balancer and is also a reverse proxy server. The configuration syntax is quite simple. It can be used to balance the backend servers by round robin, IP_hash, url_hash, weight, and other methods, it also supports backend server health check. In addition, it has advantages over LVS because it is based on Layer 7 Server Load
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.