Exactly even with the same sized boxes users can request all sorts of
pages. Some much heavier on the CPU than others.
I just figured I could use SSH from the LB. ssh to each box as nobody
or a user with minimal access, and run and uptime and free and then
parse the outputs, and set the weights accordingly w/ ipvsadm
I guess I'll have to write it. I'll post what I script here, it should
be simple enuf to do.
-----Original Message-----
From: lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:lvs-users-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Bruno
Bonfils
Sent: Monday, March 17, 2003 10:35 AM
To: LinuxVirtualServer.org users mailing list.
Subject: Re: Changing weight based on actual system load?
Joseph Mack <mack.joseph@xxxxxxx> writes:
>> I could write my own via perl to check things like load averages,
>
> no-one's done it (yet), presumably on the assumption that all
> machines are indentical and on the average will get identical loads.
>
No, even if you'are indentical box, customers can read differents
page. Some of them may heavy php/sql which implies a higher load
average than a simple static html file. (in the case of http load
balancing..)
Well, I think it should be interesting to devel a small application
running on real server which send the load average on the box to the
real server which adapt the weight automatically.
- Just an opinion of a poor LVS user
--
Bruno Bonfils
http://www.debian-fr.org/ http://www.asyd.net/
_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users
|