In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
LVS (DR) + Keepalived server cluster LVS polling server can guarantee normal access to Keepalived highly available servers when a website server is down. It can be guaranteed when LVS is down. Can still work and build server cluster 192.168.4.50LVS+Keepalived VIP 192.168.4.253 192.168.4.53 192.168.4.51 website server 192.168.4.52 [50:53] # yum-y install keepalived ipvsadmvim / etc/keepalived/keepalived.conf vrrp_instance webha {state MASTER/SLAVE backup server interface eth0 network interface priority 150C100 priority authentication {auth_type PASS auth_pass 123456 main, Backup password same} virtual_ipaddress {192.168.4.253 virtual network address}} virtual_server 192.168.4.253 80 {the specified virtual server address is equivalent to ipvsadm-A-t 192.168.4.252 rr 80-s Delay_loop 6 lb_algo rr rr: polling mode lb_kind DR DR: direct route mode nat_mask 255.255.255.0 # persistence_timeout 50 A host access page is fixed to a web server to provide services protocol TCP within 50 seconds Connect_timeout 3 nb_get_retry 3 delay_before_retry 3 real_server 192.168.4.52 80 {Real server address ipvsadm-a-t 192.168.4.252 ipvsadm 80-r 192.168.4.53 delay_before_retry 80 weight 1} real_server 192.168.4.53 80 {weight 1}} # service keepalived start # ip add show | grep 192.168.4.252 # ipvsadm-Ln [51:52] port binds vip address Used to help the server return ifconfig lo:1 192.168.4.253 ifconfig lo:1 32 ifconfig lo:1 echo 1 > / proc/sys/net/ipv4/conf/lo/arp_ignore echo 2 > / proc/sys/net/ipv4/conf/lo/arp_announce echo 1 > / proc/sys/net/ipv4/conf/all/arp_ignore echo 2 > / proc/sys/net/ipv4/conf/all/arp_announce # elinks-- dump http://192.168.4.253
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.