Load balancing is a cheap and effective transparent method to extend the existing network equipment and server bandwidth, increase throughput, strengthen the network data processing ability, improve the network flexibility and availability of the technology,
Along with the development of the large data, improved the quality of people's life, causing the site, the increase of application traffic, a server already cannot satisfy the needs of application, and need more than one server cluster, this is you need to load balancing, load balancing optimization allocation between the access request in the server group, eliminates the server load imbalance between, so as to improve the response speed of system and the overall performance, but also simplifies the management,
The realization of load balancing mode
DNS polling, IP load balancing, CDN, F5, the LVS, VS/NAT, VS/top, VS/DR
The LVS: English called the Linux Virtual Server Linux Virtual Server, it is our country's Dr ZhangWenSong an open source project
Advantage: strong ability to resist load; Working stability; No flow; Support all application basically
Disadvantages: low configurable
Nginx: is a high-performance HTTP and reverse proxy services, is also an IMAP/POP3/SMTP service, it is formed by igor - sawyer, as Russia's visits to the second Rambler. Ru site development of the first public version released on October 4, 2004,
Advantages: good performance; Function; Community is active, the more third-party patches and module; Support gzip; Dependence on network small
Disadvantages: does not support the session to keep; Is bad for health check of the back-end realserver effect; Support for big request header is not very good
The difference in the load balancing function of:
1: Nginx can apply itself to do triage strategies for HTTP, for the domain name, for example, the directory structure, etc., by contrast the LVS does not have such function,
2: Nginx for less dependent on the LVS is dependent on network
3: Nginx installation and configuration is simpler, also convenient to test and the installation and configuration of the LVS, testing takes a relatively long time 4: Nginx also can withstand the high load and stable, but the degree of load and poor stability the LVS and several grades,
5: Nginx server internal fault detection performance is better than the LVS,
6: Nginx asynchronous processing of requests can help lighten the load node server, the LVS would not have these functions,
7: Nginx can support HTTP and email, the LVS supported application on this more than the Nginx,