Home > Article > Operation and Maintenance > What is nginx load balancing
Load balancing is a commonly used function of Nginx. Load Balance (Load Balance) means to allocate execution to multiple operating units, which can be understood as N servers sharing the load equally; such as Web servers, FTP servers, other mission-critical servers, etc., so as to complete work tasks together.
When the number of visits per unit time of a server increases, the pressure on the server becomes greater. When it exceeds its own capacity, the server will collapse. In order to avoid server crashes and provide users with a better experience, we use load balancing to share server pressure.
What is load balancing?
If you understand it literally, it can explain that N servers share the load equally, and a certain server will not go down because of a high load and a certain server will be idle. Then the premise of load balancing is that it can be achieved by multiple servers, that is, more than two servers are enough.
Load balancing is built on the existing network structure. It provides a cheap, effective and transparent method to expand the bandwidth of network devices and servers, increase throughput, strengthen network data processing capabilities, and improve network flexibility. and availability.
Advantages of load balancing
Reduce the pressure on the server, distribute the traffic that one server originally required to bear to multiple servers, and improve the availability of the project. When a server When the server hangs up, the project will not be paralyzed.
The above is the detailed content of What is nginx load balancing. For more information, please follow other related articles on the PHP Chinese website!