LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: Scheduling Algorithm init and update

To: Thomas Proell <Thomas.Proell@xxxxxxxxxx>
Subject: Re: Scheduling Algorithm init and update
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Julian Anastasov <ja@xxxxxx>
Date: Tue, 5 Sep 2000 21:25:29 +0000 (GMT)
        Hello,

On Tue, 5 Sep 2000, Thomas Proell wrote:

> Hi!
> I'm trying to implement a new scheduler for LVS as some
> of you know already.
>
> I'm browsing through the code for a while now, and I'm not
> sure if the init/update mechanisms are very good.

        They are good enough for the current features.
New features => new mechanisms :)

>
> In the current implementations these functions are only
> used to keep track with the number of loaded modules
> and to set the pointer "svc->sched_data" to a list
> of valid realservers.
> Did I get this right?

        Yes

>
> If I need the number of the available realservers for
> my scheduling, it would be a nice idea to count them
> at the init- and update-function and NOT every time
> the scheduler is called, right?

        init_service is called once. You need to call
"update_service" when adding real server. Currently, it
is called only when a real server is removed.

>
> The problem is, that it doesn't work. After initialising,
> the "svc->sched_data" points at an empty list (size 0),
> but when the scheduler is called, the list is filled
> with the realservers without calling the "update".

        There are no users for this case yet.

>
> Is this a good idea? Wouldn't it be better to call the
> update after every change of the scheduling-relevant
> data?

        If that is needed why not. Currently, it is not needed,
LVS is optimized for speed, not to support unused features.

>
>
> Thomas
>


Regards

--
Julian Anastasov <ja@xxxxxx>



<Prev in Thread] Current Thread [Next in Thread>