|
my function
// LB = wc * CPU + wb * band //
// wc = min( 1, max( 0, 0.5 + CPU - band ) ) //
// wb = min( 1, max( 0,0.5 + band - CPU ) ) //
such as.....real server 1 has cpu 100% bandwidth 100Mbps.use cpu 30% Bandwidth
50%.to cal in my function LB = 0.50.
real server 2 use cpu 60% Bandwidth 20%.
to cal in my function LB = 0.56.
so director will choose real server 2 to service next client.
how could i do?
_________________________________________________________________
Call friends with PC-to-PC calling -- FREE
http://get.live.com/messenger/overview
|