vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| You were right about the reusable fields. I've now written least-conn and taking your advice, wrote least-traffic also. least-traffic was just a simple change to the least-conn code. least-conn is now running on my balancer, so once I'm happy it's stable I'll submit the patch. Adam Federico G. Schwindt wrote: > On Wed, Jun 21, 2006 at 10:22:03PM +0100, Adam McCarthy wrote: > >> Hello, >> >> This is my first post to this address, so go easy on me >> >> I'm interested in adding another balancing algorithm to pf: >> least-connections. If my thinking's right, I'd count the number of >> entries in the state table to each ip in the address pool and choose the >> destination with the least number of connections. I'd also do a version >> where it checks connections to the particular port that you're >> redirecting to. >> >> Does this sound like the best approach to doing this? If it was >> completed (shouldn't take long), would pf consider adding this if I sent >> them a patch? >> > > i found this very useful. i don't have much time at the moment, but if > i get a bit more spare time this is something i definetely will work on. > > i looked at it before, and i recall it wasn't very hard, but i think > when i thought about it my approach was different, as i didn't want to > calculate the number of connections each time. i think there are some > fields you can reuse to store this information, but was some time ago > and my memory is vague now. > > anyway, least-connections and least-traffic are two of the main things > pf is missing nowadays imho. > cheers, > > f.- |