From c5a306d25a972d2d4fa334132511331a9953337c Mon Sep 17 00:00:00 2001 From: Rotsipitia Rahaingoharivahitra Date: Fri, 13 Sep 2024 09:01:23 +0200 Subject: [PATCH] =?UTF-8?q?=09nouveau=20fichier=C2=A0:=20sio2/SISR/03-lvs/?= =?UTF-8?q?cli1/recup.sh=20=09nouveau=20fichier=C2=A0:=20sio2/SISR/03-lvs/?= =?UTF-8?q?cli2/recup.sh=20=09nouveau=20fichier=C2=A0:=20sio2/SISR/03-lvs/?= =?UTF-8?q?lvs/to=5Fdo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sio2/SISR/03-lvs/cli1/recup.sh | 3 +++ sio2/SISR/03-lvs/cli2/recup.sh | 3 +++ sio2/SISR/03-lvs/lvs/to_do | 7 +++++++ 3 files changed, 13 insertions(+) create mode 100644 sio2/SISR/03-lvs/cli1/recup.sh create mode 100644 sio2/SISR/03-lvs/cli2/recup.sh create mode 100644 sio2/SISR/03-lvs/lvs/to_do 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