Benutzer-Werkzeuge

Webseiten-Werkzeuge


keepalived

Dies ist eine alte Version des Dokuments!


Keepalived ist eine Software um Hochverfügbarkeit in Linux Umgebungen zu gewährleisten. Keepalived verwendet u.a VRRP (https://docs.linuxfabrik.ch/software/keepalived.html#vrrp-advertisement)

vrrp.jpeg

Installation

sudo apt install -y keepalived

Die Konfig liegt unter

/etc/keepalived/keepalived.conf

Selbst Kompilieren

Das Github Repo verwendet autoconf.

sudo apt install build-essential libssl-dev libnl-3-dev libnl-genl-3-dev autoconf automake libtool

git clone https://github.com/acassen/keepalived.git
cd keepalived

./autogen.sh
./configure

make
sudo make install

sudo keepalived -v
Service Unit anlegen!!!

Konfiguration

Master

vrrp_instance VI_1 {
    state MASTER
    interface ens160
    virtual_router_id 51
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass geheim
    }
    virtual_ipaddress {
        172.21.0.166
    }
}

Backup

vrrp_instance VI_1 {
    state BACKUP
    interface ens160
    virtual_router_id 51
    priority 90
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass geheim
    }
    virtual_ipaddress {
        172.21.0.166
    }
}

Health

Man kann Prozesse, Dateien, Interfaces und eigene Scripte „tracken“.

Prozesse

Dateien

Interfaces

Scripts

keepalived.1761141032.txt.gz · Zuletzt geändert: 2025/10/22 15:50 von jango