malcolm,
i've updated ldirector.cf, but ipvsadm is still showing my realsevers as weight
0.
ldirectord.cf
================
# A virtual service for SER
virtual=10.1.201.189:5060
real=10.1.201.191:5060 gate
real=10.1.201.193:5060 gate
scheduler=wlc
protocol=udp
checktype=connect
persistent=600
checkport=5060
ipvsadm output
==================
IP Virtual Server version 1.2.0 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
UDP 10.1.201.189:5060 wlc persistent 600
-> 10.1.201.193:5060 Route 0 0 0
-> 10.1.201.191:5060 Route 0 0 0
if i change protocol to "tcp", then the realservers have weight of 1. also,
i've tried different checkpot # such as 80, 22, etc., but they all came back
with 0's when protocol is set to "udp".
anything thoughts or suggestions?
jack
--- Malcolm Turnbull <malcolm@xxxxxxxxxxxxxxxx> wrote:
> Jack Wei wrote:
>
> >Malcolm,
> >
> >If i set ldirector to check for tcp instead of udp, then udp traffic will
> not
> >be forwarded...unless I'm doing something wrong.
> >
> >Is this what you meant:
> >
> >virtual=10.1.201.189:5060
> > real=10.1.201.191:5060 gate
> > real=10.1.201.193:5060 gate
> > scheduler=wlc
> > protocol=tcp
> > checktype=connect
> > persistent=600
> >
> >If not, please let me know. Thanks.
> >
> >
> >
> >
> UDP is forwarded as requested but if you do a
>
> checkport=80
> checktype=connect
> protocol=udp
>
> The health checker will do a TCP check, but the LVS will do UDP
>
>
>
>
>
> >
> >
> >
> >--- lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx wrote:
> >
> >
> >
> >>Send lvs-users mailing list submissions to
> >> lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> >>
> >>To subscribe or unsubscribe via the World Wide Web, visit
> >> http://www.in-addr.de/mailman/listinfo/lvs-users
> >>or, via email, send a message with subject or body 'help' to
> >> lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> >>
> >>You can reach the person managing the list at
> >> lvs-users-owner@xxxxxxxxxxxxxxxxxxxxxx
> >>
> >>When replying, please edit your Subject line so it is more specific
> >>than "Re: Contents of lvs-users digest..."
> >>
> >>
> >>>Today's Topics:
> >>>
> >>>
> >> 1. Re: ldirectord & ser (sip express router) (Malcolm Turnbull)
> >> 2. Re: ldirectord & ser (sip express router)
> >> (Graham David Purcocks M.A.(Oxon.))
> >>
> >>
> >>>From: Malcolm Turnbull <malcolm@xxxxxxxxxxxxxxxx>
> >>>
> >>>
> >>Subject: Re: ldirectord & ser (sip express router)
> >>Date: Thu, 16 Jun 2005 09:24:08 +0100
> >>To: "LinuxVirtualServer.org users mailing list."
> >> <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
> >>
> >>Jack,
> >>
> >>I came across this a while ago as well with UDP a DNS check works,
> >> but no other UDP connect checks seemed to (i.e. not port 53).
> >>I ran into this while trying to do NFS.
> >>
> >>Aa a work around you can specify a checkport and do a TCP health check
> >>instead,.
> >>
> >>I think its a small bug (but don't take my word for it...)
> >>
> >>
> >>
> >>
> >>Jack Wei wrote:
> >>
> >>
> >>
> >>>hi,
> >>>
> >>>I'm trying to set up a cluster of ser boxes using ultramonkey. i want
> >>>ldirectord to detect if any of the ser boxes is down, but am not able to
> set
> >>>
> >>>
> >>it
> >>
> >>
> >>>up properly.
> >>>
> >>>Here's my ldirector.cf:
> >>>
> >>>checktimeout=10
> >>>checkinterval=2
> >>>autoreload=no
> >>>logfile="local0"
> >>>quiescent=yes
> >>>
> >>>virtual=10.1.201.189:5060
> >>> real=10.1.201.191:5060 gate
> >>> real=10.1.201.193:5060 gate
> >>> scheduler=wlc
> >>> protocol=udp
> >>># checktype=connect
> >>> persistent=600
> >>>
> >>>
> >>>Using the above configuration, ipvsadm reports the real servers are up
> even
> >>>
> >>>
> >>if
> >>
> >>
> >>>they aren't. If i enable "checktype=connect", ipvsadm reports the real
> >>>
> >>>
> >>servers
> >>
> >>
> >>>are always down.
> >>>
> >>>
> >>>
> >>>
> >>>
> >>--
> >>Regards,
> >>
> >>Malcolm Turnbull.
> >>
> >>
> >>
> >>>From: "Graham David Purcocks M.A.(Oxon.)" <grahamp@xxxxxxxxxxxxx>
> >>>
> >>>
> >>Subject: Re: ldirectord & ser (sip express router)
> >>Date: Thu, 16 Jun 2005 09:48:07 +0100
> >>To: "LinuxVirtualServer.org users mailing list."
> >> <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
> >>
> >>Its not a bug, per se, its just not implemented. There is no UDP connect
> >>code in ldirectord. I tried to add it while I was bored, but failed. I'm
> >>not even sure you can as there is no connection established with UDP,
> >>but its been a while since I did this stuff so I may be wrong.
> >>
> >>Graham
> >>
> >>On Thu, 2005-06-16 at 09:24, Malcolm Turnbull wrote:
> >>
> >>
> >>>Jack,
> >>>
> >>>I came across this a while ago as well with UDP a DNS check works,
> >>> but no other UDP connect checks seemed to (i.e. not port 53).
> >>>I ran into this while trying to do NFS.
> >>>
> >>>Aa a work around you can specify a checkport and do a TCP health check
> >>>instead,.
> >>>
> >>>I think its a small bug (but don't take my word for it...)
> >>>
> >>>
> >>>
> >>>
> >>>Jack Wei wrote:
> >>>
> >>>
> >>>
> >>>>hi,
> >>>>
> >>>>I'm trying to set up a cluster of ser boxes using ultramonkey. i want
> >>>>ldirectord to detect if any of the ser boxes is down, but am not able to
> >>>>
> >>>>
> >>set it
> >>
> >>
> >>>>up properly.
> >>>>
> >>>>Here's my ldirector.cf:
> >>>>
> >>>>checktimeout=10
> >>>>checkinterval=2
> >>>>autoreload=no
> >>>>logfile="local0"
> >>>>quiescent=yes
> >>>>
> >>>>virtual=10.1.201.189:5060
> >>>> real=10.1.201.191:5060 gate
> >>>> real=10.1.201.193:5060 gate
> >>>> scheduler=wlc
> >>>> protocol=udp
> >>>># checktype=connect
> >>>> persistent=600
> >>>>
> >>>>
> >>>>Using the above configuration, ipvsadm reports the real servers are up
> >>>>
> >>>>
> >>even if
> >>
> >>
> >>>>they aren't. If i enable "checktype=connect", ipvsadm reports the real
> >>>>
> >>>>
> >>servers
> >>
> >>
> >>>>are always down.
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>--
> >>
> >>
> >>>_______________________________________________
> >>>
> >>>
> >>lvs-users mailing list
> >>lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> >>http://www.in-addr.de/mailman/listinfo/lvs-users
> >>
> >>
> >>
> >
> >
> >Jack Wei
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Tired of spam? Yahoo! Mail has the best spam protection around
> >http://mail.yahoo.com
> >
> >
>
>
> --
> Regards,
>
> Malcolm Turnbull.
>
> Loadbalancer.org Limited
> Office: +44 (0)870 443 8779
> Mobile: +44 (0)7715 770523
> http://www.loadbalancer.org/
>
>
> " When a single point of failure is not an option"
>
> Why not try our online demonstration
> <http://www.loadbalancer.org/online_Demo.htm> ? Or get answers to common
> questions <http://www.loadbalancer.org/fud.htm> ?
>
>
__________________________________
Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html
|