The second job of web cluster

  1. Compare the NAT mode and DR mode of the LVS load balancing cluster and compare their respective advantages.
    LVS (Linux Virtual Server) is a high-performance load balancing system based on Linux. It supports multiple load balancing algorithms and has two main load balancing modes: NAT mode and DR mode.
Features/Benefits NAT mode DR mode
ARP response The external IP of the load balancer can respond to ARP requests Load balancer does not respond to ARP requests
Forwarding efficiency Compared with DR mode, the forwarding efficiency is lower Compared with NAT mode, the forwarding efficiency is higher
Requirements configuration For deployment scenarios that require changes to the network topology, NAT mode is easier to configure For scenarios that do not require changes to the network topology, DR mode is more practical
safety Compared with DR mode, NAT mode is more secure Compared with NAT mode, DR mode may be weaker in terms of security
Supported network protocols NAT mode supports multiple protocols DR mode supports fewer protocols
Number of load balancers For large-scale deployments, NAT mode requires more load balancers DR mode requires fewer load balancers to achieve the same performance

NAT mode and DR mode each have their own advantages, and you need to choose the most appropriate mode for use in different scenarios. NAT mode is easier to configure and more secure, but has slightly lower performance; DR mode forwarding is more efficient, but requires more granular network configuration.
2. Build an LVS-DR cluster based on CentOS 7.
Under construction

Guess you like

Origin blog.csdn.net/m0_51828898/article/details/130653191