As we all know, LVS cluster type has NAT, Dr and Tun, today wrote this article is mainly to see the Marco Video, and then through the form of blog to review their own remember how much, write bad, welcome to spray!
DR: The cluster node and director must be in the same physical network;
RIP can use the public network address, to achieve convenient remote management and monitoring;
The Director is only responsible for processing inbound requests, and the response messages are sent directly to the client by Realserver;
With Nat without the realserver in the DR cannot be the gateway dip;
Port mappings are not supported
Lab Environment:
Director centos6.7 eth0 192.168.106.86 eth0:0 192.168.106.222
Node1 Redhat 7.1 eno1677736 192.168.106.62 lo:0 192.168.106.222
Node1 Redhat 7.1 eno1677736 192.168.106.62 1o:0 192.168.106.222
Here we take Apache for example
Directory:ifconfig eth0:0 192.168.106.222/24
Service Network restart
Node1: Modifying kernel parameters arp_announce and Arp_ignore
Echo 2 >/proc/sys/net/ipv4/conf/eno16777736/arp_announce
Echo 2 >/proc/sys/net/ipv4/conf/all/arp_announce
Echo 1 >/proc/sys/net/ipv4/conf/all/arp_ignore
Echo 1 >/proc/sys/net/ipv4/conf/eno16777736/arp_ignore
Ifconfig lo:0 192.168.106.222/24
Add a route entry: Route add-host 192.168.106.222 Dev lo:0
Node2 Same as Node1 settings
Configuring in Director
Ipvsadm-a-T 192.168.106.222:80-s WLC #wlc动态加权算法
Ipvsadm-a-T 192.168.106.222:80-r 192.168.106.62-g-W 2
Ipvsadm-a-T 192.168.106.222:80-r 192.168.106.103-g-W 1
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M01/89/F2/wKiom1giehXjFWFLAACtD9Jl8mQ390.png-wh_500x0-wm_3 -wmp_4-s_1569657421.png "style=" Float:none; "title=" Captures 1. PNG "alt=" Wkiom1giehxjfwflaactd9jl8mq390.png-wh_50 "/>
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/F2/wKiom1gielexk7yyAAAkz5zwjYA630.png-wh_500x0-wm_3 -wmp_4-s_3981414338.png "title=" capture. PNG "alt=" Wkiom1gielexk7yyaaakz5zwjya630.png-wh_50 "/>
The AB pressure test from Apache can be seen through the WCL weighting of 2:1. The value ratio of the inactconn is also basically 2:1.
This article is from the "9279550" blog, please be sure to keep this source http://9289550.blog.51cto.com/9279550/1870912
Simple implementation of LVS Dr Model for Linux cluster