Comment 6 for bug 1800159

Revision history for this message
Thorsten (itopsatheg) wrote : Re: keepalived ip_vs

global_defs {
    notification_email {
        <email address hidden>
    }
    notification_email_from <email address hidden>
    smtp_server 127.0.0.1
    smtp_connect_timeout 15
    router_id lb2.domain.tld
}

vrrp_instance VRRP_SERVICE {
        virtual_router_id 24
        interface uplink0
        state BACKUP
        priority 200
        nopreempt
        garp_master_delay 5
        advert_int 3
        authentication {
                auth_type AH
                auth_pass secret
        }
        notify "/usr/local/bin/script"
        notify_stop "/usr/local/bin/script backup"

        virtual_ipaddress {
               10.1.2.3
        }
}

virtual_server 10.1.2.3 4119 {
 delay_loop 10
 lb_algo wlc
 lb_kind DR
 protocol TCP
 persistence_timeout 1440

 real_server 10.80.22.54 4119 {
  weight 10
  TCP_CHECK {
   connect_port 4119
   connect_timeout 3
  }
 }
 real_server 10.80.22.53 4119 {
  weight 10
  TCP_CHECK {
   connect_port 4119
   connect_timeout 3
  }
 }
    }
virtual_server 10.1.2.3 4120 {
 delay_loop 10
 lb_algo wlc
 lb_kind DR
 protocol TCP
 persistence_timeout 1440

 real_server 10.80.22.54 4120 {
  weight 10
  TCP_CHECK {
   connect_port 4120
   connect_timeout 3
  }
 }
 real_server 10.80.22.53 4120 {
  weight 10
  TCP_CHECK {
   connect_port 4120
   connect_timeout 3
  }
 }
    }
virtual_server 10.1.2.3 4122 {
 delay_loop 10
 lb_algo wlc
 lb_kind DR
 protocol TCP
 persistence_timeout 1440

 real_server 10.80.22.54 4122 {
  weight 10
  TCP_CHECK {
   connect_port 4122
   connect_timeout 3
  }
 }
 real_server 10.80.22.53 4122 {
  weight 10
  TCP_CHECK {
   connect_port 4122
   connect_timeout 3
  }
 }
    }