what's the meaning about weight

Timo Seven <[email protected]> Wed, 1 Sep 2010 11:59:23 +0800
Newsgroups gmane.linux.keepalived.announce
Message-ID <[email protected]>
Hi all:

   I test the vrrp to transition master to slave. I want to if the
port 80 is down will be transition.

But my keepalived.conf follow can't transition:
vrrp_script chk_http_port {
       script "</dev/tcp/127.0.0.1/80" # connects and exits
       interval 1                      # check every second
       weight -2                       # default prio: -2 if connect
fails
}
    track_interface {
       eth1 weight 2   # prio =3D +2 if UP
       eth2 weight -2  # prio =3D -2 if DOWN
       eth3            # no weight, fault if down
    }
    track_script {
       chk_http_port
    }


But when I change the keepalived.conf follow  can transition master to slave

vrrp_script chk_http_port {
       script "</dev/tcp/127.0.0.1/80" # connects and exits
       interval 1                      # check every second
#       weight -2                       # default prio: -2 if connect
#fails
}

    track_interface {
       eth0
    }
    track_script {
       chk_http_port
    }



So I want to what's the meaning about "weight"


##########################################

Best regards
Timo Seven
blog: http://zauc.wordpress.com
twitter: http://twitter.com/zauc
Linux System Admin=A0 & MySQL DBA

---------------------------------------------------------------------------=
---
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd