Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux Virtual Server: Users

[lvs-users] Why do Weights Change by Themselves?

 

 

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded


eric.robinson at psmnv

Mar 26, 2009, 1:26 AM

Post #1 of 5 (979 views)
Permalink
[lvs-users] Why do Weights Change by Themselves?

I've been using lvs+ldirectord for a while now. I've observed on many
occasions that weights sometimes seem to change spontaneously. For
example, I have three Windows terminal servers as follows:

TCP 192.168.5.100:3389 wlc
-> 192.168.10.35:3389 Masq 20 19 0
-> 192.168.15.84:3389 Masq 40 51 0
-> 192.168.15.83:3389 Masq 40 52 0

The server at 192.168.10.35 is new and still in testing. I want it to
handle less load than the othes, so I set its weight lower.

But then I come back a few hours later and I find it looking something
like this:

TCP 192.168.5.100:3389 wlc
-> 192.168.10.35:3389 Masq 1 41 0
-> 192.168.15.84:3389 Masq 1 40 1
-> 192.168.15.83:3389 Masq 1 41 0


Can anyone suggest a reason why these weights would change by
themselves?

--
Eric Robinson


Disclaimer - March 26, 2009
This email and any files transmitted with it are confidential and intended solely for LinuxVirtualServer.org users mailing list.. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of Physician Select Management and Physician's Managed Care. Warning: Although Physician Select Management and Physician's Managed Care have taken reasonable precautions to ensure no viruses are present in this email, the companies cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
This disclaimer was added by Policy Patrol: http://www.policypatrol.com/

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


graeme at graemef

Mar 26, 2009, 1:32 AM

Post #2 of 5 (916 views)
Permalink
Re: [lvs-users] Why do Weights Change by Themselves? [In reply to]

On Thu, 2009-03-26 at 01:26 -0700, Robinson, Eric wrote:
> I've been using lvs+ldirectord for a while now. I've observed on many
> occasions that weights sometimes seem to change spontaneously.

Nothing in a computer is ever spontaneous, unless it's broken. Or
overclocked ;-)

Anyway: you'll need to be looking in, or turning up the level of, your
logs. I suspect something, somewhere, is interacting with ldirectord (it
may be ldirectord itself) and is fiddling with the weights in normal
operation.

Can you see if anything is logged, and if not consider turning up the
log level?

Graeme


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


eric.robinson at psmnv

Mar 26, 2009, 1:59 AM

Post #3 of 5 (914 views)
Permalink
Re: [lvs-users] Why do Weights Change by Themselves? [In reply to]

I've got ldirectord logs in /var/log, but they are all 0 bytes. My
ldirectord.cg contains these entries:

logfile="/var/log/ldirectord.log"
logfile="local0"

ldirectord is managed by heartbeat, so I'm not sure how to change its
debug level on the fly without messing with existing connections.

Which brings up another point. I notice that my load balancer computers
BOTH have the following in rc.local:

/sbin/ipvsadm --start-daemon master
/sbin/ipvsadm --start-daemon backup

Both daemons are running on both computers. That's contrary to what the
man page seems to indicate, but then maybe it's correct for a heartbeat
cluster?

--
Eric Robinson


-----Original Message-----
From: lvs-users-bounces [at] linuxvirtualserver
[mailto:lvs-users-bounces [at] linuxvirtualserver] On Behalf Of Graeme
Fowler
Sent: Thursday, March 26, 2009 1:32 AM
To: LinuxVirtualServer.org users mailing list.
Subject: Re: [lvs-users] Why do Weights Change by Themselves?

On Thu, 2009-03-26 at 01:26 -0700, Robinson, Eric wrote:
> I've been using lvs+ldirectord for a while now. I've observed on many
> occasions that weights sometimes seem to change spontaneously.

Nothing in a computer is ever spontaneous, unless it's broken. Or
overclocked ;-)

Anyway: you'll need to be looking in, or turning up the level of, your
logs. I suspect something, somewhere, is interacting with ldirectord (it
may be ldirectord itself) and is fiddling with the weights in normal
operation.

Can you see if anything is logged, and if not consider turning up the
log level?

Graeme


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


Disclaimer - March 26, 2009
This email and any files transmitted with it are confidential and intended solely for LinuxVirtualServer.org users mailing list.. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of Physician Select Management and Physician's Managed Care. Warning: Although Physician Select Management and Physician's Managed Care have taken reasonable precautions to ensure no viruses are present in this email, the companies cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
This disclaimer was added by Policy Patrol: http://www.policypatrol.com/

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


sebvieira at gmail

Mar 26, 2009, 4:50 AM

Post #4 of 5 (913 views)
Permalink
Re: [lvs-users] Why do Weights Change by Themselves? [In reply to]

On Thu, Mar 26, 2009 at 9:59 AM, Robinson, Eric <eric.robinson [at] psmnv>wrote:

> Which brings up another point. I notice that my load balancer computers
> BOTH have the following in rc.local:
>
> /sbin/ipvsadm --start-daemon master
> /sbin/ipvsadm --start-daemon backup
>
> Both daemons are running on both computers. That's contrary to what the
> man page seems to indicate, but then maybe it's correct for a heartbeat
> cluster?



Yeah that's okay to have them both running. Actually it's better this way,
than to have them handled as a heartbeat resource. Let's call your setup
box1 and box2 and on them run master1 + slave1 and master2 + slave2. Now
master1 sends its updates to slave2 and master2 to slave1. If box1 is
active, master2 will send (close to) nothing to slave1.

I always set a different sync id on both master-slave connections, like
this:

box1 $ ipvsadm --start-daemon master --sync-id 50
box1 $ ipvsadm --start-daemon backup --sync-id 51
box2 $ ipvsadm --start-daemon master --sync-id 51
box2 $ ipvsadm --start-daemon backup --sync-id 50

But i'm not sure if that's necessary. It works though :)

regards,

Sebastian
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users


eric.robinson at psmnv

Mar 26, 2009, 10:19 AM

Post #5 of 5 (910 views)
Permalink
Re: [lvs-users] Why do Weights Change by Themselves? [In reply to]

> I always set a different sync id on both master-slave connections

Would be good to know if that is necessary. The man page does not say.
Maybe it's kind of like a socket, where it's OK to have the same sync ID
on both because the IP addresses are different.

--
Eric Robinson



Disclaimer - March 26, 2009
This email and any files transmitted with it are confidential and intended solely for LinuxVirtualServer.org users mailing list.. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of Physician Select Management and Physician's Managed Care. Warning: Although Physician Select Management and Physician's Managed Care have taken reasonable precautions to ensure no viruses are present in this email, the companies cannot accept responsibility for any loss or damage arising from the use of this email or attachments.
This disclaimer was added by Policy Patrol: http://www.policypatrol.com/

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users [at] LinuxVirtualServer
Send requests to lvs-users-request [at] LinuxVirtualServer
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Linux Virtual Server users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.