I understand that lvs is a four-tier load balancer and nginx is a layer 7, but I still can"t understand why we still need lvs? when there is nginx. Are there any good examples to understand?
I understand that lvs is a four-tier load balancer and nginx is a layer 7, but I still can"t understand why we still need lvs? when there is nginx. Are there any good examples to understand?
personal understanding:
lvs
nginx:
in fact, what to use is determined according to the business scenario and requirements. As long as what suits you is the best, nothing is better than everything.
lvs supports layer 4 and layer 7 loads are very flexible and efficient.
nginx is a layer 7 load, so many complex situations cannot be satisfied because it works in the layer 7 application layer. For example, the open source version only supports http
php is the best language in the world, and I chose jsThe principle of
is the same. Choose which one to use
according to the usage scenario.