lb
This commit is contained in:
parent
b1a9dd9981
commit
66492933c8
9
sio2/sisr/05-lb/lvs.sh
Executable file
9
sio2/sisr/05-lb/lvs.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "1" > /proc/sys/net/ipv4/ip_forward
|
||||
|
||||
ipvsadm -A -t 192.168.0.141:80 -s rr
|
||||
|
||||
ipvsadm -a -t 192.168.0.141:80 -r 172.16.0.1:80 -m
|
||||
ipvsadm -a -t 192.168.0.141:80 -r 172.16.0.2:80 -m
|
||||
|
5
sio2/sisr/05-lb/recup.sh
Executable file
5
sio2/sisr/05-lb/recup.sh
Executable file
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
while [ true ]
|
||||
do
|
||||
curl -s http://192.168.0.141 -o /dev/null
|
||||
done
|
Loading…
x
Reference in New Issue
Block a user