好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

keepalived03:资源抢占问题 - Linux操作系统:Ubuntu_

keepalived03:资源抢占问题

 

Keepalived构建高可用服务器,有MASTER,BACKUP之分,在MASTER主机宕掉之后,BACKUP主机会接替

所有的任务,但是当MASTER主机修复后,会抢占资源,这样就是不必要的切换

    如何让MASTER恢复后不抢占BACKUP的资源:将两个主机均设置成BACKUP,因为不抢占只支持BACKUP模式

那个成为MASTER,靠优先级决定

! Configuration File for keepalived

 

global_defs {

   notification_email {

        oscersong007@gmail.com

   }

   notification_email_from keepalived@localhost

   router_id LVS_DEVEL

}

vrrp_sync_group VGM {

        group {

    }

}

vrrp_script chk_http_port {

        script "killall -0 httpd"

}

vrrp_instance VI_1 {

    state BACKUP    #BACKUP

    authentication {

        auth_type PASS

        auth_pass westos

    }

    track_interface {

    }

    virtual_ipaddress {

    }

    track_script {

        chk_http_port

}

 

}

 

查看更多关于keepalived03:资源抢占问题 - Linux操作系统:Ubuntu_的详细内容...

  阅读:54次