CrackerSuperior commented on issue #12533:
URL: 
https://github.com/apache/shardingsphere/issues/12533#issuecomment-922175230


   > > 如果你也想用LVS我可以给你LVS的步骤
   > 
   > 好的,让我看看
   
   LB Server Configuration:
   ``` shell
   ifconfig network_card_name vip/mask up
   ipvsadm -C
   ipvsadm --set 30 5 60
   ipvsadm -A -t vip:port -s rr -p 60
   ipvsadm -a -t vip:port -r proxy_ip:port -g -w 1
   #All proxy ip must be matched
   ipvsadm -ln
   ipvsadm -S > /etc/sysconfig/ipvsadm
   systemctl restart ipvsadm
   ```
   
   Web Server Configuration:
   Disable ARP packet broadcasting:
   ```shell
   cat >>/etc/sysctl.conf<<EOF 
   net.ipv4.conf.all.arp_ignore = 1
   net.ipv4.conf.all.arp_announce = 2
   net.ipv4.conf.lo.arp_ignore = 1
   net.ipv4.conf.lo.arp_announce = 2 EOF
   sysctl -p
   ```
   Bind virtual IP addresses, add static routes, receive packets from the LB 
server, and forward the packets to the LO network adapter for processing:
   ``` shell
   ip addr add vip/mask dev lo 
   route add -host proxy_ip dev lo
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to