2009/10/16 Craig <[email protected]>: > Hi, > > a patch (set weight/get weight) I imagined some days ago was integrated > just 6hrs after I had thought about it (Willy must be reading them!). > > I've written a simple (exchangable) interface that prints out a servers > load and a client to read it. I plan to read the load from all servers > and adjust the weight dynamically according to the load so that a very > busy server gets less queries and the whole farm is more balanced. I > plan to "smoothen" the increasing/decreasing a bit so that there aren't > too great jumps with the weight, I want to implement a policy of > something like "oh that server can do 50% more, lets just increase the > weight by 25% and check again in a minute". I hope this will autobalance > servers with different hardware quite well, so that you don't have to > guess or do performance tests to get the weights properly. > > Some python code is already finished (partly because I'd like to > practise a bit) but I didn't continue yet, because I'd like to hear your > opionions about this. > Hi
I'm sure lot of ppl (including me) will be interested in that ( I would probably have to write something similar in a month or so). By "load" you mean /proc/loadavg ? If yes then u might want to include some kind of per-server tuning of multiplier because obviously on 16 core server loadavg of 10 would be "moderately loaded" while on 4 core server i'd be "overload" Regards Mariusz

