After looking at using a connect plugin I realized that for my situation that just wouldn't work so well. Since I have 5 boxes in a load balanced config I need the load balancer to be able to determine if a box is able to take more connections. Since a plugin would have to load after the connection has been accepted that just won't work, the only way I can see to do it, and what seems to be working here, is the way I implemented it before. One thing that could be done is to use Sys-CpuLoad and make it an option that if you want support for that feature you can install the dep, otherwise it just won't check for load.
On Wed, 01 Feb 2006 18:56:29 +0000, Mark Powell wrote: > On Wed, 1 Feb 2006, John Peacock wrote: > >> Mark Powell wrote: >>> What about: >>> >>> http://search.cpan.org/~clintdw/Sys-CpuLoad-0.03/ >> >> That gets us FreeBSD/OpenBSD, as well as Linux /proc support, and a fallback >> to /usr/bin/uptime (which should be everywhere *nix). But it requires an >> external dependency, of which there are few in the core. > > Is there another way to call getloadavg() from perl under BSD? > Cheers.
