LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

[lvs-users] Source Hashing scheduling module

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: [lvs-users] Source Hashing scheduling module
From: Mikio Kishi <mkishi@xxxxxxx>
Date: Sun, 12 Jul 2009 01:16:10 +0900
Hi, all

ip_vs_sh.c#ip_vs_sh_schedule() returns NULL if dest->weight becomes 0.

> // ip_vs_sh.c
>
>static struct ip_vs_dest *
>ip_vs_sh_schedule(struct ip_vs_service *svc, const struct sk_buff *skb)
>{
>        ... snip ...
>        tbl = (struct ip_vs_sh_bucket *)svc->sched_data;
>        dest = ip_vs_sh_get(tbl, iph->saddr);
>        if (!dest
>            || !(dest->flags & IP_VS_DEST_F_AVAILABLE)
>            || atomic_read(&dest->weight) <= 0
>            || is_overloaded(dest)) {
>                return NULL;
>        }
>        ... snip ...
>        return dest;
>}

I hope that the sh scheduling module doesn't select target server whose
weight is 0, like lc, sed.

what do you think ?

- Environment
  linux-2.6.28.9

Sincerely,
--
Mikio Kishi

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

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

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