keepalive配置例子

! Configuration File for keepalived

global_defs {
notification_email {
[email protected]
[email protected]
[email protected]
}
notification_email_from [email protected]
smtp_server 127.0.0.1
smtp_connect_timeout 30
router_id ORACLE
}

vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id 52
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
10.211.55.22
}

}
virtual_server 10.211.55.22 80 {
delay_loop 6
lb_algo rr
lb_kind DR
persistence_timeout 50
protocol TCP

sorry_server 10.211.55.13

real_server 10.211.55.19 80 {
    weight 1
    HTTP_GET {
        url { 
          path /1.png
          digest 640205b7b0fc66c1ea91c463fac6334d
        }
        connect_timeout 3
        nb_get_retry 3
        delay_before_retry 3
    }
}

real_server 10.211.55.20 80 {
    weight 1
    HTTP_GET {
        url { 
          path /1.png
          digest 425a3bef572ffa7e706bd7db8452c733
        }
        connect_timeout 3
        nb_get_retry 3
        delay_before_retry 3
    }
}

}

}

你可能感兴趣的:(keepalive配置例子)