rangement et tp_pxe
This commit is contained in:
8
tp_loadbalancing/lvs
Normal file
8
tp_loadbalancing/lvs
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "1" > /proc/sys/net/ipv4/ip_forward
|
||||
|
||||
ipvsadm -A -t 192.168.0.151:80 -s rr
|
||||
ipvsadm -a -t 192.168.0.151:80 -r 172.16.0.1:80 -m
|
||||
ipvsadm -a -t 192.168.0.151:80 -r 172.16.0.2:80 -m
|
||||
|
||||
4
tp_loadbalancing/recup
Executable file
4
tp_loadbalancing/recup
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
while true ; do
|
||||
curl -s http://192.168.0.151 -o /dev/null
|
||||
done
|
||||
Reference in New Issue
Block a user