Project

General

Profile

Demande #5743

Surcharge IO et ressources sur maine par rapport à coon

Added by Quentin Gibeaux 5 months ago. Updated 4 months ago.

Status:
Nouveau
Priority:
Normale
Category:
-
Target version:
Start date:
01/06/2022
Due date:
% Done:

0%

Estimated time:

Description

Maine utilise trop de ram, swap à 1G ce qui fait des IO et est trop chargé en permanence

-> déplacer quelques VM sur coon pour équilibrer

History

#1

Updated by Quentin Gibeaux 5 months ago

ludo déplacé :

sur maine:

virsh shutdown ludo
cd /var/lib/libvirt/maine
mv ludo.qcow2 archives
scp archives/ludo.qcow2 root@coon.chapril.org:/var/lib/libvirt/coon

sur coon:

cd /etc/libvirt/hooks
virsh edit ludo
remplacer maine par coon dans le chemin du qcow2

diff effectué sur la conf libvirt :

diff --git a/libvirt/hooks/network-maine-coon-running b/libvirt/hooks/network-maine-coon-running
index 47bba74..9600281 100755
--- a/libvirt/hooks/network-maine-coon-running
+++ b/libvirt/hooks/network-maine-coon-running
@@ -37,6 +37,9 @@ case "$network_name" in
                         # libreoffice
                         /sbin/ip route add 2a01:4f8:10b:c42::12/128 via fe80::5054:ff:fe3c:686 dev virbr0
                         /sbin/ip route add 2a01:4f8:10b:c41::12/128 via fe80::5054:ff:fe3c:686 dev virbr0
+                        # ludo
+                        /sbin/ip route add 2a01:4f8:10b:c42::21/128 via fe80::5054:ff:fe3c:686 dev virbr0
+                        /sbin/ip route add 2a01:4f8:10b:c41::21/128 via fe80::5054:ff:fe3c:686 dev virbr0
                     ;;
                     "coon")
                         ##### hosted on maine
@@ -61,9 +64,6 @@ case "$network_name" in
                         # allo
                         /sbin/ip route add 2a01:4f8:10b:c42::64/128 via fe80::5054:ff:fe54:b824 dev virbr0
                         /sbin/ip route add 2a01:4f8:10b:c41::64/128 via fe80::5054:ff:fe54:b824 dev virbr0
-                        # ludo
-                        /sbin/ip route add 2a01:4f8:10b:c42::21/128 via fe80::5054:ff:fe54:b824 dev virbr0
-                        /sbin/ip route add 2a01:4f8:10b:c41::21/128 via fe80::5054:ff:fe54:b824 dev virbr0
                         # biliz
                         /sbin/ip route add 2a01:4f8:10b:c42::77/128 via fe80::5054:ff:fe54:b824 dev virbr0
                         /sbin/ip route add 2a01:4f8:10b:c41::77/128 via fe80::5054:ff:fe54:b824 dev virbr0
@@ -105,6 +105,9 @@ case "$network_name" in
                                        # libreoffice
                                        /sbin/ip route del 2a01:4f8:10b:c42::12/128 via fe80::5054:ff:fe3c:686 dev virbr0
                                        /sbin/ip route del 2a01:4f8:10b:c41::12/128 via fe80::5054:ff:fe3c:686 dev virbr0
+                                       # ludo
+                                       /sbin/ip route del 2a01:4f8:10b:c42::21/128 via fe80::5054:ff:fe3c:686 dev virbr0
+                                       /sbin/ip route del 2a01:4f8:10b:c41::21/128 via fe80::5054:ff:fe3c:686 dev virbr0
                     ;;
                        "coon")
                                ##### hosted on maine
@@ -129,9 +132,6 @@ case "$network_name" in
                                        # allo
                                        /sbin/ip route del 2a01:4f8:10b:c42::64/128 via fe80::5054:ff:fe54:b824 dev virbr0
                                        /sbin/ip route del 2a01:4f8:10b:c41::64/128 via fe80::5054:ff:fe54:b824 dev virbr0
-                                       # ludo
-                                       /sbin/ip route del 2a01:4f8:10b:c42::21/128 via fe80::5054:ff:fe54:b824 dev virbr0
-                                       /sbin/ip route del 2a01:4f8:10b:c41::21/128 via fe80::5054:ff:fe54:b824 dev virbr0
                                        # biliz
                                        /sbin/ip route del 2a01:4f8:10b:c42::77/128 via fe80::5054:ff:fe54:b824 dev virbr0
                                        /sbin/ip route del 2a01:4f8:10b:c41::77/128 via fe80::5054:ff:fe54:b824 dev virbr0

/!\ Penser à exécuter les commandes ajoutées en add sur maine, retirées en del sur maine et les commandes ajoutées en start sur coon, et retirées de del sur coon !

sur dns:

remplacer c41 par c42 dans l'enregistrement AAAA

sur admin:

actualiser la conf icinga :

diff --git a/icinga2/zones.d/master/cluster/ludo.conf b/icinga2/zones.d/master/cluster/ludo.conf
index 4e7efcc..0e0d6f8 100644
--- a/icinga2/zones.d/master/cluster/ludo.conf
+++ b/icinga2/zones.d/master/cluster/ludo.conf
@@ -2,12 +2,12 @@ object Host "ludo.cluster.chapril.org" {
   import "generic-host" 

   address = "192.168.1.21" 
-  address6 = "2a01:4f8:10b:c41::21" 
+  address6 = "2a01:4f8:10b:c42::21" 
   vars.dhcp = true

   vars.os = "Debian" 
   vars.os_version = "Buster" 
-  vars.hote = "maine.cluster.chapril.org" 
+  vars.hote = "coon.cluster.chapril.org" 

   vars.nodejs_server = false

reload :
systemctl reload icinga2
#2

Updated by Quentin Gibeaux 4 months ago

j'ai déplacé avec succès allo sur coon

Also available in: Atom PDF