In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
LVS four-layer load balancing
IP messages do not go through the forward chain
1. LVS works on the input chain of netfilter in kernel space, just like the netfilter framework, installing iptables command writing rules can work on the netfilter framework that has already been compiled into the kernel. Similarly, ipvs has already been compiled in the kernel, we just need to install ipvsadm management commands, write the rules, and it will take effect.
2. Ipvsadm: user space defines a command line tool for managing LVS
Ipvs: a framework that works on the input chain of kernel space and has been compiled into the kernel.
LVS type:
1. LVS-NAT (address translation): translates the requested destination address into the address of real server. Multi-objective DNAT.
All inbound and outbound traffic will pass through the director,real server gateway and should be directed to director.
2. LVS-DR (Direct routing): director and real server must be on the same physical network with no router in between.
Director only processes incoming requests, and the response is made directly by real server and client.
3. LVS-TUN (tunnel): similar to DR, except that the IP message is encapsulated in a layer to form a tunnel transmission.
Load balancing algorithm:
Common algorithms (default is wlc, so wlc is the most reliable):
1. Rr:round robin, polling method
2. Wrr:weight round robin, weighted polling
3. Sh:source hash, the original address of hash, is used to bind session sessions
4. Lc:least connections, based on minimum connections
5. Wlc:weight least connections, weighted least connection
6. Dh:destination hash, available when the backend is a cache server
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.