diff --git a/sio2/SISR/03-lvs/cli1/recup.sh b/sio2/SISR/03-lvs/cli1/recup.sh new file mode 100644 index 0000000..c8a5ee0 --- /dev/null +++ b/sio2/SISR/03-lvs/cli1/recup.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +watch -n 5 curl -s 192.168.0.150 diff --git a/sio2/SISR/03-lvs/cli2/recup.sh b/sio2/SISR/03-lvs/cli2/recup.sh new file mode 100644 index 0000000..8c93e35 --- /dev/null +++ b/sio2/SISR/03-lvs/cli2/recup.sh @@ -0,0 +1,3 @@ +#!/bin/bash +watch -n 5 curl -s 192.168.0.150 + diff --git a/sio2/SISR/03-lvs/lvs/to_do b/sio2/SISR/03-lvs/lvs/to_do new file mode 100644 index 0000000..09f0540 --- /dev/null +++ b/sio2/SISR/03-lvs/lvs/to_do @@ -0,0 +1,7 @@ +#!/bin/bash + +ipvsadm -A -t 192.168.0.150:80 -s rr #creation du cluster + +#ajout des serveurs reels au cluster +ipvsadm -a -t 192.168.0.150:80 -r 172.16.1.1:80 -m +ipvsadm -a -t 192.168.0.150:80 -r 172.16.1.2:80 -m \ No newline at end of file