>>>>> "Perrin" == Perrin Harkins <[EMAIL PROTECTED]> writes:

Perrin> By the way, did you look at Randal's throttle code?  (Posted as
Perrin> Stonehenge::Throttle, I believe.)  That's what I started with last
Perrin> time I needed to do this.  It worked well over NFS for a cluster.

And I'm thinking about rewriting that using DBD::SQLite for the
tracker, rather than my ad-hoc "use the filesystem as a database"
code from before.

Then, you could basically program it to block on any criterion you choose,
like CPU seconds consumed in last 5 minutes, bytes transferred, number
of hits, and spread that out by whatever divisions you wanted.  It'd
just be a matter of reducing the decision logic to a single number
over a certain domain (requestor, resource, number) and then setting
the blocking criterion (seconds, threshold).

Maybe in the next few weeks or so.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html

Reply via email to