JWK - Jackall's IT Wiki

Sécurité, Système, Réseau

Outils pour utilisateurs

Outils du site


en:lvsdebian

LVS on Debian

Quick notes on setting up a Linux Virtual Server on Debian

Architecture

  • 1 proxy server acting as LVS director
  • 2 Web servers

configuration

LVS director

 aptitude install keepalived ipvsadm
  • pour vrrp + real server configuration
 lvm-vm:~# 
  ! Configuration File for keepalived
  
  global_defs {
  
     router_id LVS_VM
  }
  
  vrrp_instance VI_1 {
      interface eth0
      state MASTER
      virtual_router_id 50
      nopreempt
      priority 102
      advert_int 1
  
  #VIP 
      virtual_ipaddress {
          172.16.1.100
      }
        track_interface{
                eth0
        }
        authentication {     # Authentication block
                 # PASS||AH
                 # PASS - Simple Passwd (suggested)
                 # AH - IPSEC (not recommended))
                 auth_type PASS
                 # Password for accessing vrrpd.
                 # should be the same for all machines.
                 auth_pass 1234
        }
  }
  
  virtual_server 172.16.1.100 80 {
      delay_loop 6
      lb_algo rr 
      lb_kind DR
      persistence_timeout 50
      protocol TCP
  
      sorry_server 172.16.1.1 80
  
      real_server 172.16.1.10 80 {
          weight 1
          HTTP_GET {
              url { 
                path /test.html
                status_code 200
              }
              connect_timeout 3
              nb_get_retry 3
              delay_before_retry 1
          }
      }
  }
lvm-vm:~#

search?q=LVS%20Linux%20Debian%20EN&btnI=lucky

en/lvsdebian.txt · Dernière modification: 2018/02/18 16:01 (modification externe)